text stringlengths 8.5k 48.7k |
|---|
var _AJAX_LOADING = false;
// Resize the tabs once the document is properly loaded
// @todo most of this file needs to be tidied up using jQuery
if(typeof(jQuery) != 'undefined') {
(function($) {
$(document).ready(function() {
window.onresize(true);
});
//Turn off autocomplete to fix the access tab randomly... |
// Render Prop
/* global google */
/* global tw */
import React from 'react';
import Geosuggest from 'react-geosuggest';
import styled from '@emotion/styled';
import { colors } from "../components/theme.js";
import MapGL, {FlyToInterpolator, Marker} from 'react-map-gl';
import Space from "../components/space";
import I... |
//executa ao terminar o carregamento da pagina, no escopo da pagina
function etaGetSID(){
if(!document.getElementsByClassName("botaoAlternaMenu")[0]){
return;
}
// localStorage['sessid']="teste";
// localStorage['tree']="teste";
localStorage['time']=Date.now();
if(!localStorage["nightTheme"]){
loca... |
var _email="";
var _pass="";
var cat="Inicio";
var temp;
var comp=0;
var activo=false;
var reicomp=false;
var margen_arriba=null;
var busquedasRecientes=[];
//funciones que se cargan cuando la aplicación esta lista
$(document).ready(function(){
//función que activa la barra de busqueda de la aplicación
$(... |
const express = require("express");
const mongoose = require("mongoose");
const Plant = require("./models/plant");
const url = require("url");
const ejs = require("ejs");
const multer = require("multer");
const path = require("path");
const bodyParser = require("body-parser");
const fs = require("fs");
const app = new... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
var _asyncToGenerator2 = _interopRequireDef... |
$(function($) {
$.ajaxSetup({
contentType : "application/x-www-form-urlencoded;charset=utf-8",
complete : function(XMLHttpRequest, textStatus) {
var sessionstatus = XMLHttpRequest
.getResponseHeader("sessionstatus");
if (sessionstatus == "timeout") {
$.messager.alert("超时", "会话超时,请重新登录!", "info", fun... |
"use strict";
var canvas;
var gl;
var NumVertices = 36;
//var points = [];
//var colors = [];
var program;
var xAxis = 0;
var yAxis = 1;
var zAxis = 2;
var axis = 1;
var theta = [0, 0, 0];
var thetaLoc;
var tAxis = [0, 0, 1];
var angle = 0.0;
var trackingMouse = false;
var trackballMove = ... |
/**
* Copyright 2020 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
//leector del documento
$(document).ready(function () {
eventos_estaticos()
obtener_cuadrantes()
llenar_indicadores()
});
/********************************
variables globales
*********************************/
//Arreglos
var CUADRANTES = [], PERSONAS = [], DEPARTAMENTOS = [], PUESTOS = [], PER... |
import { g } from './global.js'
import * as THREE from '../lib/three.js/build/three.module.js'
window.THREE = THREE
import { OrbitControls } from '../lib/three.js/examples/jsm/controls/OrbitControls.js'
import * as CANNON from '../lib/cannon-es_my.js'
window.CANNON = CANNON
import cannonDebugger from '../lib/... |
const assetsPath = 'https://niksfiles.s3.eu-west-2.amazonaws.com/';
THREE.AnimationUtils.subclip = function( sourceClip, name, startFrame, endFrame, fps ) {
fps = fps || 30;
var clip = sourceClip.clone();
clip.name = name;
var tracks = [];
for ( var i = 0; i < clip.tracks.length; ++ i ) {
var track ... |
import { issuesAdapter } from '../adapters/IssuesAdapter'
import { Issue } from './issue'
import loadingImg from '../images/loading.gif'
class Issues {
constructor() {
this.openIssuesArray = []
this.closedIssuesArray = []
this.adapter = issuesAdapter
this.createNewIssue = false
this.viewStatus = ... |
/* μlogger
*
* Copyright(C) 2017 <NAME> (www.fabiszewski.net)
*
* This is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* Thi... |
'use strict';
// __________________________________ Global Variables __________________________________
const questionNumber1 = [[],[],[],[]];
const questionNumber2 = [[],[],[],[]];
const questionNumber3 = [[],[],[],[],[]];
const questionNumber4 = [[],[],[]];
const questionNumber5 = [[],[],[],[]];
const questionNumb... |
/*$Id: navigation.js,v 2030:c5f590d454a5 2011/07/19 10:33:16 prashantd $*/
var navOffsetParent;
window.mobilePageCanvasReady = true;
var childPage;
var ofwParent;
var navTop;
var bFlg=false;
var iconMenu=false;
/*var touch=false;
var uagent = navigator.userAgent;
if(uagent.indexOf("iPhone")!=-1||uagent.indexOf("iPad")!... |
const ErrorCollector = require('../error-collector')
const CsvwPropertyChecker = require('./property-checker')
const metadataError = require('./metadata-error')
const ErrorMessage = require('../error-message')
const NumberFormat = require('./number-format')
const DateFormat = require('./date-format')
class Column {
... |
// -*- mode: js; indent-tabs-mode: nil; js-basic-offset: 4 -*-
//
// This file is part of Genie
//
// Copyright 2020 The Board of Trustees of the Leland Stanford Junior University
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
//... |
/**
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 o... |
'use strict';
const PROP_KEY_CURRENT_FOLDER = 'CurrentFolderInfo'; // 現在のフォルダ情報を保存するキー
const PROP_KEY_FILE_TABLE_CONDITION = 'FileTableCondition'; // 課題ファイル表示条件のキー
const propKeys = [PROP_KEY_CURRENT_FOLDER,PROP_KEY_FILE_TABLE_CONDITION];
function doGet(e) {
return HtmlService.createTemplateFromFile('index').... |
import { PolymerElement } from '@polymer/polymer/polymer-element.js';
import { html } from '@polymer/polymer/lib/utils/html-tag.js';
import { dedupingMixin } from '@polymer/polymer/lib/utils/mixin.js';
import { FormElementMixin } from '@fooloomanzoo/input-picker-pattern/form-element-mixin.js';
import { DatetimeMixin, m... |
/* -------------------------------------------------------------------------- */
'use strict';
import * as dom from './dom-templating.js';
import * as prims from './primitives.js';
import * as tagExpression from './tag-expression.js';
import * as common from './common.js';
const {
dbg,
galk,
GalkError,
ensureSub... |
var appc = require('node-appc'),
async = require('async'),
cleanCSS = require('clean-css'),
fs = require('fs'),
crypto = require('crypto'),
jsanalyze = require('titanium-sdk/lib/jsanalyze'),
os = require('os'),
path = require('path'),
ti = require('titanium-sdk'),
wrench = require('wrench'),
UglifyJ... |
/**
* The overview of the chart's series
*/
var Legend = Highcharts.Legend = function (chart, options) {
this.init(chart, options);
};
Legend.prototype = {
/**
* Initialize the legend
*/
init: function (chart, options) {
var legend = this,
itemStyle = options.itemStyle,
padding,
itemMarginTop = o... |
import { or, readOnly, equal, reads, alias } from '@ember/object/computed';
import { later, cancel } from '@ember/runloop';
import { isEmpty } from '@ember/utils';
import { assign } from '@ember/polyfills';
import { getOwner } from '@ember/application';
import Evented from '@ember/object/evented';
import Service, { inj... |
/**
* for documentation, see ./README.md or https://github.com/NiklasGollenstede/multiport/blob/master/README.md
*/
/// @ts-check
/**
* @typedef {(this: any, ...args: any[]) => Promise<any>|any} Handler - Message handler function.
*/
/**
* @typedef {[ name: string, id: number, args: any[], ]} RawMessage - Mess... |
'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]; } } }... |
const DamageColors = ["black", "blue", "limegreen", "gold", "aqua"];
const ProfessionNames = {
PIONEER: "先锋",
WARRIOR: "近卫",
SNIPER: "狙击",
TANK: "重装",
MEDIC: "医疗",
SUPPORT: "辅助",
CASTER: "术师",
SPECIAL: "特种",
// "TOKEN": "召唤物",
// "TRAP": "装置",
};
const EnemySeries = {
def: [...Array(26).keys()... |
const fetch = require('node-fetch');
const Logger = require('../modules/logger');
const { DateTime, Duration } = require('luxon');
const { calculateRate, prettyPrintArrayAsString, intToHuman, integerComma } = require('../modules/format-utils');
const { getSearchedEntity } = require('../modules/search-helpers');
const {... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
//alert('hola');
$(document).ready(function () {
$('#btn_saveCuenta').click(function () {
guardarDatos('Create');
});... |
/*var _elibrary_app_admin_root = 'http://localhost/elibrary/elibrary/admin/';
var _elibrary_app_user_root = 'http://localhost/elibrary/elibrary/portal/';
var _elibrary_app_root = 'http://localhost/elibrary/elibrary/';
*/
//alert('loaded');
if (!String.prototype.trim) {
String.prototype.trim = function() {
... |
var db = firebase.firestore();
// Manage Menu Button event listener
$('#hamburger-button').click(function() {
openNavMenu();
});
function openNavMenu() {
$('nav').css("transition", "0.5s");
$('nav').width('60%');
$('nav > li > a').show();
$('nav > li > a').css('opacity', '1');
$('#close-butto... |
/**
* @name DevTools
* @author Zerthox
* @version 0.3.0
* @description Utilities for development.
* @authorLink https://github.com/Zerthox
* @website https://github.com/Zerthox/BetterDiscord-Plugins
* @source https://github.com/Zerthox/BetterDiscord-Plugins/tree/master/src/DevTools
* @updateUrl https://raw.gith... |
'use strict';
const g = require('strong-globalize')();
const util = require('util');
const _ = require('lodash');
const uuid = require('uuid/v1');
const assert = require('assert');
const couchbase = require('couchbase');
const n1qlQuery = couchbase.N1qlQuery;
const SqlConnector = require('loopback-connector').SqlCon... |
function Swipe(E, w) {
var O = function() {
};
var k = function(P) {
setTimeout(P || O, 0);
};
var i = {
addEventListener : !!window.addEventListener,
touch : ("ontouchstart" in window) || window.DocumentTouch
&& document instanceof DocumentTouch,
transitions : (function(P) {
var R = [ "t... |
import {mat4, quat, vec2, vec3} from 'gl-matrix'
import _, {cloneDeep, every, filter} from 'lodash'
import earcut from 'earcut'
import {DistantLight} from './distant-light'
import {SHADER_IMPLEMENT_STRATEGY} from './shader-impl'
import {faceVerticesPropNameDict} from './constants'
import sphere from 'primitive-sphere'
... |
function deleteMessage(index) {
swal({
title: "Are you sure?",
text: "You will not be able to recover this Message Data!",
type: "warning",
showCancelButton: true,
confirmButtonColor: "#DD6B55",
confirmButtonText: "Yes, delete it!",
cancelButtonText: "No, canc... |
#!/usr/bin/env node
/* Luna v1.1.1 */
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var chalk = _interopDefault(require('chalk'));
var ProgressBar = _interopDefault(require('progress'));
const constant = /\b(\d+|true|false)\b/g;
const... |
////////////////////////////////////////////////////////////
//////////////////////// Set-up ////////////////////////////
////////////////////////////////////////////////////////////
var svg, wrapper, opacityCircles, color, height, margin, width, height, voronoi, voronoiGroup, cText, managerSelected;
//Quick fix for ... |
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
ext... |
import { config } from './config';
var CONSTANTS = require('./constants');
var _loggingChecked = false;
var t_Arr = 'Array';
var t_Str = 'String';
var t_Fn = 'Function';
var t_Numb = 'Number';
var toString = Object.prototype.toString;
let infoLogger = null;
try {
infoLogger = console.info.bind(window.console);
} ca... |
const curl = `curl -i -H "Content-Type: application/json"`
const token = `-H "Authorization: <KEY>"`
export default {
curl: curl + token,
user: {
"type": "user",
"user_id": "773e5e77-4107-45c2-b648-8fc722ed77f5",
"identity_number": "7000",
"phone": "+8613801380138",
"full_name": "<NAME>",
"... |
// used to read keyboard input while at the same time
// reading piped stdin input and printing to stdout
const keypress = require( 'keypress' )
const ttys = require( 'ttys' )
const stdin = ttys.stdin
const stdout = ttys.stdout
// get printed width of text
// ex. 漢字 are 4 characters wide but still
// only 2 character... |
// instrument pack metadata
class InstrumentPack {
constructor(name, displayName, formatName, double=false, monoPerc=false, monoBass=false, monoMel=false) {
this.name = name;
this.displayName = displayName;
this.formatName = formatName;
this.mono = {};
this.mono["perc"] = mon... |
//弹窗函数对象
function bpop() {
this.speed = 0
}
/**
* 添加弹窗
* info 内容,type类型:(1只有确认)(2确认-取消), callback,默认false
*/
bpop.prototype.add = function(info, type, callback) {
this.clean();
var btn = '<span class="btn-item btn-item-red btn-confirm" onclick="bpop.clean('+callback+');">确认</span>';
btn = type == 2 ? btn = btn + '<... |
/**
* Copyright (c) 2017 ~ present NAVER Corp.
* billboard.js project is licensed under the MIT license
*/
import {
axisTop as d3AxisTop,
axisBottom as d3AxisBottom,
axisLeft as d3AxisLeft,
axisRight as d3AxisRight
} from "d3-axis";
import CLASS from "../config/classes";
import {capitalize, isArray, isFunction, ... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AbstractSqlDriver = void 0;
const core_1 = require("@mikro-orm/core");
const QueryBuilder_1 = require("./query/QueryBuilder");
const SqlEntityManager_1 = require("./SqlEntityManager");
class AbstractSqlDriver extends core_1.DatabaseDri... |
/**
* Copyright 2017 Google Inc.
*
* 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 i... |
// Generated by ReScript, PLEASE EDIT WITH CARE
'use strict';
var Deck = require("./deck.bs.js");
var Steque = require("./steque.bs.js");
var Deckrev = require("./deckrev.bs.js");
var Dequeue = require("./dequeue.bs.js");
var List_like = require("./list_like.bs.js");
var include = List_like.Make({
empty: Steque... |
const Eris = require("eris");
const redis = require("redis");
const pg = require("pg");
const config = require("./config.json");
var client = new Eris(config.token, config.options);
var sub = redis.createClient(config.redisconfig);
const bluebird = require("bluebird");
bluebird.promisifyAll(redis.RedisClient.pro... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Red Hat, Inc. All rights reserved.
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*----------... |
const dict = {
"a" : {
"interjection" : "ah, ha, uh, oh, ooh, aw, well (emotion word)"
},
"akesi" : {
"noun" : "non-cute animal, reptile, amphibian"
},
"ala" : {
"interjection" : "no!",
"modifier" : "no, not, none, un-",
"noun" : "nothing, negation, zero"
... |
/* jslint browser: true */
/* global $, jQuery, jsPDF */
// global timeout filters
var decklistChangeTimer = null;
var pdfChangeTimer = null;
// When the page loads, generate a blank deck list preview
$(document).ready(function() {
// bind events to all the input fields on the left side, to generate a PDF on change... |
var DEFAULT_SCHEDULE_POLL_INTERVAL = 15; //minutes
var FN_BASE_URL = 'https://us-central1-causal-shell-204520.cloudfunctions.net/';
var PAIR_URL = FN_BASE_URL + 'pair';
var uuid;
$(function() {
function updateData(data) {
if (data.newwindow) {
$("#newwindow").prop("checked", true);
}
if (data.all... |
/* eslint-disable */
// algorithm taken from here
// https://github.com/tiesluiten/HuisfeestVisual/blob/master/Kaleidoscope
const PVector = p5.Vector;
const BORDER_WIDTH = 60;
const startTime = Date.now();
let nPalettes = 10;
let palettes = [];
let framesPerPalette = 500;
let nBlackPalettes = 2;
let colorParam = 0;
let... |
// Packages
var schools = [
{ "Navn": "10 KCD", "Nummer": "853" },
{ "Navn": "Akademisk Studenterkursus og HF", "Nummer": "645" },
{ "Navn": "Allerød Gymnasium", "Nummer": "51" },
{ "Navn": "Allikelund Gymnasium", "Nummer": "768" },
{ "Navn": "Alssundgymnasiet Sønderborg", "Nummer": "161" },
{ "Navn": "AU - Insti... |
'use strict';
function styleInject(css, ref) {
if ( ref === void 0 ) ref = {};
var insertAt = ref.insertAt;
if (!css || typeof document === 'undefined') { return; }
var head = document.head || document.getElementsByTagName('head')[0];
var style = document.createElement('style');
style.type = 'text/css';
... |
import React from 'react';
import math from 'mathjs';
// let MQ;
// let editorField;
const assoc = {
"^" : "right",
"*" : "left",
"/" : "left",
"+" : "left",
"-" : "left"
};
const prec = {
"^" : 4,
"*" : 3,
"/" : 3,
"+" : 2,
"-" : 2
};
const functionVars = {
"sin": 1,
"cos": 1,
"tan": 1,
... |
// 1st Modules
const fs = require('fs');
const fse = require('fs-extra');
const path = require('path');
// 2st Modules
const axios = require('axios');
const { exec, spawn } = require('child_process');
// const moment = require('moment-timezone');
const ffmpeg = require('fluent-ffmpeg');
// Third Party Modules
const... |
/*
Copyright 2019 <NAME>, original authors, and subsequent contributors
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and t... |
//
// https://github.com/pmandin/reevengi-tools/wiki/.RDT-%28Resident-Evil-2%29
//
import hex from '../boot/hex.js'
import Script from './script.js'
import Tim from './tim.js'
import File from './file.js'
import Tool from './tool.js'
import Node from '../boot/node.js'
import Coll from './collision.js'
imp... |
/* global Canvas: false */
/* global TimeplotLine: false */
// @param container: DOM element in which to create the plot.
// @param basicTimeStep: world basicTimeStep.
// @param autoRange: cf. AutoRangeType.
// @param yRange: initial range. format `{'min': -1.0, 'max': 1.0}`.
// @param labels: format `{'x': "x-axis", ... |
//read in data
d3.csv("data/crypto_data.csv").then((data) => {
// ------------------------------------- Pie Chart
const xkey = 'data.symbol'
const ykey = 'percent_of_total_marketcap'
let market_cap_map = data.map(function(d) {
return {
currency: d[xkey],
market_cap: d[ykey]
... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _promise = require("babel-runtime/core-js/promise");
var _promise2 = _interopRequireDefault(_promise);
var _getIterator2 = require("babel-runtime/core-js/get-iterator");
var _getIterator3 = _interopRequireDefault(_getIterator2);
... |
module.exports = RegionRenderer;
var TILES_X = 32;
var TILES_Y = 32;
var TILES_PER_REGION = TILES_X * TILES_Y;
var HEADER_BYTES = 3;
var BYTES_PER_TILE = 30;
var BYTES_PER_ROW = BYTES_PER_TILE * TILES_X;
var BYTES_PER_REGION = HEADER_BYTES + BYTES_PER_TILE * TILES_PER_REGION;
var TILE_WIDTH = 8;
var TILE_HEIGHT = 8... |
const fs = require('fs')
const yaml = require('js-yaml')
const path = require('path')
const { deleteFolderRecursive, JSONcopy } = require("./helpers.js")
const rueten = require('./rueten.js')
const { timer } = require("./timer")
timer.start(__filename)
const rootDir = path.join(__dirname, '..')
const domainSpecifics... |
'use strict';
import * as url from 'url';
import React from 'react';
import { connect } from 'react-redux';
import { Link, withRouter } from 'react-router-dom';
import { PropTypes as T } from 'prop-types';
import _toNumber from 'lodash.tonumber';
import { Tab, Tabs, TabList, TabPanel } from 'react-tabs';
import { Helm... |
let
index = 0, // 记录当前选中的图片数组下标
cars = [], // 全局图片数组
carId = 0; // 图片id
const
carImgSrc = '/images/car.png', // 车辆图片路径
SCALE_MAX = 1, SCALE_MIN = 0.5, // 缩放比例范围
MARGIN_X = 0, MARGIN_Y = 110, // 可移动边界偏移量
CAR_SPEED = 1.0, // 车辆控制速度指数(rpx)
CAR_SPL = 30, ... |
const { walk } = require('estree-walker');
// Wrapper detection pretransforms to enable static analysis
function handleWrappers (ast) {
// UglifyJS will convert function wrappers into !function(){}
let wrapper;
if (ast.body.length === 1 &&
ast.body[0].type === 'ExpressionStatement' &&
ast.body[0].exp... |
/**
* Accept a scjson document as input, either from a file or via stdin.
* Generate a JavaScript module as output.
* This module should be customizable:
* plain object literal if appropriate
* simple self-invoking function (for use in scion-scxml)
* UMD in probably all other cases. although we could mak... |
function postTextHover(){
$('.mdl-text__post-t-wrapper').hover(
function() {
$(this).children('.mdl-text__post-read-more').html('Click to read full article').css('width','240px');
}, function(){
$(this).children('.mdl-text__post-read-more').html('').css('width','171px');
}
);
}
function customi... |
const spawn = require('child_process').spawn
const events = require('events')
const MAXIMUM_ERROR_DURATION_MS = 60000;
const REALLY_RIDICULOUSLY_HIGH_FPS_FOR_DIZQUETVS_USECASE = 120;
class FFMPEG extends events.EventEmitter {
constructor(opts, channel) {
super()
this.opts = opts;
this.erro... |
var lastlySelectedCat = 0;
var tabNames = new Array();
var isTouch = 'ontouchstart' in window || navigator.msMaxTouchPoints;
//Ajax request for JSON methods-----------------------------------------------------------
function AjaxRequest(url, parameters, callbackSuccess, callbackError, id) {
var thisRequestObje... |
/**@jsx React.DOM */
var React = require('react');
var _ = require('lodash');
require('./ContentPanel.less');
var mxp = require('../mxputils');
var CurrentExits = require('../currentexits');
var AppDispatcher = require('../AppDispatcher');
var env = require('../Environment');
var kletterfail = 'Dort musst Du nicht m... |
/*
* Copyright (c) 2014 Juniper Networks, Inc. All rights reserved.
*/
FloatingIPConfigObj = new FloatingIPConfig();
function FloatingIPConfig() {
//Variable definitions
//Dropdowns
var ddDomain, ddProject, ddFipPool, ddAssociate;
//Grids
var gridfip;
//Text Box
var txtCount;
//Bu... |
/**
* A node-style callback as used by {@link logic} and {@link modules}.
* @see {@link https://nodejs.org/api/errors.html#errors_node_js_style_callbacks}
* @callback nodeStyleCallback
* @param {?Error} error - Error, if any, otherwise `null`.
* @param {Data} data - Data, if there hasn't been an error.
*/
/**
* ... |
import * as THREE from 'three';
import { FBXLoader } from 'three/examples/jsm/loaders/FBXLoader'
// import { Easing, Tween, autoPlay } from 'es6-tween'
const TWEEN = require('@tweenjs/tween.js').default;
/**
* Constants used in this game.
*/
var Colors = {
cherry: 0xe35d6a,
blue: 0x1560bd,
white: 0xd8d0d1,
blac... |
var base_url = 'http://mediawiki.feverous.co.uk/index.php/';
$.ajaxSetup({async:false});
$(window).on('load', function() {
//$( document ).ready(function() {
var status_page = localStorage.getItem('status-page');
if (status_page == 'open'){
$('body').remove();
}else{
run_page();
}
function run... |
/***
* Surface water change detection (copied from http://aqua-monitor.appspot.com)
*
* Citation: Donchyts, Gennadii, et al. "Earth's surface water change over the past 30 years." Nature Climate Change 6.9 (2016): 810-813.
*
* License: LGPL
*
* See original code on http://github.com/deltares/aqua-monitor
*/
v... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var crypto = require("crypto");
var deepEqual = require("fast-deep-equal");
var fs = require("fs");
var jsonDiff = require("json-diff");
var path = require("path");
var url_1 = require("url");
var util = require... |
/* eslint-disable func-names */
/* eslint-disable no-console */
const Alexa = require('ask-sdk');
const questions = [
'¿Qué prefieres, <NAME>, o burger king?.',
'¿Qué prefieres, matematicas, o geografia?.',
'¿Qué prefieres, estudiar, o dormir?.',
'¿Qué prefieres, leche, u orchata?.',
'¿Qué prefieres, mi... |
/**
* @generated
* It should not be necessary to edit this file directly.
* The template for this file is: generate/templates/index-file.js
*/
export { default as __append } from './__methods/append.js';
export { default as __apply } from './__methods/apply.js';
export { default as __arrayReverse } from './__metho... |
// Copyright 2017 <NAME>.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... |
import React from 'react'
import { Link, Redirect } from 'react-router-dom'
import { ListGroup, Row, Col, Carousel } from 'react-bootstrap'
import * as io from 'socket.io-client';
import {
MusicNote, MusicOff
} from '@material-ui/icons'
import { Icon } from '@material-ui/core'
import LoadingScreen from './LoadingScree... |
function resetPermissions(){
location.href = "#permissionArea";
window.location.reload();
}
function deleteKeyspace(index) {
var opCount = document.getElementById("keyspaceCount");
opCount.value = parseInt(opCount.value) - 1;
CARBON.showConfirmationDialog(cassandrajsi18n["cassandra.keyspace... |
// Derived from https://github.com/xqdoo00o/jszip/blob/master/lib/sjcl.js
/** @fileOverview Javascript cryptography implementation.
*
* Crush to remove comments, shorten variable names and
* generally reduce transmission size.
*
* @author <NAME>
* @author <NAME>
* @author <NAME>
*/
"use strict";
/*jslint inde... |
/*****************************************************************
jQuery Validate扩展验证方法
*****************************************************************/
$(function(){
// 判断整数value是否等于0
jQuery.validator.addMethod("isIntEqZero", function(value, element) {
value=parseInt(value);
return this.o... |
// Deploy Node App (deploy-node-app) - Develop and deploy Node.js apps with Kubernetes, with zero config!
// developed by KubeSail.com!
const fs = require('fs')
const os = require('os')
const path = require('path')
const chalk = require('chalk')
const inquirer = require('inquirer')
const { isFQDN } = require('validato... |
/*
Three.js Solar System
<NAME> | A01022462
10/09/2018
*/
var renderer = null,
scene = null,
camera = null,
orbitControls = null,
root = null,
sunGroup = null,
planetGroup = new THREE.Object3D,
mercuryGroup = new THREE.Object3D,
venusGroup = new THREE.Object3D,
earthGroup = new THREE.Object3D,
... |
// Module dependencies.
var util = require('util');
var EventEmitter = require('events').EventEmitter;
var _ = require('underscore');
var nodes = require('../nodes');
var connection_adapters = require('../connection_adapters');
var managers = require('../managers');
var Table = require('../table');
var Relation = requi... |
// Culmus.js 1.0.0
// (c) 2019 <NAME>
// This code may be freely distributed under the MIT license.
// For all details and documentation:
// http://github.com/meirsadan/culmus
// This script uses these libraries as dependencies:
// Opentype.js: for loading path data from font file
// Paper.js: for manipulating and r... |
$(window).on("load resize",function(){
var vpwidth = $(window).width();
if (vpwidth > 768 && vpwidth < 1800) {
$(".dashboard_cont .dataTable").addClass("scrollbar-inner");
$(".dataTable.scrollbar-inner").scrollbar();
} else {
$(".dashboard_cont .dataTable").removeClass("scrollbar-inner");
... |
/**:drawUserTable()
A function that draws the table of users for the user manager.
It does this using bootstrap-table, a third party dependancy, collecting data
from the /users/get_users resource.
*/
function drawUserTable(){
//Define the table structure
var columns = [{
'field': 'stat... |
"use strict";
/********************************************************************************
* Copyright (C) 2018 Red Hat, Inc. and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/leg... |
// thanks to MrCheeze for helping with rewriting the stage name lookup table
var TEXT_MAPPING =
{
"A": 0x00,
"B": 0x01,
"C": 0x02,
"D": 0x03,
"E": 0x04,
"F": 0x05,
"G": 0x06,
"H": 0x07,
"I": 0x08,
"J": 0x09,
"K": 0x0a,
"L": 0x0b,
"M": 0x0c,
"N": 0x0d,
"O": 0x0e,
"P": 0x0f,
"Q": 0x10,
"R": 0x11,
"S":... |
$("document").ready(function(){
var BASE_URL = $("#hiddenURL").val();
// loadBetsDataTable();
loadTestDataTable(BASE_URL,$("#datepicker").val());
loadPendingDataTable(BASE_URL,$("#datepickerPending").val());
$("#date").datepicker({
dateFormat: "yy-mm-dd"
});
$("#datepicker, #datepick... |
import React, { Component } from 'react';
import Weapon from './Weapon';
import styled, { createGlobalStyle } from 'styled-components';
import fortniteLogo from '../assets/fortniteLogo.png';
// Styled Components
const GlobalStyle = createGlobalStyle`
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,7... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.LineBreaker = exports.inlineBreakOpportunities = exports.lineBreakAtIndex = exports.codePointsToCharacterClasses = exports.UnicodeTrie = exports.BREAK_ALLOWED = exports.BREAK_NOT_ALLOWED = exports.BREAK_MANDATORY = exports.classes... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
* @format
*/
// flowlint ambiguous-object-type:error
'use strict';
var _interopRequireDefault = require("@babel/runtime/helpe... |
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author <NAME> @sokra
*/
var async = require("async");
var Tapable = require("tapable");
var EntryModuleNotFoundError = require("./EntryModuleNotFoundError");
var ModuleNotFoundError = require("./ModuleNotFoundError");
var CriticalDependenciesWarning =... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.