text stringlengths 8.5k 48.7k |
|---|
/*
ALERT: DO NOT USE THIS SOURCE FILE DIRECTLY!!!
- Closure Compiler deals with ES6 exports in an unusual way that has forced me to "export" via the window
object, then run sed on the file after minification to turn it into an es6 module.
*/
/** @define {boolean} */
var ENCODEINTO_BUILD = false;
var window_glo... |
// Morten's JavaScript Tree Menu
// version 2.3.0, dated 2001-04-30
// http://www.treemenu.com/
// Copyright (c) 2001, <NAME> & contributors
// All rights reserved.
// This software is released under the following copyright statement which can
// also be accessed through the WWW at http://www.treemenu.com/license.tx... |
$(document).ready(function() {
$('div.steps').find('ul').each(function() {$(this).css("display", "none")});
$('div.steps').find('ul[data-parent-id=0]').css("display", "block");
$('div.steps').find('li').click(function()
{
$(this).parent().find('li.active').each(function()
{
deactivateLi($(this));
... |
'use strict';
const periodic = require('periodicjs');
const numeral = require('numeral');
const mathjs = require('mathjs');
// const { formatBinaryBatchResult } = require('../helper');
const logger = periodic.logger;
function getBinsByColumn({ mlmodel, datasource, modelHeaders, originalModelDoc, originalInputAn... |
let SELECTED_DAYS = [false, false, false, false, false, false]
let EXISTING_WAKEUPS = SELECTED_DAYS
let WAKEUPS_FETCHED = false
const WAKEUPS = []
let NUM_SELECTED_DAYS = 0
const LOCAL_TIME_ZONE = moment.tz.guess()
const DEFAULT_WAKEUP_TIME = 480
const MIN_WAKEUP_TIME = 300
const MAX_WAKEUP_TIME = 660
let DAY_2X = (p... |
// rtctest.js ~ copyright 2019 <NAME> ~ MIT License
// rtcSignal version - 1.0.28
// This test requires at least two browser windows, to open a data connection between two peer
var rtc = { // stun servers in config allow client to introspect a communication path to offer a remote peer
config: {'iceServers': [ {'url... |
import React, { useState, useContext } from 'react';
import {
StyleSheet,
View,
Dimensions,
Text,
TouchableOpacity,
ScrollView,
TouchableWithoutFeedback,
Modal,
Alert
} from 'react-native';
import { Header, CheckBox } from 'react-native-elements';
import { colors } from '../common/theme';
var { width,... |
import React, { Component } from "react";
import PropTypes from "prop-types";
import { connect } from "react-redux";
import { bindActionCreators } from "redux";
import moment from "moment";
import Immutable from "immutable";
import { DataSet, Timeline } from "vis/index-timeline-graph2d";
import "vis/dist/vis-timeline-g... |
var AutoInstagram;
(function (AutoInstagram) {
class Control {
static isInitialized = false;
static Initialize(appId, clientToken) {
LocalConstants.AppTok = appId;
LocalConstants.CliTok = clientToken;
Control.isInitialized = true;
}
static LoadFrom... |
// function handleError(error) {
// if (error.name === 'ConstraintNotSatisfiedError') {
// let v = constraints.video;
// webrtcdev.error(`The resolution ${v.width.exact}x${v.height.exact} px is not supported by your device.`);
// } else if (error.name === 'PermissionDeniedError') {
// webrtcdev.err... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var undef;
var F_AV = 1 << 0;
var F_AC = 1 << 1;
var F_AU = 1 << 2;
var F_C = 1 << 3;
var F_CR = 1 << 9;
var F_I = 1 << 4;
var F_IR = 1 << 10;
var F_A = 1 << 5;
var F_AR = 1 << 11;
var F_E = 1 << 6;
var F_RL = 1 << 7;
var F_RC = 1 << 8;
var F_... |
// Interval time
var interval = 20;
var max_tr_id = 18;
var previous_assembly = 'GRCh37';
var tr_img_classes = ["exon_block_coding", "exon_block_non_coding_5_prime", "exon_block_non_coding_3_prime", "exon_block_non_coding"];
var tr_img_class_prefix = "selected_";
// function to add to element content
function append... |
const {getContent, getComponent} = require('/lib/xp/portal');
const {newCache} = require('/lib/cache');
const contentLib = require('/lib/xp/content');
const {getAndMergePageContributions} = require('./pageContributions');
const {getComponentChunkNames} = require('./dependencies');
const {getAssetRoot} = require('./ser... |
const fs = require('fs');
const fsPath = require('path');
const prettier = require('prettier');
const fetch = require('node-fetch');
const VECTOR_TYPES = ['VECTOR', 'LINE', 'REGULAR_POLYGON', 'ELLIPSE', 'STAR'];
const GROUP_TYPES = ['GROUP', 'BOOLEAN_OPERATION'];
const defaultStyles = `
input {
font: inherit;
bor... |
var numSessions = 35;
var numCRs = 4; // Total number of classes in the school, in this case, 4
var numSubjects = 7; // number of possible subjects, maximum is 31
var numDaySessions = 7; // number of sessions per day. Can be set to any number.
var currTable;
var classRooms = ["9A","8A","7A","6A","... |
//
// a tool for a data insertion to the video_collection in MOngoDB
//
// expres
const express = require('express')
const app = express()
// third-party
const compression = require('compression')
const bodyParser = require('body-parser')
const helmet = require('helmet')
const natural = require('natural');
const wdT... |
/*
* Copyright 2013 J<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 ... |
/* Global Variables */
var construct_id_store = new Array();
var extNames = new Array();
/* not used
function validateStep1(protSeq) {
var frm=document.forms["frmStep1"];
if (!isNumeric(frm.target_prot_start.value)) {alert("Target protein start must be Numeric");return false;}
if (!isNumeric(frm.target_pro... |
// Copyright 2009 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 in ... |
$(document).ready(function () {
//action register open / table view close
// $('#RegistBox .btn_ok.register').click(function(){
// $(".dashboard.register_cont").toggleClass("active");
// $(".dashboard.server_status").removeClass("view");
// $(".dashboard .status_list tbody tr").removeCla... |
// wink-nlp
//
// Copyright (C) GRAYPE Systems Private Limited
//
// This file is part of “wink-nlp”.
//
// 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 with... |
const REGEXP_HTML_CLASS = /(\s)class=".*?"/g;
const REGEXP_HTML_ATTR = /(\s)data-cms-id="[a-z0-9]+"|data-cms-widget="[a-z0-9]+"/g;
const REGEXP_HTML_DIV = /<div\s>/g;
const REGEXP_GLOBAL = /\$[0-9a-z-_]+/gi;
const Fs = require('fs');
var loaded = false;
F.global.pages = [];
F.global.sitemap = [];
F.global.variables =... |
(function () {
$(document).ready(function(){
var isEditingEnabled,
toggle = $("input[id^='toggle']"),
addDescriptionButtons = $("input[id^='addDescription']"),
removeButton = $("input[id^='removeSection']"),
addH1SubsectionButton = $("input[id^='addH1Subsect... |
let cam;
let holes;
let data;
let offsetX;
let offsetY;
let bx;
let by;
let curServer;
let curRound;
let colors;
let previousUserColors;
function setup() {
createCanvas(800, 800, WEBGL);
cam = createCamera();
bx = 0;
by = 0;
offsetX = width / 2;
offsetY = width / 2;
holes = [];
previousUserColors = []
... |
/**
* @license
* Copyright The Closure Library Authors.
* SPDX-License-Identifier: Apache-2.0
*/
goog.module('goog.fx.AbstractDragDropTest');
goog.setTestOnly('goog.fx.AbstractDragDropTest');
const AbstractDragDrop = goog.require('goog.fx.AbstractDragDrop');
const Box = goog.require('goog.math.Box');
const Coordi... |
function abrirArchivo(evento) {
let archivo = evento.target.files[0];
if (archivo) {
let reader = new FileReader();
reader.onload = function (e) {
let contenido = e.target.result;
const lines = contenido.split(/\r\n|\n/);
document.getElementById('contenido')... |
/*
* eGov suite of products aim 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 Foundation
* is availa... |
import React, {useState} from 'react';
import Sketch from "react-p5";
import { Redirect } from "react-router-dom";
import SidePane from '../../common/SidePane';
import Loading from "../../common/Loading"
import { Api_EditIllust_url, Api_LordIllust } from '../../api/Api'
import PopupBeforeSubmit from './PopupBeforeSubm... |
// The views in this file define all the major pieces of the client-side UI.
// We are using Marionette for our views, which provides some extra layers on
// top of the basic Backbone view objects.
//
// You can read more about Marionette's objects here: https://github.com/marionettejs/backbone.marionette/tree/master/... |
/* ==[ Hotkeys.js ]===========================================================================================
HOTKEYS
=========================================================================================================== */
const HotKeys = {
cPost : nu... |
var fs = require('fs');
const sqlitecretator = require('./sqlitecreator');
exports.generateSchema = function(mappingDocument) {
//Type Query Generation
var schema ="";
schema += "\ttype Query {" + "\n"
mappingDocument.triplesMaps.map(function(triplesMap) {
let class_name = triplesMap.subjec... |
/*-
* Copyright (c) 2018, 2022 Oracle and/or its affiliates. All rights reserved.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* https://oss.oracle.com/licenses/upl/
*/
'use strict';
const chai = require('chai');
chai.use(require('chai-as-promised'));
const expect = require('chai').exp... |
// This file is required by the index.html file and will
// be executed in the renderer process for that window.
// All of the Node.js APIs are available in this process.
// require('../src/views/js/viewerCesiumNavigationMixin.js')
require('../src/views/js/khr_error.js')
var cesiumInit = require('../src/views/js/cesi... |
// Import the required modules
var Phenology = require('users/defendersofwildlifeGIS/Modules:Phenology')
var Clouds = require('users/defendersofwildlifeGIS/Modules:Clouds')
var Terrain = require('users/defendersofwildlifeGIS/Modules:Terrain')
var Calibrate = require('users/defendersofwildlifeGIS/Modules:Calibration')
v... |
'use strict';
import {Command} from "./Commands/Command";
import {CommandsStore} from "./Commands/CommandsStore";
import {ADMINS, ROOM_CONFIG, STORAGE_PREFIX} from './configuration.js';
import {GAME_MODES, GameManager, GoalInfo} from "./Game/G... |
/**
* @author <NAME>
* Copyright(c) 2013
* This software is released under the MIT license (http://opensource.org/licenses/MIT)
*/
var FCSWriteStream = require('./fcswritestream');
/**
* Constructor
* @param options options, {}, optional argument
* @param buffer if present, read it. (Otherwise, call re... |
var path = require('path');
var fs = require('fs');
var postcss = require('postcss');
var _ = require('lodash');
var spritesmith = require('spritesmith').run;
var mkdirp = require('mkdirp');
var md5 = require('spark-md5').hash;
var revHash = require('rev-hash');
var Promise = require('bluebird');
var colors = require('... |
var userId = -1;
var month = new Array();
month[0] = "Jan";
month[1] = "Feb";
month[2] = "Mar";
month[3] = "Apr";
month[4] = "May";
month[5] = "Jun";
month[6] = "Jul";
month[7] = "Aug";
month[8] = "Sep";
month[9] = "Oct";
month[10] = "Nov";
month[11] = "Dec";
var buttonV = "Company";
var deleteV = "Company";
var table... |
function getEventTargetA(ev){
ev = ev || event;
var targ=(typeof(ev.target)!='undefined') ? ev.target : ev.srcElement;
if(targ !=null){
if(targ.nodeType==3)
targ=targ.parentNode;
}
if(targ.nodeName != 'A')return targ.parentNode;
return targ;
}
function preventEventDefault(ev){
ev = ev || event;
if... |
import {Component} from "react";
import Modal from "react-modal";
import Select from "react-select";
import {Img} from "react-image";
import {filter} from "rxjs";
import {NotificationManager} from "react-notifications";
import axios from "axios";
import './Market.css';
import {observable, sendMessage, sendMessageAndW... |
var express = require('express'),
request = require('request'),
app = express(),
loki = require('lokijs'),
fs = require('fs'),
rbush = require('rbush'),
turf = require('turf'),
bodyParser = require('body-parser'),
helmet = require('helmet'),
queryString= require('query-string'),
urlPattern = require('url-pattern'),
con... |
"use strict";
class Element {
constructor(period, group, name, atomicWeight, electronegativity, type, block) {
this.period = period;
this.group = group;
this.name = name;
this.atomicWeight = atomicWeight;
this.electronegativity = electronegativity;
this.type = type;
this.block = block;
... |
import L from 'leaflet';
// import Proj from 'proj4leaflet';
import $ from 'jquery';
import './leaflet-providers';
import 'leaflet-extra-markers';
import 'leaflet-swoopy';
import { Router } from 'silkrouter';
import { constants } from './constants';
import { swapCoordinates, smoothZoom, stripTrailingSlash, h1BigText, m... |
var Lang = A.Lang,
isFunction = Lang.isFunction,
isString = Lang.isString,
DateMath = A.DataType.DateMath,
WidgetStdMod = A.WidgetStdMod,
WEEK_LENGTH = DateMath.WEEK_LENGTH,
_DASH = '-',
_DOT = '.',
_EMPTY_STR = '',
_SPACE = ' ',
SCHEDULER_VIEW = 'scheduler-view',
SCHEDULER_VIEW_TABLE = 'scheduler-view-t... |
/**
* column header 에 필터 아이콘을 입력한다
* @returns {FGR}
*/
function _create_filter_icon(){
var _this = this;
this.div.filter = _create_filter_div.call(this);
function f_toggle (e){
if( ! _this.cfg.use_filter_div || _this.div.filter.is(':visible'))
return _this.div.filter.hide();
_this.div.filt... |
/* Stibium Javascript Core */
const MAGIC_STR = "q-foobar-1-1-0-wapp"
const TIEBA_LOGIN_URL = "http://wappass.baidu.com/passport/login";
const TIEBA_LOGOUT_URL = "http://wappass.baidu.com/passport/?logout";
const TIEBA_KW_URL = "http://tieba.baidu.com/mo/m?kw=";
const TIEBA_KZ_URL = "http://tieba.baidu.com/mo/m?kz=";
c... |
// The root URL for the RESTful services
var rootURL = "http://les009584:8080/webcuidpers/services/agenda";
var rootURLEvents = "http://les009584:8080/webcuidpers/services/events";
var mColorSelect = "rgb(152, 251, 152)"; // PaleGreen - Color dels objectes seleccionats per l'usuari
/*
* Declaració de variables global... |
// Initializations
function onMarkdownCellRendering(event, data) {
// console.log("recomputing eqs")
if (MathJaxDefined)
// see answer in https://groups.google.com/forum/#!topic/mathjax-users/7x-SzrezCaY
MathJax.Hub.Queue(
function () {
if (MathJax.InputJax.TeX.r... |
/*
Copyright 2019 Adobe. All rights reserved.
This file is licensed to you 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 agree... |
import React from 'react';
import PropTypes from 'prop-types';
import {withStyles} from '@material-ui/core/styles';
import { HexColorPicker as ColorPicker } from 'react-colorful';
import Fab from '@material-ui/core/Fab';
import Table from '@material-ui/core/Table';
import TableBody from '@material-ui/core/TableBody';... |
const fs = require('fs');
const qs = require('querystring');
const { join } = require('path');
const Emitter = require('events').EventEmitter;
const notifier = require('notifier');
const logger = require('./loggingService')(__filename);
const toolboxService = require('./toolboxService');
const transformService = requir... |
import {atmosphere, atmosphereWithOxygen, Body, CalendarDefinition, Orbit, PlanetPack} from '../utils';
import { rescaleDefault } from './rescale';
const Sun = new Body({
name: 'Sun',
radius: 696342000,
mass: 1.9884927e30,
rotationalPeriod: 0
});
// Mercury System
const Mercury = new Body({
name: ... |
'use strict'
function id(x) {return x}
function is(xs) {return typeof xs[Symbol.iterator] === 'function' || typeof xs.next === 'function'}
function generator(gen) {return (...args) => new Iter(gen(...args))}
const G = generator
function toRaw(iter) {return iter[Symbol.iterator] ? iter[Symbol.iterator]() : iter}
functi... |
var map = L.map('map', {
center: [-41.235726,172.5118422],
zoom: 6,
minZoom: 5,
maxZoom: 13,
zoomControl: false
});
L.control.zoom({position: 'topright'}).addTo(map);
map.doubleClickZoom.disable();
var bounds = map.getBounds();
var degreeLimit = 10;
bounds._northEast.lat += degreeLimit * 3;
bounds.... |
// JavaScript Document
const
tools = {
DOTS : 0,
EMPTY : 1,
VOID : 2,
PILL : 3,
SPAWNER : 4,
WARP : 5,
START : 6,
EXIT : 7,
"SHIFT UP" : 8,
"SHIFT DOWN" : 9,
DELETE : 10,
UNDO : 11,
},
emptyBoard = {
star... |
var __rest =
(this && this.__rest) ||
function (s, e) {
var t = {}
for (var p in s) {
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) { t[p] = s[p] }
}
if (s != null && typeof Object.getOwnPropertySymbols === 'function') {
for (var i = 0, p = Object.getOwnPropertySymb... |
import lodashSize from 'lodash/size';
import lodashEach from 'lodash/each';
import lodashFind from 'lodash/find';
import googleTagManager from 'googleTagManager';
import * as olExtent from 'ol/extent';
import { dataHandlerGetByName } from './handler';
import dataMap from './map';
import uiIndicator from '../../ui/indic... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnPrope... |
'use strict';
var inherits = require('util').inherits,
EventEmitter = require('events').EventEmitter,
net = require('net'),
tls = require('tls'),
crypto = require('crypto'),
f = require('util').format,
debugOptions = require('./utils').debugOptions,
parseHeader = require('../wireprotocol/shared').parseHe... |
const selectElement = (element) => document.querySelector(element);
const selectVariableCSS = (element) => getComputedStyle(document.body).getPropertyValue(element);
const text_media_query = "(max-width: 900px)";
const wait_time_sidebar = 1000;
const wait_time_close_sidebar = 2100;
/**
* @param {Object} target - O... |
/** @file This file contains the functions to adjust an existing polygon. */
/**
* Creates the adjusting event
* @constructor
* @param {string} dom_attach - The html element where the polygon lives
* @param {array} x - The x coordinates for the polygon points
* @param {array} y - The y coordinates for the polyg... |
/* globals TD */
const {remote, clipboard, ipcRenderer} = require('electron');
// Guard against missing remote function properties
// https://github.com/electron/electron/pull/7209
const path = require('path');
const os = require('os');
const fs = require('fs');
const Config = require('./config');
const VERSION = requ... |
var fs = require("fs");
var url = require("url");
var util = require("util");
var http = require("http");
var https = require('https');
var path = require("path");
var querystring = require('querystring');
var Bot = require("./lib/irc");
var Client = require("./lib/irc/client");
var Sol = require("./lib/sol");
var Sa... |
/****************************************************************************
** @license
** This demo file is part of yFiles for HTML 2.2.
** Copyright (c) 2000-2019 by yWorks GmbH, Vor dem Kreuzberg 28,
** 72070 Tuebingen, Germany. All rights reserved.
**
** yFiles demo files exhibit yFiles for HTML functionali... |
const {is_ary,is_str,is_regex} = require("nv-facutil-basic");
function prepend(s,width,pad=" ",force=false) {
let lngth = s.length;
if(lngth <= width) {
let prefix = pad.repeat(width-lngth)
return(prefix+s)
} else {
if(force) {
return(s.substr(lngth-width))
} els... |
var ANCESTRY_FILE = JSON.stringify([
{ "name": "<NAME>", "sex": "m", "born": 1832, "died": 1905, "father": "<NAME>", "mother": "<NAME>" },
{ "name": "<NAME>", "sex": "f", "born": 1876, "died": 1956, "father": "<NAME>", "mother": "<NAME>" },
{ "name": "<NAME>", "sex": "f", "born": 1683, "died": 1724, "father... |
var script1 = 5678;
console.log(`currently on page ${getStrippedUrl()}`)
const blockedSites = ['facebook.com', 'twitter.com', 'instagram.com', 'youtube.com', 'reddit.com']
function getStrippedUrl() {
const activeURL = window.location.href.match(/^[\w]+:\/{2}([\w\.:-]+)/)
if (activeURL != null) {
const strippedUR... |
import './findings.css';
import React, { Component } from 'react';
import {Message, Confirm,Icon, Form, List, Grid, Button, Segment, Label, Responsive} from 'semantic-ui-react';
import 'whatwg-fetch';
import {randomID, urlPrefix, setCurrentTime} from '../../utils.js';
import update from 'immutability-helper';
import A... |
var PreFlopRange = require("../helpers/range").PreFlopRange;
var Hand = require("pokersolver").Hand;
const allRanges = [
new PreFlopRange("KK+"),
new PreFlopRange("JJ+"),
new PreFlopRange("99+"),
new PreFlopRange("88+, AQs+"),
new PreFlopRange("88+, AQs+, AKo"),
new PreFlopRange("77+, ATs+, AKo"),
new Pre... |
/**
*
* ©2016-2017 EdgeVerve Systems Limited (a fully owned Infosys subsidiary),
* Bangalore, India. All Rights Reserved.
*
*/
/**
* @description Token Event Handler for Workflow
* @author <NAME>(kangan06), <NAME>(mandeep6ill), <NAME>(premsai-ch), <NAME>(vivekmittal07)
*/
var logger = require('oe-logger');
var... |
/*
!!!!!!!!!!!!!!!!!!!!!!!!this is real config !!!!!!!!!!!!!!!!!!!!!!!!!
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 <NAME>
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Pu... |
/*
* patch-steps-lib - Library for the Patch Steps spec.
*
* Written starting in 2019.
* Version: 1.1.0
* (Ideally, this would comply with semver.)
* Credits:
* Main code by 20kdc
* URL-style file paths, FOR_IN, COPY, PASTE, error tracking, bughunting by ac2pic
*
* To the extent possible under law, the auth... |
'use strict';
var app = angular.module('myApp.view3', ['ngRoute']);
var nextslide = document.getElementById("next");
app.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/view3',
{templateUrl: 'view3/view3.html',
controller: 'View3Ctrl'}).when('/view3/book/:book/chapter/:chapter', ... |
// detect hupso settings and show share button preview on first load
if (document.hupso_settings_form && document.hupso_settings_form.button_type) {
hupso_create_code();
window.onload = function() {
hupso_create_code();
};
}
function hupso_create_code() {
jQuery(document).ready(function($) {
// $() will w... |
/*
Copyright 2017 Vector Creations Ltd
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, sof... |
// @ts-check
'use strict';
class Settings {
static settingsKey = 'webrtc-rdp-settings';
static onsettingsupdate = null;
/**
* @param {DeviceSettings} deviceInfo
*/
static addPeerDevice(deviceInfo) {
let devices = this.getPeerDevices();
let idx = devices.findIndex(d => d.roomId == deviceInfo.roomId);
if... |
var is_ingame = false;
var is_insearch = false;
var is_ready = false;
var is_create_room = true;
var search_limit = 0;
var limited = false;
var base = new Base64();
var search_timmer;
var search_time = 0;
var jmp_room = '';
var room_is_public = true;
var kick_shit = false;
var get_matchinfo = false;
var heartbeat_match... |
/*
* Created by lukepowell on 12/15/16.
*
* All content copyright DigiPen Institute of Technology 2016
*
* This file modified by DigiPen Institute of Technology USA
* All modifications DigiPen Institute of Technology USA 2017
* These modifications are not under the Apache license
*
* Start modifications by Dig... |
var END = 10001;
var TIMESUP = 10000;
var BASECASE = 20;
var MOVELISTSIZE = 2;
var ANDCONST = -8;
var INFINITE = 1000000;
var LASTSAMURAI = 5;
var allAboard = [];
for (var i = 0; i < 8; i++) {
allAboard[i] = [0,0,0,0,0,0,0,0];
}
var reesesPieces;
var mexicanStandoff;
var ... |
var MathInitializer=math.evaluate('1+1'),
tmp_editor_string=document.createElement('textarea'),
regex=["+","-","*","/","(",")","^"],
prev="Previous Answer: ",
timer,
longDuration=500
let history=[];
const parentView=document.getElementById("app");
//for looping the eqution returns the boo... |
// MODULES //
import React, { Component, Fragment } from 'react';
import PropTypes from 'prop-types';
import logger from 'debug';
import tokenize from '@stdlib/nlp/tokenize';
import contains from '@stdlib/assert/contains';
import isEmptyObject from '@stdlib/assert/is-empty-object';
import isStrictEqual from '@stdlib/a... |
const fs = require("fs");
const net = require('net');
const WebSocketServer = require('websocket').server;
const http = require('http');
const express = require('express');
const util= require('util');
const os = require('os');
var java = require('java');
java.asyncOptions = {
asyncSuffix: "Async", // ... |
import React from 'react'
import Dialog from 'material-ui/Dialog'
import FlatButton from 'material-ui/FlatButton'
import SelectField from 'material-ui/SelectField'
import MenuItem from 'material-ui/MenuItem'
import TextField from 'material-ui/TextField'
import GMAlgorithmCard from './GMAlgorithmCard'
import GMFileInpu... |
// File: ryapph.js
// Description: Implements the default application and window handler
var apph=this, menu, app, mainapp, appframes;
var returnfield, returnValue;
var menuobjects=[]; // Contains references to menu objects.
var info,popup,menubar,toolbar,hotkey,appcontrol;
var latercmd=[]; // ... |
function wp_action(data, svg_area, silent) {
var silent = silent || false;
var now = new Date();
edit_times.push(now);
to_save = [];
if (edit_times.length > 1) {
for (var i = 0; i < edit_times.length + 1; i ++) {
var i_time = edit_times[i];
if (i_time) {
... |
const path = require('path')
const { spawn, spawnSync } = require('child_process')
const config = require('./config')
const fs = require('fs-extra')
const crypto = require('crypto')
const autoGeneratedBraveToChromiumMapping = Object.assign({}, require('./l10nUtil').autoGeneratedBraveToChromiumMapping)
const runGClient... |
'use strict';
const assert = require('assert');
const EventEmitter = require('events');
const stream = require('stream');
const tls = require('tls');
const util = require('util');
const common = require('_tls_common');
const debug = util.debuglog('tls-legacy');
const Buffer = require('buffer').Buffer;
const Timer = pr... |
/* eslint-disable max-len */
/* global actions, api */
const TradeType = ['exactInput', 'exactOutput'];
actions.createSSC = async () => {
const tableExists = await api.db.tableExists('pools');
if (tableExists === false) {
await api.db.createTable('pools', ['tokenPair']);
await api.db.createTable('liquidit... |
import React, { useState } from 'react'
import './Calendar.css'
import OngoingTasks from '../OngoingTasks/OngoingTasks'
import UpcomingTasks from '../UpcomingTasks/UpcomingTasks'
import ArrowBack from '@material-ui/icons/ArrowBack'
import ArrowForward from '@material-ui/icons/ArrowForward'
import Add from '@material... |
/*
* The contents of this file are subject to the license and copyright
* detailed in the LICENSE and NOTICE files at the root of the source
* tree and available online at
*
* http://www.dspace.org/license/
*/
// Client-side scripting to support DSpace Choice Control
// IMPORTANT NOTE:
// This code depends on a... |
import ObjectMap from './ObjectMap';
import { EventEmitter } from 'events';
import Debug from './debug';
import defaultFieldMap from './fieldMap';
import { validateYupSchema, validateAjvSchema } from './utils';
const debug = Debug('informed:Controller' + '\t');
const isExpected = (path, expectedRemovals) => {
const... |
function sleepPolybios(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
var matriz = new Array(6); // crea una matriz de longitud 6
var cancelado = false;
var velocidad = 1;
var azul = 0, negro = 1;
var alfabeto = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "ñ", "o", "p", "q... |
/*jshint laxbreak: true */
/*jshint laxcomma: true */
var _ = require("underscore");
var d3 = require("d3");
var Constants = require("./Constants");
var DataLoader = require("./DataLoader");
var CategoryFactory = require("./CategoryFactory");
var ViewerHelper = require("./ViewerHelper");
var FeatureFactory = require(... |
/*-------------------------------------------------------------------------------------------------------------------*\
| Copyright (C) 2015-2016 PayPal |
| ... |
import * as is from '../../is';
import { assignBoundingBox, assignShiftToBoundingBox, clearBoundingBox, expandBoundingBox, makeBoundingBox, copyBoundingBox } from '../../math';
import { defaults, getPrefixedProperty, hashIntsArray } from '../../util';
let fn, elesfn;
fn = elesfn = {};
elesfn.renderedBoundingBox = fu... |
// 0x07002800 - 0x070028F0
import {
gsDPSetTextureImage, gsDPLoadSync, gsDPLoadBlock, gsSPVertex, gsSP2Triangles, gsSP1Triangle,
gsSPEndDisplayList, gsDPPipeSync, gsDPSetCycleType, gsDPSetRenderMode, gsDPSetDepthSource,
gsDPSetFogColor, gsSPFogFactor, gsSPSetGeometryMode, gsDPSetCombineMode,
gsSPClearG... |
/**
*
* Wysiwyg
*
*/
import React from 'react';
import {
ContentState,
EditorState,
getDefaultKeyBinding,
genKey,
Modifier,
RichUtils,
SelectionState,
} from 'draft-js';
import PropTypes from 'prop-types';
import { isEmpty, isNaN, replace, words } from 'lodash';
import cn from 'classnames';
import { ... |
/* eslint-disable no-invalid-this */
// validators are a mixin, so it's okay that we're using 'this' all over the place
"use strict";
const {
printHex,
coerceToArrayBuffer,
coerceToBase64,
abEqual,
abToBuf,
abToPem,
abToInt,
} = require("../utils");
const {
Certificate,
CertManager,
} = require("../certUtil... |
/*
oclif command to update the balances stored in the wallet.json file.
TODO:
- Add notes on the general high-level workflow of this command.
- Replace Blockbook with Electrumx
Command Workflow:
- validateFlags() validates the flags passed into the command.
- updateBalances() is the parent function th... |
/*
Scale info for the current images.
scale = 100 means the standard amiibo base will fit exactly in its container at img width = 100%
scale = 385 means the standard amiibo base will fit exactly in its container at img width = 390% (guardian)
left = 50 means that the center of the amiibo base is 50% from the l... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.