text stringlengths 8.5k 48.7k |
|---|
/* eslint-disable camelcase, prefer-named-capture-group, unicorn/better-regex */
import {xu, fg} from "xu";
import {XLog} from "xlog";
import {cmdUtil, fileUtil, printUtil, runUtil, hashUtil, diffUtil} from "xutil";
import {path, dateFormat, dateParse} from "std";
const xlog = new XLog();
const argv = cmdUtil.cmdInit... |
const svg = document.getElementById("svgPanel");
const support1 = document.getElementById("support1");
const support2 = document.getElementById("support2");
const connection = document.getElementById("connection");
const CompBody = document.getElementById("CompresserBody");
const upperV = document.getElementById("uppe... |
const CALL_DIRECTION_INCOMING = 0;
const CALL_DIRECTION_OUTGOING = 1;
var msgLog = new Array;
var msgId = 0;
var msgError = null;
var debugStatus = 1;
var connected = false;
var logged = false;
var socket = null;
var permissions = 0;
var debugenable = false;
function debug(message) {
if (debugStatus) {
c... |
var platform;
if (navigator.appVersion.includes("Windows")) {
platform = "UWP";
}
else if (navigator.appVersion.includes("Linux")) {
platform = "Android";
}
else if (navigator.appVersion.includes("iOS")) {
platform = "iOS";
}
function InvokeCS(data) {
switch (platform) {
case "UWP":
... |
//Bot pop-up intro
/*document.addEventListener('DOMContentLoaded', function() {
var elemsTap = document.querySelector('.tap-target');
var instancesTap = M.TapTarget.init(elemsTap, {});
instancesTap.open();
setTimeout(function() { instancesTap.close(); }, 4000);
});*/
//initialization
function uuidv4()... |
/* src/pages/Dashboard.svelte generated by Svelte v3.29.0 */
import {
SvelteComponent,
append,
attr,
component_subscribe,
create_component,
destroy_component,
destroy_each,
detach,
element,
init,
insert,
listen,
mount_component,
safe_not_equal,
set_data,
space,
text,
transition_in,
transition_out
} f... |
'use strict';
var method = require('./../method');
var assign = require('lodash.assign');
var path = require('path');
var mkdirp = require('mkdirp');
var async = require('async');
var os = require('os');
var fs = require('fs');
var archiver = require('archiver');
var ProgressBar = require('progress');
var child_proces... |
/* Copyright© 2000 - 2020 SuperMap Software Co.Ltd. All rights reserved.
* This program are made available under the terms of the Apache License, Version 2.0
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
import L from "leaflet";
import { ComponentsViewBas... |
import Component from '@ember/component';
import EmberObject, {computed} from '@ember/object';
import {assign} from '@ember/polyfills';
import {A} from '@ember/array';
import {later, schedule} from '@ember/runloop';
import layout from '../templates/components/visual-search';
const ACTIONS = {
FACET_CREATE: 'facet_cr... |
import React, { useState, useRef, useReducer } from 'react';
import styled from 'styled-components';
import Display from './Display';
import Logo from './Logo';
import EditableContent from './EditableContent';
import DisplayButton from './ui-components/DisplayButton';
import Snackbar from './Snackbar';
import FadeIn ... |
'use strict';
var setupCommands = require('./setupCommands');
var calculateSlot = require('cluster-key-slot');
var redis = require('redis');
var RedisBatch = require('./RedisBatch');
var Events = require('events').EventEmitter;
var util = require('util');
var Queue = require('denque');
var RedisClustr = module.exports... |
////////////////////////////////////////////////////////////
//////////////////////////COMMON////////////////////////////
////////////////////////////////////////////////////////////
var dataSource = {
/*
contacts : '../../datas/testDataset/contacts.json',
smsThreads : '../../datas/testDataset/smsThreads.json',
sms... |
import { computeObjectAABB, getBox, getScaleCoefficient } from "../utils/auto-box-collider";
import {
resolveUrl,
getDefaultResolveQuality,
injectCustomShaderChunks,
addMeshScaleAnimation,
closeExistingMediaMirror
} from "../utils/media-utils";
import {
isNonCorsProxyDomain,
guessContentType,
proxiedUrl... |
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]; } } } return target; };
function _classCallCheck(instance, Constructor) { if (!(insta... |
var randomNumber = function (max) {
return Math.floor(Math.random() * max);
};
var slice = Array.prototype.slice.call.bind(Array.prototype.slice);
var pushAll = function (arr, items) {
arr.splice.apply(arr, [arr.length, 0].concat(items));
};
var add = function (arr, item) {
if (!~arr.indexOf(item)) arr.push(item)... |
let blocksProperties = {};
let filtersMap =
{
'2' : 'EventID',
'4' : 'LogonType',
'5' : 'SubjectUserSid',
'6' : 'SubjectUserName',
'7' : 'SubjectLogonId',
'8' : 'SubjectDomainName',
'9' : 'TargetUserSid',
'10' : 'TargetUserName',
'11' : 'TargetLogonId',
'12' : 'TargetD... |
"use strict";
const Evok = require("unipi-evok");
const RELAY_TYPE = "relay_type";
/**
* This class represents a single UniPi Accessory. It acts as a gateway for retrieving information from the device,
* and for sending commands to the device. This class represents the Accessory in HomeBridge.
*/
module.exports.Un... |
const roomScale = .5 //in-game room size time this = SVG pixel size
const roomLeadOutLen = 10//length of "leaving this room" stub lines
const roomDirections = {
top: {x: 0, y: -1, r: 0},
bot: {x: 0, y: 1, r: 180},
right: {x: 1, y: 0, r: 90},
left: {x: -1, y: 0, r: -90},
}
class DataRender {
constructo... |
//=============================================================================
// Kru Core
// Version: 1.0.2
//=============================================================================
/*:
* @plugindesc Shared base for many Krusynth plugins
*
* @author Krusynth
*
* @param ---General---
* @default
*
* @help... |
// npm install
// tsc
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { s... |
/* Copyright (C) Datar Cancer Genetics Limited - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* Written by <NAME>, August 2018
*/
$(document).ready(function(){
$('.select2').select2();
// Pending list
var table_material_req... |
window.addEventListener('native.onscanbarcode', function (schitem) {
var page = "";
//alert(pr.scanResult);
// console.log(schitem.scanResult);
localStorage.barcode = schitem.scanResult;
if(page == ""){
page = $.mobile.activePage.attr('id');
}
$(docum... |
const SimpleSchema = require('simpl-schema').default;
const moment = require('moment');
const R = require('ramda');
const ServiceBase = require('./serviceBase');
const SERVICE = 'Erp.Bo.LaborSvc';
const JOB_NUM_CHANGE_PROPERTIES = ['DisplayJob', 'JobType'];
const LABOR_TYPE_CHANGE_PROPERTIES = [
'BurdenHrs',
'Di... |
import Conditions from '../../../../../resources/conditions.js';
import NetRegexes from '../../../../../resources/netregexes.js';
import { Responses } from '../../../../../resources/responses.js';
import ZoneId from '../../../../../resources/zone_id.js';
// Handle randomized headmarkers:
// TODO: tankbuster mark... |
const { Client, MessageEmbed } = require('discord.js');
const puppeteer = require('puppeteer');
const level = require('level');
const colors = require('colors');
const ora = require('ora');
const cheerio = require('cheerio');
const fetch = require('node-fetch');
const pRetry = require('p-retry');
const fs = require('fs... |
$(function(){
var current_line;
var current_customer;
var current_agency;
var multi_factor = 1;
var maxItem = 0;
var est_total_top = $("#est-total-top");
var est_sale_total_top = $("#est-sale-total-top");;
var gross_profit = $("#gross-profit");
var table = "#est-table";
var table_sale = "#sale-tab... |
var newUrl_base64;
function getUrlBase64(img) {
function getBase64Image(img, width, height) { //width、height调用时传入具体像素值,控制大小 ,不传则默认图像大小
var canvas = document.createElement("canvas");
canvas.width = width ? width : img.width;
canvas.height = height ? height : img.height;
var ctx = ca... |
/*
* 广州丰石科技有限公司拥有本软件版权2017并保留所有权利。
* Copyright 2017, Guangzhou Rich Stone Data Technologies Company Limited,
* All rights reserved.
*/
$(function () {
/** 初始化角色列表 */
$("#jqGrid").jqGrid({
url: baseURL + 'roles',
datatype: "json",
colModel: [
{label: '角色ID', name: 'role.i... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var sha3 = require('js-sha3');
var pyShell = require('python-shell');
var _slicedToArray2 = require('babel-runtime/helpers/slicedToArray');
var _slicedToArray3 = _interopRequireDefault(_slicedToArray2);
var _regenerator = require('bab... |
//pour acceder a mon json blob
var options = {
"method": "PUT",
"hostname":"jsonblob.com",
"path":"/api/jsonBlob/b3232b4d-2229-11e8-b7b9-51f8982918cc",
"headers": {
"Content-Type": "application/json",
"Accept": "application/json"
}
};
const fs = require("fs");
//importe le fichier... |
/*
* == BSD2 LICENSE ==
* Copyright (c) 2017, Tidepool Project
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the associated License, which is identical to the BSD 2-Clause
* License as published by the Open Source Initiative at opensource.org.
*
* This program ... |
function hackmoney (needed_money){
//to be passed as a string for example "$1,956,458,897"
document.getElementsByClassName('profile-invCount')[0].innerHTML = needed_money;
}
function hackcars(needed_cars){
var x;
var empty_spots = document.querySelectorAll(".is-empty > .garage-vehicle > .garage-vehichle... |
/*! For license information please see json-ptr.js.LICENSE.txt */
const mod = (() => {
"use strict";
var e = {
607: (e, t, r) => {
Object.defineProperty(t, "__esModule", { value: !0 });
const n = r(655);
n.__exportStar(r(699), t), n.__exportStar(r(882), t), n.__ex... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import { Map as ImmutableMap } from 'immutable';
import Color from 'color';
import Question from 'components/Question';
import Project from 'components/Project';
import Progress from 'components/Progress';
... |
// 0x07010AD8 - 0x07010AF0
import {
gdSPDefLights1, gsDPSetTextureImage, gsDPLoadSync, gsDPLoadBlock, gsSPLight, gsSPVertex,
gsSP2Triangles, gsSP1Triangle, gsSPEndDisplayList, gsDPPipeSync, gsDPSetCombineMode,
gsSPClearGeometryMode, gsDPSetTile, gsSPTexture, gsDPTileSync, gsDPSetTileSize,
gsSPDisplayLi... |
/**
* Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community
* Edition) available.
* Copyright (C) 2017-2020 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the "License"); you may not use this file except in compliance with th... |
'use strict';
function define(pluginName, type, targetSystems, ruleConfig)
{
if (pluginName)
ruleConfig = prependToPropertyNames(ruleConfig, `${pluginName}/`);
let jsMinEcmaVersion;
let tsMinEcmaVersion;
switch (typeof targetSystems)
{
case 'object':
({ jsMinEcmaVersion, tsMinEc... |
/*!
Copyright 2009-2021 SpryMedia Ltd.
This source file is free software, available under the following license:
MIT license - http://datatables.net/license/mit
This source file is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
... |
// Internal state.
var CURRENT_INPUT_GRID = new Grid(3, 3);
var CURRENT_OUTPUT_GRID = new Grid(3, 3);
var TEST_PAIRS = new Array();
var CURRENT_TEST_PAIR_INDEX = 0;
var COPY_PASTE_DATA = new Array();
// Evan internal state
var CUR_STAMP = 0;
var TARGETS = {};
var REC = {};
var STAMPS = [];
var TASK_NAME = "";
// eac... |
/*
* ReplayGainAnalysis - analyzes input samples and give the recommended dB change
* Copyright (c) 2012 Cull TV, Inc. <<EMAIL>>
* Based on gain_analysis.c, copyright 2001 <NAME> and <NAME>
* Improvements and optimizations added by <NAME>, and by <NAME>
*
* This library is free software; you can redistribute... |
/*global graphData */
var width = 720, height = 720;
var minSize = 10;
var maxSize = 50;
var minDistance = 100;
var maxDistance = 900;
// we'll binary search for the correct max distance later
var lowerMaxDistance = 300;
var upperMaxDistance = 1500;
var margin = maxSize;
var rightSidebar = d3.select("#graph")
... |
"use strict";
// Initialize Firebase!
var config = {
apiKey: "<KEY>",
authDomain: "cult-game.firebaseapp.com",
databaseURL: "https://cult-game.firebaseio.com",
storageBucket: "cult-game.appspot.com",
messagingSenderId: "718126583517"
};
firebase.initializeApp(config);
var firebaseCodec = {
// ... |
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/*
* AES Cipher function: encrypt 'input' with Rijndael algorithm
*
* takes byte-array 'input' (16 bytes)
* 2D byte-array key schedule 'w' (Nr+1 x Nb bytes)
*
* applies Nr rounds (10/12/14) using ... |
import d3 from "d3"
import wellknown from "wellknown"
import { AABox2d, Point2d, PolyLine } from "@heavyai/draw/dist/mapd-draw"
export function notNull(value) {
return value != null /* double-equals also catches undefined */
}
export function adjustOpacity(color, opacity = 1) {
if (!/#/.test(color)) {
return c... |
/******************************************************************************
* livremarketplace.js
*
* Copyright 2016 <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
*
* ... |
'use strict';
const shared = require('./shared.js')();
const basicFC = require('./basicFC.js')();
const filter = require('./filter.js')();
/**
* @class AttribFC
*/
class AttribFC extends basicFC.BasicFC {
// attribute-specific variant for feature class object.
// deals with stuff specific to a feature class... |
import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import Panel from '@/components/Panel';
import axios from 'axios';
import * as utils from '../../utils';
import { USER_TOKEN, USER_USERTYPE } from '../../constants';
import { dateFormat } from '@/utils/index';
import {... |
///@INFO: BASE
//this file defines the shaderblocks that interact in the render of any standard material
//the pipeline is quite standard
//for structures like Input go to shaders.xml
//define surface structures
LS.Shaders.registerSnippet("surface","\n\
//used to store surface shading properties\n\
struct ... |
/*
* 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 ... |
'use strict';
require('./base');
const React = require('react');
var {uniq, flatten, sortBy, groupBy, map, flatmap, partitionN, mapObject,
contains, get, updateIn, range, Let, pick,
zip, identity, getIn, sum, keys, values, mmap} = require('./underscore_ext');
var {Observable: {from}, Scheduler: {animationFrame}} = r... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _toConsumableArray2 = require('babel-runtime/helpers/toConsumableArray');
var _toConsumableArray3 = _interopRequireDefault(... |
const {make, div, timeAgo, timeAgoRaw} = require("./Helpers.js");
const {TweetTextFormatUtils} = require("./TweetTextFormatUtils.js");
const {TweetDetailHolder} = require("./TweetDetailHolder.js");
const {ProviderLikeTweet} = require("./ProviderLikeTweet.js");
const {ProfileMiniCard} = require("./ProfileMiniCard.js");
... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
export class CssProp {
key;
value;
name;
constructor(key, value) {
this.key = key;
this.value = value;
this.name = key.replace(/[A-Z]/g, (m) => {
return "-" + m.toLocaleLowerCase();
});
}
/**
* Set the attribute value on an HTMLElement
* @par... |
setThemeColor();
$(window).on('load', function () {
$('#pre-loader').delay(250).fadeOut(function () {
$('#pre-loader').remove();
});
});
$(document).ready(function () {
$.ajaxSetup({cache: false});
//clicked on toggle button
$('.sidebar-toggle-btn').on('click', function () {... |
class TextureBD {
constructor(menu, fun) {
var self=this;
this.type = "TextureBD";
this.par = menu;
window.selfTBD=this;
this.margin = aGlaf.otstup;
this.wh = aGlaf.wh;
this.whv = aGlaf.whv;
this.widthBig = aGlaf.widthBig;
this.objectBase = th... |
/**
* scrollboard.js
* ACM竞赛滚榜展示插件,基于JQuery、Bootstrap
*
* Version 1.0.0
* Author: qinshaoxuan q<EMAIL>.com
* Github: https://github.com/qinshaoxuan/ScrollBoard
* Demo: https://qinshaoxuan.github.io/ScrollBoard/
*
*/
/**
* 从服务器获取提交列表,可按后台json格式修改
* @return {Array<Submit>} 初始化后的Submit对象数组
*/
/*function getS... |
const moment = require('moment');
const _ = require('underscore');
const UniversalFunc = require('../../../Utils/universalFunctions');
const RESP = require('../../../Config').responseMessages;
const { logger } = require('../../../libs/pin... |
// Variables used by other scripts that should be overwritten.
var mapbox;
/**
* Capitalizes the base string. Mutates the base object.
* @return {string} Capitalized string result.
*/
String.prototype.capitalize = function() {
return this.charAt(0).toUpperCase() + this.slice(1);
}
/**
* Checks if the start o... |
function pipelineUtils() {
var self = this;
this.updatePipelines = function(divNames, errorDiv, view, fullscreen, page, component, showChanges, aggregatedChangesGroupingPattern, timeout, pipelineid, jsplumb) {
// JENKINS-46160 Don't refresh pipelines if the tab/window is not active
if (document... |
// Generated by ReScript, PLEASE EDIT WITH CARE
'use strict';
var List = require("./List.bs.js");
var Curry = require("bs-platform/lib/js/curry.js");
var List_like = require("./list_like.bs.js");
var Caml_int32 = require("bs-platform/lib/js/caml_int32.js");
var Pervasives = require("bs-platform/lib/js/pervasives.js");... |
/* eslint-disable no-console */
const EventEmitter = require('events')
const npmpackegeversion = require('./package.json').version
const defaultConnectOptions = {
keepalive: 60,
protocolId: 'ws',
reconnectPeriod: 1000,
connectTimeout: 30 * 1000,
resubscribe: true
}
const defaultServerOptions = {
... |
let url参数 = Vue.prototype.$解析url(window.location.href);
/*挂件模式的判定在baselib的commonfunctionforsiyuan里*/
/*挂件自身元素的获取也在baselib的commonfunctionforsiyuan里*/
if (!Vue.prototype.$挂件模式()) {
Vue.prototype.$baseid = url参数.baseid || "20131111000000-lpanybz";
} else {
Vue.prototype.$baseid = Vue.prototype.$挂件自身元素().getAttribute(... |
const START="start";
const END="end";
const BIKE = "bike"
const MEDIUM_TRAFFIC = "medium_traffic"
const DANGER = "danger"
const PATH = "path"
const LOW_TRAFFIC = "low_traffic"
const safe_types = [BIKE, LOW_TRAFFIC, PATH];
const types_order = [PATH, BIKE, LOW_TRAFFIC, MEDIUM_TRAFFIC, DANGER]
const NB_DAYS_PER_YEAR ... |
/** @babel */
/** @jsx etch.dom */
/* global Promise Symbol document window atom */
import etch from 'etch'
import {Emitter} from 'atom'
import EtchComponent from './etch-component'
import symbols from './symbols'
const createNewLine = Symbol()
const cursorLineElement = Symbol()
const metaForLine = Symbol()
const el... |
var z=0;
var ppIndex=0;
var coverIndex=0;
document.getElementById('file').addEventListener('change', function () {
ppIndex=0;
fileNum = document.getElementById('file').files.length;
var html = '';
var formData = new FormData();
for (var i = 0; i < fileNum; i++) {
... |
// Import Modules
import { DL } from './config.js'
import { DemonlordActor } from './actor/actor.js'
import { DemonlordActorSheet } from './actor/actor-sheet.js'
import { DemonlordActorSheet2 } from './actor/actor-sheet2.js'
import { DemonlordCreatureSheet } from './actor/creature-sheet.js'
import { DemonlordItem } fro... |
/*!
* DOM Display Detector React
* version: 1.0.1
* author: <NAME> <<EMAIL>>
* website: http://cevadtokatli.com
* github: https://github.com/cevadtokatli/dom-display-detector-react
* license: MIT
*/
import { findDOMNode } from 'react-dom';
function _typeof(obj) {
if (typeof Symbol === "function" && typeof S... |
const Emitter = require('events');
const {makeRtpEngineOpts, SdpWantsSrtp, makeCallCountKey} = require('./utils');
const {forwardInDialogRequests} = require('drachtio-fn-b2b-sugar');
const {parseUri, stringifyUri, SipError} = require('drachtio-srf');
const debug = require('debug')('jambonz:sbc-inbound');
const MS_TEAMS... |
'use strict';
/*THis is our JavaScript Code for a quiz application that runs on our webpage
and displays the scoreboard in the <aside>. The quiz contains a bank of questions
stored as an array of objects. There are three radio buttons on the page that
will start a fresh quiz with 10, 20, or 30 questions. The quiz is m... |
/* Family analysis */
/* By <NAME> */
function Family() {
this.father;
this.mother;
this.children = [];
// used for generating the timeline
this.firstChildBirthDate;
this.lastChildBirthDate;
this.firstDate;
this.lastDate;
this.canvas;
this.context;
// load a person's info from the sidebar
this.getPerson ... |
/*
* Copyright © 2020. TIBCO Software Inc.
* This file is subject to the license terms contained
* in the license file that is distributed with this file.
*/
//@ts-check
// Manually import the array polyfills because the API is using functions not supported in IE11.
import "core-js/es/array";
//@ts-ignore
import... |
// if it's worth engineering it's worth overengineering -B
// don't need much of a delay, if someone's sitting on the undo button we'll just end up canceling a bunch of runs
var treeUpdateDelay = 50;
var treeUpdateTimeout = null;
// track if there has ever been a tree update
var ranATreeUpdate = false;
function treeU... |
function processCommandLine(command, lc)
{
// analyse the reg. expression of command line (note: "detailPageShortcuts()" call is done from "search"/"result.jsp" file)
// *** shortcuts must be tested with "DWS inter" search-expression as well ***
var params = command.match(/^((85,)|([.])|(\w[.\w\*\&\+\-\/]*,))(.*)$/... |
import { dateStrParser, EPSILON, getFormatter, MS_PER_DAY, movingAvg, } from "./utils.js";
class Line {
constructor(feature) {
this.feature = feature;
this.points = [];
}
push(p) {
this.points.push(p);
}
}
function indexToStr(n) {
return `${n + 1}.`;
}
const plotAesthetics = ... |
import VuejsNodeStyle from "../graph-styles/VuejsNodeStyle";
import PaperNode from "../graph-styles/PaperNode";
import PatentNode from "../graph-styles/PatentNode";
import AuthorNode from "../graph-styles/AuthorNode";
import GeneNode from "../graph-styles/GeneNode";
import {
Arrow,
ArrowType,
DefaultLabelStyle,
... |
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"]... |
import React, { Component, PropTypes} from 'react'
import styles from './styles.scss';
import { connect} from 'react-redux';
import { Route, Switch,Link,NavLink,withRouter, BrowserRouter as Router } from 'react-router-dom';
import Select from 'react-select';
import { Tab, Tabs, TabList, TabPanel } from 'react-tabs';
... |
/*
* Add some helpers for matrices. This is ported from SkMatrix.cpp and others
* to save complexity and overhead of going back and forth between C++ and JS layers.
* I would have liked to use something like DOMMatrix, except it
* isn't widely supported (would need polyfills) and it doesn't
* have a mapPoints() fu... |
var urlParams = {};
$(function() {
pairs = document.URL.split('?')
.pop()
.split('&');
for (var i = 0, p; i < pairs.length; i++) {
p = pairs[i].split('=');
urlParams[ p[0] ] = p[1];
}
});
function ShowCron(){
$('#cronselector').empty();
$(document).ready(func... |
var inputVideoFile = "../resource/InputFile.mp4";
var commonName = inputVideoFile.split('resource/')[1].split('.')[0];
var ffmpeg = require('fluent-ffmpeg');
var fs = require('fs');
var chartFile="";
var excelFile = "";
var psnrBitrateList = new Array(56);
for (var i = 0; i < 56; i++) {
psnrBitrateList[i] = new A... |
// JavaScript Document
var Tabs = {};
Tabs.activeTab = null;
Tabs.lastActiveTab = null;
Tabs.relatedCol = null;
function closeAllTabs() {
delete Tabs['activeTab'];
delete Tabs['lastActiveTab'];
delete Tabs['relatedCol'];
$.each( Tabs, function(key,tab) {
tab.closeTab();
});
}
function firstNonSpecial(o) {
... |
//print_type=-1 打印类型 -1打印生产类型 1-Fit print all 2-fit print 3-print order 4-blank label
function previewAll(parsedOrders,goods,goodsTwoCate,userName,businessName,print_type=-1) {
initAll(parsedOrders,goods,goodsTwoCate,userName,businessName,print_type);
LODOP.PREVIEW();
}
//type=1 默认打印产品信息 type=2 打印物流信息
function ... |
function activate() {
ajaxCall('GET', '../api/Twitter', '', scb, ecb);
$("#btnGo").prop("disabled", true);
}
$(document).ajaxStop(function () { //when all the ajax call requests ended - do the post of tweets
postTweets();
});
var contents = [];
var hashtagsToExplore = [];
var attributeedTweetersInTweets ... |
$(function(){
console.log("anything 2");
init();
});
var database;
var auth;
var firebaseConfig;
let tasklist = [];
let initializing = true;
let guest = false;
const _2DAYS_ = 1000 * 60 * 60 * 24 * 2;
const _LIST_PREFIX_ = "list_";
const _CHECKBOX_PREFIX_ = "chck_";
const _SPAN_PREFIX_ = "span_";
con... |
// create NGL tooltip
var ngl_tooltip = document.createElement("div")
Object.assign(ngl_tooltip.style, {
display: "none",
position: "fixed",
zIndex: 10,
pointerEvents: "none",
backgroundColor: "rgba( 0, 0, 0, 0.6 )",
color: "lightgrey",
padding: "8px",
fontFamily: "sans-serif"
})
documen... |
function get_color(num) {
if (num === 6) return '#FF0000'
else if (num === 5) return '#FF9900'
else if (num === 4) return '#33CC00'
else if (num === 3) return '#3366CC'
else if (num === 2) return '#66CC99'
else if (num === 1) return '#FF33FF'
}
function get_rank_color(str) {
if (str === 'SP'... |
var defaults = {};
var nodes = {};
var edges = {};
var bots = {};
var network = null;
var network_container = null;
var popup = null;
var span = null;
var table = null;
var modal = null;
var disabledKeys = ['group', 'name', 'module'];
var bot_before_altering = null;
var EDIT_DEFAULT_BUTTON_ID = 'editDefaults';
var BO... |
/*
▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄▄▄▄▄▄▄
▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░▌ ▐░░▌▐░░░░░░░░░░░▌
▐░█▀▀▀▀▀▀▀▀▀ ▐░█▀▀▀▀▀▀▀█░▌▐░▌░▌ ▐░▐░▌▐░█▀▀▀▀▀▀▀▀▀
▐░▌ ▐░▌ ▐░▌▐░▌▐░▌ ▐░▌▐░▌▐░▌
▐░▌ ▄▄▄▄▄▄▄▄ ▐░█▄▄▄▄▄▄▄█░▌▐░▌ ▐░▐░▌ ▐░▌▐░█▄▄▄▄▄▄▄▄▄
▐░▌▐░░░░░░░░▌▐░░░░░░░░░░░▌▐░▌ ▐░▌ ▐░▌▐░░░░░░░░░░░▌... |
/**
* Javascript Library for Ajax Front-end and Back-end
*
* @filesource js/common.js
* @link http://www.kotchasan.com/
* @copyright 2016 Goragod.com
* @license http://www.kotchasan.com/license/
*/
var loader,
modal = null;
function send(target, query, callback, wait, c) {
var req = new GAjax();
req.initL... |
function GoogleMapAircraft(options)
{
var that = this;
var mOptions = options;
this.Id = 0;
this.Icao = "";
this.IcaoChanged = true;
this.Bad = false;
this.BadChanged = true;
this.Reg = "";
this.RegChanged = true;
this.Alt = null;
this.AltChanged = true;
... |
/*
Copyright 2013 National Technology & Engineering Solutions of Sandia, LLC (NTESS).
Under the terms of Contract DE-NA0003525 with NTESS, the U.S. Government
retains certain rights in this software.
*/
// This script sets up the overall layout of the movie-plex user
// interface, making calls out to different functi... |
/**
* @fileoverview Starting point of the BlockPy application, containing the main
* BlockPy class.
*/
import "./css/blockpy.css";
import "./css/bootstrap_retheme.css";
import $ from "jquery";
import {$builtinmodule} from "skulpt_modules/image";
import {LocalStorageWrapper} from "storage.js";
import {EditorsEnum} fr... |
// Manually transpiled version of MapManager.js at https://babeljs.io/repl/
// For future use, we should have a way to automate this either locally or server-side
//Create an event node
var Event = function ($) {
return function (properties) {
this.properties = properties;
this.blip = null;
this.classN... |
// sq-game.js CC BY http://fukuno.jig.jp / https://twitter.com/taisuke
//
// blog http://fukuno.jig.jp/2273
// min sample http://taisukef.github.io/sq-game/min.html
'use strict';
// fukuno.js
String.prototype.startsWith = function(s) {
return this.indexOf(s) == 0;
};
String.prototype.endsWith = function(s) {
if ... |
//客服
var show_kflist_timer;
var kf_isshow = false;
function show_kflist() {
if (kf_isshow) {
$(".kf_list").hide();
kf_isshow = false;
clearTimeout(show_kflist_timer);
}
else {
$('.kf_list').show();
kf_isshow = true;
show_kflist_timer = setTimeout(function () ... |
let state_element = document.querySelector('#state');
let district_element = document.querySelector('#districts');
let cities = document.querySelector('#cities');
let classes = document.querySelector('#class');
let subject = document.querySelector('#subject');
let specailization = document.querySelector('#specailizatio... |
"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... |
/**
* @author <NAME>
*/
var Geometry = ( function(){
return {
GeoBase : function( id, x, y, pointA, pointB, colour ){
this.id = id;
this.x = x;
this.y = y;
this.pointA = pointA;
this.pointB = pointB;
this.colour = colour;
... |
/* https://github.com/hugolpz/OpenEdx-hanzi/issues */
/* *********************************************************************** */
/* INITIALISATION ******************************************************** */
var player = [],
writer = [],
audios = [];
/* **********************************************************... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.