text stringlengths 8.5k 48.7k |
|---|
var beerCalc = 0.65;
var sodaCalc = 0.65;
var pizzaCalc = 0;
var icecreamCalc = 0.2;
var frutas = 0;
var beerCalcPrice = 95;
//var sodaCalcPrice = 95;
var sodaCalcPrice = 100;
//var sodaCalcPriceDiet = 107;
var sodaCalcPriceDiet = 200;
var pizzaCalcPrice = 140;
var jitomateCalcPrice = 100;
var icecreamCalcPrice = ... |
'use strict';
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(gene... |
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be use... |
// @flow
import PerspireServer from "~/inspire/PerspireServer";
import fetchJSON, { fetch } from "~/tools/fetchJSON";
import { burlaesgEncode, hs256JWTDecode } from "~/web-spindle/tools/security";
const revelationRoot = "./packages/web-spindle/test/worker/";
const expectedOutputHTML = `<html><head>${
""}<meta htt... |
var branchName, numberOfSems, sectionId;
var $branchSelect = document.getElementById('branchSelect');
var $semSelect = document.getElementById('semSelect');
var $sectionSelect = document.getElementById('sectionSelect');
var $mainContainer = document.getElementById('mainContainer');
var $dataContainer = document.getElem... |
/**
* This script generates definitions extracted by `@webref/css` from latest W3C
* Editor's Drafts specifications:
* - `./lib/values/types.js`: CSS type definitions
* - `./lib/properties/definitions.js`: CSS property definitions
*/
const { addQuotes, logError, tab } = require('../lib/utils/script.js')
const { al... |
//判断浏览器
var _env = (function() {
var f = navigator.userAgent,
b = null,
c = function(h, i) {
var g = h.split(i);
g = g.shift() + "." + g.join("");
return g * 1
},
d = {
ua: f,
version: null,
mobile: false,
ios: false,
android: false,
windows: false,
blackberry: false,
meizu: ... |
const configureGAM = require('@endeavor-business-media/package-shared/config/gam');
const config = configureGAM({ basePath: 'Officer' });
config.lazyLoad = {
enabled: false, // set to true to enable lazy loading
fetchMarginPercent: 100, // fetch ad when one viewport away
renderMarginPercent: 50, // render ad wh... |
/**
* Created by Administrator on 2016/7/24.
*/
var curLocal = 20
var seeExp2 = myLayer.extend({
sprite: null,
changeDelete: true,
layerName: "seeExp2",
preLayer: "seeLayer",
ctor: function () {
this._super();
this.expCtor({
settingData:{
pos: cc.p(2000,... |
// Easy3D_WebGL
// Main demo program for full screen and pointer lock
// <NAME> 2017-2020
"use strict"
var nHitTest = 0;
var nHits = 0;
var show_DEV_CD = false;
var phyTracers;
var gAccel = 0;
var timer = { delta : 0, start : 0 }; // dummy timer
var logElement = null;
function log(text, silent = true) {
let ... |
// Licensed to Cloudera, Inc. under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Cloudera, Inc. licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this f... |
/**
* RASH section plugin RAJE
*/
const NON_EDITABLE_HEADER_SELECTOR = 'header.page-header.container.cgen'
const BIBLIOENTRY_SUFFIX = 'biblioentry_'
const ENDNOTE_SUFFIX = 'endnote_'
const BIBLIOGRAPHY_SELECTOR = 'section[role=doc-bibliography]'
const BIBLIOENTRY_SELECTOR = 'li[role=doc-biblioentry]'
const ENDNOTE... |
/*eslint no-constant-condition: ["error", { "checkLoops": false }]*/
import ol_ext_inherits from '../util/ext'
import ol_source_Vector from 'ol/source/Vector'
import ol_control_Control from 'ol/control/Control'
import ol_ext_element from '../util/element'
/** Timeline control
*
* @constructor
* @extends {ol.control... |
const async = require('async');
const { errors, s3middleware } = require('arsenal');
const PassThrough = require('stream').PassThrough;
const DataFileInterface = require('./file/backend');
const inMemory = require('./in_memory/backend').backend;
const multipleBackendGateway = require('./multipleBackendGateway');
const... |
var BootCount = 90, // number of points plotted
CI = [],
CIline = [],
CItext = [],
confidence = .95,
cumsum = 0,
lowerCount = 0,
lowerBd = 0,
minx=50,
maxx = 0,
meansArray = [],
meanDots = [],
meanSpots = [],
oneSample = [],
overlap = 2,
popCost = [],
popSize = 100,
Rbox = [],
... |
import React, { Component } from 'react'
import { observer, inject } from 'mobx-react';
import { withRouter } from 'react-router-dom';
import { keywordFilterList, ignoreSmallType } from 'CONST/map';
import { objEqual } from 'UTIL/util';
import QCRSelect from 'COMPONENT/qCRSelect';
import QCopy from 'COMPONENT/qCopy';
i... |
const express = require('express')
const app = express()
const port = process.env.port || 8080
let session = require('express-session')
const moment = require('moment')
const FileStore = require('session-file-store')(session)
const Keycloak = require('keycloak-connect')
const storeOptions = { logFn: () => {} }
const pg... |
/**
* highly optimized TS demuxer:
* parse PAT, PMT
* extract PES packet from audio and video PIDs
* extract AVC/H264 NAL units and AAC/ADTS samples from PES packet
* trigger the remuxer upon parsing completion
* it also tries to workaround as best as it can audio codec switch (HE-AAC to AAC and vice versa), with... |
import { arrayEquals, binaryInsert, removeFirst } from "../utils";
import { TileSpec } from "../data/emf";
const SECTION_SIZE = 256;
const TDG = 0.00000001; // gap between depth of each tile on a layer
const RDG = 0.001; // gap between depth of each row of tiles
// prettier-ignore
const layerInfo = [
{ xoff: 0, ... |
const Matrix = require('transformation-matrix');
const SvgElement = require('./svg-element');
const log = require('./util/log');
/**
* @fileOverview Apply transforms to match stroke width appearance in 2.0 and 3.0
*/
// Adapted from paper.js's Path.applyTransform
const _parseTransform = function (domElement) {
... |
console.log($(document.currentScript).attr('src')); //load url of the script
var ajaxObject;
var api_path = '';
//common functions
//default ajaxUsedFunction to overwrite if needed
var postRespondDone = function (e){
if(typeof proj_dev !== 'undefined') console.log('||===> func :populateData()');
console.log(e);
if... |
class Gltf{
// #region HELPERS
//https://github.com/KhronosGroup/glTF-Tutorials/blob/master/gltfTutorial/gltfTutorial_005_BuffersBufferViewsAccessors.md
static parse_accessor( idx, json, bin, inc_data=true ){
let access = json.accessors[ idx ], // Reference to Accessor JSON Element
buf_view = json.buffer... |
/**
* This module adds support for the new size mapping spec, Advanced Size Mapping. It's documented here. https://github.com/prebid/Prebid.js/issues/4129
* The implementation is an alternative to global sizeConfig. It introduces 'Ad Unit' & 'Bidder' level sizeConfigs and also supports 'labels' for conditional
* ren... |
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// NECESSARY NODE MODULE DEPENDENCIES // ... |
var player = (function () {
var my = {};
my.dev = false;
my.mode = get_var('mode');
/*
Some of these should not be globals.
*/
my.restart = true;
my.displayId = '';
my.param = [];
my.schedule = {};
my.online = '';
my.weather = new Weather();
my.currentLoopPosition ... |
/**
* @jdf
*/
var path = require('path');
//var fs = require('fs');
var util = require('util');
//lib自身组件
var $ = require('./base.js');
var f = require('./file.js');
var Server = require('./server.js');
var Compress = require('./compress.js');
var Openurl = require("./openurl.js");
var Widget = require(... |
import path from 'path';
import * as simctl from 'node-simctl';
import { default as xcode, getPath as getXcodePath } from 'appium-xcode';
import log from './logger';
import { fs } from 'appium-support';
import B from 'bluebird';
import _ from 'lodash';
import { killAllSimulators, safeRimRaf } from './utils.js';
import ... |
/*
Determine Basal
Released under MIT license. See the accompanying LICENSE.txt file for
full terms and conditions
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINF... |
require("dotenv").config();
const express = require("express");
const cors = require("cors");
const mongoose = require("mongoose");
const server = express();
server.use(cors());
server.use(express.json());
const axios = require("axios");
const PORT = process.env.PORT;
mongoose.connect(process.env.MONGO_URL, {
useNew... |
/* ==========================================================================
File: main.js
Description: Homebridge Platform for controlling the garage system.
Copyright: May 2019
========================================================================== */
'use strict';
// External dependencies a... |
/*
FGAPIServerGUI javascript
This code mainly provides these two functionalities.
The !function(l) {} part handles menu and gadget defined inside the base.html
template.
The $(document).ready(function() at the bottom is responsible of the whole
dynamic aspect of the page (almost 100% of the page is dynamically ... |
'use strict';
var Package = require('./../package.json');
var path = require('path');
var async = require('async');
var Plugin = require('@maniajs/plugin').default;
/**
* LocalRecords Plugin.
*/
module.exports.default = class extends Plugin {
constructor() {
super();
// Set the package stuff int... |
'use strict';
var conferenceApp = conferenceApp || {};
conferenceApp.controllers = angular.module('conferenceControllers',['ui.bootstrap']);
var TMAIL = '';
var LISENS_AGREEMENT = "При нажатии 'ok' вы разрешаете нам использовать свою личную информацию (выложенную вами на данном сайте и дополненную нашей информацией о ... |
const url = require("url");
const request_client = require("request-promise-native");
const db = require("./database");
const moment = require("moment");
const fs = require("fs");
const path = require("path");
const archiver = require("archiver");
const gm = require("gm");
const { exec } = require("child_proces... |
var Namespace = new Object();
Namespace.register = function (path) {
var arr = path.split(".");
var ns = "";
for (var i = 0; i < arr.length; i++) {
if (i > 0) {
ns += ".";
}
ns += arr[i];
eval("if(typeof(" + ns + ") == 'undefined') " + ns + " = new Object();");
... |
jQuery.support.cors = true;
////////////////////// global stats for neologism by language
$("#neoinfoBtnFr").on('click',function(){
$("#neoinfoBtnFr").replaceWith('<a href="#" class="btn btn-info" id="neoinfoBtnFr"><i class="fa fa-circle-o-notch fa-spin"></i> Chargement des données (français)...</a>');
get_neo_in... |
const TsChar = require("./char");
const TsDate = require("./date");
const TsEpg = require("./epg");
const TsLogo = require("./logo");
const tsDataModule = require("./data_module");
function checkNestedObject(obj, keys) {
return keys.every(key => {
if (!obj.has(key)) return false;
obj = obj.get(key... |
var DagorDagorath = DagorDagorath || {};
var button;
var cursors;
var image1;
var image_menu;
var mascara;
var mascaraFin;
var button1_menu_Pause;
var button2_menu_Pause;
var panel_Stats;
var tropa1;
var sprite;
var trasgos;
var enanos;
var dineroIA= 2000;
var dinero = 1000;
var dineroTexto = 1000;
var enanotimer= 0;
v... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _react = _interopRequireWildcard(require("react"));
var _draftJs = require("draft-js");
var _immutable = _interopRequireDefault(require("immutable"));
var _Toolbar = _interopRequireDefault(require("./Too... |
export const BIBLE = [
{ id: "RDM", name: '(Random)', chapters: [] },
{ id: "GEN", name: 'Genesis', chapters: [31, 25, 24, 26, 32, 22, 24, 22, 29, 32, 32, 20, 18, 24, 21, 16, 27, 33, 38, 18, 34, 24, 20, 67, 34, 35, 46, 22, 35, 43, 55, 32, 20, 31, 29, 43, 36, 30, 23, 23, 57, 38, 34, 34, 28, 34, 31, 22, 33, 26] }... |
var __create = Object.create;
var __defProp = Object.defineProperty;
var __defProps = Object.defineProperties;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getOwnPropSymbols = Object.getOwnProp... |
/*jslint node: true */
'use strict';
const odex = require('odex-client-browser');
const Bittrex_ws = require("./bittrex-ws/client.js");
const conf = require("./conf");
const mutex = require("./mutex.js");
const source = require("./source");
let orders, ws_api, balances, bittrex_ws_client, exchange;
let assocSourceBid... |
/*
rototype.js - some javascript utils
Copyright (C) 2007 <NAME>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
... |
var currentHowl = null;
// Volume / Gain
var currentVol = 0.5;
Howler.volume(currentVol);
// Current playlist (likely shuffled)
var currentPlaylist = [];
// currentstation Object
var currentStationData = {};
let stationListcache;
// Current Song/Howl
var currentSong = "";
var currentSongIndex = 0;
// Shuffle state
/... |
import { cerPalette, conversions, visibility } from "../modules/util.js";
const haversine = require("haversine");
export class EventMap {
substanceState = {
Propane: "gas",
"Natural Gas": "gas",
"Gaz Naturel": "gas",
"Fuel Gas": "liquid",
"Lube Oil": "liquid",
"Huile lubrifiante": "liquid",
... |
import React, { Component, Fragment } from 'react';
import { Row, Col, Card, Form, Table, Button, Input , Select, DatePicker, Spin, Tooltip, Icon, Popover, message } from 'antd'
import { withRouter } from 'react-router';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import moment fr... |
window.dismissTab = function dismissTab(node) {
const parent = node.parentNode;
parent.style.display = 'none';
};
window.comparator = (fn) => function compare(a, b) {
const a1 = fn(a).toLowerCase ? fn(a).toLowerCase() : fn(a);
const b1 = fn(b).toLowerCase ? fn(b).toLowerCase() : fn(b);
if (a1 === b1) {
r... |
/*=======================editn.js===========================*/
var productPropertyCount = 1;
function checkSubData(subData) {
var errorMsg = "";
if (subData.ProductName == "") {
errorMsg += "请填写商品名称|";
}
if (subData.PictureUrl1 == "") {
errorMsg += "请上传第一张商品图片做为商品主图|";
}
for ... |
var util = require('util'),
path = require('path'),
EventEmitter = require('events').EventEmitter,
async = require('async'),
fs = require('fs'),
DebuggerClient = require('./v8/DebuggerClient'),
v8Helper = require('./v8/Helper'),
ScriptManager = require('./ScriptManager'),
ScriptStorage =... |
/**
* Copyright Zendesk, Inc.
*
* Use of this source code is governed under the Apache License, Version 2.0
* found at http://www.apache.org/licenses/LICENSE-2.0.
*/
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var React = require('react');
var styledComponents = require('styled-... |
/* LICENSE
_This file is Copyright 2018 by the Image Processing and Analysis Group (BioImage Suite Team). Dept. of Radiology & Biomedical Imaging, Yale School of Medicine._
BioImage Suite Web is licensed under the Apache License, Version 2.0 (the "License");
- you may not use this software e... |
// TODO
// - Lazy removal detection
// - UI hooks (expose, test)
// - Quick remove/add (mark "leaving" members; needs UI hooks)
// - Event removal on removal
var DomBackend = UI.DomBackend;
var removeNode = function (n) {
// if (n.nodeType === 1 &&
// n.parentNode.$uihooks && n.parentNode.$uihooks.removeElement... |
// input-field Web Component. Responsive input field with label and validation
// https://github.com/ahabra/input-field
// Copyright 2021 (C) <NAME>. Version 1.4.1.
// Apache License Version 2.0
// node_modules/@techexp/webitem/dist/webitem-esm.js
import { Domer, Objecter, Stringer } from "@techexp/jshelper";
// nod... |
"use strict";
const fs = require("fs-extra");
const md5File = require("md5-file");
const childProcess = require("child_process");
const Logger = require("./../../logger/Logger");
const DateUtils = require("./../../utils/DateUtils");
const WebServices = require("./../../services/webservices/WebServices");
const APIRespo... |
//////////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2014-present, Egret Technology.
// All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
/... |
var usuario
var contaRef = firebase.database().ref('/ServidorResende/contas/')
var provaRef = firebase.database().ref('/ServidorResende/provaonline/')
var assunto = document.getElementById('assunto')
var descricao = document.getElementById('descricao')
var id
var coluna1 = document.getElementById('coluna1')
var coluna2... |
const {exec} = require('child_process');
const {expect} = require('chai');
const chalk = require('chalk');
const fs = require('fs');
const path = require('path');
const os = require('os');
const glob = require('glob');
let commandPrefix = 'node ./node_modules/.bin/cypress';
if (process.platform === 'win32') {
comma... |
// Window Properties
const REPORT_FILE_ID = "report_file";
const PROJ_CUST_MAP_ID = "proj_cust_map_area";
const CUST_RSGP_MAP_ID = "cust_rsgp_map_area";
const JSON_EXPORT_ID = "json_export";
// Constants about report format
const REPORT_HEADER_LINE = 11;
const EXPECTED_REPORT_HDR = ["Event Number", "Event Name", "Even... |
$(document).ready(function () {
uiUpdate();
uiEventUpdate();
});
function reloadTable(selector, url) {
$.ajax({
url: url,
type: "GET",
dataType: "html",
success: function (data) {
$(selector).empty().append(data);
},
error: function (xhr, status) ... |
// first some HTML-building support vars/functions
var svgNS = 'http://www.w3.org/2000/svg';
var noteLetters = ['C-','C#','D-','D#','E-','F-','F#','G-','G#','A-','A#','B-'];
var volumeEffectLetters = ['-', '+', '▼', '▲', 'S', 'V', 'P', '◀', '▶', 'M'];
var vibratoTypes = ['sine', 'square', 'saw down', 'saw up'];
var lo... |
import { resolve, dirname, relative, sep, posix, isAbsolute, normalize, basename } from 'path';
import { promises as fs, createReadStream } from 'fs';
import * as kl from 'kolorist';
import { getWmrClient } from './plugins/wmr/plugin.js';
import { createPluginContainer } from './lib/rollup-plugin-container.js';
import ... |
import { PDFDocument, StandardFonts } from 'pdf-lib';
import { fetchAsset, writePdf } from './assets';
// prettier-ignore
const winAnsiCodePoints = [
0x0020, 0x0021, 0x0022, 0x0023, 0x0024, 0x0025, 0x0026, 0x0027, 0x0028,
0x0029, 0x002a, 0x002b, 0x002c, 0x002d, 0x002e, 0x002f, 0x0030, 0x0031,
0x0032, 0x0033, ... |
/* global Map,WeakMap */
import { arr, fun, obj, tree, string, promise } from 'lively.lang';
import { pt, Rectangle, Color } from 'lively.graphics';
import { Morph, Text, config, touchInputDevice, Label } from 'lively.morphic';
import { connect, signal } from 'lively.bindings';
import bowser from 'bowser';
/*
This mo... |
// $Id: ircbot_commands.js,v 1.37 2015/03/04 18:25:38 mcmlxxix Exp $
/*
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
T... |
var runediv = [1.5, 2, 3, 5, 8]
var runeexpbase = [1, 4, 9, 16, 1000]
// this shows the logarithm of costs. ex: upgrade one will cost 1e+6 coins, upgrade 2 1e+7, etc.
var upgradeCosts = [0, 6, 7, 8, 10, 12, 20, 25, 30, 35, 45, 55, 75, 110, 150, 200, 250, 500, 750, 1000, 1500,
2, 3, 4, 5, 6, 7, 10, 13, 20, 30, 150,... |
//----------------------------------------------------------//
var data = [];
var sum = {};
var newLine = {refeicao: "Manhã", nome:"Ovo", unidade: "ovos", qtd: "0", cal:"0", fats: "0", carb:"0", protein:"0", detalhes: "Sem detalhes."};
var actualGroup = [];
var outPage = "";
function uptadeRefeicao(rowID){
... |
function Test_Moto() {
camera.position.y = 0;
camera.position.z = 15;
tell('Use arrow keys or WSAD to move <br>R: revers | E: eject | Space: restart.');
this.ground = new Hill({dy:1, w:200, h:-10, step:2, size:20, zone:50, friction: 1, restitution:1.2, userData: Constants.ID['ground']});
this.inp... |
"use strict";
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
/* eslint-disable @typescript-eslint/ban-types */
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P... |
"use strict";
/*
* Copyright (C) 2017 TypeFox and others.
*
* 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
*/
var __extends = (this && this.__exte... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.preventEmptyResult = preventEmptyResult;
exports.default = void 0;
var sql = _interopRequireWildcard(require("pg-sql2"));
var _package = require("../../package.json");
var _pgField = _interopRequireDefault(require("./pgField"));
... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = exports.codes = void 0;
const codes = {
"FOER0000": "Unidentified error.",
"FOAP0001": "",
"FOAR0001": "Division by zero.",
"FOAR0002": "Numeric operation overflow/underflow.",
"FOAY0001": "",
"FOAY0002": "",
... |
/* -*- js -*- */
import {alert} from './alertui.js';
import {confirm} from './confirmui.js';
import {curState, setupLoginP} from './state.js';
import {pushPage, popPage} from './pageui.js';
import {fmtInterrupt, fmtSails, fmtOther, openLogEntry} from './logentryui.js';
import {openPage as openAddLogEntryPage} from './... |
/**
* @see helper.js for all init variables
*/
//This requires an environment variable, which we will get to in a moment.
//require files joining that directory variable with the location within your package of files
const databasePath = require('path').join(__dirname, '../db/votersKey.db');
const javaPath = require... |
/*jslint bitwise: true, browser: true, evil:true, devel: true, todo: true, debug: true, nomen: true, plusplus: true, sloppy: true, vars: true, white: true, indent: 2 */
/*globals
uneval, log, RMS, TERRAIN_SEPARATOR, PI, TWO_PI,
cos, sin, round, randInt, abs, floor,
g_MapSettings,
randomizeBiome, InitMap... |
const _now = function (self) {
return self.performance && self.performance.now ? function () {
return self.performance.now();
} : function () {
return Date.now();
};
}(typeof self !== 'undefined' ? self : window); // function now() {
// return _now();
// }
class ElapsedTimer {
start() {
this.st... |
var instance = '';
var delayCloseWindow = 2000; // delay for closing window popup (in ms) !!
function string_unslug(str)
{
var temp = str.split('_');
for(key in temp)
{
temp[key] = temp[key].substr(0,1).toUpperCase() + temp[key].substr(1);
}
return temp.join(" ");
}
function lang_unslug(str)
{
var temp = str.... |
"use strict";
var esprima = require('esprima');
var eval_macros = require('./preprocess_graph/eval_macros');
var add_view_refs = require('./preprocess_graph/add_view_refs');
var rewrite_view_conditionals = require('./preprocess_graph/rewrite_view_conditionals');
var rewrite_element_triple_references = require('./prepr... |
import $S from "../../interface/stack.js";
// import $$$ from '../../interface/global';
import Config from "./Config";
import DataHandlerTA from "./DataHandlerTA";
import DataHandlerV2 from "./DataHandlerV2";
import DataHandlerV3 from "./DataHandlerV3";
import DataHandlerAddFieldReport from "./DataHandlerAddFieldReport... |
export { default as ArrowLeft } from './icons/arrow-left';
export { default as ArrowRight } from './icons/arrow-right';
export { default as ArrowUp } from './icons/arrow-up';
export { default as ArrowDown } from './icons/arrow-down';
export { default as ArrowDownLeft } from './icons/arrow-down-left';
export { defa... |
import React, {useState,useEffect} from "react";
import {useLocation,useHistory} from "react-router-dom";
import {Button, makeStyles, Radio, RadioGroup, FormControlLabel , Dialog,Slide,DialogTitle,DialogActions,IconButton,TextField ,MenuItem, Grid} from "@material-ui/core";
import clsx from "clsx";
import {Themes} from... |
//===========模組載入=======================
const express = require('express');
const bodyParser = require('body-parser');
const app = express();
const router = express.Router();
const path = require("path");
const fs = require("fs");
const mysql = require('mysql');
const mqtt = require('mqtt');
const net = require('net')... |
let x,y; //coordinates for the tree
let snow = []; //snow array
let dropSpeed = 5; //snow speed
let flower = [];
let apple = [];
let rain = [];
let rainSpeed = 5;
let leaves = [];
let leafSpeed = 2;
let appleSound, snowSound, rainSound, springSound; //variables for the sound
let sampleIsPLaying = false;
function prelo... |
import clsx from "clsx";
import isNil from "lodash/isNil";
import PropTypes from "prop-types";
import React, { useState, useEffect, useMemo, useRef } from "react";
import ReactTable, { ReactTableDefaults } from "react-table";
import withFixedColumns from "react-table-hoc-fixed-columns";
import { withStyles } from "@ma... |
/* global dashboard */
import $ from 'jquery';
import _ from 'lodash';
import JSZip from 'jszip';
import {saveAs} from 'filesaver.js';
import {SnackSession} from '@code-dot-org/snack-sdk';
import * as applabConstants from './constants';
import * as assetPrefix from '../assetManagement/assetPrefix';
import download fro... |
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
//HACK TO FIX NULL TEXTURE
PIXI.Sprite.prototype.setTexture = ... |
// 7.4.3-36-g1821a1a
//OLD Main javascript -- still used by the ADMIN, but not on the front end!
//EVERYTHING IN THIS FILE IS DEPRECATED!!!
//We will be converting existing JS to use jQuery instead of Prototype.
//As we do, the JS will be moved into gjmain.js. The below can be used for now
//but note that anything c... |
var grillas_datatable = {};
var nombre_columna_acciones = '_acciones_';
var grid_accion_eliminar = "<input type='checkbox' onclick='selectToDelete(event, this)' \
style='margin:0;vertical-align:middle;' />\
<button type='button' class='btn btn-outline-secondary btn_grid_action' onclick='deleteRow(event, this)' \
style... |
import React, { Component } from 'react'
import Match from '../models/Match'
import Hero from '../models/Hero'
import Season from '../models/Season'
import Account from '../models/Account'
import DayTimeApproximator from '../models/DayTimeApproximator'
import MapSelect from './MapSelect'
import HeroSelect from './HeroS... |
/* this variable represents the current script element */
var me = {};
String.prototype.replaceAll = function (find, replace) {
var str = this;
return str.replace(new RegExp(find.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'), 'g'), replace);
};
function dirname(dir)
{
if (dir.lastIndexOf("/") == dir.length - 1)
... |
import React from 'react';
import PropTypes from 'prop-types';
import * as d3 from 'd3';
import { withRouter } from 'react-router-dom';
import ReactTooltip from 'react-tooltip';
import moment from 'moment';
import { debounce } from 'lodash';
import { connect } from 'react-redux';
import { withTranslation } from 'react-... |
const svgCaptcha = require("svg-captcha");
const { setRedisVal } = require("../utils/redis");
const {
shuffle,
getJwtPaload,
getUuid,
isEmail,
fail,
suc,
} = require("../utils/index");
const config = require("../config/index");
const { userIsExist, UserModel } = require("../model/User");
const { ArticleMode... |
///////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////// 以下プロパティ //////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////
//================================ 各種変数 ========... |
/* eslint-disable no-bitwise, no-multi-assign, import/no-cycle */
import toDate from 'date-fns-tz/toDate';
import DateInfo from './dateInfo';
import defaultLocales from './defaults/locales';
import { pad, addPages, arrayHasItems } from './helpers';
import {
isDate,
isNumber,
isString,
isObject,
isArray,
has... |
import React, { Component } from 'react';
import { Row, Col, Tab, Tabs } from 'react-bootstrap';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { toastr } from 'react-redux-toastr';
import { Timeline, TimelineEvent } from 'react-event-timeline';
import { Trans } from 'react-i18next';
... |
/**
* Copyright JS Foundation and other contributors, http://js.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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... |
// Slogo
// =====
// Slogo is generated by the [Jison](http://github.com/zaach/jison) javascript library
// using this grammar file. Jison draws its inspiration from [Bison](http://www.gnu.org/software/bison)
// a parser generator for C and C++. Jison can recognize [LALR(1)](http://en.wikipedia.org/wiki/LR_grammar)
... |
/*
* Copyright (C) 2020 <NAME>
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*
*
* Some code from GB-Studio, see LICENSE.gbstudio
*/
"use strict";
// User configurable.
const ROM_FILENAME = 'porklike.gb';
const ENABLE_REWIND = true;
c... |
'use strict';
var support = require('./support');
var utils = require('./utils');
var crc32 = require('./crc32');
var signature = require('./signature');
var defaults = require('./defaults');
var base64 = require('./base64');
var compressions = require('./compressions');
var CompressedObject = require('./compressedObje... |
require( '../change histories/social-worker-history.model' );
const keystone = require( 'keystone' ),
async = require( 'async' ),
Types = keystone.Field.Types,
User = require( '../users/user.model' ),
MailchimpService = require( '../../components/mailchimp lists/mailchimp-list.controll... |
import React from 'react';
import {Image, Linking, ListView, Platform, RefreshControl, ScrollView, StyleSheet, Text, View} from "react-native";
import Swiper from 'react-native-swiper'
import {BaseComponent} from "../../components/base/BaseComponent";
import GridView from "../../components/GridView";
import TouchableVi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.