text stringlengths 5.97k 41.2k |
|---|
import Intact from 'intact/dist';
import Vue from 'vue';
const {h, hooks, config} = Intact.Vdt.miss;
const {get, set, extend, isArray, create, hasOwn, each} = Intact.utils;
const _textVNode = Vue.prototype._v('');
const VueVNode = _textVNode.constructor;
const _testData = {};
const _vm = new Vue({data: _testData});
co... |
Stage.prototype = new Task();
Stage.prototype.constructor = Stage;
function Stage(graph, stagestate) {
Task.prototype.constructor.call(this, graph, stagestate);
var stage = this;
var nodes = this.nodes;
this.taskindex = 0;
stage.graph.depBehaviors = [];
stage.graph.ghostBehaviors = [];
stage.extractions = {}... |
// @flow
/* eslint quote-props: "off" */
/**
* @name data.champions
* @namespace Name, Role, Role, Attack, Defense, Ability, Difficulty, Tracking Number (hid)
*/
var champion;
// http://leagueoflegends.wikia.com/wiki/List_of_champions
// Name, Role, Role, Attack, Defense, Ability, Difficulty, Tracking Number (hid... |
/* eslint-disable */
"use strict";
/**
* Module dependencies.
*/
const debug = require("debug")("koa:application");
const onFinished = require("./on-finished"); // const onFinished = require('on-finished') 引用自己的 on-finished,主要作用:当 HTTP 请求关闭、完成或出错时执行回调
const response = require("./response");
const compose = require(... |
// store maps in JSON format for suggestions
var maps_json;
var maps_stats = [];
var maps_commons;
var uuids;
$(function() {
// fetch author names
uuids = JSON.parse($('#loaded_uuids_json').text())
console.log(uuids)
var searchable = new List('searchable-collection', {
valueNames: ['tags',... |
'use strict';
var NEUTRAL = 1;
var KEYWORD = 2;
var NUMBER = 3;
var QUOTED = 4;
var AFTERQUOTE = 5;
var ENDED = -1;
var whitespace = /\s/;
var latin = /[A-Za-z]/;
var keyword = /[A-Za-z84]/;
var endThings = /[,\]]/;
var digets = /[\d\.E\-\+]/;
// const ignoredChar = /[\s_\-\/\(\)]/g;
function Parser(text) {
if (type... |
import Printer from './printer';
import Controls from 'h5p-lib-controls/src/scripts/controls';
import UIKeyboard from 'h5p-lib-controls/src/scripts/ui/keyboard';
import { defaultValue, contains, isFunction, addClickAndKeyboardListeners, isIOS } from './utils';
/**
* Enum indicating which state a navigation bar part i... |
/* ******************************************************************************
* StackedBarGraph.js *
* *************************************************************************/ /**
*
* @fileoverview React component to visualize binary relations calculat... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.WebSocket = exports.RouteHandler = exports.Route = exports.Response = exports.Request = exports.RawHeaders = void 0;
exports.validateHeaders = validateHeaders;
var _url = require("url");
var _channelOwner = require("./channelOwner... |
import React, { Component } from 'react';
import * as Constants from "components/GRComponents/GRConstants";
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import * as GlobalActions from 'modules/GlobalModule';
import * as ClientMasterManageActions from 'modules/ClientMasterManageMo... |
'use strict';
window.$ = window.jQuery = require('jquery');
window.Tether = require('tether');
window.Bootstrap = require('bootstrap');
const path = require('path');
const {is} = require('electron-util');
const https = require('https');
const fs = require('fs');
const async = require('async');
const axios = require('... |
/**
* Dropdown
*/
import React from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import styled from 'styled-components';
import cn from 'classnames';
import omit from 'lodash.omit';
import mapToCssModules from 'map-to-css-modules';
import { borderRadius } from '@bootstrap-styled/css... |
var page_name;
$(function () {
page_name = getQueryVariable("pgn");
if( !page_name ){
ShowEditorPageSelector();
return false;
}
$.ajax ({
url: 'page_editor/ajax/new_thread_ajax.php',
type: 'post',
data: {
oper: 'check_file_exist',
pgn: page_name
},
success: function (result) {
if(result ... |
// Load modules
var Events = require('events');
var Http = require('http');
var Https = require('https');
var Os = require('os');
var Path = require('path');
var Shot = require('shot');
var Boom = require('boom');
var Hoek = require('hoek');
var LruCache = require('lru-cache');
var Statehood = require('statehood');
va... |
/* eslint-disable prettier/prettier */
/* eslint-disable no-fallthrough */
/* eslint-disable react-native/no-inline-styles */
import React, {PureComponent} from 'react';
import {PanResponder, View, Platform} from 'react-native';
import Svg, {
Circle,
Rect,
Line,
G,
LinearGradient,
Path,
Defs,
Stop,
Im... |
const Discord = require("discord.js");
const Util = require("../classes/Util.js");
const interpreter = require("../interpreter.js");
const { mustEscape } = require("../utils/helpers/mustEscape.js");
const { ButtonStyleOptions } = require("../utils/Constants.js");
const SlashOption = require("./slashOption.js");
const ... |
const Azimuth = artifacts.require('Azimuth');
const assertRevert = require('./helpers/assertRevert');
const seeEvents = require('./helpers/seeEvents');
const web3abi = require('web3-eth-abi');
const web3 = Azimuth.web3;
contract('Azimuth', function([owner, user, user2, user3]) {
let azimuth;
before('setting up ... |
var version = 'v22';
var namePrefix = 'swblog-';
var nameReg = new RegExp('^' + namePrefix);
var businessKey = 'business-' + version;
var businessCacheName = namePrefix + businessKey;
var libCacheName = namePrefix + 'lib-' + version;
var imageCacheName = namePrefix + 'image';
var markdownCacheName = namePrefix + 'markd... |
const qmk = require("./javascript/backend.js");
const { createFile, fstat, existsSync, copySync } = require("fs-extra");
const { dialog } = require("electron").remote;
let keymap = undefined; // map as loaded in from file
let curLayer = undefined;
const KB_ASPECT_RATIO = 14 / 5;
let pickr;
let SelectedKey;
const lay... |
var program;
var canvas;
var gl;
var lightPosition = vec4( 30.0, 30.0, 50.0, 0.0 );
var lightAmbient = vec4( 0.2, 0.2, 0.2, 1.0 );
var lightDiffuse = vec4( 1.0, 1.0, 1.0, 1.0 );
var lightSpecular = vec4( 1.0, 1.0, 1.0, 1.0 );
var materialAmbient = vec4( 1.0, 0.0, 1.0, 1.0 );
var materialDiffuse = vec4( 1.0, 0.8, 0.0... |
'Use Strict';
var movieD = document.getElementById('Movie-Details'); /// To show up customer's selection
newArray = []; /// To show the user data
romanticMo = ['ROMANTIC LIST', 'After', 'Downton Abbey', 'Maleficent', 'Aladdin', 'Judy (II)'];
//console.log('romanticMo , romanticMo.length : ', romanticMo, roman... |
/**
OM = object model.
Example syntax for rules:
BASE = /\d+/ /\s+/ /\d+/
would parse:
75 54
and so would:
BASE = NUM /\s+/ NUM
NUM = /\d+/
(but produce a different object model).
*/
function dot() {}
function dotr() {}
//function dotr() { console.log.apply(console, arguments); }
function RuleItem(o) {... |
/**
* Header functions
* Shows submenu if exists and changes header colors
* @type {Element}
*/
// check if menu item contains dropdown menu
function checkHasMenu(){
if(this.querySelector('.dropdownmenu')){
headerOpen();
dropdownMenu.classList.add('dropdownmenu--active');
console.log('header open');
... |
var markerRadius = 12;
var markerStrokeWidth = 3;
var markerPointRadius = 6;
var markerPointStrokeWidth = 1;
var lineConnectStrokeWidth = 6;
/**
* Breaks down the side viz into 3 steps: clear, setOffense, run
*/
var sideVizManager = {
offense: null,
eventData: [],
flowData: [],
/**
* Sets ... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
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 ("... |
import React, { PureComponent } from "react";
import Search from "../Search";
import DAinput from "../DAinput";
import { connect } from "dva";
import {
Row,
Col,
Card,
Table,
Button,
Drawer,
Form,
Input,
Select,
Radio,
InputNumber,
Checkbox,
Icon,
Modal
} from "antd";
import globalUtil from ... |
var AnsiParser;
var Client;
(function () {
'use strict';
AnsiParser = {
// Simple state machine for parsing a subset of ANSI codes.
initialize: function () {
this.state = 'normal',
this.changed = false;
this.inSpan = false;
this.outputBuffer = [];... |
//---------------------------------------------------------------------------//
// Astronaut Library.js - Notify v1.0 //
// License: MIT //
// Author: <NAME>. //
// Githu... |
"use strict";
require("core-js/modules/es.symbol.js");
require("core-js/modules/es.array.slice.js");
require("core-js/modules/es.object.freeze.js");
require("core-js/modules/es.symbol.description.js");
require("core-js/modules/es.object.to-string.js");
require("core-js/modules/es.symbol.iterator.js");
require("c... |
/* global: require:false */
/* global: module:false */
"use strict";
var colors = require('colors');
var exec = require('child_process').exec;
var prompt = require('prompt');
var Q = require('q');
var semver = require('semver');
var sprintf = require('sprintf');
var util = require('util');
colors.setTheme({
exec: 'g... |
/*
* ALPHA.JS
* BY: OCTO DEVELOPMENT
*
* IF YOU USE THE SOURCE CODE OF THIS BOT,
* YOU MUST GIVE ME CREDIT.
*
* Copyright (c) 2018 Octo-Development
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "So... |
'use strict';
var isBrowserIEorEdge = require('../util').isBrowserIEorEdge;
var d3 = require('d3');
var _ = require('lodash/fp');
var assign = require('lodash').assign; // need mutable assign()
// *** Arrays as vectors ***
// Add vectors.
// Note: dimensions are not checked. Missing dimensions become NaN.
function a... |
var TOTAL_MONEY = START_MONEY = 100;
var WIN_OCCURRENCE = 30; //WIN PERCENTAGE. SET A VALUE FROM 0 TO 100.
var FREESPIN_OCCURRENCE = 10; //FREESPIN OCCURRENCE IF THERE IS A WINNING COMBO
var BONUS_OCCURRENCE = 10; //BONUS OCCURRENCE IF THERE IS A WINNING COMBO
var SLOT_CASH = 100; //THIS IS... |
const superagent = require('superagent');
const { det } = require("detergent");
const stripHtml = require("string-strip-html");
const fs = require('fs')
const cheerio = require('cheerio')
const moment = require('moment')
const spreadingSearchdb = require("./judgeAnalysisSearchFiles/spreadingSearchdb.json")
const flowin... |
import React from "react";
import PropTypes from "prop-types";
import * as API from "api";
import cc from "classcat";
import { IMAGE_EXTENSIONS } from "constants";
import * as genericUtils from "utils/generic";
import Loader from "components/UI/Loader";
import Icon from "components/UI/Icon";
import ToastMessage from "... |
checked = false;
function checkedall () {
if (checked == false){checked = true}else{checked = false}
for (var i = 0; i < document.getElementById('eva-po-form').elements.length; i++) {
document.getElementById('eva-po-form').elements[i].checked = checked;
}
}
function currency_rate(val,obj){
if(val!=''){
$("#s... |
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
import _classPrivateFieldLooseBase from "@babel/runtime/helpers/esm/classPrivateFieldLooseBase";
import _classPrivateFieldLooseKey from "@babel/runtime/helpers/esm/classPrivateFieldLooseKey";
function ownKeys(object, enumerableOnly) { var keys = ... |
import React, { useEffect, useState, Component } from "react"
import * as THREE from "three"
import { OrbitControls } from "three/examples/jsm/controls/OrbitControls"
import { ProgressBar } from "react-bootstrap"
import Page from "../Page"
import LifeCycleBar from "../LifeCycleBar"
import { Skybox } from "../../vessel... |
import {
LightningElement,
api,
track,
wire
} from 'lwc';
/** Wire adapter for list views. */
import {
getListUi
}
from 'lightning/uiListApi';
import {
CurrentPageReference
} from 'lightning/navigation';
import {
fireEvent
} from 'c/pubsub';
/** LICENSE Schema. */
import LICENSE_OBJECT_... |
export function buildInitialCpu () {
return {
V: new Uint8Array(16), // General Registers: 8 bits
I: 0, // Memory Address: 16 bits
PC: 0, // Program Counter: 16 bits
SP: 0, // Stack Pointer: 16 bits
stack: n... |
$(document).ready(function() {
/*$('.menuButton').click(function(event) {
$('ul.nav-menu').slideToggle();
$('.menuButton').toggleClass('menuButtonActive');
});*/
getRestaurantData();
//animation initialization
/* wow = new WOW(
{
animateClass: 'animated',
offse... |
import React from "react";
import { withNavigation } from "react-navigation";
import PropTypes from "prop-types";
import {
StyleSheet,
Dimensions,
View,
Image,
TouchableWithoutFeedback,
TouchableOpacity,
KeyboardAvoidingView,
Alert,
Platform,
} from "react-native";
import { Block, Text, theme, Input }... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var kleur = require('kleur');
var rollup = require('rollup');
var __rollupPluginJson__ = require('@rollup/plugin-json');
var __rollupPluginTypescript2__ = require('rollup-plugin-typescript2');
var pluginBabel = require('@rollup/plugin-babel'... |
/* global firebase */
/* global React */
/* global ReactDOM */
/* global iro */
/* global HOLES */
/* global DEFAULT_HOLE */
const firebaseConfig = {
apiKey: "AIzaSyA76jCY2eouHaiDOK4iTum7aUBJS_S6b9M",
authDomain: "minigolf-bdba7.firebaseapp.com",
databaseURL: "https://minigolf-bdba7-default-rtdb.firebaseio.com",... |
const fetch = require('../common/fetch')
const {
setPageContentHeight,
toggleFooterPosition,
setFooterPosition,
updateLocaleLanguagesDropdown,
showElement,
hideElement,
fetchLocationInfo,
reportSentenceOrRecording,
getBrowserInfo,
getDeviceInfo,
getLocaleString
} = require('../common/utils');
cons... |
/*
* //==============================================\\
* || Project: WATOR Simulation Extended ||
* || Authors: <NAME>, <NAME> ||
* || Date: 12.11.2016 ||
* \\==============================================//
*/
// start vs code task: ctrl+shift+b
// variables
var fieldWi... |
import $ from 'jquery';
import React from 'react';
import PropTypes from 'prop-types';
import reactMixin from 'react-mixin';
import autoBind from 'react-autobind';
import Reflux from 'reflux';
import alertify from 'alertifyjs';
import editableFormMixin from '../editorMixins/editableForm';
import moment from 'moment';
i... |
/* eslint-disable node-core/require-common-first, node-core/required-modules */
'use strict';
const assert = require('assert');
const fixtures = require('../common/fixtures');
const fs = require('fs');
const fsPromises = fs.promises;
const path = require('path');
const vm = require('vm');
const { inspect } = require('... |
var rows=100;
var columns=20;
var maximum_columns = 26;
const sub = new rxjs.Subject();
const rowObs = new rxjs.Subject();
// The below function is used for to call sum() and other operations
const calculate = (td) =>{
rxjs.fromEvent(td,'input').pipe(rxjs.operators.debounceTime(800)).subscribe(x=>{
if(td.i... |
"use strict";
function showLoader() {
$("#loader").show()
}
function hideLoader() {
$("#loader").hide()
}
$.urlParam = function(name){
var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href);
return results[1] || 0;
}
const POLL_INTERVAL = 5000;
const poll = async ({ fn, interva... |
//@flow
/* eslint-disable no-param-reassign */
import form from 'form';
import { columnWidthByType } from '../meta';
import template from '../templates/grid.hbs';
import ListView from './CollectionView';
import RowView from './RowView';
import SelectionPanelView from './selections/SelectionPanelView';
import ... |
// ============================================================================================
// --- BREAKOUT GARDENER :: MODULES :: KOMPIS ---
// (c) 2018-2019 <NAME> - breakouts*xoblite.net - http://breakouts.xoblite.net/
// ========================================================================================... |
// Select CVS
const cvs = document.getElementById("bird"); //Canvas tag
const ctx = cvs.getContext("2d"); //Context of the canvas
let submitbtn = document.getElementById('dn-submit');
let updatebtn = document.getElementById('dn-update');
//Game VARS & CONSTS
let frame = 0;
// An array to store all user recor... |
//global var to store the state name
var state_name_array=[];
//change to 1 if user search by specific data because if user search by specific date it dont has active element
var no_active=0;
const STATE_CODES={
AN: "Andaman and Nicobar Islands",
AP: "Andhra Pradesh",
AR: "Arunachal Pradesh",
AS: "Ass... |
"use strict";
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if... |
function defined(value) {
return value !== undefined && value !== null;
}
class Mesh {
constructor(gl, scene, globalState, modelPath, gltf, meshIdx) {
this.modelPath = modelPath;
this.scene = scene;
this.defines = {
'USE_IBL': 1
};
this.localState = {
... |
var vue = new Vue({
el: '#app',
data: {
en_name: '',
REF: ''
},
mounted () {
axios
.get('m_store_data.php?Command=generate')
.then(response => {
this.en_name = response.data[1]
this.REF = response.data[0]
})
}
});
function GetXmlHttp... |
var Address4 = require("ip-address").Address4;
var Address6 = require("ip-address").Address6;
var Canvas = require("canvas");
var ChildProcess = require("child_process");
var Crypto = require("crypto");
var du = require("du");
var equal = require("deep-equal");
var escapeHtml = require("escape-html");
var FS = require(... |
import { cloneElement, Component, createRef, createElement } from 'react';
import { number, element, func, oneOfType, instanceOf, string, bool } from 'prop-types';
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");... |
import React from 'react'
import PropTypes from 'prop-types'
import ForceGraph from '3d-force-graph'
import SpriteText from 'three-spritetext'
import debounce from 'debounce-fn'
import Graph from './graph'
import { mergeTypes } from './utils'
import { NODE_RELATIVE_SIZE, colors, PARTICLE_SIZE } from './constants'
imp... |
#!/usr/bin/env nodejs
var print = console.log; // create an alias to look like python print() !!!
require("./mytoken"); // fetch auth token from sep file
var Blynk = require("piblynk"); // Blynk "class"
// blynk object. comment out one of following tcp / ssl:
var blynk = new Blynk.Blynk(token); // default to ssl... |
'use strict'
const bdb = require('bdb')
const assert = require('bsert')
const bio = require('bufio')
const { Lock } = require('bmutex')
const { Indexer, Headers, ChainEntry, CoinView, util } = require('bcoin')
const { BlockMeta } = require('./records')
const layout = require('./layout')
const { getRemoteBlockEntries }... |
/*
@license https://github.com/t2ym/thin-hook/blob/master/LICENSE.md
Copyright (c) 2018, 2019, <NAME> <<EMAIL>>. All rights reserved.
*/
const isCLI = require.main === module;
const defaultMode = 'debug';
const defaultHost = 'localhost';
const defaultPort = 8082;
const defaultKeysDir = 'demo-keys/'; // from the cur... |
// TODO: Code this up!
let lock_icon = `
<svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-lock-fill" fill="green" xmlns="http://www.w3.org/2000/svg">
<path d="M2.5 9a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V9z"/>
<path fill-rule="evenodd" d="M4.5 4a3.5 3.5 0 1 1 7 0v3h-1V... |
var dialogs = {};
function onSystemMessageListener(message) {
if (!message.delay) {
switch (message.extension.notification_type) {
case "1":
// This is a notification about dialog creation
getAndShowNewDialog(message.extension.dialog_id);
break;
... |
// oplib
// applyActions - cisto dodjeljivanje akcija UI elementima
// @param {Object} [sender] objekat koji poziva funkciju (*bice izbaceno u sljedecoj verziji)
function applyActions(sender){
sender = sender || graph;
$(this).resize(function(){ sender.resize(50, $(window).height() - 80); sender.step... |
// Initialize and Returns pBTransform Instance
function pBTransform(target, options) {
// Check if target is jQuery object and return PBTransform Instance
try {
if (target instanceof jQuery) {
return new PBTransform(target[0], options)
};
} catch (e) {
// Don't error and exit out of function yet if not jQue... |
import React, { Component } from "react";
import { Confirm, Tooltip } from "reactjs-components";
import { findNestedPropertyInObject } from "#SRC/js/utils/Util";
import { isEmpty } from "#SRC/js/utils/ValidatorUtil";
import { pluralize } from "#SRC/js/utils/StringUtil";
import AddButton from "#SRC/js/components/form/A... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
... |
const Modal = {
//ABRE MODAL PARKED
openParked(){
document.querySelector("#modal-overlay-parked").classList.add('active')
},
//FECHA MODAL PARKED
closeParked(){
document.querySelector('#modal-overlay-parked').classList.remove('active')
},
//ABRE MODAL REGISTER
openRegis... |
/**
* This module contains code for converting to and from the Textgrid
* datastructure. Textgrid files are typically stored as plain text.
* This library does not do actual file IO but instead converts
* to and from loaded strings to instances of Textgrid.
*
* @author <NAME>
* @since March 25, 2015
* @module ... |
/**
* Copyright 2017 California Institute of Technology.
*
* This source code is licensed under the APACHE 2.0 license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React, { Component } from "react";
import PropTypes from "prop-types";
import ReactDOM from "react-dom";
impor... |
"use strict";
function pad(n, totalLength) {
let sn = "" + n;
return sn.padEnd(totalLength, " ");
}
var path = require('path');
var fs = require('fs');
var Game = require("./game.js");
var Summary = require('./summary.js')
var moment = require("moment")
function displayUsage() {
console.error("usage: node [pat... |
import Page from 'components/Page';
import { NumberWidget } from 'components/Widget';
import React from 'react';
import { Col, Row } from 'reactstrap';
import AuthForm from '../components/AuthForm';
import _ from 'lodash';
import authToken from 'utils/authToken';
import { Redirect } from 'react-router';
class Dashboar... |
// index.js
// --------
// Fast For Each
//
// Employing sound techniques to make a faster Knockout foreach binding.
// --------
import {
arrayForEach, addDisposeCallback, cleanNode, options, virtualElements,
createSymbolOrString, domData, domNodeIsContainedBy
} from 'tko.utils';
import {
isObservable, unwrap,... |
var arrayRemove = basis.array.remove;
var arrayAdd = basis.array.add;
var walk = require('../ast.js').walk;
var utils = require('../utils.js');
var addUnique = utils.addUnique;
var getTokenAttrValues = utils.getTokenAttrValues;
var getTokenAttrs = utils.getTokenAttrs;
var parseOptionsValue = utils.parseOptionsValue;
va... |
$(document).ready(function () {
// get element from CSS
var element = document.getElementById('tab-block'),
style = window.getComputedStyle(element),
width = style.getPropertyValue('width');
var tabWrapper = $('#tab-block'),
tabMnu = tabWrapper.find('.tab-mnu li'),
tabContent = tabWrapper.find('.tab-con... |
// Authentication
export const LOGOUT = 'LOGOUT';
export const LOGIN = 'LOGIN';
export const LOGIN_INFLIGHT = 'LOGIN_INFLIGHT';
export const LOGIN_ERROR = 'LOGIN_ERROR';
// Collections
export const ADD_INSTANCE_META = 'ADD_INSTANCE_META';
export const COLLECTION = 'COLLECTION';
export const COLLECTION_INFLIGHT = 'COLLE... |
import { PolyfillObjectMixin,ArrangeParamsByType,FirstParamOf,Disposables,ChannelNode,BGPromise} from 'bg-dom';
import { BGFeedbackDialog } from './BGFeedbackDialog';
import { exec, spawn, execSync } from 'child_process';
export class AtomPackageManagerPolyfill extends PolyfillObjectMixin {
construc... |
const zlib = require("zlib");
const fs = require('fs');
const mixinjs = require("mixin-node");
const config = require("./config");
const Koa = require('koa');
const betdata = require("./betdata");
const Roulette = require("./roulette.js");
const BigNumber = require('bignumber.js');
const router = new require('koa-rout... |
/* ====================================================================
|
| Amber Smalltalk
| http://amber-lang.net
|
======================================================================
======================================================================
|
| Copyright (c) 2010-2011
... |
'use strict';
class PassTheBomb extends Rooms.RoomGame {
constructor(room, seconds) {
super(room);
this.gameid = 'ptb';
this.title = 'Pass The Bomb';
this.players = new Map();
this.round = 0;
this.room = room;
if (this.room.bombCount) {
... |
'use strict';
var loader = require('./loader');
var func = require('./func');
var FUNC_OPEN_TAG = /\(/g;
var FUNC_CLOSE_TAG = /\)/g;
var COND_TAG = /{{(.*?)}}/;
var VAR_TAG = /({{(.*?)}}|{(.*?)})/g;
var LOGICS = {
IF: 'if',
FOR: 'for',
FOREACH: 'foreach',
REQ: 'require'
};
var LOGIC_TYPES = [
LOGI... |
var DocModes = {
//Document modes
IE5DocMode: "IE5 Document Mode",
IE7DocMode: "IE7 Document Mode",
IE8DocMode: "IE8 Document Mode",
IE9DocMode: "IE9 Document Mode",
IE10DocMode: "IE10 Document Mode",
IE11DocMode: "IE11 Document Mode",
//EnterpriseModes
IE7EnterpriseMode: "IE7 Ente... |
import React, { useState, useEffect } from "react"
import { Text, Flex, Box } from "rebass"
import styled from "@emotion/styled"
import { useForm } from "react-hook-form"
import MultiSelect from "react-multi-select-component"
import Modal from "../../../../components/modal"
import CurrencyInput from "../../../../compo... |
var request = require('request-sync'),
querystring = require('querystring'),
S = require('string'),
glob = require('glob'),
util = require('util'),
path = require('path'),
fs = require('fs'),
async = require('async'),
crypto = require('crypto'),
mime = require('mime'),
config_handler = require('./configHandle... |
// Created by Modi
// quality variable. Standard quality - 1.00
var quality = 1.00;
// rotation angles
var alpha = 0; // Math.PI;
var beta = Math.PI/2;
var cosAlpha = Math.cos( alpha );
var sinAlpha = Math.sin( alpha );
var sinBeta = Math.sin( beta );
var cosBeta = Math.cos( beta );
var mouseIsDown = false;
// fix t... |
var bar_padding={top: 50, bottom: 50, left: 50, right: 50};
var bh=600;
var bw=1000;
var plotWidth=bw-bar_padding.left-bar_padding.right;
var plotHeight=bh-bar_padding.top-bar_padding.bottom;
//Format date for tooltip
var DateFormat=d3.timeFormat("%A %B %d");
var parseGrossLong=d3.format("$,d");
var parseGrossShort=fu... |
import utils from './utils';
/**
* Utility for making `XMLHttpRequest` and `JSONP` requests.
* @copyright 2019, <NAME> <<EMAIL>>
*/
class fetch {
// https://html.spec.whatwg.org/multipage/scripting.html#script
/**
* Makes a JSONP (GET) request by injecting a script tag in the browser.
* Note tha... |
/**
* @typedef {object} StyleObject styling object
* @property {string} [stroke] stroke color
* @property {string} [strokeWidth] stroke width
* @property {string} [strokeLinecap] 'round', 'butt', or 'square'
* @property {string} [strokeLinejoin] 'round', 'arcs', 'bevel', 'miter', or 'miter-clip'
* @property {str... |
var carArray = new Array();
var productName = "无"; //产品名称
var productPrice = 0; //产品单价
var productId = "0"; //产品id
var layer_index =""; //登录弹窗id
! function(a) {
a.fly = function(b, c, i) {
var d = {
version: "1.0.0",
autoPlay: !0,
vertex_Rtop: 20,
speed: 1.2,
start: {},
end: {},
... |
class Game{
#canvas;
#ctx;
#players;
#alive;
#grid;
#state;
#counter;
//Controls flow of game
constructor(canvas, width, height, playerCount){
this.#canvas = canvas;
this.#ctx = this.#canvas.getContext("2d");
this.#canvas.width = width; //canvas setup... |
"use strict";
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
... |
"use strict";
var http = require("http");
var url = require("url");
var fs = require("fs");
var path = require("path");
// load and index the catalog:
var catalog = require("./catalog.js");
catalog.categories.allItems = {};
for(var c in catalog.categories) if (c.length === 2) {
catalog.categories[c].items.forEach(fu... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } }... |
/*
* Windows Registry Settings Handler
*
* Copyright 2012, 2014 Raising the Floor - International
* Copyright 2012 <NAME>
* Copyright 2012 Astea Solutions AD
*
* Licensed under the New BSD license. You may not use this file except in
* compliance with this License.
*
* The research leading to these results ha... |
// Copyright © 2021 The Things Network Foundation, The Things Industries B.V.
//
// 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
//
// Un... |
/** @babel */
/*
* Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2017-2018 <NAME> <<EMAIL>>. 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... |
//Global variables
let Bullbear;
let ethUsd;
const deployedNetwork = 97;//To which network is the contract deployed? Ganache: 5777, Ropsten: 3, Mainnet: 1
const contractAddress = "0xFf060274C43Bb79536688b2D3C728907C9A16334";//Contract address on Ropsten
let provider;
let signer;
let swissFranc;
let headsOrTailsSelectio... |
const NORLOGE_NORMAL = "HH:mm:ss";
const NORLOGE_FULL = "YYYY-MM-DD HH:mm:ss";
class Jb3 {
constructor() {
Handlebars.registerHelper('time2norloge', (time) => {
return moment(time).format(NORLOGE_NORMAL);
});
this.messageTemplate = Handlebars.compile($("#message-template").html(... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.