text stringlengths 8.5k 48.7k |
|---|
/* Datamapper.js
* Maps item data provided from rawData.txt to each hero sorted by the item type
* Items added in events are then mapped from this hero data.
* Code on this page is synchronous, it works it's way down.
*/
const fs = require('fs');
const _ = require('lodash');
const alphaNumSort = require('./dataMapp... |
// a spectrum viewer
//
// Copyright 2015 Rappsilber Laboratory, Edinburgh University
//
// 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/LICE... |
/*global target,connection*/
import {
Morph, Icon,
ProportionalLayout,
config,
Text,
ShadowObject,
GridLayout,
TilingLayout,
StyleSheet,
CustomLayout,
morph,
HorizontalLayout,
VerticalLayout,
} from "lively.morphic";
import KeyHandler from "lively.morphic/events/KeyHandler.js";
import { connect... |
/**** CUSTOM SIDEBAR ****/
// Custom delimiter for Vue templates
// Refer to sidebar folder
/**** END SIDEBAR ****/
var KNOWN_ISSUES_ARTICLE_ID = 360050652674;
function getLangPath(lang) {
const pathArr = window.location.pathname.split("/");
pathArr.splice(2, 1, lang.toLowerCase());
return pathArr.join("/");
}
fu... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.minCellWidth = undefined;
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)) ... |
var container;
var info;
var camera, scene, renderer, labelRenderer;
var plane1;
var mouse, raycaster;
var rackMaterial, airMaterial;
var rollOverMesh, rollSize;
var newRackMesh;
var NEWRACK;
var SELECTED, LABEL;
var objects = [];
var offsetTop;
var line;
var pos_y = 0;
var meshWidth, meshDepth, meshHeight;
v... |
// Copyright 2019-2020 <NAME>, <EMAIL>. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by... |
/**
* @title Color TOJ Neg 6
* @description Experiment on negation in TVA instructions (dual-colored version with two stimuli, a merge of experiment color-toj-negation-05.js as a skeleton (meta data collection and trial generation) and experiment color-toj-negation-02.js for trial presentation (display of two stimuli... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ReferenceInput = void 0;
var _react = _interopRequireWildcard(require("react"));
var _types = require("@sanity/types");
var _icons = require("@sanity/icons");
var _rxjs = require("rxjs");
var _autoId = require("@reach/auto-id")... |
/*
* Add integers, wrapping at 2^32. This uses 16-bit operations internally
* to work around bugs in some JS interpreters.
*/
function safeAdd(x, y) {
var lsw = (x & 0xffff) + (y & 0xffff);
var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
return (msw << 16) | (lsw & 0xffff);
}
/*
* Bitwise rotate a 32-bi... |
//var message = require('./script-2');
//alert(message);
//Validator.localize('ru', ru);
//import VeeValidate, { Validator } from 'vee-validate';
//import ru from 'vee-validate/dist/locale/ru';
//import VeeValidate, { Validator } from 'vee-validate';
//import ru from 'vee-validate/dist/locale/ru';
Validator.localize... |
import React, { Component } from 'react'
import './index.css'
import ItemListing from '../ItemListing'
import EquippedItems from '../EquippedItems'
import _ from 'lodash'
import IntroModal from '../IntroModal'
import CharacterList from '../CharacterList'
import 'react-notifications/lib/notifications.css'
import {Notifi... |
///<reference path='typings/tsd.d.ts' />
var Mansion;
(function (Mansion) {
var Config = (function () {
function Config() {
}
Config.WALL_COLOR = "#ff0000";
Config.FLOOR_COLOR = "#ffffff";
Config.DOOR_COLOR = "#00ffff";
Config.DELETE_COLOR = "#000000";
Config.... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var three = require('three');
var GLTFLoader = require('three/examples/jsm/loaders/GLTFLoader');
var BufferGeometryUtils = require('three/examples/jsm/utils/BufferGeometryUtils');
var cannon = require('cannon');
var Transition = /** @class ... |
// protoRPG
// A prototype role-playing game Javascript library by tokyotribe/<NAME>
// Open-sourced on 26 Dec 2011
function addoption(selectbox, optionobject) // add option to a select object
{
var optn=document.createElement("option");
optn.text=optionobject.iname;
optn.value=optionobject.iname;
selectbox.optio... |
/**
* 在线调试页面js
* @author x
* @since 2018年7月20日
*/
$(document).ready(function(){
$("#debugRequstType .dropdown-menu li").click(function(){
var text = $(this).find("a").text();
$("#debugRequstType .options").text(text);
});
/**
* 保存参数模板
* @returns
*/
$(".save-request-template").click(function(){
Toast... |
let waitDB = false;
let waitFriendDB = false;
let currentEnsemble = null;
let storeEnsembles = [];
let storeProjects = [[]];
let maxProjects = 3;
let myLayer;
let currentDB = 'drawings/';
let refDB;
let tempKeys;
let storeKeys = [];
let newdbKeys = [];
let storeSketches = [];
let slots = [];
let currentLayerKey = ... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = undefined;
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)) { targ... |
/*
** Module: node-apri-aireas-signal
**
**
**
**
*/
// **********************************************************************************
"use strict"; // This is for your code to comply with the ECMAScript 5 standard.
// activate init process config-main
var path = require('path');
var startFolder = __dirname;
va... |
/*
*
* Wijmo Library 3.20141.34
* http://wijmo.com/
*
* Copyright(c) GrapeCity, Inc. All rights reserved.
*
* Dual licensed under the MIT or GPL Version 2 licenses.
* <EMAIL>
* http://wijmo.com/widgets/license/
* ----
* Credits: Wijmo includes some MIT-licensed software, see copyright notices be... |
const antlr4 = require('antlr4/index')
const R = require('ramda')
const ModelLexer = require('./ModelLexer').ModelLexer
const ModelParser = require('./ModelParser').ModelParser
const ModelReader = require('./ModelReader')
const LoopIndexVars = require('./LoopIndexVars')
const Model = require('./Model')
const {
sub,
... |
/*
* Your installation or use of this SugarCRM file is subject to the applicable
* terms available at
* http://support.sugarcrm.com/Resources/Master_Subscription_Agreements/.
* If you do not agree to all of the applicable terms or do not have the
* authority to bind the entity as an authorized representative, then... |
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.hasOwnProperty(p)) d[p] =... |
const MAX_FIELD = 50;
const MAX_LABEL_BYTE = 100;
const MAX_URL_BYTE = 300;
const ADD_FIELD_CLASS = "add";
const ADD_FIELD_DURATION = 1.5 * 1000;
const SCROLL_RACIO = 1/2;
const CELL_TEXT_MAX_LENGTH = 31 /* Archaiomelesidonophrunicherata */
const JP_FROM = [
"0","1","2","3","4","5","6","7","8","9",
"A","B","C","D","... |
new ClipboardJS('#copyBtn');
let stageWidth = 800;
let stageHeight = 500;
let app = new Vue({
el: '#app',
data: {
stageSize: {
width: stageWidth,
height: stageHeight,
},
theme: {
name: 'Enter Your Theme Name Here',
author: '',
content: {
teal: '#7ADBBC', ... |
////////////////////////////////////////////
/// Author: <NAME> ///
/// Tabel of Contents: ///
/// I: Modal Functions ///
/// II: Form Validation ///
/// III: Other Functions ///
/// IV: $(document).ready(function(){}) ///
/// ///
/// ///
/// ///
/// ... |
console.clear()
// 向量方法 ----------------------------
// 1. 先建立vec2
class Vec2 {
constructor(x,y){
this.x = x || 0
this.y = y || 0
}
add(v){
return new Vec2(this.x+v.x,this.y+v.y)
}
sub(v){
return new Vec2(this.x-v.x,this.y-v.y)
}
mul(mul){
return new Vec2(this.x*mul,this.y*mul)
}
s... |
// Mafia game logic
// Refer to https://en.wikipedia.org/wiki/Mafia_(party_game)
//
// Later for addional roles - check here: https://summoning.ru/games/mafia.shtml
// or here: https://en.wikipedia.org/wiki/Mafia_(party_game)
//
// Option: dead disclose their role or not (default - no)
// Option: mafia doesn't talk (in... |
///////////////////////////////////////////////////////////////////////////////
//EVENTS PLUGINS
//Modernizr
if (Modernizr.touch) {
$("#smltown_html").addClass("smltown_touch");
SMLTOWN.touch = true;
console.log("TOUCH");
} else {
$("#smltown_html").addClass("smltown_mouse");
}
var touchstart = ('onto... |
/* eslint no-param-reassign:0 */
// Unfortunately, we do a lot of parameter reassignment in this class, so we're
// disabling this rule for the entire file.
import { EventEmitter } from 'events';
import setDebug from 'debug';
import sql from 'mssql';
import promiseRetry from 'promise-retry';
import promiseReduce from ... |
"use strict";
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope... |
/*
TODO:
- Remove unused code chunks.
- Expose the various boid factors in the encapsulation with some sort of api
- expose the MAX_BOIDS constant as well and generate the glsl file dynamically.
- Add the maxNeighborDistance and the maxCloseness as uniforms in the glsl file
- Display a count of the boids
- Display the ... |
// 0x0700B240 - 0x0700B340
import {
gsDPSetTextureImage, gsDPLoadSync, gsDPLoadBlock, gsSPVertex, gsSP2Triangles, gsSP1Triangle,
gsSPEndDisplayList, gsDPPipeSync, gsDPSetCombineMode, gsSPClearGeometryMode, gsDPSetTile,
gsSPTexture, gsDPTileSync, gsDPSetTileSize, gsSPDisplayList, gsSPSetGeometryMode,
G_... |
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _classCallCheck(instance, Constructor) { if (!(insta... |
//Fungsi untuk Persiapan Individu
function generateIndividual() {
let model = mod;
return model;
};
//Fungsi untuk Mencari Nilai Fitness
function getFitness(indv) {
let fitness = 0;
let s1 = 0;
let s2 = 0;
let s3 = 0;
let s4 = 0;
let maxDosen = 12;
let maxShift = 2;
let errShift = 0;
let errDos = 0;
... |
/*
* Copyright (c) 2014 Juniper Networks, Inc. All rights reserved.
*/
dnsServersConfigObj = new dnsServersConfig();
function dnsServersConfig() {
//Variable definitions
//Text Box
var txtDNSServerName, txtDomainName, txtTimeLive;
//Dropdowns
var ddDomain, ddProject, ddLoadBal, ddType;
//... |
var DEAD_COLOR = 0x1f1f1f;
var ALIVE_COLOR = 0x00a000;
var This;
LIFE.ThreeDBoard = function(width, height, window, document, webGL, topMargin) {
This = this;
this.BOARD_SIZE_X = width;
this.BOARD_SIZE_Y = height;
this.SIDE = .9 ;
this.GAP = .1;
this.objects = [];
this.MUL = 2;
this.DX = (this.SIDE + this.GAP)... |
/**
* Copyright 2018 The AMP HTML Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... |
/*Copyright 2018 Bang & <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublice... |
/*
Copyright 2007-2009 WebDriver committers
Copyright 2007-2009 Google Inc.
Portions copyright 2011 Software Freedom Conservancy
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.ap... |
var catchFirstUrl = 'https://anime-pictures.net',
//bing_link = 'http://www.bing.com/HPImageArchive.aspx?format=js&idx=0&n=1&mkt=zh-CN';
// bing_link = 'https://bing.ioliu.cn/v1/rand';
bing_link = 'https://uploadbeta.com/api/pictures/random/?key=BingEverydayWallpaperPicture';
var currentImg;
function Init() {
let p... |
//kontroler za obnašanje about strani
scrumkin.controller('MyTasks', function($scope, $http, $rootScope, $location, LoggedUserService, StoryService, UserService) {
//preverimo, ce je uporabnik logiran
$rootScope.userLogged = false;
$scope.user = LoggedUserService.getUserToken();
$rootScope.us... |
// based on https://bl.ocks.org/mapio/53fed7d84cd1812d6a6639ed7aa83868
// Collision Strength: 1.0 ~ 8.0
var collisionStrength = 1;
var width = 1000;
var height = 600;
var border = 1;
var bordercolor = "black";
var color = d3.scaleOrdinal(d3.schemeCategory10); // coloring of nodes
var graph = {
"nodes"... |
"use strict";
/*
* Copyright (c) 2006-2009 <NAME> http://www.box2d.org
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
* Permission is granted to anyone to use this software for ... |
var SIZE = 60;
var COLOR_PATTERN = /^#([0-9a-f]{3}){1,2}$/i;
var COLOR = [];
var onHoldPicker = false;
var onHoldIndicator = false;
widget.ColorPicker = function () {
function colorPickerClickHandler(event) {
var colorPicker = ColorPicker.findInstance(event);
if (!colorPicker || !colorPicker.enabled... |
const Crypto = require('crypto')
const schedule = require('node-schedule')
const fs = require('fs')
const { MCanvas, MImage } = require('mcanvas')
const { log } = require('wechaty')
const { addRoom, getRoom } = require('../common/roomAvatarDb')
/**
* 设置定时器
* @param {*} date 日期
* @param {*} callback 回调
*/
//其他规则见 h... |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true... |
// candle.svg.js
import env from './candle.env.js';
import mocknode from './mocknode.js';
import metrics from './candle.metrics.js';
import WrapperBase from './candle.base.js';
/* ------------------- */
/* SVG描画可能条件 */
/* ------------------- */
const _doc = metrics.document;
const isBrowser = env.browser;
const ... |
/*
该模块用于调度HttpDownloader和RTCDownloader
config:{
initialDownloaders: [], //初始的httpdownloader数组,必须
chunkSize: number, //每个chunk的大小,默认1M
fileSize: number, //下载文件的总大小,必须
interval: number, //滑动窗口的时间间隔,单位毫秒,默认5s
auto: boolean, //true为连续下载buffer
useMonitor: boolean, //开启监控器,默认关闭
... |
/**
* Termy.js - An easily customisable web terminal interface.
* ==========================================================
* Copyright (c) 2017 - 2018 TheDragonRing <<EMAIL>>, under the MIT License.
*/
// Custom commands
const commands = {
// command name - STRING - e.g. hello
time: {
// command descript... |
"use strict";
/********************************************************************************
* Copyright (C) 2018 TypeFox 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/legal/epl... |
/**
* Copyright 2020 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... |
/*
Matrix3d
A port of Webkit's source code of 4x4 Matrices operations.
Implements methods from both SkMatrix44 (types, concat, invert, ...) and transform_util (decomposition, composition, ...)
Differences between implementations:
- All operations are non desctructive, applied on a new Matrix3d instance.
- Convenienc... |
/*
*= require jquery.Jcrop.min.js
*= require mb.bgndGallery.js
*= require mb.bgndGallery.effects.js
*= require jquery.hashchange.min.js
*= require knockout-sortable.js
*= require loglevel.js
*= require masonry.min.js
*= require prize.js
*= require strftime.js
*= require section.js
*= require rating.js
*= require dish.j... |
/**
* Copyright 2017 Google Inc. All rights reserved.
* Modifications copyright (c) Microsoft Corporation.
*
* 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.or... |
const Apify = require('apify');
const vm = require('vm');
const Puppeteer = require('puppeteer'); // eslint-disable-line no-unused-vars
const moment = require('moment');
const _ = require('lodash');
const { LABELS } = require('./constants');
const countries = require("../data/countries.json");
const { SUPPORTED_LANGUAG... |
/**
* 滚动通知-自制
*/
var marqueeInterval;
window.onload = (function () {
var content = $('#marquee1 .marquee_inline_content');
var text = $('#marquee1 .marquee_inline_content .marquee_inline_text');
var w_text = text.width();
var w_content = content.width();
var left = w_content - 30;
clearInterva... |
// section education content margines
const armBit = document.querySelectorAll(".educ-exper__cont_head_left")[0];
const microsoft = document.querySelectorAll(".educ-exper__cont_head_left")[1];
const college = document.querySelectorAll(".educ-exper__cont_head_left")[2];
const ugeek = document.querySelectorAll(".educ-exp... |
/* global System */
import { arr, fun, Path, promise } from "lively.lang";
import { pt } from "lively.graphics";
import config from "../config.js";
import TextInput from './TextInput.js';
import KillRing from './KillRing.js';
import { Event, KeyEvent, SimulatedDOMEvent, keyLikeEvents } from './Event.js';
import { cumul... |
/* jsing dashboard */
viewLoader.add('dashboard', Dashboard);
//interval handler
var dashboardLoopFunction = null;
// requires
//requester.js
//loadingManager.js
//replaceAll();
//getRandomString();
//getRandomInt();
//formatDate();
function Dashboard() {
var CONFIG = {
api: {
mineboxStatus: {
url: ... |
// rj-auxilary.js content (ES5, contains tools necessary for writing rj-gallery.js)
var aUtils = aUtils || {
// Removing class
// pass only elSelector -> remove all classes from selected objects
// pass elSelector and elClass -> remove elClass from selected objects
removeClass: function (elSelector, elClass) {... |
import querystring from 'querystring';
import get from 'lodash/get';
import isArray from 'lodash/isArray';
import isObject from 'lodash/isObject';
import flatten from 'lodash/flatten';
import identity from 'lodash/identity';
import some from 'lodash/some';
import size from 'lodash/size';
import negate from 'lodash/nega... |
/*
--------------------------------------------------------------------------------
- lib/treasury.js
--------------------------------------------------------------------------------
*/
/* eslint camelcase: 0 */
const XLSX = require('xlsx')
const _ = require('lodash')
const {
applic... |
/**
* Copyright 2017 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... |
import LayerSwitcher from "./LayerSwitcher";
import Isocurve from "./Isocurve";
import MousePosition from "./MousePosition";
import ReverseGeocoding from "./ReverseGeocoding";
import Route from "./Route";
import SearchEngine from "./SearchEngine";
import ElevationPath from "./ElevationPath";
import Logo from "./Logo";
... |
/* global window */
import React, { useState, useMemo, useEffect } from "react";
import GradientDefinition from "./components/GradientDefinition";
import AdministrativeMap from "./components/AdministrativeMap";
import NationalMap, { NationalMapSynced } from "./components/NationalMap";
import ViewableMonitor from "./co... |
// delete files / folders
var fileName = '';
var projectName = '';
var option = '';
var intJobStatus;
var baseURL = $('#base-url').val();
var intervalProgress;
var globPID;
var globFileName;
function deleteProject(project, name){
$.ajax({
type: "GET",
url: baseURL + "applib/manageProjects.php",
data: "op=delet... |
// https://www.geogebra.org/3d/qxejdpty
//https://www.geogebra.org/3d/sadtqz3x
const canvas = document.getElementById( "testSurface" );
const ctx = canvas.getContext( '2d' );
const BASE_COLOR_WHITE = [255,255,255,255];
const BASE_COLOR_BLACK = [0,0,0,255];
const BASE_COLOR_RED = [255,0,0,255];
const BASE_COLOR_BLUE ... |
import { existsSync } from 'fs'
import { hostname } from 'os'
import { describe } from '@dr-js/core/module/common/format.js'
import { isBasicArray, isBasicFunction, isBasicObject, isString } from '@dr-js/core/module/common/check.js'
import { getUTCDateTag } from '@dr-js/core/module/common/time.js'
import { expandHome ... |
var common = require('../../../utils/util.js');
let app = getApp();
let seek = 0;
let defaultdata = {
playing: false,
music: {},
playtime: '00:00',
duration: '00:00',
percent: 1,
disable: false
};
Page({
data: {
userInfo: {},
music: {},
playtime: "00:00",
duration: "00:00... |
import _regeneratorRuntime from "@babel/runtime/regenerator";
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
import _typeof from "@babel/runtime/helpers/esm/typeof";
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
import "antd/es/config-provider/style";
import _Confi... |
const EventsController2 = (
$scope,
$window,
$rootScope,
$routeParams,
$cookieStore,
$location,
httpServiceInterceptor,
eventAPIservice2,
urlBase,
epicoreMode,
epicoreVersion,
Upload,
$timeout,
epicoreStartDate,
) => {
const http = httpServiceInterceptor.http;
$scope.mobile = epicoreMode... |
/*
author: 斯人
QQ: 103024979
Email: <EMAIL>
update:
2012.9.7
Fixed: mac + firefox13 下农历日期显示为 Undefined
原因:对数组索引的浮点数时处理 有差异 [2.0001] ==> [2]
2011.9.26:
1. 按jsdoc规范更新注释
2. 扩展G.date.format方法
3. 调整接口,参数省略策略统一为 G.date.format/G.date.lunarTpl/G.date.islTpl 允许省略
4. 获取生肖名拆分为独立接口 G.date.toSx()
*/
//parse string to array by ... |
// Main document
var data = {};
// Name of the current view
var view = 'index';
// Options of the current view
var viewData = {};
// Nonpersistent settings
var settings = {
benchFilter: {
improvements: true,
boring: false,
regressions: true,
},
collapsedGroups: [true, false, false, false],
compare: ... |
//////////////////////////////////////////////////////////////////////////////
// rps-game/javascript/app.js
// Rock-paper-scissors game using Firebase
//
// 0004 Wednesday, 5 Nisan 5779 (10 April 2019) [EDT] {17996}
//
// University of Richmond Coding Boot Camp run by Trilogy Education Services
// <NAME>
//
... |
var Play = function ( editor ) {
// hook for character customization
this.characterCustomization = undefined;
this.callbacks = {
characterCreated: undefined
};
this.characterLineDrawDistanceTreshold = 1.5;
this.effects = new Play.Effects();
this.gestureDisplay = document.createElement( 'img' );
this.ge... |
/* See also:
http://www.html5rocks.com/en/tutorials/webrtc/basics/
https://code.google.com/p/webrtc-samples/source/browse/trunk/apprtc/index.html
https://webrtc-demos.appspot.com/html/pc1.html
*/
//FIXME: utiliser le localstorage à la fin du dév
var stockage = sessionStorage;
// est-ce que l'utilisateur a... |
window.onload = function init() {
const [gl, aspect] = setupWebGL();
const gos = new GameObjects(gl);
const gui = new GUI(aspect);
start(gos.gameObjects);
render(gl, gos.gameObjects, gui);
};
class Script {
constructor() {
this.gameObject = -1;
this.gameObjects = {};
}
start() { ... |
"use strict";
/*
* Copyright (c) 2018, salesforce.com, inc.
* All rights reserved.
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
Object.defineProperty(exports, "__esModule", { value: true });
const apexRe... |
// manage4.ns
import { argparse } from "argparse.ns";
var global_filler_id = Math.floor(Math.random() * 10000000)
function loadcfg(ns, config) {
var cfg = JSON.parse(ns.read(config))
if (!cfg.tmp_path) {
throw ".tmp_path must be specified (recommended: '/tmp')"
}
if (!cfg.targets) {
... |
const { EventEmitter } = require('events');
const util = require('util');
const _ = require('lodash');
const uuid = require('uuid');
const isStream = require('isstream');
const retry = require('retry');
const cqlDriver = require('cassandra-driver');
const cqlTypes = require('./util/cql-types');
const fakeLogger = re... |
// Area of script data
import CryptoJS from 'crypto-js'
import Table from 'cli-table3'
import EventEmitter from 'events'
import { SimProfiler } from '../SimProfiler.js';
globalThis.runTimes = { contextSetup: 0, gameGeneration: 0, scriptSetup: 0, simRunning: 0, simFinalize: 0, simResults: 0 }
globalThis.logFuncs = { lo... |
"use strict";
var canReflect = require("can-reflect");
var canSymbol = require("can-symbol");
var namespace = require("can-namespace");
var queues = require("can-queues");
var canAssign = require("can-assign");
//!steal-remove-start
if(process.env.NODE_ENV !== 'production') {
var canLog = require("can-log/dev/dev");
... |
var state_map_container_id = "#state_map-grid-container";
var state_map_id = "#state_map-content";
var state_plot_id = "#state_plot-content";
var state_affiliation_id = "#state_map-affiliation";
var maptype = 'geojson';
var state_map_width = $(state_map_container_id).width();
var state_map_height = $(state_map_contai... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Helmet from 'react-helmet';
import { reduxForm, isPristine } from 'redux-form';
import { connect } from 'react-redux';
import { toastr } from 'react-redux-toastr';
import { push as pushState } from 'react-router-redux';
import Moment f... |
var last_baseline = 0;
var CreatePDF = function() {
this.doc = false;
this.texts = {};
this.parsedFonts = [];
this.registered_fonts = {};
this.createDoc = async () => {
$("#apply-popup").addClass("active");
$("#apply-popup .modal-header").removeClass("hidden");
$(".creating_document").show();
$(".create_fi... |
/*
LabelCore
author:q6q64399(<EMAIL>)
*/
"use strict";
function LabelCore(element, labelList, multi, data, saveCB, confirmCB, addCB, deleteCB) {
const threshold = 5;
const strokeWidth = 3;
const area = element.querySelector(".label-area");
const popup = element.querySelector(".label-popup");
const ma... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
// Note: the main functions or entry points reside in ./exportPage.ts
const deepmerge_1 = __importDefaul... |
/**
* Created by strawmanbobi
* 2016-11-27
*/
// system inclusion
fs = require('fs');
var crypto = require('crypto');
// global inclusion
require('../mini_poem/configuration/constants');
var orm = require('orm');
var AdminAuth = require('../authentication/admin_auth.js');
var PythonCaller = require('../mini_poem/e... |
//canvas
var margin={top:25, right:35, bottom:125, left:15},
width=1500-margin.left,
height=2500-margin.top-margin.bottom;
var svg1=d3.select("#chart").append("svg")
.attr("width",1500)
.attr("height",2500)
.append("g")
//geocanvas setting
var geo = d3.select("#fixed");
geo.width=450;
geo.height=750;
geo.attr(... |
import { mat3, mat4 } from 'gl-matrix';
import * as macro from 'vtk.js/Sources/macro';
import vtkMapper from 'vtk.js/Sources/Rendering/Core/Mapper';
import vtkProperty from 'vtk.js/Sources/Rendering/Core/Property';
import vtkTexture from 'vtk.js/Sources/Rendering/Core/Texture';
import vtkWebGPUBufferManager from 'vtk.... |
/* Copyright (C) 2016 NooBaa */
'use strict';
const _ = require('lodash');
const util = require('util');
const stream = require('stream');
const dbg = require('../util/debug_module')(__filename);
const config = require('../../config');
const os_utils = require('../util/os_utils');
const Pipeline = require('../util/pi... |
/* eslint-disable no-continue */
import _ from 'underscore';
import Onyx from 'react-native-onyx';
import lodashGet from 'lodash/get';
import lodashOrderBy from 'lodash/orderBy';
import Str from 'expensify-common/lib/str';
import ONYXKEYS from '../ONYXKEYS';
import CONST from '../CONST';
import {
getReportParticipa... |
var ajax = true;
var dragFiles;
var isUploading;
var filesSelected;
var keyFileSelected;
var all_files_selected = false;
var params = [];
var no_selected_files = [];
var wdb_all_files_filtered = [];
jQuery(document).ready(function () {
var page = 1;
var page_per = jQuery("#explorer_body").data('page_per');
jQuery("... |
// This is free and unencumbered software released into the public domain.
// See LICENSE.md for more information.
const {
assert_equals,
assert_not_equals,
assert_false,
assert_true,
assert_array_equals,
assert_throws,
} = require('../assert-package.js');
require('../../dist/umd/encoding-indexes');
const... |
//###########################################################################################
class MathUtil{
// Normalize x value to x range, then normalize to lerp the z range.
static Map(x, xMin, xMax, zMin, zMax){
return (x - xMin) / (xMax - xMin) * (zMax - zMin) + zMin;
}
}
//################################... |
var socket ,iceConfig, optional, popid, yt_playlist, yt_id, yt_data, ytplayer, sChat;
var setmediaautoplay = 0;
var templink = 'BDf4fvubExc';
var defaultytsize = 'default';
var loadedyt = true;
var input_placeholder = false;
var onloaded = () => {
ChatHobby.member(window,document);
};
var getid = (data) => {
return d... |
var _ = require('lodash');
var async = require('async');
var bignum = require('bignumber.js');
var ripple = require('ripple-lib');
var transactions = require('./transactions');
var validator = require('./../lib/schema-validator');
va... |
function CGame(oData){
var _bUpdate = false;
var _bFold;
var _bPairPlus;
var _iTimeElaps;
var _iMaxBet;
var _iState;
var _iCurIndexDeck;
var _iCardIndexToDeal;
var _iGameCash;
var _iTotWin;
var _iAnteBonusWin;
var _iTotWinPairPlus;
var _iCurDealerCardShown;
var _i... |
"use strict"
var helper = require("./helper.js");
class BridgeField {
constructor (name, fkColumn, modelName, isAutoGenerated) {
this.name = name;
this.fkColumn = fkColumn;
this.isAutoGenerated = isAutoGenerated;
this.modelName = modelName;
}
}
class ToManyField {
constructor (name, fkColumn, m... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.