text stringlengths 8.5k 48.7k |
|---|
var comment_data;
var emote_data;
var filters;
function inject(){
console.log("injecting");
var video_div = [undefined];
while(video_div[0] == undefined)
{
video_div = document.getElementsByClassName("channel-root__player-container tw-pd-b-2");
}
var emote_root_div = document.crea... |
/** NOTICE ** This is a DEPRECATED module, hence the lower-case file-name. I will eventually move everything here-in to separate modules. This will allow for a graceful transition to well-factored code **/
/**
************** Misc Secretary Functions ***********************************HEADER************************
... |
// OwO what's this?
onDumbShit(function () {
$(".shit").show();
$("html").css({
'background-image': 'url(/2015voting/bg2.gif)',
'background-repeat': 'repeat'
});
var audio = new Audio('/2015voting/woah.mp3');
audio.play();
$('#cheat-code').show();
});
var dragCounter;
var toddD... |
/**
* DevExtreme (viz/core/renderers/vml_renderer.js)
* Version: 16.2.1-16294
* Build date: Thu Oct 20 2016
*
* Copyright (c) 2012 - 2016 Developer Express Inc. ALL RIGHTS RESERVED
* EULA: https://www.devexpress.com/Support/EULAs/DevExtreme.xml
*/
"use strict";
var $ = require("jquery"),
svgRendererModule = ... |
/* Upload handling for Duet Web Control
*
* written by <NAME> (c) 2016-2017
*
* licensed under the terms of the GPL v3
* see http://www.gnu.org/licenses/gpl-3.0.html
*/
var isUploading = false; // Is a file upload in progress?
var uploadType, uploadFiles, uploadRows, uploadedFileCount;
var uploadTotalByt... |
const soundboard = {
ding: new Audio('sound/Ding.wav'),
buzz: new Audio('sound/Buzz.wav'),
beep: new Audio('sound/Beep.wav'),
correct: new Audio('sound/Correct.mp3'),
contestant: new Audio('sound/ContestantCue.wav'),
firstwin: new Audio('sound/FirstWin2.wav'),
finalwin: new Audio('sound/BigWin2.wav'),
t... |
// functions for the page editor, see initEditor()
// Credit: https://stackoverflow.com/a/5086688
jQuery.fn.insertAt = function (index, element) {
var lastIndex = this.children().length;
if (index < 0) {
index = Math.max(0, lastIndex + 1 + index);
}
this.append(element);
if (index < lastInd... |
var camera, scene, renderer, light2, light, pointLight;
var mesh;
var brain = {
right: null,
left: null,
cerebellum: null
};
var options, spawnerOptions, particleSystem, tick,
clock = new THREE.Clock();
// -----
var mDoParticles = false;
var mParticleCount = 8000; // <-- change this number!
var mParti... |
import moment from 'moment';
import _ from 'lodash';
import * as Calendars from '../calendars';
import * as Dates from './Dates';
import * as Utils from './Utils';
import * as Seasons from './Seasons';
import * as Celebrations from './Celebrations';
import {
LiturgicalSeasons,
Titles,
LiturgicalColors,
Psalte... |
const path = require('path')
const config = require('../../../config')
const { LocatorManager, Locator } = require('../../locator/index')
const AstManager = require('../../ast')
const FunctionAST = require('../../ast/class/Function')
const JsDocTag = require('../../ast/class/JsDocTag')
const { testTextEqual } = require... |
var limit = 0;
var total = 0;
var currentFile = null;
var update = 0;
// Dropzone.options.myAwesomeDropzone = false;
Dropzone.options.imageupload1 = { // The camelized version of the ID of the form element
// The configuration we've talked about above
// url: 'function/upload_file_cmd.php',
autoProcessQueu... |
"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 ... |
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var vueTemplateCompiler = require('vue-template-compiler');
var Vue = _interopDefault(require('vue'));
var testUtils = _interopDefault(require('@vue/test-utils'));
var vueServerRenderer = r... |
/**
@module ember
@submodule ember-states
*/
var get = Ember.get, set = Ember.set, fmt = Ember.String.fmt;
var arrayForEach = Ember.ArrayPolyfills.forEach;
require('ember-states/state');
/**
A Transition takes the enter, exit and resolve states and normalizes
them:
* takes any passed in contexts into consider... |
var selected_background;
var bing_frame = document.getElementById('frame');
var bing_opt = document.getElementById('bing-wrapper');
var custom_opt = document.getElementById('custom-wrapper');
var time_wraper = document.getElementById('current-time');
var page_wraper = document.getElementById('back-page');
var qu... |
'use strict';
var assert = require('assert');
var tasks = require('../task/07-yield-tasks');
it.optional = require('../extensions/it-optional');
describe('07-yield-tasks', function() {
it.optional('get99BottlesOfBeer should return the sequence of song lyric lines', () => {
var expected = [
... |
/*
* QuickBlox JavaScript SDK
*
* WebRTC Module
*
*/
/*
* User's callbacks (listener-functions):
* - onCallListener
* - onAcceptCallListener
* - onRejectCallListener
* - onStopCallListener
* - onUpdateCallListener
* - onRemoteStreamListener
* - onSessionStateChangedListener
* - onUserNotAnswerListener
*... |
const config = require('./config/config.json')
const prefix = config.prefix
exports.help = help()
function help() {
return ` *⎛ Mis comandos ⎠*
_ℹ️ - 👑Grupo oficial del bot!_ https://chat.whatsapp.com/I3LZkubco693HRBciBztOC
_ℹ️ - 🛑Si algún comando no funciona significa que el servidor se ha bloqueado y es necesar... |
/*
* 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
* distributed u... |
"use strict";
let menuBar = document.querySelector(".menuBar");
let firstMenuBtn = document.querySelector(".menu");
let toolPanel = document.querySelector(".toolPanel");
let firstToolBtn = toolPanel.querySelector(".button");
let canvas = document.querySelector("#canvas");
let context = canvas.getContext("2d");
let ca... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Editor = undefined;
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.... |
// ==UserScript==
// @name MangaDex Downloader
// @version 2.1
// @description A userscript to add download-buttons to mangadex
// @author NO_ob, icelord, eva
// @homepage https://github.com/NO-ob/mangadex-scripts
// @updateURL https://github.com/NO-ob/mangadex-scripts/raw/master/mangadex-dow... |
// Licensed to Cloudera, Inc. under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Cloudera, Inc. licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this f... |
// Effect Games Engine v1.0
// Copyright (c) 2005 - 2011 <NAME>
// Source Code released under the MIT License:
// http://www.opensource.org/licenses/mit-license.php
// Asset Dialog
window.dasset = {};
dasset.choose = function(title, game_id, file_regexp, presel_path, callback, base_path, allow_multiple) {
// show ... |
var Namespace = new Object();
Namespace.register = function(path) {
var arr = path.split(".");
var ns = "";
for ( var i = 0; i < arr.length; i++) {
if (i > 0) {
ns += ".";
}
ns += arr[i];
eval("if(typeof(" + ns + ") == 'undefined') " + ns + " = new Object();");
}
};
jQuery
.extend({
ch... |
import differenceInDays from 'date-fns/differenceInDays';
import getTranslations from './i18n/extendedTribeProfile';
import requestCreator from './libs/requestCreator';
import {
generatePaginationItems,
getContainerStyles,
getPage,
setPage,
} from './utils/pagination';
import renderTodaysStats from './common/re... |
const express = require('express');
const bodyParser = require('body-parser');
const hbase = require('hbase-rpc-client');
var async = require("async");
//var Int64 = require('node-int64');
const app = express();
const hostname = '127.0.0.1';
const port = 3246;
const hbaseTableCrimeByWeather = 'leimao_community_crime_by... |
const socket = io("http://127.0.0.1:3001");
const wesh = console.log;
const exit = (code = 0) => process.exit(code);
const tileMapSize = 64;
const hubName = decodeURI(gup("hubname"));
const mapWidth = parseInt(gup("width"));
const mapHeight = parseInt(gup("height"));
const teams = decodeURI(gup("team")).split("*");... |
/**
*
* AddModule
*
*/
import React, { Fragment, useEffect } from 'react';
// import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Helmet } from 'react-helmet';
import { createStructuredSelector } from 'reselect';
import { compose } from 'redux';
import moment from 'moment';
import... |
import Reflux from 'reflux';
import BoardActions from './BoardActions';
import {Transport} from './Transport'
import Validators from './Validators'
import {List} from 'immutable'
const Board = Reflux.createStore({
listenables: [BoardActions],
colors:{
EMPTY:0,
WHITE:1,
BLACK:2
},
init : function()... |
/*=====================================
# Nombre:
lista-fassa-rendicion.js
# Módulos:
rend-cuenta-fassa/rend-cuenta-fassa
# Descripción:
Funciones para captura de la rendicion de cuentas de los indicadores del FASSA
=====================================*/
var moduloResource = ne... |
/**
* @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
*/
import { info } from 'ojs/ojlogger';
import { getTemplateContent } from 'ojs/ojhtmlutils';
import CspExpress... |
/*
* chappe
*
* Copyright 2021, Crisp IM SAS
* Author: <NAME> <<EMAIL>>
*/
var fs = require("fs");
var path = require("path");
var url = require("url");
var lodash = require("lodash");
var glob = require("glob");
var slug = req... |
// Use dotenv package to get GitHub Personal Access Token from .env
require('dotenv').config();
// Use graphql-request package to make requests to the GitHub GraphQL API
const { GraphQLClient } = require('graphql-request');
// Grab config.json where the list of repositories to query is stored
const CONFIG = require('... |
IMPHOBIA_ARTICLE_UNICODETABLE =
[
32, 33, 34, 32, 32, 32, 38, 39, 40, 41, 32, 43, 44, 45, 46, 47,
48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 32, 32, 32, 32, 63,
32, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, ... |
/*
* 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 may ... |
import { c as create_ssr_component, v as validate_component } from "../../../chunks/index-054dfab6.js";
import { L as Layout } from "../../../chunks/_layout-b8ce1441.js";
export { l as load } from "../../../chunks/_layout-b8ce1441.js";
import "../../../chunks/dateTime-524e104e.js";
import "../../../chunks/Meta-049a30d4... |
const ServicesManager = (() => {
const useNew = true;
const stringify = o => JSON.stringify(o,null,2);
const clone = o => {
if(!o) return;
try {
return JSON.parse(stringify(o));
} catch(e){
return;
}
};
const unique = (a) => [...new Set(a)];
function objectPath(obj, path) {
var result = obj;
tr... |
/* global HBInit */
const CONFIG = JSON.parse(window.RAW_CONFIG);
const DEBUG_MODE = CONFIG.showDebugMessages;
const NOTICE = "This server is collecting your nickname and gameplay data. We do not collect your chat logs.";
const TEAMS = { 1: "Red", 2: "Blue", Red: 1, Blue: 2 };
const KICK_TYPE = {
Pass: "pass",
... |
$(function () {
$.ajaxf.install('script/flash4ajax/AJAX.swf');
/*
$('.session-out-mask').click(function () {
$('.session-out-mask').fadeOut(800);
$('.session-out-mask-content').fadeOut(800);
});
*/
window.models = {};
window.isOutterSystemOfMainCenter = false;
window.isFullScr... |
var version = "";
var websock = null;
var wsUri = "ws://" + window.location.host + "/ws";
var ntpSeconds;
var ajaxobj;
var custom_config = {};
var xDown = null;
var yDown = null;
var file = {};
var backupstarted = false;
var updateurl = "";
var updateurl_dev = "";
var use_beta_firmware = false;
var myespcontent;
... |
'use strict';
define(['projectSugar'], function () {
console.log("보험상품추천");
var suggestModule = angular.module('projectSugar', ['ui.router', 'oc.lazyLoad', 'suggestService', 'layoutService']);
suggestModule.controller('suggestController', ['$scope', '$http','$window', '$ocLazyLoad', 'suggestService', 'layoutServ... |
import './_.jade';
import {
Questions,
Bookmarks,
Tags,
Comments,
UserMetrics,
TrainingQuestions
} from '../../../../imports/api/models.js';
var clickCounter = 0;
var boardQuestionCounter;
Template.gutboard_slider_vineet.rendered = function() {
function promiseWait(ms) {
return n... |
import ServerEventsDispatcher from '../libs/serverEventsDispatcher';
import 'bootstrap';
//import './css/styles.css';
import $ from 'jquery';
import 'bootstrap/dist/css/bootstrap.min.css';
import { setGenreOptions, getSelectedOptions, score_on, score_off} from '../libs/utilitycode';
import * as htmlTemplate from '../te... |
var GameState = function(game) {
}
GameState.prototype.updateClock = function()
{
this.clock.setSeconds(this.clock.getSeconds() + 1);
this.clock.setMilliseconds(0);
}
GameState.prototype.create = function()
{
this.map = this.add.tilemap('map');
for (var k in moonlightSettings['map']['tilesets']) {
va... |
var nombreArchivo = "NULL";
function subirArchivoPorAJAX(){
//Comprobar si existe archivo seleccionado
var archivo = $("#archivo-adjunto")[0].files[0];
if($("#archivo-adjunto").val().trim() == "")
return true;
var fileName = archivo.name;
var extension = fileName.substring(fileName.lastIndexOf(".")+1);
var f... |
'use strict';
var _ = require('lodash');
var async = require('async');
var ByteBuffer = require('bytebuffer');
var constants = require('../helpers/constants.js');
var crypto = require('crypto');
var extend = require('extend');
var OrderBy = require('../helpers/orderBy.js');
var Router = require('../helpers/router.js')... |
/* *
* Private variables
* */
var niAC, // instance of the object for address configuration
AddressConfiguration = function () { },
_isJQ = !!(window.jQuery),
_window = $(window);
/* *
* Private functions
* */
var _checkInstance = function () {
if (!$.addressConfiguration.instance) {
niAC =... |
'use strict'
const camelCase = require('camelcase')
const parseEft = require('eft-parser')
const crypto = require('crypto')
const fs = require('fs-extra')
const path = require('path')
const STRPROPS = new Set([
'windowTitle', 'text', 'placeholderText', 'title', 'currentText', 'styleSheet',
'statusTip', 'toolTip', '... |
'use strict';
const App = require('actions-on-google').ApiAiApp;
const admin = require("firebase-admin");
const serviceAccount = require("./serviceAccountKey.json");
//connect to firebase
admin.initializeApp({
credential: admin.credential.cert(serviceAccount),
databaseURL: "https://score-keeper-7ad52.firebaseio.c... |
/*jslint node: true */
'use strict';
const walletGeneral = require('ocore/wallet_general.js');
const conf = require('ocore/conf.js');
const eventBus = require('ocore/event_bus.js');
const mutex = require('ocore/mutex.js');
const objectHash = require('ocore/object_hash.js');
const async = require('async');
const myWitne... |
export function Convert2Bin(outstring, statstring, signBit, power, rounding) {
let output = new String() //Output
var binexpnt, index1, index2, cnst, bias, lastbit, rounded, index3, binexpnt2
var moreBits
cnst = 2102 // 1 (carry bit) + 1023 + 1 + 1022 + 53 + 2 (round bits)
bias ... |
// var maxnum = g28=='btc'?parseInt(config_btc_total):parseInt(config_try_total);
var maxnum = 100000000;
var satoshi = 1;//最小单位
$(document).ready(function() {
//点击投注模式
$(".mode_lottery").click(function() {
var i = $(this).attr("attr");
clear();
$(this).removeClass('standard_bg1');
$(this).addClass('standar... |
/**
* A lot of credit to <NAME> <<EMAIL>> who made
* Allure-mocha reporter: "https://github.com/allure-framework/allure-js/tree/master/packages/allure-mocha"
*/
const {
LabelName,
Stage,
Status
} = require('@shelex/allure-js-commons-browser');
const crypto = require('crypto-js');
const AllureInterface =... |
// Global Variables
var configObj = [];
var apiObj = [];
// Load Stored Variables ===================================================
$('#ucp-client-id').val(localStorage.getItem('mc_client_id'));
$('#ucp-client-secret').val(localStorage.getItem('mc_client_secret'));
$('#ucp-mc-subdomain').val(localStorage.getItem('mc... |
'use strict';
//const socket = io();
let MAX_NAME_LENGTH = 32;
let MAP_WIDTH = 500;
let MAP_HEIGHT = 500;
let PIXEL_SIZE = 14;
let CAMERA_SPEED = 0.25;
let MAX_STARS = 2500;
let PLAYER_ID = -1;
let WORLD_SCALE = 1.2;
let isMobile = false;
const pixelRatio = window.devicePixelRatio;
// const ratioPixelSize = PIXEL_S... |
/**
* <NAME> - COP1822
*
* This file contains all custom Javascript for the project, ranging from
* the animations of the navigation bar to the AJAX for the form, and the
* configuration for the carousel. This project utilizes libraries such as
* jQuery and Slick, each of which have a minified copy in this directory.
... |
main.scripts.loaded.push('users');
var servicios = {
mostrar: function(id_familia, no_validate) {
var id = id_familia, no_validate = no_validate || false
if (no_validate && $('#servicios .fam'+ id).is(':visible') || $('#crearCita .fam'+ id).is(':visible') ) return false ;
var id = $.isEmpty(id)?0:id... |
/* global alert */
import React, { useEffect, useState, useCallback, useContext, useRef } from 'react';
import {
ActivityIndicator,
Alert,
Dimensions,
FlatList,
InteractionManager,
Keyboard,
KeyboardAvoidingView,
Linking,
PixelRatio,
Platform,
ScrollView,
StatusBar,
StyleSheet,
Text,
findN... |
/**
* Copyright 2015 Google Inc. 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 appli... |
//Github written by caseyscarborough: https://github.com/caseyscarborough/github-activity
//Modified by _HeN_ (Coding-HeN) for Gitlab: https://github.com/Coding-Hen/gitlab-activity
var GitLabActivity = (function() {
'use strict';
var lastItem = false;
var renderData = {};
var obj = {};
var selector,... |
let setShadow = (ctx, offsetX, offsetY, blur, color) => {
ctx.shadowColor = color;
ctx.shadowBlur = blur;
ctx.shadowOffsetX = offsetX;
ctx.shadowOffsetY = offsetY;
};
let clearShadow = (ctx) => {
setShadow(ctx, 0, 0, 0, "rgba(0, 0, 0, 0)");
};
let drawText = (ctx, s, font, x, y) => {
ctx.font = font;
//le... |
var TableX;
var ID, is_img_valid = false;
var files = new Array();
var idc = 0, id_alamat_input = 1, is_update = false, id_update;
var imgArr_update = new Array(), imgArr_deleted = new Array();
// IMAGE CONFIG
var jumlah_maksimal_photo = 3;
var img = new Array();
img["width"] = 1024;
img["height"] = 768;
var c = 0;
f... |
import * as moment from 'moment';
import _ from 'lodash';
var DB = {};
DB.SS_URL = "https://docs.google.com/spreadsheets/d/<sid>/edit#gid=0";
DB.DF_URL = "https://drive.google.com/drive/folders/<did>";
DB.DC_URL = "https://docs.google.com/document/d/<DCID>/edit";
DB.EMAIL_DEBUG = ["<EMAIL>"];
// URL
DB.Q_SID = "1Hjv... |
/**
* Repositório do projeto:
* https://github.com/axell-brendow/ComputerScience/tree/master/Grafos/TrabalhoPratico
*/
/**
* Arquivo que guarda as estruturas de dados e algoritmos de grafos
*/
let VERTICE_RAIO_PADRAO = 15;
let VERTICE_COR_PADRAO = "white";
let VERTICE_COR_TEXTO_PADRAO = "#00e60c";
let VERTICE_BO... |
import { scaleLinear, scaleLog, scaleQuantile } from 'd3-scale';
import { median, range, ticks } from 'd3-array';
import slugid from 'slugid';
import { parseChromsizesRows } from './ChromosomeInfo';
import DataFetcher from './DataFetcher';
import PixiTrack from './PixiTrack';
// Utils
import { throttleAndDebounce } f... |
// Copyright 2017 <NAME>, <NAME>, <NAME>, and <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 appl... |
import TLError from "../core/TLError"
const css_named_colors = {
"aliceblue": "#f0f8ff",
"antiquewhite": "#faebd7",
"aqua": "#00ffff",
"aquamarine": "#7fffd4",
"azure": "#f0ffff",
"beige": "#f5f5dc",
"bisque": "#ffe4c4",
"black": "#000000",
"blanchedalmond": "#ffebcd",
"blue": "... |
var vis4 = function() {};
vis4.log = function() {
try {
if (window.console !== null) console.log.apply(this, arguments);
} catch (e) {};
};
vis4.str2time = function(s) {
var p = s.split(".");
return Math.round(Date.UTC(2000+p[0], p[1]-1, p[2])*0.001);
};
vis4.round = function(val, prec) {
var d = Math.pow(10... |
"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 ... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnPrope... |
/*!
* loltgt ensemble.Lightbox
*
* @version 0.0.1
* @link https://github.com/loltgt/ensemble-lightbox
* @copyright Copyright (C) <NAME>
* @license MIT License
*/
'use strict';
/**
* @namespace ensemble
* @exports Lightbox
* @exports Modal
*/
import { Modal } from '../../../ensemble-modal/src/js/Modal.js';... |
// Utility functions
const FILESEPARATOR = '/';
function filePart(x) {
return x.split(FILESEPARATOR)
.filter(e => e !== '')
.slice(-1)[0];
}
function pathPart(x) {
return x.split(FILESEPARATOR)
.slice(0, -1)
.filter(e => e !== '')
.map(e => e + FILESEPARATOR).join('');
}
function normalizePath(x){
c... |
const vscode = require("vscode")
const { LanguageFeatures, BackgroundTokenizer, EditorMarkers } = require("nadesiko3/src/wnako3_editor")
const { getIndent } = require("nadesiko3/src/nako_indent")
const path = require('path')
const fs = require('fs')
const nodeHTMLParser = require("node-html-parser")
const ExtensionNako... |
"use strict";
function _ref(a) {
return a.kind === graphql.Kind.FIELD && "__typename" === a.name.value && !a.alias;
}
function withPromise(a) {
a.toPromise = function() {
return wonka.toPromise(wonka.take(1)(a));
};
return a;
}
function makeOperation(a, b, c) {
c || (c = b.context);
return {
key:... |
/*****************************************************************************
Argon Design Ltd. Project P8010 Spock
(c) Copyright 2018 Argon Design Ltd. All rights reserved.
Module: Gumpifier
Author : <NAME>
*******************************************************************************/
/*
This file implem... |
const vm = require('vm');
const crypto = require('crypto');
const mysql = require('mysql');
const mongodb = require('mongodb');
const redis = require('redis');
const Async = require('async');
const qiniu = require('qiniu');
const AsyncFunction = Object.getPrototypeOf(async function(){}).constructor;
const elasticsearch... |
import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
import { createElement, useRef, useMemo, useEffect, useCallback, forwardRef, memo, Fragment } from 'react';
import { bool, object, number, func, oneOf } from 'prop-types';
import { w as withDefaultProps, u as useUtils, b as useDe... |
import { text } from 'd3-request';
import { bisector, range } from 'd3-array';
import { tsvParseRows } from 'd3-dsv';
import { scaleLinear, scaleBand } from 'd3-scale';
import { expose, Transfer } from 'threads/worker';
import { BamFile } from '@gmod/bam';
function currTime() {
const d = new Date();
return d.getTi... |
/*
Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2.0,
as published by the Free Software Foundation.
This program is also distributed with certain soft... |
import pick from 'lodash/pick';
import pickBy from 'lodash/pickBy';
import isEmpty from 'lodash/isEmpty';
import config from '../../config';
import { types as sdkTypes, createImageVariantConfig } from '../../util/sdkLoader';
import { getStartOf, addTime } from '../../util/dates';
import { isTransactionsTransitionInval... |
'use strict';
var config = {
//画布内边距
padd: {
left: 0,
right: 0,
top: 0,
bottom: 0,
},
//坐标轴的外边距
axisMargin: {
left: 0,
right: 0,
top: 0,
bottom: 0,
},
//坐标轴内边距
axisPadd: {
left: 0,
right: 0,
top: 0,
bottom: 0,
},
//x轴的数据
xAxis: {
data: [
/... |
/*
5. scale strokeWidth with window
8. error handling
*/
/////////////////////////////////////////////// COLOR SCHEME /////////////////////////////////////////////////
class Colors {
constructor() {
this.magenta = [220, 70, 250];
this.deepmagenta = [120, 20, 180];
this.blue = ... |
/*************************************************************************
* Description: SDK组件示例
* Author: raojia
* Mail: <EMAIL>
* Created Time: 2016-10-30
************************************************************************/
'use strict';
import React, { Component } from 'react';
import {
AppRegistry,
... |
/**
* ==========================
* W B R =
* Winnetou Bundle Release =
* ==========================
*
* MIT License
*
* Copyright 2020 <NAME> https://github.com/kauesedrez
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated docum... |
(function($){
$.fn.priceFont = function(className){
return this.each(function(){
let _this = $(this), text = _this.text();
if(!text.length || (text.indexOf('¥')==-1 && text.indexOf('.')==-1) || _this.children('.'+className).length)return true;
if(text.indexOf('¥')>-1){
let ar = text.split('¥'), prefix = ar[0]... |
/*
# XParty - A Framework for Building Tools to Support Social Learning in Synchronous Environments
# Authors: <NAME> - www.cs.umd.edu/~bederson
# <NAME> -- www.alexquinn.org
# <NAME> -- www.cs.umd.edu/hcil/members/arose
# University of Maryland, Human-Computer Interaction Lab - www.cs.umd.ed... |
// Keyboard.js - Keyboard handling
// (c) <NAME>, 2019
// https://benchmarko.github.io/CPCBasic/
//
"use strict";
var Utils;
if (typeof require !== "undefined") {
Utils = require("./Utils.js"); // eslint-disable-line global-require
}
function Keyboard(options) {
this.init(options);
}
Keyboard.prototype = {
// ... |
function GetPluginSettings()
{
return {
"name": "Grid control",
"id": "Rex_GridCtrl",
"version": "0.1",
"description": "Manipulate instances of each grid in a table.",
"author": "Rex.Rainbow",
"help url": "http://c2rexplugins.weebly.com/rex_gridctrl.html",
"category": "Rex - GUI controller",
"... |
// This script requires fit-curve.js, a MLT licensed library (https://github.com/soswow/fit-curves).
var fitCurveJS = require("./lib/fit-curve/fit-curve.js");
var scriptVer = 0.01;
function PROTO_Reduce_Points()
{
var PF = new private_functions;
var sNodes = selection.selectedNodes();
sNodes = sNodes.filter(fun... |
import {Libifels} from "./libifels.js";
import * as Spells from "./spellbook.js";
import {Combat} from "./combat.js";
export class Character {
constructor(config) {
Character.prototype.battleSpritePath = "images/characters/battle";
this.id = config.id;
this.name = config.name;
this.gender = "";
... |
import { html, PolymerElement } from "@polymer/polymer/polymer-element.js";
import { afterNextRender } from "@polymer/polymer/lib/utils/render-status.js";
import { dom } from "@polymer/polymer/lib/legacy/polymer.dom.js";
import "@polymer/iron-ajax/iron-ajax.js";
import "@polymer/app-route/app-location.js";
import "@pol... |
var esprima = require('esprima');
var livedoc = require('livedoc');
var marked = require('marked');
var pluralize = require('pluralize');
var $RefParser = require('json-schema-ref-parser');
var indent_num = 3;
function format(tokens, indent_num) {
var indents = ['', ' '.repeat(indent_num), ' '.repeat(indent_num ... |
#!/usr/bin/env node
// no npm!
const os = require('os')
const packageData = require('./package.json')
const execSync = require('child_process').execSync
let VERSION = packageData.version
let useGitVersion = false
if (VERSION.match(/git/)) {
try {
var stdout = execSync('git rev-parse HEAD', { stdio: ['ignore', '... |
var oPopup = window.createPopup();
var PageLoaded;
var LogPageLoaded;
var PageLoadedCancell;
var fixedX = -1 // x position (-1 if to appear below control)
var fixedY = -1 // y position (-1 if to appear below control)
var startAt = 1 // 0 - sunday ; 1 - monday
var showWeekNumber = 0 // 0 - don't ... |
/**
* 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... |
/*
JavaScript file supporting a Barcode Scanning Inventory Process that Pulls Data from Alma API.
Author: <NAME>, Georgetown University Libraries
Dependencies
1. JQuery UI Dialog:https://jqueryui.com/dialog/
2. A web service that returns data from the Alma API based on a Barcode: https://github.com/Georgetown-Uni... |
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d... |
import {
Block,
View,
Text,
Form,
Picker,
Input,
ScrollView,
RadioGroup,
Radio,
Textarea,
Button
} from '@tarojs/components'
import React from 'react'
import Taro from '@tarojs/taro'
import withWeapp from '@tarojs/with-weapp'
import './back.scss'
const app = Taro.getApp()
var wayIndex = -1
var sch... |
import * as BABYLON from 'babylonjs'
class FurMaterialDefines extends BABYLON.MaterialDefines {
constructor (props) {
super(props)
this.DIFFUSE = false
this.HEIGHTMAP = false
this.CLIPPLANE = false
this.ALPHATEST = false
this.DEPTHPREPASS = false
this.POINTSIZE = false
this... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.