text stringlengths 8.5k 48.7k |
|---|
// "use strict";
// create spinner
var target = d3.select("#dashboard").node();
// create tooltip
var tooltip = d3.select("body").append("div").style({
"position": "absolute",
"z-index": "10",
"visibility": "hidden"
}).attr({
"class": "tooltip"
});
// trigger loader
var spinner = new Spinner(opts).spin... |
/* Copyright (c) 2013-2015 <NAME>, MIT License */
/* jshint node:true, asi:true, eqnull:true */
'use strict'
var Async = require('async')
var Util = require('util')
var Buffer = require('buffer')
var _ = require('lodash')
var Parambulator = require('parambulator')
var Mstring = require('mstring')
var Nid = require('n... |
const Apify = require('apify');
const HeaderGenerator = require('header-generator');
const _ = require('lodash');
const { LABELS, TYPES, INITIAL_URL } = require('./constants');
const fns = require('./functions');
const {
createGetSimpleResult,
createQueryZpid,
proxyConfiguration,
interceptQueryId,
... |
#!/usr/bin/env node
/* eslint-disable no-plusplus */
/* eslint-disable no-console */
/* eslint-disable new-cap */
import AWS from 'aws-sdk';
import {
awsRegionLocations,
logo,
dateFormats,
DEPLOYMENT_STATUS,
} from './constants';
import { helpModal, eventInjectionModal } from './modals';
const blessed = requir... |
/*Copyright 2018-2019 Bang & <NAME>/S
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, ... |
import Vue from 'vue'
import Cookies from 'js-cookie'
import 'normalize.css/normalize.css' // a modern alternative to CSS resets
import Element from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';
import AvueUeditor from 'avue-plugin-ueditor'
Vue.use(AvueUeditor)
import '@/styles/index.scss' // global cs... |
// color table from http://www.w3.org/TR/css3-color/
const cssColors = {
// basic color keywords
'black': [ 0 / 255, 0 / 255, 0 / 255 ],
'silver': [ 192 / 255, 192 / 255, 192 / 255 ],
'gray': [ 128 / 255, 128 / 255, 128 / 255 ],
'white': [ 255 / 255, 255 / 255, 255 / 255 ],
'maroon': [ 128 / 255, 0 / 255, 0 /... |
const fs = require('fs')
const path = require('path')
const child_process = require('child_process')
const readline = require('readline')
// const shelljs = require('shelljs')
// shelljs.config.silent = true
const moment = require('moment')
moment.locale('zh-cn')
// <script src="http:/... |
var glMain;
var programMain;
var canvasMain;
var glOverview;
var programOverview;
var canvasOverview;
var audioContext;
var audioBuffer;
var wavBytes;
var peaks;
var reader = new FileReader();
var canvasMain;
var canvasCtx;
var dataMin, dataMax;
var baseLine = [-1, 0, 1, 0];
var SampleType = {
NONE: 0,
... |
/*
Copyright 2019 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... |
/**
* CREATED BY NVD ON 1-apr.-2014 13:57:41
*
* Package : core/js Filename : gridActions.js
*/
"use strict";
function getGrid(listController){
var grid = undefined;
require([ "dijit/registry", "dojo/on" ], function(registry, on) {
grid = registry.byId(listController.id + "grid");
});
return grid;
}
fun... |
var settings = {
/* DON'T CHANGE ANYTHING HERE, YOU *WILL* BE OVERWRITTEN. */
persistSettings: undefined,
accessKeyId: undefined,
secretAccessKey: undefined,
srcBucketName: undefined,
srcPrefixes: undefined,
dstBucketName: undefined,
endpoint: undefined,
sslEnabled: undefined,
forcePathStyle: undefi... |
import ThreeGeo from '../../../src';
const { THREE } = window;
import MapHelper from './map-helper.js';
import queryString from 'query-string'; // in prod, need webpack-4 to minify this
class Viewer {
constructor(env, threelet) {
this.env = env;
const { camera, renderer } = threelet;
thi... |
const crypto = require('crypto');
const dns = require('dns');
const fs = require('fs');
const os = require('os');
const path = require('path');
const DKIM = require('nodemailer/lib/dkim');
const Limiter = require('ratelimiter');
const Promise = require('bluebird');
const _ = require('lodash');
const addressParser = req... |
var trumbopluginsloaded = false;
function loadTrumboPlugins() {
// Odd way to load plugins outside angular context, as there is no plugin loader in module ngx-trumbowyg
if (trumbopluginsloaded) return;
console.log("Loading trumbowyg editor plugins");
loadUploadPlugin();
loadFlxPasteImgPlugin();
... |
/**
* Created by wujiangwei on 2016/10/27.
*/
var app=angular.module('yemaWebApp',[]);
var navIndex = 6;
// app.directive('onRepeatFinishedRender', function ($timeout) {
// return {
// restrict: 'A',
// link: function (scope, element, attr) {
// if (scope.$last === true) {
// ... |
const MACRONAME = "Bestow_Curse.1.4.js";
/*****************************************************************************************
* Implemention of Bestow Curse.
*
* Description: long....go read it elsewhere. The suggested afllictions, and importantly
* the name I am giving each are:
*
* Ineptitude - The... |
/* QR9SkRpC1piyc/5wR87+vRl4oKxTFO28fjaeGeiafGCE1A== ;) */
const cp = require('child_process');
const electron = require('electron');
const url = require('url');
const path = require('path');
const Datastore = require('nedb');
const request = require('request');
const fs = require('fs');
const util = require('util');
c... |
var numeral = require ("numeral");
let id_regex = /\b\d+\.\d+\.(\d+)\b/;
import {ChainTypes} from "gxbjs/es";
var {object_type, operations} = ChainTypes;
var Utils = {
get_object_id: (obj_id) => {
let id_regex_res = id_regex.exec (obj_id);
return id_regex_res ? Number.parseInt (id_regex_res[1]) ... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.packageManager = void 0;
const fs_1 = __importDefault(require("fs"));
const os_1 = __importDefau... |
// brdf.js
// computer graphics exercise 4
var gl = null;
var canvas = null;
var shadersList = new Array();
var shaders = new Array();
var currentShader = 0;
var currentMaterial = 0;
var showTeapot = true;
var showCode = false;
// 3 point light sources
var lights = new Array();
lights.push({position: new Float32Ar... |
/* global $ */
var RTC = require('../RTC/RTC');
var logger = require("jitsi-meet-logger").getLogger(__filename);
var RTCBrowserType = require("../RTC/RTCBrowserType.js");
var XMPPEvents = require("../../service/xmpp/XMPPEvents");
var transform = require('sdp-transform');
var RandomUtil = require('../util/RandomUtil');
... |
/**
* webpack & vue builder
* Copyright 2018/4/16 YuJinbao
* Released under the MIT License
* Mail <EMAIL>
*/
const fs = require('fs')
const path = require('path')
const chalk = require('chalk')
const ora = require('ora')
const opn = require('opn')
const express = require('express')
const webpack = require('web... |
import { Solver } from "p2";
import util from "./util.js";
var helper = require("./helper.js");
var laserConfig = require("./LaserApiConfig").default;
var Util = require("./util").default;
var CanvasVideo = require("./CanvasVideo").default;
var LaserApi = require("./LaserApi.js").default;
var LaserApiPresets = require(... |
/*
* Inspired by QRCodeGenerator | MIT License (https://github.com/kazuhikoarase/qrcode-generator)
*/
import {
PAD0,
PAD1,
ERROR_CORRECTION_LEVEL
} from '../constants/index'
import {
QRUtil,
QRRSBlock,
qrPolynomial,
qrBitBuffer,
qrNumber,
qrAlphaNum,
qr8BitByte,
qrKanji,
createDataURL
} from '... |
_ = lodash;
var NULL = 'NULL',
escapeMetaCharacters = function (string) {
string = string.replace(/\$/g, '\\uff04').replace(/\./g, '\\uff0E');
//NOTE: this method is a workaround for mongo not allowing certain characters in the keys
//however, the method replaces all the characters in both ... |
// global variable
var map;
var route;
var zoomLevel = 0;
var dPoints; // testing for global
var count = 0;
const MIN_ZOOM = 3.5;
const MAX_ZOOM = 15;
var current_mapCenter;
var init_mode ;
var brush_mode = false;
var RADIUS = 800000;
var cities = [
{'latitude':55.963326,'longitude': -3.191736, 'nam... |
// npm imports
const PIXI = require("pixi.js");
const particles = require("pixi-particles");
const Planck = require("planck-js");
// local modules
const {
InputManager,
GameStateController,
GameStateEnums
} = require("tune-mountain-input-manager");
const Parallax = require("./Parallax");
const Bezier = require("./... |
"use strict";
/* Generated from:
* ap-northeast-1 (https://d33vqc0rt9ld30.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 39.2.0,
* ap-northeast-2 (https://d1ane3fvebulky.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 39.2.0,
* ap-northeast-3 (https://d2zq... |
'use strict';
const _ = require('lodash');
const fs = require('fs');
const path = require('path');
// const ipc = require('node-ipc');
const Twitter = require('twitter');
const Filters = require('../lib/filters.js');
const Managed = require('../lib/managed.js');
const UserDB = require('../lib/db-user.js');
const iterw... |
/* Copyright (c) Business Objects 2006. All rights reserved. */
var L_bobj_crv_MainReport = "Raport g\u0142\u00F3wny";
// Viewer Toolbar tooltips
var L_bobj_crv_FirstPage = "Id\u017A do pierwszej strony";
var L_bobj_crv_PrevPage = "Id\u017A do poprzedniej strony";
var L_bobj_crv_NextPage = "Id\u017A do nast\u011... |
let stepVideo = '.sv';
let stepBlockPreview = 'bp';
let stepCodeBlocks = '.scb .col-md-3';
let constants = {
rhythmFrame: '#rw',
csnapFrame: '#csnap-pro',
backSetClass: "is-prev",
forwardSetClass: "is-next",
stepDiv: "stepline",
stepNumber: '.step_numb',
stepIconClass: 'gen-icon',
step... |
/*
* marcrecord.js v1.0.0
* Copyright 2014-2021 PTFS/LibLime
* https://github.com/liblime/marcrecord-js
*/
/** @class
* @param tag {string} three character field label.
* @param field_data {object} MARC-JSON field data as Object OR Pass as string for data fields.
* @param field_data.ind1 {string} 1-char indicato... |
// Log System
import * as logger from 'loglevel';
let log = logger.getLogger('Loader');
//import path from 'path';
//import System from 'systemjs/dist/system';
import { divideURL, emptyObject, getConfigurationResources, buildURL } from '../utils/utils';
import AddressAllocation from '../allocation/AddressAllocation';
... |
import React, { useState, useEffect, Fragment } from 'react'
import { capitalize, isBrowser } from './utils'
var uniqid = require('uniqid')
var emailValidation = require('email-validator')
export const idFromLabel = label =>
label
.normalize('NFD')
.replace(/[\u0300-\u036f]/g, '')
.toLowerCase()
.replace(/[^... |
'use strict';
import $ from './jquery';
import * as logger from './internal/log';
import Backbone from './backbone';
import classNames from './restful-table/class-names';
import CustomCreateView from './restful-table/custom-create-view';
import CustomEditView from './restful-table/custom-edit-view';
import CustomReadV... |
/**
* A module containing helper and callback functions for continuous integration.
*/
const fs = require('fs');
const path = require('path');
const cp = require('child_process');
const createDebug = require('debug');
const localtunnel = require('localtunnel');
const kill = require('tree-kill');
const shell = requir... |
import { dataItemToValueDefaultImplementation, Sheet } from "./Sheet";
import React, { createContext, useCallback, useContext, useEffect, useMemo, useRef } from "react";
import { IoArrowDown, IoArrowUp } from "react-icons/io5";
import Vertical from "../layout/Vertical";
import Horizontal from "../layout/Horizontal";
im... |
'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]; } } }... |
prettify.debug = aIV.debug('prettify');
/**
* ---------------------------------------------
* Private Variable (config)
* ---------------------------------------------
* @desc The config settings.
* @type {Object<string, (number|boolean)>}
* @private
*/
var config;
... |
/*
* pfSenseHelpers.js
*
* part of pfSense (https://www.pfsense.org)
* Copyright (c) 2004-2018 Rubicon Communications, LLC (Netgate)
* 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 c... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototy... |
/**
* 當menu過多時,自動適配,避免UI錯亂
* @param {*} n
* 傳入 1 sidebar打開時
* 傳入 2 正常狀態下
*/
const blogNameWidth = $('#blog_name').width()
const menusWidth = $('.menus').width()
const sidebarWidth = $('#sidebar').width()
const adjustMenu = function (n) {
const $nav = $('#nav')
let t
if (n === 0) t = true
else if (n ... |
var utils = require('./utils'),
lexer = require('./lexer');
var _t = lexer.types,
_reserved = ['break', 'case', 'catch', 'continue', 'debugger', 'default', 'delete', 'do', 'else', 'finally', 'for', 'function', 'if', 'in', 'instanceof', 'new', 'return', 'switch', 'this', 'throw', 'try', 'typeof', 'var', 'void', 'wh... |
/**
* @license
* Copyright 2017 The Lighthouse Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* ... |
import Component from '@ember/component';
import layout from './template';
import {
get, computed, setProperties, set, defineProperty, observer
} from '@ember/object';
import { inject as service } from '@ember/service';
import CrudCatalog from 'shared/mixins/crud-catalog';
import { requiredError } from 'shared/utils/... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Schema = void 0;
const CustomError = require("./Error");
const utils = require("./utils");
const Internal = require("./Internal");
const Document_1 = require("./Document");
const Model_1 = require("./Model");
class DynamoDBType {
c... |
'use strict';
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); ret... |
/* LICENSE
_This file is Copyright 2018 by the Image Processing and Analysis Group (BioImage Suite Team). Dept. of Radiology & Biomedical Imaging, Yale School of Medicine._
BioImage Suite Web is licensed under the Apache License, Version 2.0 (the "License");
- you may not use this software except in com... |
var numComplaints = 0;
var numMedications = 0;
var numRows = 1;
var numRowMed = 1;
var numRowObs = 1;
var numRowInves = 1;
var curIdComplaints = 1;
var curIdMedications = 1;
var tempC = 0;
var prepared = getDDetails();
var tflag = true;
/**
* Retrive details of the current user
* @param {}
* @return {user name}
*/... |
var CANVAS_SIZE = 2048;
var ANIMATE_TIME_MS = 600;
var ANIMATE_FLASH_MS = 600;
var BGM_FADE_MS = 600;
var QUADRANT_LABEL = [
"一",
"二",
"三",
"四"
];
var QUADRANT_STRING = [
"一", // "第一象限に", // dai-ichishō gen ni
"二", // "第二象限に", // dai-nishō gen ni
"三", // "第三象限に"... |
import PropTypes from 'prop-types'
import React, { Component } from 'react'
import {Keyboard, ActionSheetIOS, DrawerLayoutAndroid, ToastAndroid, Clipboard, Alert, ListView, View, Platform, KeyboardAvoidingView, Linking} from 'react-native';
import {connect} from 'react-redux'
import Share from 'react-native-share'
impo... |
/**
* @file santd Table 表格组件
* @author <EMAIL>
**/
import san, {DataTypes} from 'san';
import isEmpty from 'lodash/isEmpty';
import Icon from '../icon';
import Spin from '../spin';
import Pagination from '../pagination';
import {classCreator} from '../core/util';
import renderEmpty from '../core/util/renderEmpty';
... |
/* Contents:
- Class LayoutMgr
- function createArrow
- Class Arrow
- Arrow helper functions
- Drag functions
- class RowMgr - Manages the rows for an ArgMap.
- class Row - Contains the nodes for one row plus row state.
- Extensions to Javascript Array, like last and removeFirstOccurrance
*/
class LayoutMgr { // Manage... |
// Constants
const BATTLE_STATS = ['Hit Points','Attack','Defense','Special Attack','Special Defense','Speed'];
const BATTLE_STATS_ABBR = ['HP','Atk','Def','SpA','SpD','Spe'];
const LANGUAGES = { 'JPN': 'Japanese', 'ENG': 'English', 'FRE': 'French', 'GER': 'German', 'ITA': 'Italian', 'KOR': 'Korean', 'SPA': 'Spanish', ... |
var NUM_EXPOSURES = 1;
var CURRENT_EXPOSURE = 1;
var jwSettings ={} ,affSettings = {};
var videoPlayer = {
playerInstance: null,
version: "1.4",
debugMode: true,
recordLogs: true,
hasConsole: false,
settings: {
androidhls: false,
aspectRatio: "16:9",
controls: false,
... |
/*
Copyright (c) 2018-2019 Qualcomm Technologies, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the
disclaimer below) provided that the following conditions are met:
* Redistributions of source code must retai... |
import { React, useState, useEffect } from "react";
import axios from "axios";
import DoubleUserForm from "../components/formdata/DoubleUserForm";
import DoughnutChart from "../components/DoughnutChart";
import RatingGraph from "../components/RatingGraph";
import MixedRatingGraph from "../components/MixedRatingGraph";... |
/**
* Created by James on 16/09/2016.
*/
var jsgui = require('lang-mini');
//var Data_Structures = require('./jsgui-data-structures');
var Collection = require('./collection');
//var Data_Grid = require('jsgui2-data-grid');
var j = jsgui;
var each = j.each;
var tof = j.tof;
var atof = j.atof;
var is_... |
/************************** SENG513 Final Project ***************************
_____ ____ _ _ ____ ____ ____ _ __ _____
/ ____/ __ \| | | | /\ | _ \ / __ \ / __ \| |/ // ____|
| | | | | | | | | / \ | |_) | | | | | | | ' /| (___
| | | | | | | ... |
jQuery.sap.require("sap.m.MessageBox");
jQuery.sap.require("sap.m.MessageToast");
jQuery.sap.require('com.tutorial.service.measureobject.MeasurementObjectTypesFactory' + m_urlVersion);
jQuery.sap.require('com.tutorial.service.measureobject.MeasurementObjectTypesService' + m_urlVersion);
jQuery.sap.require('com.tutoria... |
import { LitElement, html, TemplateResult } from 'beaker://app-stdlib/vendor/lit-element/lit-element.js'
import { render } from 'beaker://app-stdlib/vendor/lit-element/lit-html/lit-html.js'
import { repeat } from 'beaker://app-stdlib/vendor/lit-element/lit-html/directives/repeat.js'
import { parser } from './lib/parser... |
/* Copyright 2018 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.
*/
'use strict';
import './cp-flex.js';
import './cp-icon.js';
import './recommended-options.js';
import '@chopsui/chops-button';
import '@chopsui/chops-c... |
var timerCycle=10;//ms
var animationTime=5,animationTimeStep=1,timeBetweenLines=false,inputBarMode='off',countLineBreakIntoAccuracy=false;//配置数据
var cheatMode=false,spUnit='WPM-all',accuracyLine=false;
var totalSpeedWPM=0,lineSpeedWPM=0,totalSpeedCPS=0,lineSpeedCPS=0,outPutSpeed=0;
var infoMode='passage_welcome';
var ... |
import React, { useEffect, useRef } from 'react';
import { NavLink, useLocation } from 'react-router-dom';
function Sidebar({
sidebarOpen,
setSidebarOpen
}) {
const location = useLocation();
const { pathname } = location;
const page = pathname.split('/')[1];
const trigger = useRef(null);
const sidebar ... |
// ------------------ MySEO ------------------ //
/*----------------------------------------------------*/
/* Toggle Search Advance
/*----------------------------------------------------*/
$(document).ready(function(){
$("#searchAdvance").click(function(){
selectedEffect = 'fold';
$("#effec... |
const Tense = {
PRESENT: "PRESENT",
FUTURE_IMPERATIVE: "FUTURE_IMPERATIVE",
INFINITIVE: "INFINITIVE",
HABITUAL: "HABITUAL",
PLUPERFECT: "PLUPERFECT",
FUTURE_PROGRESSIVE: "FUTURE_PROGRESSIVE",
REPORTATIVE: "REPORTATIVE",
PAST: "PAST",
FUTURE: "FUTURE",
PRE_INCIPIENT: "PRE_INCIPIEN... |
// =============================================================
// Models
const File = {
files: [],
}
// =============================================================
// Controller
const state = {};
const minSliceCount = 4;
const minSize = 512;
const defaultSize = 4 * 1024 * 1024 // 4MB;
const handleDefault = e... |
/* Utilities */
import React, { useEffect, useState } from 'react';
import moment from 'moment';
import Http from '../../Http';
import { connect } from 'react-redux';
/* Material Design */
import {
Form,
Row,
Col,
Input,
Typography,
notification,
Modal,
Table,
Button,
List,
Spin,
BackTop
} from 'antd';
imp... |
import schemaStore from './schemaStore'
import utils from './utils'
import parser from 'js-sql-parser'
let astUtils = {}
/* ############# PRIVATE FUNCTIONS ############# */
// table has the structure {name:'tableName', columns:['column1', 'column2', 'column3']}
function isTableRedundant(table, tableIndex, table... |
'use strict';
var crypto = require('crypto');
var libmime = require('libmime');
var punycode = require('punycode');
var dns = require('dns');
/**
* @namespace DKIM Signer module
* @name dkimsign
*/
module.exports.DKIMSign = DKIMSign;
module.exports.DKIMVerify = DKIMVerify;
module.exports.generateDKIMHeader = gener... |
/*
* @author: FusionCharts Team (SB)
* @description: FusionCharts Export Component
*
* @publish: 2009-04-05
* @version: 1.0.1 (build 351)
*/
/*
* Internal ChangeLog / Version History:
* ============================
*
* 0.1 - 27/01/2009
* Just created comments!
*
* 1.0 - 20/01/2009
* Fir... |
var Chart = function(container) {
var $this = this;
$this.initialized = false;
$this.data = null;
$this.height = null;
$this.width = null;
$this.graphSize = null;
$this.x_scale = null;
$this.y_scale = null;
$this.ticks = null;
$this.title = null;
$this.annotation = null;
$this.displayPopups = ... |
// Copyright (c) 2017 Fabius <<EMAIL>>
// Released under the MIT license
//
// Window Corner Preview Gnome Extension
//
// Purpose: It adds a menu to Gnome panel from which you can turn on a preview of any desktop window
// helping you watch a movie or a video while studying or working
//
// This is a fork of ... |
/**
*
*/
$(function() {
"use strict";
$(window).on("load", function() {
// 1. preloader
$("#preloader").fadeOut(600);
$(".preloader-bg").delay(400).fadeOut(600);
// 2. fadeIn.element
setTimeout(function() {
$(".fadeIn-element").delay(600).css({
... |
var _ = require('lodash')
var ast = require('./src/ast')
var tdop = require('./src/tdop')
var test = require('ava')
var tokenizer = require('ecmaless-tokenizer')
var parseExpression = function (src) {
var r = tokenizer(src)
if (r.type !== 'Ok') {
return r
}
return tdop.parseExpression(r.value)
}
var rmLoc... |
/**
* Created by jeanc_000 on 11/04/2017.
*/
// Variables globales
var nbMinutesParCommercant = 7;
var map;
var markerDepart = null;
var markers = [];
var markersBoutiques = [];
var markersConsignes = [];
var largeInfoWindow;
var infoWindow;
var depart;
var etapes = [];
var steps = [];
var destination;
var trajet;
va... |
/*jslint bitwise: true, node: true */
'use strict';
var express = require('express');
var app = express();
var http = require('http').Server(app);
var io = require('socket.io')(http);
var SAT = require('sat');
// Import game settings.
var c = require('../../config.json');
// Import utilities.
var util = require('./l... |
/**
* @author technohippy / https://github.com/technohippy
* @author Mugen87 / https://github.com/Mugen87
*
* 3D Manufacturing Format (3MF) specification: https://3mf.io/specification/
*
* The following features from the core specification are supported:
*
* - 3D Models
* - Object Resources (Meshes and Compone... |
/* Copyright 2012 Mozilla Foundation
*
* 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... |
/*****************************************************************************
日期资料
*****************************************************************************/
var lunarInfo=new Array(
0x4bd8,0x4ae0,0xa570,0x54d5,0xd260,0xd950,0x5554,0x56af,0x9ad0,0x55d2,
0x4ae0,0xa5b6,0xa4... |
/* This notice must be untouched at all times.
wz_tooltip.js v. 3.34
The latest version is available at
http://www.walterzorn.com
or http://www.devira.com
or http://www.walterzorn.de
Copyright (c) 2002-2004 <NAME>. All rights reserved.
Created 1. 12. 2002 by <NAME> (Web: http://www.walterzorn.com )
Last modified:... |
/*
.----------------. .-----------------. .----------------. .----------------. .-----------------. .----------------.
| .--------------. || .--------------. || .--------------. | | .--------------. || .--------------. || .--------------. |
| | _________ | || | ____ _____ | || | __ | | | | _____ _... |
// Event Sourcing DataBase
// * Only allows changes via messages that are stored and processed. This allows easy
// replication, debugging and possibly even rollback
// * All the database tables participating should only be changed via events
// * The current version is stored in the SQLite `user_version` pragma and ... |
import React, { PureComponent } from "react";
import PropTypes from "prop-types";
import { injectIntl } from "react-intl";
import { connect } from "react-redux";
import cx from "classnames";
import { ActivityPanel } from "./ActivityPanel";
import { ExportPanel } from "./ExportPanel";
import { Onboard } from "./Onboard"... |
/**
* 六星开源商城系统 - 团队十年电商经验汇集巨献!
* =========================================================
* Copy right 2015-2025 湖南六星教育网络科技有限公司, 保留所有权利。
* ----------------------------------------------
* 官方网址: http://www.sixstaredu.com
* 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和使用。
* 任何企业和个人不允许对程序代码以任何形式任何目的再发布。
* =================... |
function fetchXmlFile(url) {
return new Promise(function (resolve, reject) {
var xhr = new XMLHttpRequest();
xhr.open('get', url, true);
xhr.responseType = 'document';
xhr.onload = function () {
var status = xhr.status;
if (status == 200) {
res... |
/* PLUGINS SELECT2 EN EL SELECTOR DE DOCUMENTO EN EL FORMULARIO DE GUARDAR ORDEN DE TRABAJO PLOTEO */
$('#tipoDocumentoPloteo').select2({
placeholder: 'Seleccione un documento',
allowClear: true,
minimumResultsForSearch: Infinity,
})
$('#editarTipoDocumentoPloteo').select2({
placeholder: 'Seleccione un documento',
... |
/**
* Copyright 2019 IBM All Rights Reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
const TYPE = 'DiscoveryService';
const Long = require('long');
const {byteToNormalizedPEM, checkParameter, getLogger} = require('./Utils.js');
const ServiceAction = require('./ServiceAction.js');
const DiscoveryHandler = requ... |
_gaq.push(['_trackPageview']);
// If awaiting activation
var waiting = true;
// If trusted exit, for exit confirmation
var trustedExit = false;
// Used to fade out subtitles after calculated duration
var subtitleTimer = false;
var subtitleVanishBaseMillis;
var subtitleVanishExtraMillisPerChar;
var subtit... |
let save = {
"clicks": 0,
"presPoints": 0,
"clickMult": 1,
"upCost": 50,
"autoMult": 0,
"autoCost": 75,
"cannonMult": 0,
"cannonCost": 1500,
"turretMult": 0,
"turretCost": 2500,
"presLvl": 0,
"hit50mill": false,
"hit100mill": false,
"hit150mill": false,
"hit200mill": false,
"packSel": 0,
"hasRoyalePack... |
'use strict';
var async = require('async');
var bignum = require('../helpers/bignum.js');
var constants = require('../helpers/constants.js');
var ip = require('ip');
var Router = require('../helpers/router.js');
var sandboxHelper = require('../helpers/sandbox.js');
var sql = require('../sql/loader.js');
var util = req... |
'use strict';
const KNOWNOT = 0x00;
const HAVESEEN = 0x1;
const KNOWHERE = 0x2;
const KNOWALL = (HAVESEEN | KNOWHERE);
function paint() {
if (mazeMode) {
drawmaze();
botside();
bottomline();
}
printStats();
blt();
DEBUG_PAINT++;
}
function blt() {
if (amiga_mode) {
// do nothing
... |
var SilH={}
function getSilArray(){
var temp = new Array(state.silhouettes.length);
for(var i = 0; i < state.silhouettes.length; i++){
temp[i] = state.silhouettes[i].value;
}
return temp;
}
function resetAllSelected(state){
var layers = state.map.layer.getLayers();
if(state.selectedList && state.s... |
const queue = require("../../workers/queue");
const models = require("../../../models");
const i18n = require("../../utils/i18n");
const async = require("async");
const moment = require("moment");
const log = require("../../utils/logger");
const _ = require("lodash");
const fs = require("fs");
const Excel = require("ex... |
// 读取一个frame,如果出错,抛出错误
// 如果当前读不到,等到下一个readable事件时再读取。
// 只有真正的拿到数据后才返回。回调原则。
C.step = function(cb) {
var self = this;
function recv() {
var f;
try {
f = self.recvFrame();
}
catch (e) {
cb(e, null);
return;
}
if (f) cb(null, f);
else self.stream... |
"use strict";
function _typeof(obj) { 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 !== Symbol.prototype ? "sym... |
var { isInstanceOfGenerativeDesign } = require('util');
var { m4x } = require('m4x');
var m4 = new m4x();
function Mesh() {
this.form, this.u_count, this.v_count, this.u_min, this.u_max, this.v_min, this.v_max;
if (isInstanceOfGenerativeDesign(arguments[0])) {
// save reference to GenerativeDesign if passed in
... |
/*
* eGov SmartCity eGovernance suite aims to improve the internal efficiency,transparency,
* accountability and the service delivery of the government organizations.
*
* Copyright (C) 2017 eGovernments Foundation
*
* The updated version of eGov suite of products as by eGovernments Founda... |
"use strict";
/*
* Copyright 2018 resin.io
*
* 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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.