text stringlengths 5.97k 41.2k |
|---|
function Browser() {
var _window = window || {};
var _navigator = typeof navigator != 'undefined' ? navigator : {};
var _mime = function (option, value) {
var mimeTypes = navigator.mimeTypes;
for (var mt in mimeTypes) {
if (mimeTypes[mt][option] == value) {
return true;
}
}
ret... |
/**
* Created by huyunting on 2018/6/4.
*/
import React, { Fragment } from 'react';
import { connect } from 'dva';
import { message, Form, Input, Button, Card, Select, Icon, Col, InputNumber } from 'antd';
const FormItem = Form.Item;
const Option = Select.Option;
import { routerRedux } from 'dva/router';
import Page... |
import $ from "jquery";
import CodeMirror from "codemirror/lib/codemirror";
import "codemirror/lib/codemirror.css";
// make CodeMirror public for loading additional themes
if (typeof window !== "undefined") {
window.CodeMirror = CodeMirror;
}
import { Widget } from "@phosphor/widgets";
import { Session } from "@jup... |
const original = {
name: 'Original Set',
prices: {
1: 400,
10: 3400,
30: 9600
},
mounts: {
'raptor': ['Canyon Spiketail', 'Coastal Spiketail', 'Flamelander', 'Savannah Monitor', 'Storm Ridge', 'Striped Tri-horn'],
'springer': ['Ar<NAME>a', 'Desert Lop', 'Elonian Jackalope', 'Primal Hare', '<NAME>are', 'W... |
//dialog.showErrorBox('Error title', 'error')
$.getScript("./assets/save.js", function() {
//alert("Script loaded but not necessarily executed.");
});
var jsonDataFile = null;
var jsonData = [];
var jsonDataLangs = [];
var tableData = [];
var hasJson = false;
var showJsonEditBlock = function(newValue) {
hasJson ... |
/****************************************************************************
* Copyright 2018 EPAM Systems
*
* 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... |
import palettes from "./palette.js";
let clicking = true;
let context = null;
let brushColor1 = null;
let brushColor2 = null;
let brushColor1Index = null;
let brushColor2Index = null;
let rotation = 0;
let rotation_velocity =
Math.random() > 0.5 ? 0.14 * (Math.PI / 180) : -0.14 * (Math.PI / 180);
let rotation_min = ... |
/**
* @licstart The following is the entire license notice for the
* Javascript code in this page
*
* Copyright 2021 Mozilla Foundation
*
* 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... |
// @ts-check
import {
dataToBase64,
base64ToBytes,
} from '@agoric/swingset-vat/src/vats/network/index.js';
import { makeStore, makeLegacyMap } from '@agoric/store';
import { makePromiseKit } from '@agoric/promise-kit';
import { assert, details as X } from '@agoric/assert';
import { Far } from '@endo/far';
import... |
var app = app || {};
/**
* BrowseBox
* ---------------------------------
* the UI for 'browseBox'
*/
var projectID;
var userID;
app.BrowseBoxView = Backbone.View.extend({
el: '#browse_box',
events: {
'click #new_analysis': 'newWorkBox',
'click #importFromFile': 'selectFile',
'change #myFile': 'im... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getData = exports.KeywordCxt = exports.validateFunctionCode = void 0;
const boolSchema_1 = require("./boolSchema");
const dataType_1 = require("./dataType");
const applicability_1 = require("./applicability");
const dataType_2 = requir... |
/*
* Copyright 2017, GeoSolutions Sas.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
import Rx from 'rxjs';
import { get, find, reverse} from 'lodash';
import uuid from 'uuid';
import { LOCATION_CHANGE ... |
'use strict';
// ============================================================================
// Localization
// ============================================================================
import Parser from '@ffz/icu-msgparser';
import {SERVER, DEBUG} from 'utilities/constants';
import {get, pick_random, shallow_c... |
import Utils from './utils';
function Templates() {
let storySectionFilter = null;
this.init = (opts) => {
const embedPlcStr = opts.embed ? opts.embed : 'Paste a YouTube video link, and press Enter';
const titlePlcStr = opts.title ? opts.title : 'Title here';
const subTitlePlcStr = opts.subtitle ? opt... |
const { Kernel } = require('../kernel');
const { FunctionBuilder } = require('../function-builder');
const { CPUFunctionNode } = require('./function-node');
const { utils } = require('../../utils');
const { cpuKernelString } = require('./kernel-string');
/**
* @desc Kernel Implementation for CPU.
* <p>Instantiates p... |
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Helmet from 'react-helmet';
import * as tooltip from './Tooltips';
import OverlayTrigger from 'react-bootstrap/lib/OverlayTrigger';
import Button from '../../../Common/Button/Button';
import Operations from './Operations';
import {
... |
/* Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
*/
import Token from '../Token.js';
import ATN from './ATN.js';
import ATNType from './ATNType.js';
import ATNState from '..... |
"use strict";
/**
* @license
* Copyright 2019 Google LLC. 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... |
const MS_PER_DAY = 1000 * 60 * 60 * 24;
const MS_PER_MIN = 1000 * 60;
const MIN_PER_DAY = 60 * 24;
const AUTO_SCROLL_DURATION = 300;
const DATE_SELECTOR_HEIGHT = 400;
class DaysWrapper {
constructor(firstDay, lastDay, getSchedule) {
// CALCULATE WHAT viewers SHOULD EXIST
this.getSchedule = getSchedule;
... |
/* eslint-disable require-jsdoc */
import {makeHebcalOptions, processCookieAndQuery, possiblySetCookie,
empty, makeDownloadProps, urlArgs,
getDefaultHebrewYear, makeHebrewCalendar,
localeMap, eTagFromOptions, langNames} from './common';
import {HebrewCalendar, Locale, greg, flags, HDate} from '@hebcal/core';
impo... |
import { CommonTerrain } from './CommonTerrain';
import { Tile } from './Tile';
import { EPSG4326TileSet } from './EPSG4326TileSet';
import { EPSG3857TileSet } from './EPSG3857TileSet';
import { Frustum, Matrix4 } from '../Three';
import { dataURL } from '../core/lib';
const __frustum = new Frustum();
const __matrix... |
/* eslint-disable consistent-return */
const { Kernel, AppProxyUpgradeable } = require('giveth-liquidpledging/build/contracts');
const isIPFS = require('is-ipfs');
const { LPPCappedMilestone } = require('lpp-capped-milestone');
const { LPMilestone, BridgedMilestone } = require('lpp-milestones');
const { LPPCampaign } ... |
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
function createCommonjsModule(fn) {
var module = { exports: {} };
return fn(module, module.exports), module.exports;
}
var... |
// Global Variables
// Setup values for current date
const currentMonth = moment().format('MM');
const currentYear = moment().format('YYYY');
const currentDay = moment().format('DD');
const currentHour = moment().format('hh');
const currentMinute = moment().format('mm');
const currentAMPM = moment().format('A');
const ... |
/* eslint-disable no-console */
const path = require('path');
const URL = require('url');
const fetch = require('node-fetch');
const { createFilePath } = require(`gatsby-source-filesystem`);
const jsyaml = require('js-yaml');
const { readFileSync } = require('fs');
const fs = require('fs');
const { current, versions ... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.InputMask = undefined;
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descri... |
$(window).load(function(){
login_slider();
// discriber();
login_close();
//ershou_photo_slide();
wave_move();
edit_info();
change_photo();
/*choose_sch();*/
student_id();
if($("#user_msg").length>0){
grade_value_slide();
}
if($("#intergral-wrapper").length>0){
... |
const moment = require('moment-timezone')
const line = require('../lines/index')
const sql = require('mssql')
const connection = require('../db/connection.js')
const akl = require('./nz-akl.js')
const wlg = require('./nz-wlg.js')
const cache = require('../cache.js')
let rtFn = function() {
return {}
}
cache.preReady... |
const enquirer = require('enquirer');
const fs = require('fs');
let questions = [
"What it the title of your project?",
"What is your GitHub username?",
"What is your email?",
"Which license will you require for this repository?",
"What was your motivation for this task?",
"Why did you build this project?",
"What pro... |
// Habilitar token para todos los ajax.
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
// Formatear rut en inputs
var formatoRut = function(rut){
var response = "";
var ced = rut.substring(0, 8);
var ver = rut.substring(rut.length-1);
rut.len... |
var addressList = []; //地址列表
var zipCodeList = []; //邮编列表
var zipCode = require("./zipCode.js");
console.log("正在加载省市区数据...");
const wx_getaddress = () => {
return new Promise((resolve, reject) => {
let array = [];
let index = 0;
let length = 7;
// console.log('共计' + length + '条数据')
for (let i = ... |
import MM from "./MM.js";
import utils from "./utils.js";
/**
* keyboard interactif
* Permet d'entrer des données, traitées ensuite par MathLive
*
*/
const keysSVG ={
enterKey : `<svg width="1em" height="1em" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M17.1495 13.4005C18.2... |
import Mesh from 'claygl/src/Mesh';
import Renderer from 'claygl/src/Renderer';
import Texture2D from 'claygl/src/Texture2D';
import Texture from 'claygl/src/Texture';
import Shader from 'claygl/src/Shader';
import Material from 'claygl/src/Material';
import Node3D from 'claygl/src/Node';
import Geometry from 'claygl/s... |
// TODO: peek functions to avoid side effects of reading
function getTrace(cpu, cycles) {
let str = "";
str += getByteRep(cpu.r[1]) + ":";
str += getWordRep(cpu.br[4]) + ": ";
str += getDisassembly(cpu);
str += "A:" + getWordRep(cpu.br[0]) + " ";
str += "X:" + getWordRep(cpu.br[1]) + " ";
str += "Y:" + ... |
import React from "react";
import { makeStyles } from "@material-ui/core/styles";
import { Link } from "react-router-dom";
import Breadcrumbs from '@material-ui/core/Breadcrumbs';
import Typography from '@material-ui/core/Typography';
import Divider from '@material-ui/core/Divider';
import Skeleton from '@material-ui/l... |
var BaynoteJSVersion = "Version: V1213-02";
var BaynoteIgnored = false;
var BN_READY_SIGNAL = "ReadySignal";
var Strategy = {
"ScriptDOMInject": 2,
"OnLoadInject": 3
};
if (typeof(baynote_globals) == "undefined") var baynote_globals = new Object();
baynote_globals.CommonResourceURL = "/baynote/tags3/common";
baynote_... |
// @ts-check
// Your app may need to `import '@agoric/eventual-send/shim'` to get HandledPromise
// This logic was mostly lifted from @agoric/swingset-vat liveSlots.js
// Defects in it are mfig's fault.
import { Remotable, Far, makeMarshal, QCLASS } from '@agoric/marshal';
import { E, HandledPromise } from '@agoric/e... |
/*
Note, you need to unlock metamask first before you can deposit, withdraw
any send call!
If not it will just do nothing and report RPC Error: Invalid parameters: must provide an Ethereum address in the background.
this one for reward not plut but other token
*/
window.addEventListener('load', init);
... |
'use strict';
var colorMapHelper = require('./core/lib/helpers/colorMap'),
_ = require('./lodash'),
semverRange = require('./version').version,
serialize = require('./core/lib/helpers/serialize'),
widgets = require('@jupyter-widgets/base');
function K3DTransferFunctionEditor(targetDOMNode, parameters,... |
/*
/$$
/$$ /$$$$
| $$ |_ $$ /$$$$$$$
/$$$$$$$$ | $$ /$$_____/
|__ $$__/ | $$ | $$$$$$
| $$ | $$ \____ $$
|__/ /$$$$$$ /$$$$$$$/
|______/|_______/
================================
Keep calm and get rich.
Is the best.
@Author: D... |
class Calculator {
constructor(sampleDisplay, lotQty) {
this.sampleDisplay = sampleDisplay
this.lotQty = lotQty
this.clear()
}
clear() {
this.lotSize = ''
this.sampleSize = ''
lotQty.innerText = ''
this.operation = undefined
}
d... |
switch(window.location.origin){
case 'http://cieldegia.com':
var HOSTNAME = 'http://cieldegia.com/';
break;
default:
var HOSTNAME = 'http://localhost/weddingdress/';
}
document.querySelector('[name="image_shared"]').parentElement.querySelector('label').innerHTML = 'Ảnh đại diện cho sản p... |
const { Buffer } = require('buffer')
const ethUtil = require('ethereumjs-util')
const ethAbi = require('ethereumjs-abi')
const nacl = require('tweetnacl')
nacl.util = require('tweetnacl-util')
const TYPED_MESSAGE_SCHEMA = {
type: 'object',
properties: {
types: {
type: 'object',
additionalProperties... |
import constants from './constants.js'
const MAGIC = constants.MAGIC
const {
ONE_SHOT,
FORWARD_LOOP, PINGPONG_LOOP,
SLICE, BEAT_SLICE,
WAVETABLE, GRANULAR
} = constants.SamplePlayback
/**
* @typedef {Object} HeaderParseResult
* @property {number} isWavetable
* @property {string} name
* @property {number}... |
var CURRENT_GEN_MAPPING = {"U":"U","L":"L","P":"P"};
var VALID_AUTOMORPHISMS = [];
var SELECTED_AUTOMORPHISM_IDX = null;
var augmented_perm_index = 0;
var quadrant1_chord = "C_M";
var quadrant2_chord = "G_M";
var quadrant3_chord = "D_M";
var quadrant4_chord = "F_M";
var quadrant1_choice="";
var quadrant2_cho... |
'use strict';
var globals = require('can-globals');
var getRoot = require('can-globals/global/global');
var getMutationObserver = require('can-globals/mutation-observer/mutation-observer');
var namespace = require('can-namespace');
var DOCUMENT = require("can-globals/document/document");
var util = require('./-util')... |
import { types, destroy, getParent, getSnapshot } from "mobx-state-tree";
import produce from "immer";
import merge from "deepmerge";
import { Chooser } from "./chooser";
// import { Tree } from "./tree";
import { optionalModel } from "./model-utils";
import { UI, calcWidth, formatOut } from "./view";
import { packApp... |
import React, { useEffect, useState } from "react";
// @material-ui/core components
import { makeStyles } from "@material-ui/core/styles";
// core components
import { Input, Box, FormControl, Select, Chip } from "@material-ui/core";
import GridItem from "components/Grid/GridItem.js";
import Button from "@material-ui/co... |
function isEmpty (val){
return (val === undefined || val == null || val.length <= 0) ? true : false;
}
//საიტის ზომებისთვის
function getPageSize() {
var xScroll, yScroll;
if (window.innerHeight && window.scrollMaxY) {
xScroll = window.innerWidth + window.scrollMaxX;
yScroll = window.innerHeight + window.scr... |
/* eslint-disable no-prototype-builtins */
/* eslint-disable no-restricted-syntax */
/* eslint-disable no-continue */
/* eslint-disable no-labels */
const _ = require('lodash');
const axios = require('axios');
const fs = require('graceful-fs');
const util = require('util');
const main = require('../Config/main.js');
... |
const LineType = require('./LineType');
const Layer = require('./Layer');
const Table = require('./Table');
const DimStyleTable = require('./DimStyleTable');
const TextStyle = require('./TextStyle');
const Viewport = require('./Viewport');
const AppId = require('./AppId');
const Block = require('./Block');
const BlockR... |
const aws = require('aws-sdk')
const BbPromise = require('bluebird')
const fs = BbPromise.promisifyAll(require('fs'))
const os = require('os')
const path = require('path')
const semver = require('semver')
const shortid = require('shortid')
const stdin = require('get-stdin')
const url = require('url')
const yaml = requi... |
import Phaser from 'phaser';
import OptionsScene from '../src/OptionsScene';
//import logoImg from './assets/logo.png';
document.body.style.backgroundColor = "black";
var titleScene = new Phaser.Scene("title");
var gameOptions = {
colors: ["0xffffff"],
columns: 3,
rows: 4,
thumbWidth: 60,
thumbHeight:... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const typeorm_1 = require("typeorm");
const class_transformer_1 = require("class-transformer");
const services_1 = require("@nestjsx/crud/lib/services");
const util_1 = require("@nestjsx/util");
class TypeOrmCrudService extends services_1.Crud... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import URI from 'urijs';
import Terraform from 'terraformer';
import WKT from 'terraformer-wkt-parser';
import cloneDeep from 'lodash/cloneDeep';
import values from 'lodash/values';
import Store from '../../store';
import { getPixelSize, ... |
stateLabels = []; aCare= []; noMethod = []; otherMethod = []; femaleSter = []; iud = []; pill = []; condom = []; relStart = [];
textColour = ['#DAD24F', '#FEFEFE', '#DAD24F'];
barColours = ['#48546D','#397688','#2B9893','#4CB88D','#8BD47B','#D8EA6A']
finalX = 390; initialX = []; initialY = 600;
finalY = [50, 114, 178, ... |
var links = document.getElementsByTagName("a");
for (let i = 0; i < links.length; i++) {
links[i].addEventListener("mouseenter", () => {
showPopup(i, links[i].href);
});
links[i].addEventListener("mouseleave", () => {
hidePopup(i);
});
links[i].innerHTML += "<div class=\"popup-box\"... |
const cheerio = require('cheerio');
const rp = require('request-promise-native');
var request = require('request-promise-native');
var ByteBuffer = require("bytebuffer");
var Service;
var Characteristic;
module.exports = function (homebridge) {
Service = homebridge.hap.Service;
Characteristic = homebridge.hap.... |
/*
[Discuz!] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: viewthread.js 21279 2009-11-24 09:59:28Z monkey $
*/
var replyreload = '';
function attachimgshow(pid) {
aimgs = aimgcount[pid];
aimgcomplete = 0;
loadingcount = 0;
for(i = 0;i < aimgs.length;i++) ... |
// Whole-script strict mode syntax
"use strict";
/**
MIT License
Copyright (c) 2020 Openlaw
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 ... |
'use babel'
const JsTee = require('jstree');
let _s, fs, Q;
import { Point, CompositeDisposable, Emitter } from 'atom';
import _ from 'underscore-plus';
let $$ = fs = _s = Q = null;
import ResizableView from './resizable-view';
import { $, View } from 'atom-space-pen-views';
import Cell from './cells/cell';
import Ce... |
// user/requests.js
var Bcrypt = require('bcrypt');
var SALT_WORK_FACTOR = 10;
var internals = {};
var errors = {};
var sofaInternals = {};
exports = module.exports = internals.User = function (sofaInternalsParam) {
internals.context = this;
sofaInternals = sofaInternalsParam;
internals.requestGroupNam... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Entities = void 0;
const assert = require("assert");
const events_1 = require("events");
const assert_exists_1 = require("./assert-exists");
const bitbuffer_1 = require("./ext/bitbuffer");
const consts = require("./consts");
const net ... |
const chalk = require('chalk');
const path = require('path');
const EventEmitter = require('events');
const { version } = require('../../config');
const { isDebugMode, getType, defineProxy } = require('../utils');
const PATH_INDEX = './index.js';
const PATH_COMMANDER = './commander.js';
const PATH_CONFIGURE = './config... |
import * as BABYLON from 'babylonjs';
import Hammer from "game/weapons/Hammer";
import Bazooka from "../weapons/Bazooka";
import Helper from "game/Helper";
function vecToLocal(vector, mesh){
var m = mesh.getWorldMatrix();
var v = BABYLON.Vector3.TransformCoordinates(vector, m);
return v;
}
let CameraType = {
... |
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var F = require('fluture');
var F__default = _interopDefault(F);
var ramda = require('ramda');
var getStdin = _interopDefault(require('get-stdin'));
var path = _interopDefault(require('path... |
import annotationHelpers from './annotationHelpers'
import DocumentIndex from './DocumentIndex'
import filter from '../util/filter'
import flatten from '../util/flatten'
import flattenOften from '../util/flattenOften'
import forEach from '../util/forEach'
import isArray from '../util/isArray'
import isArrayEqual from '... |
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: cyan; icon-glyph: globe;
// adapt to your needs
const BACKGROUND_IMAGE_FOLDER = "F1Countdown/car.jpg"
const ONE_DAY_IN_MS = 86400000 // (1000ms * 60s * 60m * 24h)
const ONE_HOUR_IN_MS = 3600000 // (1000ms * 60... |
/*
Used Libaries:
Bootstrap
Copyright (c) 2011-2018 Twitter, Inc.
Copyright (c) 2011-2018 The Bootstrap Authors
Font Awesome
Leaflet
Copyright (c) 2010-2019, <NAME>
Copyright (c) 2010-2011, CloudMade
Leaflet Fullscreen
Copyright (c) 2015, MapBox
i18next
Copyright (c) 2017 i18next
(Created by <NAME>, <NAME> und <N... |
import { __spread } from 'tslib';
import deepEqual from 'fast-deep-equal';
import { Calendar } from '@fullcalendar/core';
import { Component, ElementRef, Input, Output, EventEmitter, NgModule } from '@angular/core';
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,constantProperty,extraRequire,missingOve... |
function open_endpoints() {
disable_enter_key()
hide_title()
add_overlay({
"this_class": "endpoint_overlay",
"close_text_class": "close_modal",
"height": "100%",
"width": "100%",
"speed": "0.5s"
})
style_overlay('endpoint_overlay', 1, {
"background": "... |
import {nameForLatLon, backId, libraryUrlForPhotoId, descriptionForPhotoId, infoForPhotoId, loadInfoForLatLon} from './photo-info';
import {MAP_STYLE, STATIC_MAP_STYLE} from './map-styles';
import {getCanonicalUrlForPhoto} from './social';
import {getFeedbackText, sendFeedback, deleteCookie, setCookie} from './feedback... |
import SETTINGS from "./settings";
import { OPENDIR_PROTOCOL } from "./process"
import { toBase64, getLink, satoshisToDollars, timeDifference, numberFormat } from "./helpers"
import { calculateTipchainSplits, B_MEDIA_PROTOCOL } from "./process"
import databutton from "./databutton-0.0.4"
export class Fork extends Reac... |
const LitElement = Object.getPrototypeOf(
customElements.get("ha-panel-lovelace")
);
const html = LitElement.prototype.html;
const weatherIconsDay = {
"clear-day": "day",
"clear-night": "night",
rain: "rainy-5",
snow: "snowy-6",
sleet: "rainy-7",
wind: "cloudy",
fog: "cloudy",
cloudy: "cloudy",
"pa... |
var canvas = null;
const ASPECTRATIO = 1920 / 1080;
const DEBUG = false;
const FASES = "/fases";
const SCOREUP = "/scoreup";
const REST = "/REST";
//Sounds & Music
//var music = new Audio('./sounds/spaceInvaders.mp3');
//music.loop = true;
var soundBangLarge = new Audio('./asteroidGame/sounds/bangLarge.wav');
sound... |
/* eslint-disable import/no-extraneous-dependencies */
/**
* 自动根据src、dist目录文件生成 wiafile.yml 文件映射
* build时,比较当前文件hash与上次build时的hash值,
* 变化则放入 update中,再针对 update部分文件进行build,
*
*
*/
const _ = require('lodash');
const path = require('path');
const crypto = require('crypto');
const utils = require('utility');
const fs... |
import Vue from 'vue'
import VueRouter from 'vue-router'
import NProgress from 'nprogress'
import 'nprogress/nprogress.css'
Vue.use(VueRouter)
const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push (location) {
return originalPush.call(this, location).catch(err => err)
}
// LANDING P... |
var fn_array = []; // File name array for image similarity
var ref_array; // Reference features array for image similarity
var fn_array_ex = []; // File name array for image similarity EXAMPLE images
var ref_array_ex; // Reference features array for image similarity EXAMPLE images
var imgList = [0, 0, 0, 0];
var im... |
/**
Copyright 2008-2019 Geode Systems LLC
*/
//Properties
var PROP_LAYOUT_TYPE = "layoutType";
var PROP_LAYOUT_COLUMNS = "layoutColumns";
var PROP_SHOW_MAP = "showMap";
var PROP_SHOW_MENU = "showMenu";
var PROP_FROMDATE = "fromDate";
var PROP_TODATE = "toDate";
var DISPLAY_MULTI = "multi";
addGlobalDisplayType({
... |
const CommentModel = require('../models/comment/comment.model');
const AssessmentModel = require('../models/comment/assessment.model');
const UserModel = require('../models/user/user.model');
const ProgramModel = require('../models/program/program.model');
const Helper = require('../utils/Helper');
const _ = require('l... |
const system = server.registerSystem(0, 0);
let globalVars = {};
//=====================================================================================
// Configuration Options
//=====================================================================================
globalVars.updateFreqTicks = 1200;
globalVars.tr... |
/*
Patch for nunjucks to allow <include><variable>...</variable></include> to properly
override the included file's {% set / import %}s.
By design, nunjucks' variables are scoped, and declarations down the line have
priority over earlier ones.
This does not change from a user perspective; The change here affects ... |
function BranchData() {
this.position = -1;
this.nodeLength = -1;
this.src = null;
this.evalFalse = 0;
this.evalTrue = 0;
this.init = function(position, nodeLength, src) {
this.position = position;
this.nodeLength = nodeLength;
this.src = src;
return this;
}
... |
"use strict";
const _throttle = require("lodash/throttle");
var tabsCtrl = function(
$http,
$scope,
globalService,
walletService,
$translate,
$sce,
$interval,
$rootScope
) {
$scope.gService = globalService;
$scope.tabNames = $scope.gService.tabs;
$scope.walletService = walle... |
import React from 'react';
import {
View,
Text,
TouchableOpacity,
Dimensions,
TextInput,
StyleSheet,
Platform,
Image,
ScrollView,
Button
} from 'react-native';
import {
Image as ImageWeb,
} from 'react-native-web';
import qs from "qs";
import Modal from 'react-modal';
import ... |
"use strict";
/* eslint-disable prefer-const */
/* eslint-disable @typescript-eslint/no-unsafe-call */
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
/* eslint-disable @typescript-eslint/no-floating-promises */
/* eslint-disable @typescript-eslint/restrict-plus-operands */
/* eslint-disable @typescript... |
/* global console, exports */
var main = [
'$sce', '$log',
function($sce, $log) {
"use strict";
var def;
var link = function(scope, element, attrs) {
scope.editable = true;
scope.response = {};
scope.answerExpanded = false;
scope.changeHandler = function() {
if (_.... |
// subroutine to estimate a proportion or test for a special value
// Inputs:
// 2 category labels (default = Success/Failure) and a count for each
//
// TODO:
// Initial data entry calls summarizeP1 before the second count is entered.
// function needs to check for good data.
// align true proportion bette... |
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var util = require('util');
var fs = require('fs');
var path = require('path');
var rollupPluginutils = require('rollup-pluginutils');
var mkdirp = require('mkdirp');
var mime = require('mi... |
/// Plots all the buttons on the current page
function buttonplot()
{
var i, ov;
allbutplot = 1;
cv = maincv;
cv.clearRect(0,0,canw,canh);
for(i = 0; i < nbut; i++){
ov = 0; if(i == over) ov = 1;
butplot(i,ov);
}
allbutplot = 0;
}
// Plots individual button
function b... |
const { time, constants, expectEvent, expectRevert } = require('@openzeppelin/test-helpers');
const { ether, artifactFromBytecode, latestBlockNumber } = require('./../helpers');
const { buildBasicRouterConfig } = require('./../helpers/builders');
const assert = require('chai').assert;
const BakeryChefPowerIndexConnecto... |
'use strict';
var path = require("path");
var fs = require("fs");
var extend = require('extend');
var async = require("async");
var currentOpts = {};
var defaults = {};
function apply(config, override, path, triggers, depth) {
// console.log(depth, path, triggers)
if (override && override.global) {
// console.lo... |
/* BetterDiscordApp Entry
* Version: 3.0
* Author: Jiiks | http://jiiks.net
* Date: 27/08/2015 - 15:51
* Last Update: 06/05/2016
* https://github.com/Jiiks/BetterDiscordApp
*/
'use strict';
var _fs = require("fs");
var _vm = require("vm")
var _config = require("./config.json");
var _utils = require("./Utils");
... |
/** 一览数据对象 */
var quotation_listdata = {};
/** 服务器处理路径 */
var servicePath = "filing.do";
/** 根据条件使按钮有效/无效化 */
var enablebuttons = function() {
var rowids = $("#qa_list").jqGrid("getGridParam", "selarrrow");
if (rowids.length === 0) {
$("#filingbutton").disable();
} else {
$("#filingbutton").enable();
}
}
var ... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _SWebComponent2 = _interopRequireDefault(require("coffeekraken-sugar/js/core/SWebComponent"));
var _addEventListener = _interopRequireDefault(require("coffeekraken-sugar/js/dom/addEventListener"));
var _scro... |
console.log('code-based graphic! beware: very slow.');
// Global config
var GEO_DATA_URL = 'data/geodata.json';
// Global vars
var pymChild = null;
var isMobile = false;
var isRendered = false;
var geoData = null;
var executionData = [];
var years = [ '1998', '2000', '2002', '2004', '2006', '2008', '2010', '2012', '2... |
"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... |
/*
artifact generator: C:\my\wizzi\v6\node_modules\wizzi-js\lib\artifacts\js\module\gen\main.js
primary source IttfDocument: c:\my\wizzi\v6\test\wizzi-docs\jobs\ittf\site\site\stfnbssl.js.ittf
utc time: Mon, 14 Jan 2019 14:37:33 GMT
*/
'use strict';
// generated by v5-wizzi-js.artifacts.js.module.main
funct... |
/**
* @file
* These Functions handle the Actions database
* Functions exist to add/remove actions, and roll Action
*
* @global {boolean} ACTIONSCLEANINGMODE
* Flags if Actions are being cleaned.
* In Cleaning Mode All Actions are rendered and have the remove button
*
* @function toggleActionsClean... |
'use strict';
// ----------------------------------------------------------------------------
const Exchange = require ('./base/Exchange');
const { InvalidOrder, ExchangeError, BadRequest, BadSymbol } = require ('./base/errors');
const { SIGNIFICANT_DIGITS } = require ('./base/functions/number');
// ----------------... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.