text stringlengths 8.5k 48.7k |
|---|
// sizing and resizing dynamically is happening in css #mycanvas and #parentdiv - overrides what's happening in here
//look at correct way to tie images and sound in tone
// add boolean for monophonic or polyphonic looper
// is the site in fact going at half speed?
// better touch and mouse implementation
//save t... |
var selectedSongs = [];
var globalSelected = false;
// map containing the song:colorIdx relation
var songToColorMap = {};
// all available colors for selected songs
var songColors = ["#40c990", "#845f80", "#ee840e"];
var usedSongColors = [];
// initialize colors to unused
songColors.forEach(function () {
usedSongCol... |
/**
* phantomas main file
*/
/* global phantom: true, window: true */
'use strict';
/**
* Environment such PhantomJS 1.8.* does not provides the bind method on Function prototype.
* This shim will ensure that source-map will not break when running on PhantomJS.
*
* @see https://github.com/abe33/source-map/commit... |
/*
Copyright 2017 <NAME>
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 required by applicable law or agreed to in writing, software
d... |
// /////////////// Initial Variables: Globals That Get Changes Based on User Interaction:
// //////// array of possible dimensions the user could chose to visualize
// var dimension_options = ["AttackerSizeApproximate","DefenderSizeApproximate","year","attacker1","defender1","AttackerOutcome","BattleType",... |
/**
* main.js
* http://www.codrops.com
*
* Licensed under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*
* Copyright 2016, Codrops
* http://www.codrops.com
*/
;(function(window) {
'use strict';
// Helper vars and functions.
function extend( a, b ) {
for( var key in b ) {
if( ... |
"use strict";
var _a;
Object.defineProperty(exports, "__esModule", { value: true });
exports.updateSessionFromResponse = exports.applySession = exports.commandSupportsReadConcern = exports.ServerSessionPool = exports.ServerSession = exports.maybeClearPinnedConnection = exports.ClientSession = void 0;
const promise_prov... |
// <script>
/*
=============================================================
WebIntelligence(r) Report Panel
Copyright(c) 2001-2003 Business Objects S.A.
All rights reserved
Use and support of this software is governed by the terms
and conditions of the software license agreement and support
policy of Busines... |
/*
* Filename: dashboard.js
*/
// --- File Globals
var thisFileName = "dashboard.js";
var list_of_precincts = [1,5,6,7,9,10,13,14,17,18,19,20,22,23,24,25,26,28,30,32,33,34,40,41,42,43,44,45,46,47,48,49,50,52,60,61,62,63,66,67,68,69,70,71,72,73,75,76,77,78,79,81,83,84,88,90,94,100,101,102,103,104,105,106,107,108,109,... |
// make it a global variable so other scripts can access it
var booked_load_calendar_date_booking_options;
;(function($, window, document, undefined) {
"use strict";
$('.booked_calendar_chooser').change(function(e){
e.preventDefault();
var $selector = $(this),
booked_ajaxURL = $('#data-ajax-url').html()... |
// THIS GAME IS CURRENTLY CODED FOR ONE PLAYER VS THE HOUSE //
//alert("directions for creative team: This is how the house logic currently works: If the user hits the House will stand if it has 17 or more points or if it has higher points than the player, otherwise the House will also hit. When the player stands the ... |
var _ = require('underscore');
var $ = require('jquery');
var nodeIds = require('builder/value-objects/analysis-node-ids');
var MetricsTracker = require('builder/components/metrics/metrics-tracker');
var MetricsTypes = require('builder/components/metrics/metrics-types');
var SimpleStyleDefaults = require('builder/edit... |
import { Scene } from "phaser";
let player;
// //moving character around
// let playerX = 402;
// let playerY = 200;
let playerHealth = 100;
let playerMaxHealth = 100;
let items;
let itemsArr = new Array(2);
const maxVelocityX = 200; // maximum player velocity in x direction
let enemy;
let enemyX = 800;
let enemy... |
var JapanGSIGeojsonProvider = function(options){
this._quadtree = undefined;
this._url = (options.url)? options.url : undefined; // タイルのURL
this._viewer = options.viewer; // viewerのインスタンス
this._cacheTiles = {}; // タイルをキャッシュする
this._showTiles = []; // 表示するタイルのキーを格納する
//this._tilingSc... |
/*
Copyright © 2021 Infinite Software (www.infinite-software.com) All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of ... |
/*!
* Copyright 2018 - Swiss Data Science Center (SDSC)
* A partnership between École Polytechnique Fédérale de Lausanne (EPFL) and
* Eidgenössische Technische Hochschule Zürich (ETHZ).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Li... |
/**
* @license
* Copyright The Closure Library Authors.
* SPDX-License-Identifier: Apache-2.0
*/
goog.module('goog.dom.RangeTest');
goog.setTestOnly();
const DomTextRange = goog.require('goog.dom.TextRange');
const NodeType = goog.require('goog.dom.NodeType');
const Range = goog.require('goog.dom.Range');
const R... |
console.log('\n\n//////////////////////////////////////////');
console.log('Server running');
require('dotenv').config();
const express = require('express');
const app = express();
const PORT = process.env.PORT || 5000;
const server = app.listen(PORT);
app.use(express.static('public'));
let socket = require('socket.... |
(exports.__esModule = !0),
(exports.assertIdValue = function(e) {
(0, a.invariant)((0, r.isIdValue)(e), 11);
}),
(exports.defaultDataIdFromObject = R),
(exports.defaultNormalizedCacheFactory = function(e) {
return new m(e);
}),
(exports.enhanceErrorWithDocument = v),
(exports.WriteError = exports.... |
// ==UserScript==
// @name Verkkokauppa English Nav
// @namespace https://www.github.com/leblane/
// @version 0.1.1
// @description Translates the navigation on verkkokauppa.com into English
// @author leblane
// @match *://www.verkkokauppa.com/*
// @grant unsafewindow
// @require ... |
'use strict';
/**
* UI-InputSliderManager
*/
var InputSliderManager = (function InputSliderManager() {
var subscribers = {};
var sliders = [];
var InputComponent = function InputComponent(obj) {
var input = document.createElement('input');
input.setAttribute('type', 'text');
input.addEventListener('clic... |
/* TODO: Write an angularjs service to wrap these methods */
term_256_colors =
[
// 247
'ffd7d7', 'd7afaf', 'af8787', '875f5f', '5f0000', '870000', 'af0000', 'd70000', 'ff0000',
'ff5f5f', 'd75f5f', 'd78787', 'ff8787', 'ffafaf', 'ffaf87', 'ffaf5f', 'ffaf00', 'ff875f',
'ff8700', 'ff5f00', 'd7... |
function AgendaEventRenderer() {
var t = this;
// exports
t.renderEvents = renderEvents;
t.clearEvents = clearEvents;
t.slotSegHtml = slotSegHtml;
// imports
DayEventRenderer.call(t);
var opt = t.opt;
var trigger = t.trigger;
var isEventDraggable = t.isEventDraggable;
var isEventResizable = t.isEven... |
var addClassName = function (object, classname) {
if (object != null) {
if (hasClassName(object, classname)) {
removeClassName(object, classname);
}
setClassName(object, getClassName(object)+" "+classname);
}
};
var removeClassName = function (object, classname) {
if (object != null) {
if (hasClassName(ob... |
const electron = require('electron');
const url = require('url');
const path = require('path');
const fs = require('fs');
const Tray = electron.Tray;
const {app, BrowserView, BrowserWindow, Menu, Notification} = electron;
const { net } = require('electron');
const requestlib = require('request');
const shell = ... |
/*jslint browser:true, unparam:true */
/*globals tangelo, flickr, $, google, d3, date, console */
var flickr = {};
flickr.map = null;
flickr.timeslider = null;
flickr.cfgDefaults = null;
flickr.getMongoDBInfo = function () {
"use strict";
// Read in the config options regarding which MongoDB
// server/... |
import { Button, Checkbox, Form, Input, InputNumber, Select, Switch } from 'antd'
import { UrlRegexp } from 'lib/regexp'
const { Item } = Form
const countries = [
{ value: 'AF', label: 'Afghanistan [AF]' },
{ value: 'AX', label: 'Åland Islands [AX]' },
{ value: 'AL', label: 'Albania [AL]' },
{ value: 'DZ', lab... |
$('#select-cur').on('change', () => {
const val = $('#select-cur').val();
$('#selected-cur').removeClass();
$('#selected-cur').addClass('fa')
$('#selected-cur').addClass('fa fa-' + val)
})
$('#op-account').on('change', () => {
const inputAccount = $('#op-account').val()
const cur = getObjectByName(global._... |
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {combineReducers} from 'redux';
import {createSelector} from 'reselect';
import {autolink} from 'autolink.js';
import {fieldTypes} from 'elements/s... |
var $ = layui.jquery;
var form = layui.form;
var table = layui.table;
var pageNumber = 1;
var editor;
var pageNumberRight = 1;
var pageSize = 50;
window.onload = function () {
editor = CodeMirror.fromTextArea(document.getElementById('code'), {
mode: "text/x-plsql",
indentWithTabs: true,
... |
//main array//
var memory_array = ['mah1', 'mah1', 'mah1', 'mah1',
'mah2', 'mah2', 'mah2', 'mah2',
'mah3', 'mah3', 'mah3', 'mah3',
'mah4', 'mah4', 'mah4', 'mah4',
'mah5', 'mah5', 'mah5', 'mah5',
'mah6', 'mah6', 'mah6', 'mah6',
'mah7', 'mah7', 'mah7', 'mah7',
'm... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } }... |
/* eslint-disable quote-props */
export const channelNameMap = {
'EEGF4-A1': 'EEG F4-A1',
'EEGC4-A1': 'EEG C4-A1',
'EEGO2-A1': 'EEG O2-A1',
'EEGF3-A2': 'EEG F3-A2',
'EEGC3-A2': 'EEG C3-A2',
'EEGO1-A2': 'EEG O1-A2',
'EOGE1-A2': 'EOG E1-A2',
'EOGE2-A2': 'EOG E2-A2',
'EMGCHIN': 'EMG chin',
'EMGRAT': '... |
/**
* DataFormsJS <filter-service> Web Component
*
* This service allows a user to filter element on a page by typing in <input> fields
* or clicking on elements, etc. The following attributes are used by this class:
* data-filter-selector
* data-filter-column
* data-filter-results-text-selector
* ... |
import { Actor, HttpAgent } from '@dfinity/agent';
import { Principal } from '@dfinity/principal';
import { AuthClient } from '@dfinity/auth-client';
const signInBtn = document.getElementById('signinBtn');
const signOutBtn = document.getElementById('signoutBtn');
const whoamiBtn = document.getElementById('whoamiBtn');... |
import CategoryAxis from './category-axis';
import AxisLabel from './axis-label';
import { DEFAULT_PRECISION, MAX_VALUE, OBJECT, DATE, X, Y } from '../common/constants';
import { deepExtend, defined, inArray, last, limitValue, round, setDefaultOptions, sparseArrayLimits } from '../common';
import { MILLISECONDS, SECO... |
const Track = require('../models/track').Track;
const Profile = require('../models/profile').Profile;
const ObjectID = require('mongoose').mongo.ObjectID;
const mongoose = require('mongoose');
const async = require('async');
const jStat = require('jStat').jStat;
let setUpTrack = function(req, res, next) {
// Handl... |
/*
Copyright 2020 Croquet Corporation.
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 required by applicable law or agreed to in writing, sof... |
//參數
//物件參數
var worldDiv; //世界空間
var body; //頁面主體
var boxCreatCanvas; //創造坊塊繪圖
var ctx;
//世界參數
var worldWidth;
var worldHeight;
var selectEnableWait = 0; //鎖住框選功能時間參數
var selectLocked = 0;
//拖行功能參數
var dragID = -1; //拖行者ID
var mx =0; //絕對座標
var my =0;
var ... |
"use strict";
require("core-js/modules/es.array.concat");
require("core-js/modules/es.object.create");
require("core-js/modules/es.object.define-property");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.KeyChord = KeyChord;
exports.createKeyBinding = createKeyBinding;
exports.createSimple... |
/*
* Vortex HTML5 Canvas image editor
* w/ scale and crop on client (processed on server)
*
* Copyright (C) 2012 <NAME> - University Of Oslo / USIT
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software ... |
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.require("dojo.uuid.*");
dojo.require("dojo.lang")... |
/*[PATH @digikala/supernova-digikala-desktop/assets/local/js/controllers/digiclubController/indexAction.js]*/
var IndexAction = {
displayName: "IndexAction",
init: function() {
var functions = [
this.initCopyToClipboard,
this.initMembershipActivation,
this.initDropDow... |
'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import _ from 'underscore';
import { ajax, console, isServerSide, object, analytics, logger } from '@hms-dbmi-bgm/shared-portal-components/es/components/util';
import { PartialList } from '@hms-dbmi-bgm/shared-portal-components/es/components/... |
var isDeployment = false;
var hasCustomBootScreen = false;
var IS_WORKER_CONTEXT = false;
var DISABLE_PARTICLE_SHADERS = false;
var DISABLE_OBJECT_TRAIL_SHADERS = false;
var DISABLE_CROSSHAIR_SHADERS = false;
var DISABLE_OBJECT_SHADERS = false;
var DISABLE_SKYBOX_SHADERS = false;
var DISABLE_TEXT_SHADERS = false;
var ... |
import h from 'virtual-dom/h';
import diff from 'virtual-dom/diff';
import patch from 'virtual-dom/patch';
import createElement from 'virtual-dom/create-element';
import virtualize from 'vdom-virtualize';
import request from 'superagent';
import URL from 'url-parse';
import moment from 'moment-timezone';
import imagesL... |
/*
Parses the MATRX state and generates and updates the grid
*/
// GUI settings
// How long should the animation of the movement be, in percentage with respect to
// the maximum number of time available between ticks 1 = max duration between ticks, 0.001 min (no animation)
// Note: it is not recommended to set this ... |
const dbus = require('dbus-next');
const crypto = require('crypto');
const xor = require('buffer-xor');
const EventEmitter = require('events');
const Logger = require('./Logger');
const logger = Logger.getLogger('plejd-ble');
// UUIDs
const PLEJD_SERVICE = '31ba0001-6085-4726-be45-040c957391b5';
const DATA_UUID = '31... |
var data = [
{"solar":"93","wind":"1","bio":"20","hydro":"18","fossil":"45"},
{"solar":"91","wind":"21","bio":"99","hydro":"12","fossil":"85"},
{"solar":"10","wind":"52","bio":"46","hydro":"40","fossil":"89"},
{"solar":"93","wind":"94","bio":"4","hydro":"98","fossil":"36"},
{"solar":"50","wind":"48","bio":"61","hydro":... |
/* global process console:off */
import { resolve as resolvePath, join as joinPath } from 'path';
import { URL } from 'url';
import { performance } from 'perf_hooks';
import zlib from 'zlib';
import { promisify } from 'util';
import {
pipeline as pipelineCallback,
finished as finishedCallback,
Readable,
PassTh... |
function getRandomInt(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}
function changeSpanText(id, spanText){
var theSpan = document.getElementById(id);
if ('textContent' in theSpan) {
theSpan.textContent = spanText;
} else {
theSpan.innerText = spanText;
}
}
function getTrackLine(... |
"use strict";
///////////Global vars/////////////
// global website base, set to localhost for testing, use deploy script to change
var siteName = "Eyebrowse";
var GOOGLE_FAVICON_URL = "http://www.google.com/s2/favicons?domain_url=";
// nag settings
// total time between nags
var NAG_TIME_THRESHOLD = 60 * 60 * 1000; ... |
var hasNodeRequire = typeof require === 'function' && typeof window === 'undefined';
if (hasNodeRequire) {
jDataView = require('..');
chai = require('chai');
}
var b = jDataView.from,
assert = chai.assert,
chr = String.fromCharCode,
// workaround for http://code.google.com/p/v8/issues/detail?id=2578
... |
import { PointG1, PointG2, Fq12, Fq, Fr, utils, pairing } from 'noble-bls12-381';
function bytesToNumberBE(bytes) {
let value = 0n;
for (let i = bytes.length - 1, j = 0; i >= 0; i--, j++) {
value += (BigInt(bytes[i]) & 255n) << (8n * BigInt(j));
}
return value;
}
function sampleFQ() {
retur... |
App.MainLibraryController = Ember.ArrayController.extend({
init:function(){
},
actions:{
libraries:function(sort,type,id,name){
console.log(sort+' '+type+' '+id+' '+name);
$('.main').removeClass('blur');
$('.side-menu').removeClass('side-open');
$("#collection").html('')
document.title="ePu... |
// Package Definitions
const execSync = require('child_process').execSync;
const syncClient = require('sync-rest-client');
const git = require('gulp-git');
const fs = require('file-system');
const fse = require('fs-extra');
const del = require('del');
const PropertiesReader = require('properties-reader');
const propert... |
require('../../typedef');
const ItemBase = require('./base.js');
const vars = require('../variables');
const bonuses = require('../data/bonus');
const specialAttacks = require('../data/special-attack');
const getName = require('../utils/get-name');
const getEquipment = require('../get/equipment');
const getdb = requir... |
'use strict';
// ---------------------------------------------------------------------------
const Exchange = require ('./base/Exchange');
const { ExchangeError, ArgumentsRequired, InsufficientFunds, InvalidOrder, OrderNotFound, AuthenticationError, BadSymbol } = require ('./base/errors');
// ---------------------... |
var arr = [
{
id: "sla-metric",
title: "",
x: 0,
y: 8,
width: 1,
height: 0,
type: "",
userData: {
fn: "createUploadForm"
},
},{
id: "sla-reaction",
title: "Reactions",
x: 0,
y: 0,
width: 12,
height: 5,
type: "... |
// const audio = require("fluent-ffmpeg/lib/options/audio");
// program.getConfig("")
// const { fstat } = require("fs");
// var mplayer = document.getElementById("musicurl");
// // textarea 菜单键点击
// for (var i = 0; i < valueslist.length; i++)
// valueslist[i].addEventListener('contextmenu', ev => {
// //... |
/*
* Copyright Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" ... |
// Execute when document is ready
jQuery(document).ready(function ($) {
ssp_shopify_basic_product(); // Process main product of the detail page
ssp_shopify_info_product(); // Process products of cards
});
// Creating sspAPIClient for Shopify API
var sspAPIClient = ShopifyBuy.buildClient({
accessToken: ss... |
const { expectRevert, time } = require('@openzeppelin/test-helpers');
const FINN = artifacts.require('FINN');
const HuckleberryFarm = artifacts.require('HuckleberryFarm');
const MockERC20 = artifacts.require('MockERC20');
contract('HuckleberryFarm', ([alice, bob, carol, dev, minter]) => {
beforeEach(async () => {
... |
/**
* Created by <NAME> (<EMAIL>) on 6/4/16.
*/
function createButton(parent, x, y, width, height, classes, text, onFunction) {
var qButtonG = gr(parent, classes + ' svg_button', {x, y})
qButtonG.append('rect').attr({
class: 'bg',
x: 0,
y: 0,
width: width,
height: heig... |
var appName = storage.getItem(config.storageAppNameKey),
appDir = get_app_dir(appName),
doc_query = querystring.parse(get_url_query(document.location+'')),
pubName = doc_query.wapublication || '',
pubDir = pubName ? appDir + '/' + pubName : appDir,
magazinesFn = pubName ? pubName + '.plist' : 'Magazines.plist';
$(funct... |
"use strict";
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------... |
$(function () { // Same as document.addEventListener("DOMContentLoaded"...
document.getElementById('homeButton').addEventListener("click",function () {
displayPageOfEvents("/api/v1/getEventsPageable", 0);
displayAndHide('home');
});
document.getElementById('homeSmallButton').addEventListener... |
//@TODO import config from './config.js'
import progress from './progress.js'; progress('asset/js/boot.js')
import { state } from './state.js'
import { spawn } from './spawn.js'
import { $body, $me, $scene, $$locations, $$balloons, $$clouds } from './elements.js'
// Boot the app (Firefox is not supported).
if (! docum... |
/**
* @license Copyright (c) 2003-2017, CKSource - <NAME>. All rights reserved.
* For licensing, see LICENSE.md.
*/
/**
* @module engine/model/operation/transform
*/
import InsertOperation from './insertoperation';
import AttributeOperation from './attributeoperation';
import RootAttributeOperation from './roota... |
/* WARNING: This script contains Voodoo! */
/*
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,... |
/*********************************
* Symbols for Basic Mathematics
********************************/
var Digit = P(VanillaSymbol, function(_, super_) {
_.createLeftOf = function(cursor) {
if (cursor.options.autoSubscriptNumerals
&& cursor.parent !== cursor.parent.parent.sub
&& ((cursor[L] insta... |
var _ = require('lodash-node'),
FS = require('fs'),
VOW = require('vow'),
PATH = require('path'),
UTIL = require('util'),
CRYPTO = require('crypto'),
EXTEND = require('extend'),
GLOBULE = require('globule'),
IM = require('imagemagick'),
Mapper = require('fitter');
var colors = requi... |
import util from 'utils/tools';
import {
returnProccess,
deleteProcess,
getInstallProds,
cldeviceIsOnstate,
getOwnerInfo,
getOperationRecord,
getNodesCount,
getModelProds,
setStartFormRules,
getTodoInfoList,
getInstallPositionCode,
startVindicate,
finishVindicate,
... |
"use strict";
/**
*
* Plugin initializer
*
*/
/* global Plugins: true */
const fs = require('fs');
const path = require('path');
const cluster = require('cluster');
const yamljs = require('yamljs');
const object_merge = require('./utils/object-merge');
const ErrorCreator = require('./plugin-error');
let Plugi... |
'use strict';
/* For ESLint: List any global identifiers used in this file below */
/* global browser, translate, onReady, typeMap, imageSizesMap,
base64toBlob */
const { hostname } = window.location;
let totalSwaps = 0;
const hideElements = [];
const hiddenElements = [];
let cssRules = [];
const minDimension = 6... |
import dateUtils from './dateUtils';
import { $, createSVG } from './svgUtils';
import Bar from './bar';
import Arrow from './arrow';
import Popup from './popup';
// eslint-disable-next-line import/no-useless-path-segments
import '../src/gantt.scss';
const VIEW_MODE = {
QUARTER_DAY: 'Quarter Day',
HALF_DAY: 'Ha... |
/*
* @Description: 查询kg的方法
* @Author: Jon
* @LastEditors: Please set LastEditors
* @Date: 2019-02-20 11:11:37
* @LastEditTime: 2019-02-22 11:28:45
*/
/* WEBHOOK DOREMUS FUNCTIONS */
var exec = require('child_process').exec;
const request = require('request');
const uuidv3 = require('uuid/v3');
const LOG = requir... |
/**
* Taikari frida tool
* (C) TheSnowfield
*
* Usage: frida -U -f "moe.low.arc" --no-pause -l taikari.js
*/
const config = {
// hacktools
hackTools: [
{ name: 'captureSSL', enabled: false, func: hackCaptureSSL },
{ name: 'dumpCertficate', enabled: false, func: hackDumpCertificate },
{ name... |
const datalineid = "data-line-id";
/**
* Represents a line of test. Consists of a source (src)
* and its translation (dest).
*
* @class Line
*/
class Line {
/**
* Creates an instance of Line.
* @param {String} src text in source language
* @param {String} dest translated text
* @memberof... |
/**
* Copyright 2016 IBM Corp. 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 required by applica... |
function showInstallPromotion () {
let html = generateInstallationPromotionDiv()
document.querySelector(".meowsContainer").insertAdjacentHTML("afterbegin", html)
}
async function beforeinstallpromptHandler (e) {
let userConcern = await shouldWeShowInstallPrompt()
deferredPrompt = e
if (userConcern) {
wasPromptD... |
"use strict";
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array obje... |
let genero_global;
let plus_global;
let id;
let clienteId;
$(document).ready(function() {
$("[data-mask]").inputmask();
// $("#formulario").validate({
// rules: {
// nombre_cliente: {
// required: true,
// minlength: 3
// },
// direcci... |
// Signal provider management
const frostybot_module = require('./mod.base')
var context = require('express-http-context')
const axios = require('axios')
const { v4: uuidv4 } = require('uuid')
class frostybot_signal_outputs {
constructor() {
this.outputs = {};
}
create(user, stub) {
var ... |
/**
* @author svtcore
* @license GPL-3.0
* @link https://github.com/svtcore
*
*/
var countries = {
"af": "Afghanistan",
"ala": "Aland Islands",
"al": "Albania",
"gba": "Alderney",
"dz": "Algeria",
"as": "American Samoa",
"ad": "Andorra",
"ao": "Angola",
"ai": "Anguilla",
"... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const server_types_1 = require("./server-types");
const rx_1 = require("../lib/rx");
const path = require("path");
const fs = require("fs");
//import { TiddlyWiki } from 'tiddlywiki';
const events_1 = require("events");
const url_1 = require("... |
/* eslint-env browser */
'use strict';
if (typeof window.CustomEvent !== 'function') {
window.CustomEvent = function(event, params) {
params = params || { bubbles: false, cancelable: false, detail: undefined };
var evt = document.createEvent('CustomEvent');
evt.initCustomEvent(event, param... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
*
* @returns {voids}
* Created: <NAME>(<EMAIL>)
* date: Oct/23/18
*/
function habilitarSecciones() {
var pais = $('#cmb_p... |
/*
* Per-wiki config library for interfacing with MediaWiki.
*/
'use strict';
require('../../core-upgrade.js');
var semver = require('semver');
var baseConfig = require('./baseconfig/enwiki.json').query;
var JSUtils = require('../utils/jsutils.js').JSUtils;
var DU = require('../utils/DOMUtils.js').DOMUtils;
var Util... |
/*******************************************************************************
Part of the Leikr project.
Authored by <NAME>, 2013. <EMAIL>
/******************************************************************************/
/*
This is the world. It contains the tilemap and all the actors and other
tings interac... |
//Global Variable
// elements와 $(".classitem")의 차이점은 elements 는 object가 있는 배열이고 , $()는 현재 시간표위에 있는 div 가져온거임.
// selector로도 object를 가져오지만, classElemenet object가 아니어서 element 세부 정보가 없어서 셋팅 불가능
// 그래서 선택한 object 가 담긴 배열 필요
used_colors = [];
class_items = [];
class_elems = [];
full_colors = ["ec555a","c65353","f56e3d","f... |
// JavaScript Document
var statement_id = "";
var if_tag_id = "";
var if_id = "";
var if_statement = "";
var variable_id = "";
var print_tag_id = "";
var switch_case_id = "";
var case_self_id = "";
var current_switch_type = "";
var forloop_text_id = "";
var forloop_value_id = "";
var forloop_this = "";
var while_id = ... |
'use strict';
/*
* Error types for the authentication route
*/
const AUTH = {
VERIFICATION : {
USER_EXISTS : 'user_exists',
NUMBER_MISSING : 'number_missing',
TYPE_MISSING : 'type_missing',
USER_NOT_FOUND : 'user_not_found',
INVALID_TYPE : 'invalid_type'
},
... |
const SQRT_3 = Math.sqrt(3);
const CANVAS_WIDTH = 1000;
const CANVAS_HEIGHT = 900;
const BRICK = "Brick";
const LUMBER = "Lumber";
const WOOL = "Wool";
const GRAIN = "Grain";
const ORE = "Ore";
const DESERT = "Desert";
const ANY = "Any";
const HEX_TYPES = [BRICK, LUMBER, WOOL, GRAIN, ORE, DESERT];
const NORTH = "N";... |
/********************* eventos cargados desde inicio *************************/
$(function() {
/******************** mostrar calendarios ******************/
$('#recepcion').validator();
$("#hechos_fecha").datepicker({
changeMonth: true,
changeYear: true,
dateFormat: 'dd/mm/yy'
... |
// processing status:
// -3 conversion failed
// -2 unsupported file type
// -1 upload failed
// 0 created upload object
// 1 uploaded object to s3
// 2 message added to upload queue
// 3 message received from upload queue
// 4 downloaded from s3
// 5 conversion okay
// 6 tiles made okay
// 7 image approved
// 10 i... |
/**
* 遠征確認
* @version 2.1.9
* @author Nishikuma
*/
GlobalContext = Java.type("logbook.data.context.GlobalContext")
/**
* 遠征が成功するかを文字列で返します
*
* @param {Number} missionId 遠征ID
* @param {Number} fleetId 艦隊番号
* @return {String} ○ or x or "?"
*/
function canMissionToString(missionId, fleetId){
var c = canMis... |
$.cssHooks.backgroundColor = {
get: function (elem) {
if (elem.currentStyle)
var bg = elem.currentStyle["background-color"];
else if (window.getComputedStyle)
var bg = document.defaultView.getComputedStyle(elem,
null).getPropertyValue("background-color")... |
// @flow strict
const OFF = 0;
const WARN = 1;
const ERROR = 2;
const NEXT_VERSION_ERROR = 3; // special value changed later depending on the required strictness
// Please note: there are some TODOs which means we will make it more strict
// in the future versions. This change requires major version bump. It's not
/... |
/////////////////////////////
//attach events
//attach resize event
window.addEventListener('resize', resizePlot);
//attach event to move tooltip
//window.addEventListener('mousemove', moveTooltip);
d3.select('body').on('click',hideTooltip);
params.sizeScaler = window.innerWidth/params.targetWidth;
params.sizeScaler... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.