text stringlengths 8.5k 48.7k |
|---|
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Stack = undefined;
var _defineProperty2 = require('babel-runtime/helpers/defineProperty');
var _defineProperty3 = _interopRequireDefault(_defineProperty2);
var _getIterator2 = require('babel-runtime/core-js/get-iterator');
var _... |
function concat(origin, b) {
const output = new Uint8Array(origin.length + b.length);
output.set(origin, 0);
output.set(b, origin.length);
return output;
}
function copyBytes(src, dst, off = 0) {
off = Math.max(0, Math.min(off, dst.byteLength));
const dstBytesAvailable = dst.byteLength - off;
... |
'use strict';
/* eslint-env mocha */
/* eslint-disable no-unused-expressions */
/* eslint-disable no-self-compare */
/* eslint-disable no-restricted-properties */
/* eslint-disable no-bitwise */
const { expect } = require('chai');
const BaseJoi = require('@hapi/joi');
const Decimal = require('decimal.js');
const Dec... |
"use strict";
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ... |
"use strict";
const app = require("ampersand-app");
const View = require("ampersand-view");
const proj4 = require("proj4");
const THREE = require("three");
const TWEEN = require("tween.js");
const async = require("async");
const {MeshLine, MeshLineMaterial} = require("three.meshline");
const MapArea = require("../mo... |
if (typeof load != "undefined") {
load("src/runtime.js");
load("src/wittyLexer.js");
load("src/wittyParser.js");
load("src/util.js");
load("src/json2.js");
load("src/macro.js");
load("src/dtype.js");
load("src/printer.js");
}
function eval_(exp, env, ctx) {
//print("eval: " + JSON.stringify(exp) + " ... |
//Balance tree step by step.
var nodeArray = new Array(); //Array of nodes.
var bfArray = new Array(); //Array of balance factor.
var checkBFArr = new Array(); //BF of be checked.
var circleArr = new Array(); //Record position of circles.
var changeNodeArr = new Array(); //Record position of n... |
function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }... |
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var fs = _interopDefault(require('fs'));
var path = _interopDefault(require('path'));
var mkdirp = _interopDefault(require('mkdirp'));
var xmlbuilder = _interopDefault(require('xmlbuilder')... |
import * as React from 'react';
export default class CountriesPerContinent extends React.Component {
constructor() {
super();
var countriesPerContinent = getCountriesPerContinent();
this.state = {
countriesPerContinent: countriesPerContinent,
selectedContinent: 0
... |
//
if (typeof window === 'undefined') {
const Window = require('window');
window = new Window();
}
navigator = window.navigator;
document = window.document;
const $ = require('jquery');
const _ = require('underscore');
const React = require('react');
const ReactDOM = require('react-dom');
const CodeMirro... |
/*global $ MAX_SCORE getCookie setCookie deleteCookie gameAbbr shottypeAbbr sep fullNameNumber generateTableText
generateFullNames generateShottypes generateShortNames translateUSDate translateDate translateEADate langCode*/
var WRs, westScores, missingReplays, seasonsEnabled, datesEnabled,
notation = "DMY", langua... |
window.$ = require("jquery");
var L = require("leaflet");
require("leaflet.markercluster");
const remote = require("electron").remote;
const { dialog, BrowserWindow, Menu, MenuItem } = require("electron").remote;
const path = require("path");
const cp = require('child_process');
const {
GeoSearchControl,
O... |
// Configuration
var GRAPHIC_ID = '#graphic';
var GRAPHIC_ID_EXAMPLE = '#example';
var GRAPHIC_ID_UPDATE = '#update';
var GRAPHIC_DATA_URL = 'assets/playoffs.json';
var GRAPHIC_DEFAULT_WIDTH = 750;
var MOBILE_THRESHOLD = 660;
var seriesheight = 60;
var lineheight = 24;
var why = 0;
var series_list_1 = [];
var series_l... |
import React, { Component } from 'react';
import Customer from './screens/Customer';
import Manager from './screens/Manager';
import MetaManager from './screens/MetaManager';
import { searchResilient } from './lib/utils'
import Spinner from 'react-spinkit';
import { getData, storeData, getQueryVariable } from './l... |
export const dataBasePazAnzoategui = [
{
'id': '1',
'title': 'ANZOATEGUI',
'base': 'GRAN BASE DE PAZ LAS ISLETAS',
'direccion':'Municipio Sotillo, Parroquia Puerto La Cruz, Isla de Cuba',
'href': 'https://cutt.ly/TkllHd4',
'coordenadas': '10.198303332547752, -64.63723874954303',
'estructur... |
//
// -- IRIS Toolkit - JSON Interface over TLS
//
// Copyright (c) 2014 ASPECTRON Inc.
// All Rights Reserved.
//
// 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 rest... |
$(function () {
//初始化鉴定项目
var lbid=$("#idenCheck").val();
var genre=$("#idenCheck").attr("genre");
initIdenProject(lbid,genre);
layui.use('laydate', function () {
var laydate = layui.laydate;
//执行一个laydate实例
$('.timeLay').each(function () {
laydate.render({
... |
const _ = require("lodash");
const { camelCase, forEach } = require("lodash");
const { nextTick } = require("process");
const { string, number } = require("yargs");
module.exports = {
generate: function generate(optionsArg) {
let options = undefined;
let isTestClass = false;
let isDeprecatedClass = false... |
/**
* Alias for document.getElementById.
* @param {Number} id
* @return {*} DOMElement
*/
var $ = function(id){
return document.getElementById(id);
};
/**
* Debug function.
*/
function _debug(){
if (debug){
var text = '';
for (var i = 0; i < arguments.length; i++){
... |
/**
* Created by Administrator on 2015/8/11.
*/
if (typeof jQuery === "undefined") { throw new Error("ZteAce requires jQuery") }
if (!storage.isStorage){throw new Error("该浏览器不支持LocalStorage!")}
!function ($) {
'use strict';
var ZteAce = function (el, options) {
this.options = options;
this.$... |
var Cocoon = Cocoon || {};
var UE = UE || {};
window.devicePixelRatio = window.devicePixelRatio || 1;
(function() {
UE.SCREEN_WIDTH = (window.innerWidth * window.devicePixelRatio)|0;
UE.SCREEN_HEIGHT = (window.innerHeight * window.devicePixelRatio)|0;
UE.KEY_SPACE = 32;
UE.KEY_LEFTARROW = 37;
... |
/*
Functionality of tablebuilder including the main methods that run each stage
On open **initialiseForm()**
- grab current_settings from dimension.table_settings_and_source_data if such a thing exists
- if current_settings doesn't exist open with the data area open.
- otherwise set the current_se... |
//Developed by @mario v1.0.20200928
const { app, BrowserWindow, screen, ipcMain, Menu, shell, TouchBar, nativeTheme, dialog, Tray, net, globalShortcut } = require('electron');
const { TouchBarLabel, TouchBarButton, TouchBarSpacer } = TouchBar;
const path = require('path');
const Store = require('electron-store');
const... |
// register the directive with your app module
var app = angular.module('ddApp', ['ngAnimate', 'ui.bootstrap', 'rzModule']);
var marker = {};
// function referenced by the drop target
app.controller('ddController', ['$scope', '$uibModal', '$log', '$timeout', '$http', function ($scope, $uibModal, $log, $timeout, $http)... |
import React,{ useState,useRef } from 'react';
import Loading from '../../components/Loading';
import AlertPlus from '../../components/AlertPlus';
import ConfirmPlus from '../../components/ConfirmPlus';
import WinModal from '../../components/WinModal';
import BootstrapInput from '../../components/BootstrapInput';
impo... |
Error.prototype.toString = function() {
if (this.stackTrace) return this.name + ': ' + this.message + this.stackTrace;
return this.name + ': ' + this.message;
};
// display must be kept in sync with an enum in pdf_form.c
var display = {
visible: 0,
hidden: 1,
noPrint: 2,
noView: 3,
};
var border = {
b: 'bevele... |
'use strict';
/**
* Handles requests to the citoid service
*/
/* Import Modules */
const BBPromise = require('bluebird');
const urlParse = require('url');
/* Import Local Modules */
const Citation = require('./Citation.js');
const CitoidError = require('./CitoidError.js');
const cRef = require('./translators/cross... |
//inject a matchRef, isRef, and a getRef function?
//could use the same pattern with objects.
// TODO:
// at end, only update the essentialJSON fields in the actual
// object in the db, NOT replace it since we only conducted the
// diff over those essential fields
// TODO:
// add tests for the splice case of interac... |
import d3 from 'd3';
import { histogram } from './charting-hist';
import { vennDiagram } from './charting-venn';
import { timeScatter } from './charting-timeScatter';
import { horizStackedBars } from './charting-stackedBars';
import { writeObjDiff } from './fulfillmentObjectDiff';
import { writeCustomizationDetails }... |
/*global ons, fn*/
var loadingBarSettingsTimers = document.getElementById("loading-bar-settings-timers");
var timersSettingsTimersList = document.getElementById("settings-timers-timer-list");
var dndTimerList = document.getElementById("settings-dnd-timer-list");
ons.getScriptPage().onShow = function() {
updateSett... |
/* jshint ignore:start */
const J = require('../../../../api/parts/jobs/job.js'),
R = require('../../../../api/parts/jobs/retry.js'),
Resource = require('../parts/res.js'),
C = require('../parts/credentials.js'),
Loader = require('../parts/store.js').Loader,
N = require('../parts/note.js');
const ... |
var lstSC = [], ListSimplePrices = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], simpleScrollY = 0, ListSimplePricesOld = null;
function SimpleCalculation(slide) {
Exit = 'simple';
lay_simple = app.CreateLayout("Linear", "Top,FillXY");
var title_ = app.CreateTitle('Расчет "light"');
lay_simple.AddChild(title_);
lstSC.... |
function timeoutProcess()
{
val=$MW_Onestepcheckout("#shipping-address-select").val();
if(val)
//updateShippingType(null,$MW_Onestepcheckout("#shipping-address-select").val());
//updateShippingType("select_add",$MW_Onestepcheckout("#shipping-address-select").val()); //fes
updateShippingType(add('shipping'));
}
// ... |
var genero_global;
var genero_plus_global;
var total_recibido;
var a_total;
var b_total;
var c_total;
var d_total;
var e_total;
var f_total;
var g_total;
var h_total;
var i_total;
var j_total;
var k_total;
var l_total;
var ncf;
$(document).ready(function() {
$("[data-mask]").inputmask();
var tabla
//Fun... |
import THREE from 'three';
import ReactEmptyComponent from 'react/lib/ReactEmptyComponent';
import reactElementWrapper from 'react/lib/ReactElement';
import ReactInstanceMap from 'react/lib/ReactInstanceMap';
import ReactInstanceHandles from 'react/lib/ReactInstanceHandles';
import ReactReconciler from 'react/lib/... |
var utils = require('./utils');
var config;
const { Cc, Ci, Cr, Cu, CC } = require('chrome');
Cu.import('resource://gre/modules/Services.jsm');
Cu.import('resource://gre/modules/FileUtils.jsm');
function debug(str) {
//dump(' -*- webapp-optimize.js: ' + str + '\n');
}
/**
* Expose a global `win' object and load ... |
'use strict';
var support = require('./support');
var base64 = require('./base64');
var nodejsUtils = require('./nodejsUtils');
var setImmediate = require('core-js/library/fn/set-immediate');
var external = require("./external");
/**
* Convert a string that pass as a "binary string": it should represent a byte
* a... |
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
function commonjsRequire () {
throw new Error('Dynamic requires are not currently supported by rollup-plugin-commonjs');
}
f... |
// ==UserScript==
// @name Fair Game QoL v1
// @namespace https://fair.kaliburg.de/#
// @version 0.380
// @description Fair Game QOL Enhancements
// @author Aqualxx
// @match https://fair.kaliburg.de/
// @match http://www.kaliburg.de:11235/
// @icon https://www.google.com/s2... |
// *******************************************************
/**
* @fileoverview
* The main file and program start point.
*/
// CS 174a Graphics Example Template
// The class definition here describes how to display an Animation and how it will react to key and mouse input.
// Right now it has no meaningful scenes to... |
var App = require("/core");
var helpers = require("helpers");
//models singletons
var quad = Alloy.Models.instance("quad");
var days = Alloy.Collections.instance("day");
var calls = Alloy.Collections.instance("call");
var user = App.user;
var quadStatus = 0;
//nested controllers
var lastSingleDay;
var dayRows = ... |
const { run } = require('jest');
const usx2 = require('./unishox2');
var util = require('util');
var USX_HCODES_DFLT = new Uint8Array([0x00, 0x40, 0xE0, 0x80, 0xC0]);
var USX_HCODE_LENS_DFLT = new Uint8Array([2, 2, 3, 2, 3]);
var USX_FREQ_SEQ_DFLT = ["\": \"", "\": ", "</", "=\"", "\":\"", "://"];
var USX_TEMPLATES = ... |
let resizedd = 0;
const time_f_arr = [];
jQuery( document ).ready( function () {
make_info_circle( '.info-c-full-br', 0 );
responsive_check( '.info-c-full-br' );
//calculate_clipped_circle();
//make_info_circle('.info-c-semi-br',0);
//responsive_check('.info-c-semi-br');
//part_circle_icon('.info-c-full-br');
//... |
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distr... |
// Calculate gas cost
//https://github.com/neo-project/docs/blob/master/en-us/sc/systemfees.md
// https://github.com/neo-project/neo-vm/blob/master/src/neo-vm/OpCode.cs
function parseOpcode(opcode, hexavm, target) {
var pvalue = parseInt(opcode, 16);
if (opcode == "00")
target.val(target.val() + opcode ... |
//Facteur de tremblement des tirs aliens
const SHOT_TREMOR = 1.3;
//Largeur des tirs aliens
const SHOT_DSIZE = 6;
//Nombre d'images du sprite d'explosion
const EXPLODE = 16;
//Couleur des ombres
const SHADOW = "rgb(15,15,15)";
//Padding vertical par défaut
var PADDING_V = 80;
//Padding horizontal par défaut
var P... |
import React, { Component } from 'react';
import { DndProvider } from 'react-dnd'
import { HTML5Backend } from 'react-dnd-html5-backend';
import { TouchBackend } from 'react-dnd-touch-backend';
import { usePreview } from 'react-dnd-preview';
import clsx from 'clsx';
import {withStyles} from '@material-ui/core/styles';
... |
'use strict';
var path = require('path');
var co = require('co');
var request = require('request');
var twit = require('twit');
var mapper = require(__dirname+'/mapper.js');
var app = require(path.join(__dirname, '../../server.js'));
var conf = app.config.game;
var db = require(path.join(__dirname, '.... |
// (C) Copyright 2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../utils/CSSClassnames';
import KeyboardAccelerators from '../utils/KeyboardAccelerators';
const CLASS_ROOT = CS... |
// Generate the document ready events for this page
var thisBody = false;
var thisPrototype = false;
var thisWindow = false;
var thisHeaderBanner = false;
var thisHeaderMenu = false;
var websiteSettings = {};
var thisScrollbarSettings = {wheelSpeed:0.3};
$(document).ready(function(){
// Update global reference var... |
var express = require('express');
var mongoose = require('mongoose');
var friendlist = require('../app/server/modules/friend')
var messagechat = require('../app/server/modules/message')
var groupchat = require('../app/server/modules/group')
var socketio = require('socket.io');
var jwt = require('jsonwebtoken');
// cons... |
"use strict";
// imported modules from open source and bisweb repo
const $ = require('jquery');
const BisWebImage = require('bisweb_image');
const webutil = require('bis_webutil');
const webfileutil = require('bis_webfileutil');
const bootbox = require('bootbox');
const diffSpectModule=require('diffSpect');
const BisW... |
/**
* @typedef {discord.Channel} Channel
* @typedef {discord.Message} Message
*/
const { RichEmbed } = require('discord.js');
const request = require('request-promise');
const timeutils = require('../utils/timeutils.js')
const logger = require('../utils/logutils.js');
/**
* @description Returns a string describin... |
import { __extends } from "tslib";
import { WebXRFeaturesManager, WebXRFeatureName } from "../webXRFeaturesManager";
import { WebXRControllerComponent } from "../motionController/webXRControllerComponent";
import { Vector3, Quaternion } from "../../Maths/math.vector";
import { Ray } from "../../Culling/ray";
impor... |
/**
* 名称:微信小程序webapck插件
* 日期:2017-12-19
* 描述:
* 使微信程序支持webpack打包
*/
const vm = require('vm');
const path = require('path');
const fse = require('fs-extra');
const webpack = require('webpack');
const Entrypoint = require('webpack/lib/Entrypoint');
const AMDPlugin = require('webpack/lib/dependencies/AMDPlugin.j... |
/**
* Does everything
*/
window.addEventListener('DOMContentLoaded', () => {
init();
});
/**
* Whenever the screen resizes, also re-set everything
*/
window.addEventListener('resize', () => {
init(); // engine.resize();
});
function init() {
// Load and reset HTML container
const container = document.getEleme... |
// Core object of CVBlocks for handling image input and Processing
"use strict";
// Callback stubs for this pointers...
function cvblocks_video_callback() { gCVBC.videoCallback(); }
function cvblocks_camera_callback(deviceInfos) { gCVBC.cameraCallback(deviceInfos);}
function cvblocks_stream_callback(stream) {gCVBC.st... |
const countries = [
{ country: 'Afghanistan', alpha2: 'AF', alpha3: 'AFG', numeric: '004' },
{ country: 'ALA Aland Islands', alpha2: 'AX', alpha3: 'ALA', numeric: '248' },
{ country: 'Albania', alpha2: 'AL', alpha3: 'ALB', numeric: '008' },
{ country: 'Algeria', alpha2: 'DZ', alpha3: 'DZA', numeric: '012' },
... |
// REQUIMENT
var libxml = require("libxmljs"),
SchemaTypes = require('./XMLSchemaTypes'),
startTimestamp = new Date(),
path = require('path'),
url = require('url')
/**
* Class to form WSDL file and store the object of its description
*
* Restrictions options which are validated:
*
* - enu... |
import * as React from 'react';
import _ from 'lodash';
import {List as ImmutableList} from 'immutable';
import {EQ, BreakpointFunction, displayStr} from './hash_impl_common';
import {
LineOfBoxesComponent,
HashBoxesComponent,
HashBoxesBrokenComponent,
TetrisFactory,
VisualizedCode,
SimpleCodeI... |
/*
========================================
THE JAVASCRIPT SOLAR SYSTEM SIMULATION
========================================
PART V: COMPLETE JAVASCRIPT ORRERY
----------------------------------------
Please visit the URL to learn more:
http://www.planetaryorbits.com/tutorial-javascript-orbit-simulation.html
-----------... |
// The classes of main geometric data structures for
// Delaunay triangulation and Voronoi diagrams.
// Point class
function Point(x,y) {
this.x = Math.floor(x);
this.y = Math.floor(y);
}
Point.prototype.equals = function(p) {
if (p.x == this.x && p.y == this.y)
return true;
return false;
}
Point.prototype.d... |
var xMax = { "value": 600.2 };
var yMax = { "value": 0 };
var yLabels = { abs_pos: "abs_pos (m)", CO: "CO (mg/s)", NOx: "NOx (mg/s)", fuel: "fuel (ml/s)", PMx: "PMx (mg/s)", speed: "speed (m/s)" };
var yLabel;
var graphTitle;
var lineColors;
var curParameter;
var curData = "";
var curDataFile = "";// global var in fil... |
const { AsyncFunction, GeneratorFunction, flatMap, last, mapAsync, pairs } = require('./utils.js');
const ast = require('./ast.js');
const {
Arrow, Assign, Async, Await, Binary, Block, Call, Catch, Class, Conditional, Const, Debugger, DoWhile, Empty,
For, ForIn, ForOf, Generator, Id, If, Let, Literal, Member, NewOb... |
/******************************************************************************
* INCLUDES
*****************************************************************************/
$('head').append('<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css"></link>')
.append("<link href='http... |
var initializeBehaviors = function(self, renderer){
for(var i = 0; i < self.entity.length; i++){
if(self.entity[i]){
if(!self.entity[i]._initialized || !self.entity[i]._behavior){
if(!self.entity[i].behavior){
var img = renderer.getImage(self.entity[i]._img, self.entity[i].animation||0);
if(img && i... |
var server_host='https://hifang.fujuhaofang.com';
server_host=document.location.protocol+"//"+document.location.hostname;
layui.config({
base: server_host+'/assets/libs/'
}).extend({
'woker.min': 'woker/woker.min',
'swfobject': 'websocket/swfobject',
'web_socket': 'websocket/web_socket',
'recorder':... |
"use strict";
import * as Functions from "./modules/functions.js"
Functions.isWebp();
Functions.ServiceWorker();
const Cookie = Functions.Cookie;
let test = false;
const testDuration = 1;
const randInt = (min, max, float = false) => {
return (float ? Math.random() * (max - min) + min : Math.floor(Math.random() * (... |
/*!
* Datalist 5.5.0
* https://github.com/NonFactors/MVC5.Datalist
*
* Copyright © NonFactors
*
* Licensed under the terms of the MIT License
* http://www.opensource.org/licenses/mit-license.php
*/
var MvcDatalistFilter = (function () {
function MvcDatalistFilter(group) {
this.page = group.attr('da... |
'use strict';
var jscoverage_currentFile = null;
var jscoverage_currentLine = null;
var jscoverage_inLengthyOperation = false;
// http://www.quirksmode.org/js/findpos.html
function jscoverage_findPos(obj) {
var result = 0;
do {
result += obj.offsetTop;
obj = obj.offsetParent;
}
while (obj);
return result;
}
... |
/*
Jive - Content Viewer Widget
Copyright (c) 2015-2016 Fidelity Investments
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by appli... |
var xhr={}, active={};
var chart_config = {};
$('.glyphicon-star').hide();
function showError(type) {
$('#progress-'+type).hide();
if (type=="detail") $('#table-detail').hide();
else if (type=='feeds') $('#content-feeds').hide();
else $('#chart-'+type).hide();
$('#error-'+type).show();
}
function showCont... |
"use strict";
let codUt = -1;
let vetLingue = {
"ar-AR":"Arabo",
"pt-BR":"Portoghese (Brasile)",
"zh-CN":"Cinese mandarino",
"nl-NL":"Olandese",
"en-GB":"Inglese (Regno Unito)",
"en-US":"Inglese (Stati Uniti)",
"fr-FR":"Francese",
"de-DE":"Tedesco",
"it-IT":"Italiano",
"ja-JP":"G... |
var replaceVars = {
"janvier":"January","février":"February","mars":"March","avril":"April","mai":"May","juin":"June","juillet":"July","août":"August","septembre":"September","octobre":"October","novembre":"November","décembre":"December",
"enero":"January","febrero":"February","marzo":"March","abril":"April",... |
/**
* GSS-API wrapper for Kerberos implementation. For now it's very
* kerberos-specific. We can add machinery to make it generic if the
* need ever arises.
*/
"use strict";
import krb from './krb.js';
var gss = { };
/** @const */ gss.NT_USER_NAME = "1.2.840.113554.1.2.1.1";
/** @const */ gss.NT_MACHINE_... |
'use strict';
const periodic = require('periodicjs');
// const { formatBinaryBatchResult } = require('../helper');
const logger = periodic.logger;
const { generate_linear_function_evaluator, generate_polynomial_function_evaluator, generate_power_function_evaluator, generate_exponential_function_evaluator, } = requi... |
var csInterface = new CSInterface();
loadUniversalJSXLibraries();
loadJSX(csInterface.hostEnvironment.appName + '/host.jsx');
window.Event = new Vue();
Vue.component('app', {
template: `
<div class="appGrid" @mouseover="wakeApp" @mouseout="sleepApp">
<event-manager></event-manager>
<scanner></scanner... |
var base_url = $('input[name="base_url"]').val();
$(document).ready(function(){
//show warehouse when type is stock transfer
$('#so_type').on('change', function(){
blankVal_onchange_stockType();
if($(this).val() == "2"){
alert('We are still updating the System!');
// $('.puchase_code').css(... |
'use strict';
let fs = require('fs');
let path = require('path');
let shop = [
['Ticket', 'Compras un ticket para jugar la lotería. (Tienes chance de ganar mucho dinero)', 5],
['Simbolo', 'Compras un simbolo personalizado junto a tu nombre. (Lo obtendrás de manera temporal)', 100],
['Avatar', 'Compras un avatar pe... |
/* Javascript for WorldMapXBlock. */
console.log("worldmap.js loaded and executing....");
var myApp = myApp || {};
/**
* called once for each frag on the page
*/
var CORRECT_HTML ="<img src='/xblock/resource/worldmap/public/images/correct-icon.png'/>";
var INCORRECT_HTML="<img src='/xblock/resource/worldmap/publ... |
var mime = require('mime-types');
var DOMParser = require('xmldom').DOMParser;
var XMLparser = new DOMParser();
var fastXmlParser = require('fast-xml-parser');
var request = require('request');
// var FontFaceObserver = require('fontfaceobserver');
var deasync = require('deasync');
var xmlNs = '<?xml version="1.0" enco... |
'use strict';
let sib = new SiBHelper();
initSiB();
const backgroundColorRep = nodecg.Replicant('backgroundColor', 'players-bundle')
const textColorRep = nodecg.Replicant('textColor', 'players-bundle')
const playersDataRep = nodecg.Replicant('playersData', 'players-bundle')
let players
function readPlayers() {
c... |
const Cloudant = require('@cloudant/cloudant');
const cloudant_id = process.env.CLOUDANT_ID || '<cloudant_id>'
const cloudant_apikey = process.env.CLOUDANT_IAM_APIKEY || '<cloudant_apikey>';
// UUID creation
const uuidv4 = require('uuid/v4');
var CronJob = require('cron').CronJob;
var cloudant = new Cloudant({
... |
//Copyright 2013 Technische Universitat Wien (TUW), Distributed Systems Group E184
//
//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
//
//U... |
import ContextMenuMixin from 'ember-context-menu';
import Component from 'ember-component';
import computed from 'ember-computed';
import fetch from 'fetch';
import getOwner from 'ember-getowner-polyfill';
import layout from '../templates/components/ember-file-manager';
import RSVP from 'rsvp';
import service from 'emb... |
'use strict';
const gl = require('../core');
// WebGL constructors
gl.WebGLRenderingContext = function WebGLRenderingContext(_) { this._ = _; };
gl.WebGLProgram = function WebGLProgram(_) { this._ = _; };
gl.WebGLShader = function WebGLShader(_) { this._ = _; };
gl.WebGLBuffer = function WebGLBuffer(_) { this._ = _... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var React = require('react');
var React__default = _interopDefault(React);
/*! *********************************************... |
//cSpell:words amstramgram amst oups beforeend tabindex mediaelement ipod
import EventEmitter from './tools/eventEmitter.js'
import AudioDefaultOptions from './params/audioDefaultOptions.js'
import { clone, isObject, mergeDeep, buildSrcParams } from './tools/utils.js'
import { _$, _$$ } from './tools/selector.js'
impo... |
/*
* Copyright 2021 MeshDynamics.
* 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 writ... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var isPlainObject = require("lodash/isPlainObject");
var isEqual = require("lodash/isEqual");
var lodashIsObject = require("lodash/isObject");
var uniq = require("lodash/uniq");
var tpl_1 = require("./tpl");
var... |
/*
* _ _. _ |_ | _ _
*\/(_|| |(_||_)|(/__\
*
*/
// Read package.json metadata
var meta = require('./package.json');
// A handy repeat function
var repeat = function (s, n, d) {
return --n ? s + (d || "") + repeat(s, n, d) : "" + s;
};
// Gulp plugins
var con... |
//Création des différents pane
map.createPane('fond');
map.getPane('fond').style.zIndex = 500;
map.getPane('fond').style.pointerEvents = 'none';
map.createPane('marker2');
map.getPane('marker2').style.zIndex = 600;
//Légende du score de vulnérabilité points d'eau
var div1 = L.DomUtil.create("div", "legendin");
var le... |
const BULLET_SIZE = 2;
const WIDTH = 750, HEIGHT = 750;
const TOTAL_ZOMBIES = 15;
const TIMEOUT = 45000;
const SCREEN_W = 240;
const SCREEN_H = 320;
var PLAYING = false;
var ROUND = 0;
var SPAWN_TIMER = null;
var COUNTDOWN_TIMER = null;
var ZOMBIE_RESPAWN_TIME = TIMEOUT/1000;
var SCORE = 0;
var HP = 100;
var ZOMBIES_... |
// We assume that we have a separate class for People
// Basic class for all people
var Person={
// Static vars
// for type
Low: 0,
Mid: 1,
Hi: 2,
// for role
Bureaucrat: 'Bureaucratic',
Merchant: 'Commerce',
Military: 'Military',
learningSpeed: 10,
// the create... |
"use strict";
const EventEmitter = require("events");
const { BrowserView, Menu, MenuItem, clipboard } = require("electron");
const fileExtension = require("file-extension");
const parsePath = require("parse-path");
const parseUrl = require("parse-url");
const extToImagePath = require(__dirname + "/../extToIm... |
/*
* ImageEditor.js: simple image editing and previews in a <canvas> element.
*
* Display an edited version of the specified image in a <canvas> element
* inside the specified container element. The image (or cropped region of
* the image) will be displayed as large as possible within the container's
* area. Edi... |
const should = require('should');
const validHeaders = { 'x-zooz-request-id': 'value', 'Content-Type': 'application/json' };
const uuid = require('uuid');
const JSCK = require('jsck');
const nock = require('nock');
const { cloneDeep } = require('lodash');
JSCK.Draft4 = JSCK.draft4;
const artilleryCheck = new JSCK.Draft... |
'use strict'
const Settings = require('./settings').Settings
, html_i18n = require('./html_i18n')
, Dom = require('./dom_builder').DomBuilder
, browserapi = require('./browserapi')
, markdown = require('./markdown')
, random = require('./random')
, jaaml = require('./jaaml')
, validator = r... |
//==============================================================
// mixin_interface_api.js
// Purpose: implementation of interface classes in es6
// https://www.npmjs.com/package/mixin-interface-api
// Project: 'mixin-interface-api' npm package
//==============================================================... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.