text stringlengths 8.5k 48.7k |
|---|
var sqlite3 = require('sqlite3');
var w2g = {
url: null,
prioBoardId: null,
prioBacklogListId: null,
prioDefaultSwimlaneId: null,
wekanc: null,
gogsc: null,
db: null,
wekan: {
parseHook: function(hook, prio) {
var act = w2g.wekan[hook.description.split('-')[1]];
... |
const Discord = require("discord.js");
const http = require("https");
const fs = require("fs");
const CronJob = require("cron").CronJob;
var env = JSON.parse(fs.readFileSync("env.json"));
for (let key in env) {
process.env[key] = (env[key] + "").replaceAll("\\ ", " ");
}
delete env;
const bot = new Discord.Client();... |
const request = require('request');
const AWS = require('aws-sdk');
const fs = require('fs');
const crypto = require('crypto');
const _ = require('underscore');
const multiparty = require('multiparty');
const constants = require('./constants');
const { logger ... |
var currentTime = moment().format(' HH:mm:ss');
var tstCurrentDate = moment(tstCurrentDate).format("YYYY-MM-DD");
var patientID = sessionStorage.patientID;
var patientID = sessionStorage.getItem("patientID");
var programID = sessionStorage.getItem("programID");
var time = "";
var time_with_colon;
var tt_cancel_destinat... |
/**
* @license
* Copyright 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
let app;
let db;
let provider;
let sptInput;
let mdlInput;
let puInput;
let sdcInput;
let ltInput;
let tmrInput;
document.addEventListener('DOMContentLoaded', function () {
// // 🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥
// // The Firebase SDK is initialized and available here!
//
// fireba... |
/**
@Author: Chan
@Create: 2017/9/7
@des: 针对公司业务canvas动画
@use: import scoreAnimation.js
@others: 2017/8/1 不再依赖jQuery,纯js实现
*/
function scoreAnimation(options) {
this.options = {
id: "", //cavas ID
width: "0", //canvas宽度
height: "0", // canvas高度
position_x: "0", //圆的圆点x座标
position_y: "0", ... |
//global window
//jslint white:true multivar:true
// ##############################################################
// ################# WARNING FOR NON-DEVELOPERS #################
// ##############################################################
console.log('%cOnly developers should be in this area', 'color: red; fo... |
const colors = {
"black": p5.prototype.createVector(0, 0, 0),
"blue": p5.prototype.createVector(0, 0, 255),
"red": p5.prototype.createVector(255, 0, 0),
};
const g = 1000;
const realisticG = 9.81;
const timeStep = 1 / 60;
const simpsonsRuleApproximation = (f, a, b, steps=100) => {
if (a > b) return -simpsonsRule... |
/**
* MessyCMS https://github.com/rekcuFniarB/messycms#readme
* License: MIT
*/
function MediaEmbedded(link) {
var This = this;
this.link = link;
this.oEmbedApis = {
'vimeo.com': 'https://vimeo.com/api/oembed.json?autoplay=true&format=json',
'player.vimeo.com': 'https://vimeo.com/api/oe... |
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*
* @form... |
/**
* ****************************************************************************
* **********************|| PORTALES PANEL ADMINISTRATIVO ||******************
* ****************************************************************************
*
* @date 2019-11-15
*... |
var sim;
/*
* AICASIM
* Inits an AICASimulator
*
* Params: The high level parameters j1, j2, h, r1, and r1
*
*/
var done = false;
var __i = 0;
var numExp = -1;
var oj1 = 0;
var oj2 = 0;
var oh = 0;
var or1 = 0;
var or2 = 0;
var download = false;
var doNext = false;
var _params = [
[1,2,0],
[1,5,-4],
... |
/*! Custom Sidebars - v2.1.13
* https://premium.wpmudev.org/project/custom-sidebars-pro/
* Copyright (c) 2016; * Licensed GPLv2+ */
function trim(e) {
e = e.replace(/^\s\s*/, "");
for (var i = e.length - 1; i >= 0; i--)
if (/\S/.test(e.charAt(i))) {
e = e.substring(0, i + 1);
b... |
var TileMap = (function (_super) {
__extends(TileMap, _super);
function TileMap(player) {
_super.call(this);
this._speed = 3;
this.moveX = [];
this.moveY = [];
this.init();
this._player = player;
this._i = 0;
}
var d = __define,c=TileMap,p=c.protot... |
/**
* babylon
***/
import * as BABYLON from 'babylonjs';
import 'babylonjs-loaders';
import * as BABYLON_MATERAIAL from "babylonjs-materials"
import * as GUI from 'babylonjs-gui';
import ammo from "../../../../node_modules/ammo.js/builds/ammo";
import utils from "../utils/utils";
import api from "../../../api"
var... |
'use strict';
var EventEmitter = require('events').EventEmitter;
var fs = require('fs');
var sysPath = require('path');
var asyncEach = require('async-each');
var anymatch = require('anymatch');
var globParent = require('glob-parent');
var isGlob = require('is-glob');
var isAbsolute = require('path-is-absolute');
var i... |
/* ==========================================================================
* dexie-observable.js
* ==========================================================================
*
* Dexie addon for observing database changes not just on local db instance
* but also on other instances, tab... |
// GPG4Browsers - An OpenPGP implementation in javascript
// Copyright (C) 2011 Recurity Labs GmbH
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 3.0 of the Licen... |
import { isDefined } from '../../core/utils/type';
import { extend } from '../../core/utils/extend';
import { normalizeEnum, getVizRangeObject } from '../core/utils';
import { name as wheelEvent } from '../../events/core/wheel';
import * as transformEvents from '../../events/transform';
import { start as dragEventStar... |
import lodashGet from 'lodash/get';
import lodashHas from 'lodash/has';
import Str from 'expensify-common/lib/str';
import Onyx from 'react-native-onyx';
import _ from 'underscore';
import CONST from '../../CONST';
import ONYXKEYS from '../../ONYXKEYS';
import * as API from '../API';
import BankAccount from '../models/... |
/**
* Copyright 2016 The AMP HTML Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... |
/*
* NOTE: This sample uses ES6.
*/
import clientIDs from './clientIDs.js';
let clientApp = {};
// Genesys Cloud OAuth information
const platformClient = require('platformClient');
const client = platformClient.ApiClient.instance;
// const redirectUri = "http://localhost:3000/";
const redirectUri = "https://mypure... |
/* jshint -W003 */// 'noThumbURI' was used before it was defined.
function createnodethumbnail(node, aes, id, imagedata, opt, ph, file) {
storedattr[id] = Object.assign(Object.create(null), {'$ph': ph, target: node});
createthumbnail(file || false, aes, id, imagedata, node, opt);
var uled = ulmanager.getE... |
import { tick } from "svelte";
import { get } from "svelte/store";
import { api, electrs, hasura } from "$lib/api";
// import * as middlewares from "wretch-middlewares";
import { mnemonicToSeedSync } from "bip39";
import { fromSeed } from "bip32";
import { fromBase58 } from "bip32";
import {
address as Address,
ECP... |
/*
* RSA Encryption / Decryption with PKCS1 v2 Padding.
*
* Copyright (c) 2003-2005 <NAME>
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restricti... |
"use strict";
const pagina = new URL(location);
const api = pagina.host.match("localhost") ? "http://localhost:3000" : "https://0-0-0.nl";
const params = pagina.searchParams;
const schaakVereniging = doorgeven("schaakVereniging");
const seizoen = doorgeven("seizoen");
const teamCode = doorgeven("team");
const speler =... |
"use strict"
/*
This scripts contains makes support for graphical editing.
*/
var DEL_KEY = 46;
var BACKSPACE = 8;
var ENTER = 13;
var ESC = 27;
var RIGHT = 39;
var LEFT = 37;
var CURRENT_ZOOM = 1.0;
var UP = 38;
var DOWN = 40;
var MINUS = 189;
var EQUALS = 187; // also PLUS
var J = 74;
var K = 75;
var D = 68;
var I ... |
//Obtener ip del servidor
var ip = ((location.href.split('/'))[0])+'//'+((location.href.split('/'))[2]);
$(document).ready( function () {
$("#fechaElaboracionEmbarque, #fechaRealEmbarque, #fechaLlegadaZFEmbarque, #fechaReservaE, #fechaRealE, #fechaMaximaE, #arriboPuertoE, #arriboPuertoEmbarque").datetimepicker
(
... |
let fs = require("fs")
let mode = 0
let out = ""
let prop = {}
let dataBuf = ""
let unicodeBuf = []
let currChar = 0
let currCharLine = 0
let currCharBuf = null
let glyph = {}
let allChars = {}
let charHash = {}
let charHashList = ""
const fullKana =
'ァアィイゥウェエォオカガキギクグケゲコゴサザシジスズセゼソ' +
'ゾタダチヂッツヅテデトドナニヌネノハバパヒビピフブ... |
'use strict';
var _filterTags=[];
var _filterTagsO={}
function url_slug(s, opt) {
s = String(s);
opt = Object(opt);
var defaults = {
'delimiter': '-',
'limit': undefined,
'lowercase': true,
'replacements': {},
'transliterate': (typeof(XRegExp) === 'undefined') ? true... |
$(document).ready(function(){
$("#nav_button").append('<li class="nav-item d-none d-sm-inline-block"><button class="btn btn-info" id="new_user" >Nuevo Usuario</button></li>');
//$("#nav_button").append('<li class="nav-item d-none d-sm-inline-block"><button title="Generar PDF " class="btn btn-danger ml-4" id="PDF" ><... |
var indizes={
'':'',
'1':'₁',
'2':'₂',
'3':'₃',
'4':'₄',
'5':'₅',
'6':'₆',
'7':'₇',
'8':'₈',
'9':'₉',
'10':'₁₀',
'11':'₁₁',
'12':'₁₂'
}
var metalle ={
'lithium':['Li',1,'Lithium'],
'natrium':['Na',1,'Natrium'],
'kalium':['K',1,'Kalium'],
'rubidium':[... |
var links = document.querySelectorAll('a[rel=external]');
for (var j = 0; j < links.length; j++) {
var a = links[j];
a.addEventListener('click', function(e) {
window.open(this.href, '_blank');
e.preventDefault();
}, false);
}
var container = document.getElementById('container'),
... |
"use strict";
const sha256 = require("sha256");
const Logger = require("./../../logger/Logger");
const WebServices = require("./../../services/webservices/WebServices");
const APIResponse = require("./../../services/webservices/APIResponse");
const Authentication = require("./../authentication/Authentication");
const D... |
'use strict';
/*
200 OK
Standard response for successful HTTP requests. The actual response will depend on the request method used. In a GET request, the response will contain an entity corresponding to the requested resource. In a POST request the response will contain an entity describing or containing the result o... |
/*
eslint-disable react/no-multi-comp, no-underscore-dangle
*/
import React, { Component, Fragment } from 'react';
import { FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import { UnControlled as CodeMirror } from 'react-codemirror2';
import { Input, Select, message } from 'antd';
import {... |
var db = require('../models');
function isValid(review){
if(review.description == ''){
return false;
}
if(review.TestTypeId == ''){
return false;
}
if(review.EquipmentId == ''){
return false;
}
return true;
};
function getDate(date){
var _return = new Date(date);
if(_return){
return ... |
var gulp = require('gulp-param')(require('gulp'), process.argv),
util = require('gulp-util'),
bump = require('gulp-bump'),
fs = require('fs'),
merge = require('merge-stream'),
path = require('path'),
glob = require('glob'),
_ = require('underscore'),
inject = require('gulp-inject'),
... |
import $ from 'jquery';
import ClipboardJS from 'clipboard';
import tpl from './tpl';
import getEnvData from './getEnvdata';
import {
clearCookie,
clearStorage,
reloadPage,
checkKeyword,
scrollToView,
getLocalStorage,
setLocalStorage,
} from './helper';
import './index.css';
let curEnvData;
let curEnvDat... |
// Database data, should not be changed except when refreshing
var database = null;
// Tracking data
var currentQuestionsIds = [];
var currentSpeciesIds = [];
var candidateSpeciesIds = [];
var currentAnswers = {};
var newAnswers = {};
// For back button functionality
var historyStack = [];
function start() {
res... |
/**
* @file Unit tests of the CanOverhead.js library using simple console
* assertions that point to the failing line.
* @licence BSD 3-clause license. See LICENSE.md for details.
*/
let check = console.assert; // Shorter-name alias
/**
* Compares two arrays for equality of type, length and content.
* @param {Ar... |
/*
ListJS Beta 0.1.4
By <NAME> (www.jonnystromberg.se, www.listjs.com)
OBS. The API is not frozen. It MAY change!
License (MIT)
Copyright (c) 2011 <NAME> http://jonnystromberg.se/
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "... |
// Geometry building functions
import Vector from '../vector';
import Geo from '../geo';
import {outsideTile, isCoordOutsideTile} from './common';
const zero_vec2 = [0, 0];
// Build tessellated triangles for a polyline
const CAP_TYPE = {
butt: 0,
square: 1,
round: 2
};
const JOIN_TYPE = {
miter: 0,
... |
"use strict";
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
... |
var waitTime = 30000;
var feedbackDelay = 0;
var feedbackDuration = 1000;
var studyDuration = 4000;
var studyITI = 1000;
var testITI = 1000;
function retry(promise, n, wait) {
return promise.fail(function(error) {
if (n === 1) throw error;
return setTimeout(function () {
... |
// Globale variabler:
let VSHADER_PYRAMID_SOURCE =
'attribute vec3 a_Position;\n'+
'uniform mat4 u_modelviewMatrix;\n'+
'uniform mat4 u_projectionMatrix;\n'+
'uniform vec3 u_ambientLightColor;\n'+
'uniform vec3 u_ambientMaterialColor;\n'+
'varying vec3 v_Light;\n'+
'void main() {\n'+
' v_Light = u_ambientLigh... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ma... |
import _get from 'lodash.get';
import { findIndex } from 'lodash';
import { getStore } from "./LauncherStore";
import AppDirectory from "../modules/AppDirectory";
import FDC3 from "../modules/FDC3";
import { findAppIndexInFolder } from '../utils/helpers';
const async = require("async");
let FDC3Client;
let appd;
let ap... |
const codeRanges = {
"Basic Latin": [0x0000, 0x007F],
"Latin-1 Supplement": [0x0080, 0x00FF],
"Latin Extended-A": [0x0100, 0x017F],
"Latin Extended-B": [0x0180, 0x024F],
"IPA Extensions": [0x0250, 0x02AF],
"Spacing Modifier Letters": [0x02B0, 0x02FF],
"Combining Diacritical Marks": [0x0300, 0x036F],
"Gr... |
"use strict";
require('mocha');
const assert = require('assert');
const expect = require('chai').expect;
const assert_chai = require('chai').assert;
const Promise = require('bluebird'); Promise.longStackTraces();
const Thing = require('../thing');
require('../setup')(Thing);
const promise = require('../../test-promise'... |
var config = require('config');
var mapModule = require('map');
var plugins = require('./leaflet_plugins');
var polyUtil = require('./polyline_encoded');
var routeboxer = require('./leaflet_routeboxer');
var leaflet_label = require('./leaflet_label/leaflet.label-src');
var collision = require('./leaflet_layergroup_coll... |
Array.prototype.srt=function(){for(var z=0,t;t=this[z];z++){this[z]=[];var x=0,y=-1,n=true,i,j;while(i=(j=t.charAt(x++)).charCodeAt(0)){var m=(i==46||(i>=48&&i<=57));if(m!==n){this[z][++y]='';n=m;}
this[z][y]+=j;}}
this.sort(function(a,b){for(var x=0,aa,bb;(aa=a[x])&&(bb=b[x]);x++){aa=aa.toLowerCase();bb=bb.toLowerCase... |
import { CompletionItemKind } from 'vscode-languageserver-types';
import { isInterfaceType, GraphQLInterfaceType, GraphQLObjectType, Kind, DirectiveLocation, } from 'graphql';
import { GraphQLBoolean, GraphQLEnumType, GraphQLInputObjectType, GraphQLList, SchemaMetaFieldDef, TypeMetaFieldDef, TypeNameMetaFieldDef, asser... |
export const Category = [
'Men',
'Women',
'Boys',
'Girls',
'Infants',
]
export const Size = [
'XS',
'S',
'M',
'L',
'XL',
'XXL (2XL)',
'XXXL (3XL)',
'XXXL (4XL)',
'VXL (5XL)',
'Between 1 to 2 Years',
'Between 2 to 3 Years',
'Between 3 to 4 Years',
'Between 4 to 5 Years',
'Between 5... |
import { action, runInAction, observable, computed } from 'mobx'
import {
Collection as datxCollection,
assignModel,
updateModelId,
ReferenceType,
} from 'datx'
import { jsonapi } from 'datx-jsonapi'
import _ from 'lodash'
import moment from 'moment-mini'
import * as Sentry from '@sentry/browser'
import querySt... |
// Portions Copyright 2019 <NAME> (https://github.com/Jimbly/)
// Released under MIT License: https://opensource.org/licenses/MIT
// Some code from Turbulenz: Copyright (c) 2012-2013 Turbulenz Limited
// Released under MIT License: https://opensource.org/licenses/MIT
const assert = require('assert');
const engine = re... |
var socket = io.connect( '/' );
var raids = [];
var raidConfigs = [];
var selectedRaidsArray = [];
var beepsSoundNotif = new Audio( '/assets/Beeps_Appear.wav' );
var lilyRingRingSoundNotif = new Audio( '/assets/Lily_Event_RingRing.mp3' );
var andiraOniichanSoundNotif = new Audio( '/assets/Andira_Oniichan.mp3' );
var t... |
var showStartUpScreen = true;
var lastKeyPressed_left_or_right = "";
var game = {};
var coordinates = {x:0, y:0};
var showLives = 0;
var showLevels = 0;
var showGameOver = 0;
var mouse_pressed = true;
var collidedWithEnemy = false;
var level = 1;
var showHappiness = 0;
var frame = 0;
var max_frame = 0;
var jumpUp = fal... |
const _omit = require('lodash/omit');
const _invert = require('lodash/invert');
const mkid = (function(i) {return () => i += (i == 0 ? 1 : i); }(0));
const TEXT = mkid();
const TWIG = mkid();
const EXPRESSION = TWIG | mkid();
const EXPRESSION_LIST = mkid();
const BRACKETS = mkid();
const LITERAL = mkid();
const VAR... |
ShowTooltips=true;
AutoFuckingBuy=false;
ConsoleLog=true;
DoForm=true;
HeapFirst=true;
curCell = 0;
AutoBuyStorage=function () {
if (!document.getElementById("chkBuyStorage")) {
document.getElementById("resourceColumn").innerHTML += '<input id="chkBuyStorage" style="left: 50%; top: 50%; position: ... |
/**
* @license
* Copyright (c) 2014, 2022, Oracle and/or its affiliates.
* Licensed under The Universal Permissive License (UPL), Version 1.0
* as shown at https://oss.oracle.com/licenses/upl/
* @ignore
*/
/**
* @license
* Copyright (c) 2019 2022, Oracle and/or its affiliates.
* Licensed under The Universal Pe... |
"use strict";
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @noflow
* @preventMunge
* @preserve-invariant-messages
*/
"use strict";
var ReactDOM = require("react-dom"),
invariant = re... |
var MEDIA_OFF_ID = "";
function getJSONData(endpoint, handler) {
$.ajax({ url: '../data/getData.php?endpoint=' + endpoint ,
success: function(data) {
var response = JSON.parse(data);
handler(response);
}
});
}
function translateMediaActivity(activity){
var actMap =... |
/**
* DevExtreme (ui/scheduler/ui.scheduler.subscribes.js)
* Version: 20.2.6
* Build date: Tue Mar 16 2021
*
* Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
"use strict";
exports.default = void 0;
var... |
//MIT License - Copyright (c) 2020-2021 Picorims
//ELECTRON STARTUP AND MAIN PROCESS
//electron dependencies
const { app,
BrowserWindow,
ipcMain,
webContents,
shell,
contentTracing} = require('electron');
//node js dependencies
const path = require("path");
const fs = require("fs");//file system
... |
var CONSIGNEE_EDITABLE_TEMPLATE =
"<div id='consignee_edit_container' class='popup-wrap popup-share popup-share-email' style='left:40px; top:60px;position:absolute;display:none;z-index:10001;''>"
+ "<div class='popup-title' id='consignee_eidt_title'>"
+ "<h3>修改收货人地址</h3>"
+ "<a href='javascript... |
"use strict";
const fs = require("fs");
const build = require("verda").create();
const { task, file, oracle, computed, phony } = build.ruleTypes;
const { de, fu, sfu, ofu } = build.rules;
const { run, node, cd, cp, rm } = build.actions;
const { FileList } = build.predefinedFuncs;
module.exports = build;
/////////////... |
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
import { each, find } from '@lumino/algorithm';
import { Widget } from '@lumino/widgets';
import { ILabShell, IRouter } from '@jupyterlab/application';
import { ICommandPalette, showDialog, Dialog } from '@jupyterlab/... |
var Page_ValidationVer = "2.00";
var _val_agt=navigator.userAgent.toLowerCase();
var _val_is_major=parseInt(navigator.appVersion);
var _val_is_ie=((_val_agt.indexOf("msie")!=-1) && (_val_agt.indexOf("opera")==-1));
var _val_isNT=_val_agt.indexOf("windows nt")!=-1;
var _val_IE=(document.all);
var _val_IE4=(_val_is_ie &... |
import {Runner} from "./lib/Runner.js"
import {settings} from "./_settings.js"
/**
* Command options
*/
const argsSchema = [
['loop', false],
['proxy', false],
['help', false],
]
/**
* Command auto-complete
*/
export function autocomplete(data, _) {
data.flags(argsSchema)
return []
}
/**
* E... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import 'document-register-element';
import Shader from './core/Shader';
import { initEditor, focusAll } from './core/Editor';
import Menu from './ui/Menu';
import Helpers from './ui/Helpers';
import ErrorsDisplay from './ui/ErrorsDisplay';
import VisualDebugger from './ui/VisualDebugger';
import ExportIcon from './ui/... |
var gameId = "spectators";
var spectatorsGame;
var frameNr = 0;
var fps = 50;
var groups = new Array('bgs', 'heros', 'floor', 'game_action', 'onlookers', 'you', 'fires', 'info', 'game');
var muted = false;
var gameSize = new Array(640, 112);
var battlegroundSize = new Array(640, 80);
var viewportX = 0;
var viewportSiz... |
const { remote, ipcRenderer } = require('electron');
const movies = {};
let typingTimer;
let oldHomeTemplate = '';
let currentTab = 'home';
let downloaded = [];
let downloading = [];
let spacerLength = 0;
let movieCardScrollInterval;
// Generates each movies html element from their movie object
function movieHtml(mov... |
var yt = yt || {};
//加载图片
yt.loadImg = function ($imgs, time) {
var _time = 0;
time = time || 200;
$imgs.each(function () {
var $that = $(this);
if ($that.data('hasload')) {
return false;
}
setTimeout(function () {
$that.fadeOut(0);
$that... |
var FRAME = {
MAIN: 1,
INTERPRETING: 2
};
var interpretingChannelURL;
var interpreterMode;
function removeOldContent(){
var content = ['interpreterChannel', 'controllerContainer'];
content.forEach((item, index) => {
var elem = document.getElementById(item);
if (elem != null){
... |
// Building cost and the points they give you
/*
1 --> 100
2-5 --> *2
6-10 --> *3
11-15 --> *4
16-20 --> *5
21-25 --> *6
01- 100 11- 1555200 21- 7464960000000
02- 200 12- 6220800 22- 44789760000000
03- 400 13- 24883200 23- 268738560000000
04- 800 14- 99532800 24- 16124313... |
/* 确认支付页 */
// ==================
// 所需的各种插件
// ==================
import React from "react";
import { connect } from "react-redux";
import { Link } from "react-router-dom";
import { bindActionCreators } from "redux";
import tools from "../../../../util/all";
import P from "prop-types";
import "./index.scss";
// ====... |
var elementSelect = `
<li class="wrapper_{question_id}_{option_id}">
<div class="event" data-id="{id}">
<div class="title">
<a class="hover:u-color-piccolo" href="{url}">
<span class="team">
{title}
</span>
</a>
... |
/**
* @license Licensed under the Apache License, Version 2.0 (the "License"):
* http://www.apache.org/licenses/LICENSE-2.0
*
* @fileoverview XML toolbox embedded into a JavaScript text string.
*/
'use strict';
/** Create a namespace for the application. */
var Blockly4Arduino = Blockly4Arduino || {};
... |
const startmines = 99;
var mines;
var gameover;
var board;
var time;
var checked = 0;
var downid;
var first = true;
var timerid = [];
var sync = false;
var room;
var pmto;
//Get User name
if (!localStorage.getItem('username')) {
console.log('no name');
};
const username = localStorage.getItem('username');
function s... |
import React from 'react';
import classNames from 'classnames';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import { withRouter } from 'react-router'
import saga from './saga';
import { createStructuredSelector } from 'reselect';
import { makeSelectListings, makeSelectLoading, m... |
/** @babel */
/*
* Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2017-2018 <NAME> <<EMAIL>>. All Rights Reserved.
* Copyright (c) 2020 UziTech All Rights Reserved.
* Copyright (c) 2020 bus-stop All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any pers... |
'use strict'
/* global CivicSeed, ss, Modernizr, $, $game */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
boss.js
- Controls boss mode.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
var _ = require('underscore')
module.exports = {
// I... |
/**
The MIT License
Copyright (C) 2021 by <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publi... |
import { qualityLevel } from 'providers/data-normalizer';
import { Browser, OS } from 'environment/environment';
import { isAndroidHls } from 'providers/html5-android-hls';
import { STATE_IDLE, MEDIA_META, MEDIA_ERROR,
MEDIA_LEVELS, MEDIA_LEVEL_CHANGED, MEDIA_SEEK } from 'events/events';
import VideoEvents from 'pr... |
var SimplexNoise = require('simplex-noise'),
rng1 = new SimplexNoise(Math.random),
rng2 = new SimplexNoise(Math.random)
// Garbage collection
const gc = require('expose-gc/function');
function noise1(nx, ny) { return rng1.noise2D(nx, ny)/2 + 0.5; }
function noise2(nx, ny) { return rng2.noise2D(nx, ny)/2 + 0.... |
/// <reference path="user.ts" />
/// <reference path="utils.ts" />
/// <reference path="lang.ts" />
/// <reference path="cookies.ts" />
/// <reference path="sound.ts" />
/// <reference path="sock.ts" />
/// <reference path="notify.ts" />
/// <reference path="chat.ts" />
/// <reference path="channel.ts" />
var Title = (... |
'use strict';
// All of the Node.js APIs are available in the preload process.
// It has the same sandbox as a Chrome extension.
// const gkm = require('gkm');
const Store = require('electron-store');
const store = new Store();
const { Howl } = require('howler');
const { shell, remote, ipcRenderer } = require('electro... |
'use strict';
var $ = require('jquery');
var _ = require('underscore');
var Backbone = require('backbone');
var render = require('./utils').render;
var FileSaver = require('file-saver');
var moment = require('moment');
var fromSeconds = require('node-timecodes').fromSeconds;
var EDL = require('../../edl_composer/index... |
/*
*/
var indexMap = {};
const PERMUTATION_KEYS = "αβγδεζηθικλμξνοπρςστυφχψω";
/*
Extract a permutation (and reverse anti-permutation) of the bases
and provide corresponding place value functions.
*/
class PlaceValuesPermutation {
constructor( id, perm = [], bases, volume, forwardFrom = 0 ) {
thi... |
var codeCNPJ, CNPJSit, codeCPF, CPFSit, codeSintegra;
var urlReceitaCNPJ = '/Consulta/ReceitaFederalCNPJ';
var urlReceitaCPF = '/Consulta/ReceitaFederalCPF';
var urlSintegra = '/Consulta/Sintegra';
var urlSimples = '/Consulta/SimplesNacional';
function LimpaClassConsultaInterna() {
$('#callInterna').removeClass("... |
//===============================================================
//--------------------------Variables----------------------------
//===============================================================
app.LoadPlugin( "UIExtras" );
// Startpath used for the first dialog start (Without "/" at the End)
var path = "/sdcard/D... |
/*
* https://github.com/barsukidze/knowledge/tree/master/frontend/js/form
*
* Универсальный обработчик форм.
* Поддерживает классы Bootstrap.
*
* Аттрибуты формы:
* data-context - Задает контекст формы (callback, order etc)
* data-targer-action - Задает цель в Яндекс Метрике и Action в Google Analytics
* data-target-... |
"use strict";
/* eslint-disable max-len */
/**
* @interface Theme
* @load ./theme.doc.md
* @section design-system
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.borderWidths = exports.breakpoints = exports.borders = exports.shadows = exports.font = exports.space = exports.sizes = exports.... |
"use strict";
var Account = require('ethereumjs-account');
var Block = require('ethereumjs-block');
var crypto = require('crypto');
var optionalCallback = require('./utils.js').optionalCallback;
var toHex = require('./utils.js').toHex;
var VM = require('ethereumjs-vm');
var Blockchain = require('ethereumjs-blockchain')... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
require("core-js/modules/es7.symbol.async-iterator");
require("core-js/modules/es6.symbol");
require("core-js/modules/es6.reflect.get");
require("core-js/modules/es6.function.name");
var _lodash = _interopRequ... |
var netlib = require("net"),
Stream = require("stream").Stream,
utillib = require("util");
var syslog = console;
try {
syslog = require('syslog-console').init('Gearman');
} catch (e) {
// keep calm, carry on
syslog.debug = syslog.log;
}
module.exports = Gearman;
if (typeof setImmediate == 'unde... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.