text stringlengths 5.97k 41.2k |
|---|
// Budget Controller - Code related to handling the budget (data) logic
var budgetController = (function() {
// Function Constructor for Expense
var Expense = function(id, description, value) {
this.id = id;
this.description = description;
this.value = value;
this.perce... |
/**
* Matrix Play
*
* Drag a box around to get the transform css!
* Version 1.3 - 2012/03/03
*
*/
// decimals of the matrix css output
var FIXED = 3;
var targetobject;
/**
* Various helpers
*
*/
if (!Function.prototype.bind) {
Function.prototype.bind = function(scope) {
var method = this;
... |
const assert = require('assert');
const crypto = require('crypto');
const fs = require('fs');
const uuid = require('uuid');
const url = require('url');
const config = require('./config.js');
const config_var = require('./config-var.js');
const common = require('./common.js');
const logs = require('./log-drains.js');
co... |
///////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2017-2018 <NAME> (Cisco Systems), /
// <NAME> (Cisco Systems), <NAME> (Cisco Systems) and others /
// /
// All rights ... |
import * as d3 from "d3";
import * as THREE from 'three';
import * as dat from 'dat.gui';
import * as OrbitControls from 'three-orbitcontrols';
var allCharts = [];
// global chart consts
const margin = {left: 10, right: 10, top: 10, bottom: 10};
const width = 480;
const height = 480;
const barWidth = 1;
const visual... |
var PathEvent = require('path-event'),
Target = require('y-emitter').Target,
define = require('u-proto/define'),
Resolver = require('y-resolver'),
pct = require('pct'),
UrlRewriter = require('url-rewriter'),
Setter = require('y-setter'),
{Getter} = Setter,
query = require('hsm/main/Even... |
"use strict";
/**
*
* handler
*
*/
var __asyncValues = (this && this.__asyncValues) || function (o) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var m = o[Symbol.asyncIterator], i;
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[S... |
import React from 'react'
//import QuestionHeader from './QuestionHeader';
import {Grid} from '@material-ui/core';
import {DragDropContext, Droppable, Draggable} from "react-beautiful-dnd";
import {Paper, Typography} from '@material-ui/core';
import TextField from '@material-ui/core/TextField';
import Accordion from '... |
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed u... |
import { createSelector } from 'reselect';
import isEmpty from 'lodash/isEmpty';
import omit from 'lodash/omit';
import sortBy from 'lodash/sortBy';
import castArray from 'lodash/castArray';
import flatMap from 'lodash/flatMap';
import uniqBy from 'lodash/uniqBy';
import uniq from 'lodash/uniq';
import groupBy from 'lo... |
'use strict';
require('newrelic');
var express = require('express');
var app = express();
var q = require('q');
var rx = require('rx'), Obs = rx.Observable;
var moment = require('moment');
// Our lib:
var examples = require('./examples');
var handle = require('./convert').handle;
// Our utils:
var osta = require('./se... |
function removeVideoAds() {
//This stops Twitch from pausing the player when in another tab and an ad shows.
Object.defineProperty(document, "visibilityState", {
get() {
return "visible";
},
});
Object.defineProperty(document, "hidden", {
get() {
return false;
},
});
const block... |
var PageName = 'structure';
var PageId = 'pf9f79e037a5b4663bc4c1e54b0edfd2c'
var PageUrl = 'structure.html'
document.title = 'structure';
if (top.location != self.location)
{
if (parent.HandleMainFrameChanged) {
parent.HandleMainFrameChanged();
}
}
var $OnLoadVariable = '';
var $CSUM;
var hasQ... |
mui.init({
pullRefresh : {
container : '#shopingcart_scroll_wrapper',
down : {
auto : true,
contentdown : '下拉可以刷新',
contentover : '释放立即刷新',
contentrefresh : '正在刷新...',
callback : pulldownRefresh
}
}
})
var shopingcartNum = 0;
mui('.mui-scroll-wrapper').scroll({
deceleration : 0.0005,
indicators... |
import _ from 'lodash';
import * as d3 from 'd3';
import moment from 'moment';
import { SELECTED_COLOR_DARK, GRAPH_BACKGROUND_COLOR } from '@/utils/colors-util';
import stringUtil from '@/utils/string-util';
/* SVG Utility functions */
/**
* Chart wrapper
* @param {object} svg - D3 svg selection
* @param {number}... |
//
// Copyright (c) 2017 EGI Technologies. All rights reserved.
//
/////////////////////////////////////////////////////////////////////
//
// File: bots.js
// Author: ECC
// Date: 04/15/07
// Description:
// This js file deals with ajax calls for OmmBots. botsCanvas.jsp calls this
//
// Dependency:
... |
$('document').ready(function () {
$('#multiple-mode-on').on('click', function(){
//alert("boolean val: "+$('#multiple-mode-on').is(":checked"));
$('.selected').removeClass('selected').addClass('reserved');
});
$('#single-mode-on').on('click', function(){
//alert("boolean val: "+$('#multiple-mode-on')... |
import vcjs from 'vc-js';
import { blake2AsHex } from '@polkadot/util-crypto';
import { validate } from 'jsonschema';
import * as jsonld from 'jsonld';
import documentLoader from './vc/document-loader';
import { isHexWithGivenByteSize } from './codec';
import { RevEntryByteSize, RevRegIdByteSize } from './revocation';... |
$(document).foundation();
var amount = JSON.parse(localStorage.getItem('buttonAmount')) + 1
var searchHistory = document.getElementById('searchHistory')
var searchButton = document.getElementById('searchButton')
var searchBar = document.getElementById('searchBar')
var cryptoTitle = document.getElementById('cryptoTitle'... |
import React, { Fragment, useState, useEffect } from 'react';
import { useHistory } from 'react-router-dom';
import { Row, Col, Tabs, Tab, Alert } from 'react-bootstrap';
import { isEmpty, upperFirst } from 'lodash';
import axios from 'axios';
import Loading from '../commonComponents/Loading';
import { baseURL } from '... |
/**
* Caching module using sqlite
*/
const sqlite3 = require('sqlite3');
const Moment = require('moment-timezone');
const Settings = require('./settings');
const DebugLog = require('./debugPrint');
let sqldb = null;
let pendingSetup = false;
let readyCallbacks = [];
const pendingWrapPromises = {};
function ExecSQ... |
/* eslint-disable max-len */
/* eslint-disable jsx-a11y/label-has-associated-control */
/* eslint-disable no-console */
/* eslint-disable no-alert */
/* eslint-disable jsx-a11y/no-static-element-interactions */
/* eslint-disable jsx-a11y/click-events-have-key-events */
/* eslint-disable react/jsx-filename-extension */
... |
import React, { Component } from 'react';
import { observer, inject } from 'mobx-react';
import { withRouter } from 'react-router-dom';
import { Button, Select, Steps, Table, Input } from 'choerodon-ui';
import { injectIntl, FormattedMessage } from 'react-intl';
import { Content, Header, message, Page, Permission, stor... |
const messages = {
fr: {
terms: {
resultList: {
unknownTermMessage: "Désolé, ce terme est inconnu",
unknownTermMessageModerator: "... pour le moment ?",
addTermButton: "Ajouter un terme"
},
randomTerm: {
info... |
/***************************File*Header**********************************
* File Name: TextStorm.js
*
* JS Description: This JS File is the major JS File, which contains boot
* background processes, major functions, etc...
*
* *** IMPORTANT: THE MOST PRECIOUS FILE FOR TEXTSTORM
********************... |
/* eslint-disable indent */
import { all, call, put, takeLeading } from 'redux-saga/effects';
import { startOfDay } from 'date-fns';
import { localstoreUtilites } from '../../../utils/persistenceData';
import request, { optionReq, PATH_GATEWAY } from '../../../utils/request';
import { loadingError, setLoading, showWarn... |
import { make_grid, divmod } from "src/util/util.js"
const COL_W = 35;
const COL_H = 12;
const NUMBER_MARGIN_RIGHT = 5;
export default class LeafState {
/**
* @param {int[][]} digit_grid
* @param {int} focus_width
*/
constructor(digit_grid, focus_width) {
this.digit_grid = digit_grid;
... |
const {
hashHistory,
Link,
Switch,
Route,
HashRouter: Router,
withRouter,
} = ReactRouterDOM;
class Navbar extends React.Component {
constructor(props) {
super(props)
}
render(){
return(
<nav className="navbar navbar-expand-lg navbar-light bg-light bg-primary">
<div className="con... |
/**
* @file CustmerController.js
* Controller CustmerController
* @author : <NAME> - <NAME>
* @copyright : 2019 - 2020 All rights reserved
*/
const bcrypt = require('bcryptjs'),
jwt = require('jsonwebtoken'),
Customer = require('../models/customers'),
jwt_decode = require('jwt-decode');
const val... |
/**
* TO-DO:
* - When connected via router, use webui to connect to a different wifi network. esp2ino will successfully connect to the new network, but the webui will report a failure. (Reconnecting breaks the web session.) Webui should attempt to ping the server behind the scenes, then refresh if ping is successful.... |
var AppUserForm = function(a, b) {
return this.setup(a, b);
};
AppUserForm.prototype.setup = function(d, c) {
var b = __ctxPath + "/system/listDepartment.do?opt=appUser";
var f = new TreeSelector("depTreeSelector", b, "所属部门", "appUser.depId",
false);
Ext.getCmp("depTreeSelectorTree").on("click", function(g) {
... |
#!/usr/bin/env node
const path = require('path');
const exec = require('util').promisify(require('child_process').exec);
const fs = require('fs-plus');
const { EVM } = require('evm');
const chalk = require('chalk');
const { table } = require('table');
const { ArgumentParser } = require('argparse');
//
//
//
// Con... |
import { writable, get, derived } from 'svelte/store'
import { persist, debounced, deferred } from 'svelte-persist'
import { openDB } from 'idb'
const USERNAME = 'user'
const error = e => console.error(e)
const maxTime = arr => Math.max(...arr.map(i => i.upd)).toString()
const HEADERS = {
'Content-Type': 'applicatio... |
/*
* Implementation based on Node.js https://github.com/nodejs/node/
*
* Original work Copyright Copyright Joyent, Inc. and other Node contributors.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal i... |
/*
<NAME>, 2012
(Google Apps script)
~~Description~~
*/
var p = performanceTest();
if(print) {
print(JSON.stringify(p));
} else if(console.log) {
console.log(JSON.stringify(p))
}
function performanceTest() {
var testSet = constructTestSet(100000, 12);
var times = {};
var t0 = new Date().getTime();
evaluat... |
/*
** Sieving -- Query-Based Item-List Reduction
** Copyright (c) 2018-2021 Dr. <NAME> <<EMAIL>>
**
** 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
** ... |
import React, { useState, useEffect } from 'react';
import { Link } from 'react-router-dom';
import firebase from './firebase'
import { useTimer } from 'use-timer';
import api from "../../../../api/api-url";
// material-ui
import { makeStyles, useTheme } from '@material-ui/styles';
import {
Box,
Button,
Ch... |
import React, { Component, useEffect, useState } from "react";
import { FormControl, TextField, Button, Grid } from "@material-ui/core";
import apis from '../api';
function PatientForm({ patient }) {
const [patientId, setPatientId] = useState(patient.id);
const [age, setAge] = useState(patient.age)
const ... |
import $ from '../../core/renderer';
import { noop, asyncNoop } from '../../core/utils/common';
import { isPlainObject, isObject, isDefined } from '../../core/utils/type';
import { each } from '../../core/utils/iterator';
import { extend } from '../../core/utils/extend';
import { render } from '../widget/utils.ink_ripp... |
"use strict";
// 4分音符に24回届くtimingメッセージを元に適当にテンポを推定する
var Timing = function(){
return {
running: false, // startを受けてtrue, stopを受けてfalse
starttime: 0, // startを受けた時の時刻
count: 0, // startからの累積カウント
tempo: 0,
onBeat: function(tempo){}, // 四分音符で何するか
onStart : function(){
this.runni... |
var phone = $(window).width()<576;
var mathInput = null;
var Preview = {
delay: (phone ? 300 : 200), // delay after keystroke before updating
preview: null, // filled in by Init below
buffer: null, // filled in by Init below
timeout: null, // store setTimout id
mjRunning: false, // true when... |
/*
* Copyright (c) 2016-2018 <NAME> http://shakiba.me/planck.js
* Copyright (c) 2006-2011 <NAME> http://www.box2d.org
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
* Permissi... |
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] =... |
var backgroundApi = {
startRecording: () => {
videoRecorder.startRecording(), $.writeState({ recording: "started" });
},
};
let recorder = {
isRecording: !1,
chooseMediaId: null,
openedStreams: [],
screenCapture: "",
videoStream: [],
audioStream: [],
opendWebCamWindow: null,
startRe... |
/* global ethers hre */
const diamond = require('diamond-util')
const { aavegotchiSvgs } = require('../svgs/aavegotchi.js')
const { wearablesSvgs } = require('../svgs/wearables.js')
const { collateralsSvgs } = require('../svgs/collaterals.js')
const { eyeShapeSvgs } = require('../svgs/eyeShapes.js')
const { wearableSe... |
/**
* Created by hawk on 21/10/16.
*/
var newCount = 0;
var jobPostObj;
$(window).load(function() {
setTimeout(function(){
if(newCount == 0){
$(".newNotification").hide();
} else{
$(".newNotification").show();
$("#pendingApproval").html(newCount);
... |
import Phaser from './phaser-full';
import {opengmail} from './opengmail'
import {openlinkedin} from './linkedin'
import {github} from './github'
class Example extends Phaser.Scene
{
constructor ()
{
super();
}
preload ()
{
this.style = { fill: '#00FFFF' };
this.styleOver =... |
require('rootpath')();
var logger = require('config/winston');
const path = require('path');
var appRoot = require('app-root-path');
var User = require('app/models/user');
var Project = require('app/models/project');
var WipProject = require('app/models/wip_project');
var Document = require('app/models/document')
va... |
import { ComplexAnalyserNode } from "../complex-analyser-node.js";
import { AutoGainControlNode } from "../auto-gain-control-node.js";
import { ComplexBandpassFilterNode } from "../complex-bandpass-filter-node.js";
import { FrequencyConverterNode } from "../frequency-converter-node.js";
import { DemodulateProtoNode } ... |
'use strict';
const utils = require('@iobroker/adapter-core');
const ws = require('ws');
const { exec } = require('child_process');
const fs = require('fs');
const path = require('path');
const express = require('express');
const LE = require(utils.controllerDir + '/lib/letsencrypt.js');
cons... |
function drawOnCanvas() {
ctx.clearRect(0, 0, stage_width, stage_height);
var i;
for (i = 0; i < deck.length; i++) {
draw_card(deck[i].draw_rank, deck[i].draw_suit, card_width, card_height, deckX+i/divisor, deckY+i/divisor, false, false);
}
for (i = 0; i < hands[0].length; i++) {
draw_card(hands[0][i].draw_ra... |
const formatCoord = function(x, y) {
return '(' + x + ',' + y + ')';
};
const formatAngle = function(angle) {
let angleDeg = angle * 180 / Math.PI;
return angleDeg + ' (' + angle.toFixed(2) + ')';
};
class DebugScene extends Phaser.Scene {
constructor(config={}) {
super({
key: 'Debug',
act... |
var log = require('../core/log.js')('Z');
var code = require('../core/code.js');
var mongo = require('../core/mongo.db.js');
var util = require('util');
var cps = require('../core/components.js');
var A = require('./app.do.js');
var cmd = require('./cmd.do.js');
var settings = require('../../settings.js');
require('../... |
/**
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
/**
A * Says if the zipcode should be automatically set based on the geocordinates.
* @type {boolean}
* @private
*/
var autosetZip = false;
/**
* Google Analytics account used to push actions to GA
* @define {string}
* @private
*/
var googleAnalyticsAccount = 'UA-210230-4';
/**
* The default zipcode to use ... |
function getPoint(obj) {
//获取某元素以浏览器左上角为原点的坐标
var t = obj.offsetTop; //获取该元素对应父容器的上边距
var l = obj.offsetLeft; //对应父容器的上边距
//判断是否有父容器,如果存在则累加其边距
while ((obj = obj.offsetParent)) {
//等效 obj = obj.offsetParent;while (obj != undefined)
t += obj.offsetTop; //叠加父容器的上边距
l += obj.offsetLeft; //叠加父容器的左边距
... |
/* Please don't look at this code, it's horrifyingly bad.
* I had college apps and a research paper to finish writing :(
*/
const width = window.innerWidth - 349;
const height = window.innerHeight;
let centered;
const CURRENT = "current";
const OVERALL = "overall";
const GROSS_DONATIONS = "Gross donations";
cons... |
'use strict';
//require '../../../../js/utils.js';
var localStream = null; // the media stream on this peer
var pc = null, dtls = null, ice = null; // the peer connection with its transports
var dc = {local:null, remote:null, connected:false}; // the data channels of pc
var id = null; // the certificate of the identi... |
import {assert} from "../webix/debug";
import {debug_size_box_start, debug_size_box_end} from "../webix/debug";
import {callEvent} from "../webix/customevents";
import {insertBefore, remove} from "../webix/html";
import {extend, _power_array, isUndefined, copy} from "../webix/helpers";
import {_each} from "../ui/helpe... |
/* Copyright (c) 2011-2013 <NAME>, BSD License */
var util = require('util')
var assert = require('assert')
var eyes = require('eyes')
var nid = require('nid')
var simpledb = require('../lib/simpledb.js')
var keys = require('./keys.mine.js')
var awshost = 'sdb.amazonaws.com'
module.exports = {
expbackoff: f... |
window.onerror = function(err) {
swal("Woops!", "Looks like there was an error. Check your browser console.", "error");
};
var settings;
var last_life_sign = 0;
var initialized = false;
var REST_URL;
var REST_URL_GET;
var REST_URL_SUBMIT;
var REST_URL_ADD_CHANNEL;
var REST_URL_REMOVE_CHANNEL;
var REST_URL_ADD_CON... |
var DEBUG = true, Tetris = {
intro: 0,
playing: 1,
paused: 2,
over: 3,
win: 4
},
debug = function() {
if (DEBUG) {
console.log(arguments);
}
};
Tetris.Boot = function (game) {
};
Tetris.Boot.prototype = {
preload: function () {
this.load.image('preload', 'assets/preload.png');
... |
/*
* Copyright 2015 Splunk, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"): you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
var a, wave = wave || {};
wave.Callback = function(b, c) {
this.callback_ = b;
this.context_ = c || null
};
wave.Callback.prototype.invoke = function() {
this.callback_ && this.callback_.apply(this.context_, arguments)
};
wave.Mode = {UNKNOWN:0, VIEW:1, EDIT:2, DIFF_ON_OPEN:3, PLAYBACK:4};
wave.API_PARAM_ = "wave... |
/******************************************************************************
Copyright (c) 2015, Intel Corporation
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the abov... |
// just use in repl.it
const data = {
1: {
name: '/m/01g317',
id: 1,
displayName: 'Person',
},
2: {
name: '/m/0199g',
id: 2,
displayName: 'Bicycle',
},
3: {
name: '/m/0k4j',
id: 3,
displayName: 'Car',
},
4: {
name: '/m/04_sv',
id: 4,
di... |
const createREGL = require('regl');
const State = require('controls-state');
const GUI = require('controls-gui');
const createCamera = require('./regl-turntable-camera');
const meshSurface = require('./mesh-surface-2d');
const mat4create = require('gl-mat4/create');
const mat4multiply = require('gl-mat4/multiply');
con... |
/* -------------------------------------------------------------------------- */
'use strict';
import * as common from './common.js';
const {
dbg,
assert,
codePointLength,
codePointLengthAt,
codePointIsWhitespace,} = common;
/* -------------------------------------------------------------------------- */
expo... |
/*!
=========================================================
* Argon Dashboard React - v1.1.0
=========================================================
* Product Page: https://www.creative-tim.com/product/argon-dashboard-react
* Copyright 2019 Creative Tim (https://www.creative-tim.com)
* Licensed under MIT (https:/... |
//组件信息
var info = {
groupId: "org.hswebframework.pro",
artifactId: "hsweb-payment-merchant",
version: "1.0.6",
website: "",
author: "zhouhao",
comment: "商户模块"
};
//版本更新信息
var versions = [
{
version: "1.0.1",
upgrade: function (context) {
var database = context.da... |
const path = require("path");
const http = require("http");
const bip39 = require("bip39");
const axios = require('axios');
const { hdkey } = require("ethereumjs-wallet");
const {
getBlockchain,
runSidechainTransaction
} = require("../../common/blockchain.js");
const {
makePromise,
setCorsHeaders,
} = require("... |
import './rolldate.less';
import BScroll from './bscroll.min';
function Rolldate(config){
if(!config || !config.el){return;}
let _this = this,
el = _this.$(config.el);
if(!el || el.bindRolldate){return;}
el.bindRolldate = 1;
_this.extend(config);
el.addEventListener('click', function() {
if(e... |
import React, { useState, useEffect, useRef } from 'react'
import styles from './cards.module.css'
import SomethingWentWrong from '../../SomethingWentWrong/SomethingWentWrong'
import ExpandedText from '../../expandedText/expandedText'
import { Paging } from '../paging/paging'
import moment from 'moment'
export functio... |
/* Author: <NAME> (<EMAIL>)
This is the javascript file. The definitions of the 4 sorting algorithms
are inside this file, as well as the programming of the p5.js canvas that
gets displayed in the html page. The bulk of the programming is in this
file. */
function setup() // p5.js setup function | This will b... |
// $(document).ready(function() {
// $('#applicant_form').on('submit', function(e) {
// e.preventDefault();
// })
//
// })
$(document).ready(function() {
var url = $('#base_url').val();
// MEMBERS SIGNATURE
$('#member_signatures').on('submit', function(e) {
e.preventDefault();
let formdata = $(th... |
'use strict';
const stream = require('stream');
const PassThrough = stream.PassThrough;
const BodyStructure = require('./body-structure');
const createEnvelope = require('./create-envelope');
const parseMimeTree = require('./parse-mime-tree');
const libmime = require('libmime');
const libqp = require('libqp');
const l... |
$(function() {
$('#date').datepicker({
format: 'yyyy-mm-dd',
todayHighlight: true,
});
tableList(system_id);
});
function tableList(id) {
$.ajax({
"url": ajaxTbl,
method: 'GET',
data: {'id': id},
success: function (data) {
$('#transTbl').Data... |
import * as references from "./references.js"
import * as dimmer from "../ui/dimmer.js";
import * as modals from "../ui/modals.js"
import {setClass, toggleErrorMessage} from "../ui/utils.js";
export function create(accession, text) {
const modal = document.getElementById('new-annotation');
const msg = modal.qu... |
;
//Variables globales
var xhr = null;
var base_url = null;
var doc_root = null;
/***********************/
/*Evento document ready*/
/***********************/
$(document).ready(function(){
//Expandimos el colorbox al tamaño del marco de la aplicación
parent.$.fn.tamano_venata();
//parent.$.colorbox.resize... |
import { isWebGL2 } from '../utils';
export const GL_PARAMETER_DEFAULTS = {
[3042]: false,
[32773]: new Float32Array([0, 0, 0, 0]),
[32777]: 32774,
[34877]: 32774,
[32969]: 1,
[32968]: 0,
[32971]: 1,
[32970]: 0,
[3106]: new Float32Array([0, 0, 0, 0]),
[3107]: [true, true, true, true],
[2884]: fals... |
let delayInterval = 20;
let pointsToShow = 100;
let noiseMax = 0;
const RAW_DATA = [
2534,2531,2536,2532,2533,2535,2533,2533,2531,2533,2530,2533,2531,2531,2530,2535,
2536,2531,2530,2532,2529,2536,2530,2533,2532,2531,2530,2533,2528,2533,2534,2536,
2531,2535,2527,2541,2530,2530,2533,2535,2530,2531,2531,2533,2531,25... |
/* Version : 9.0 */
/*
Copyright (C) Air Liquide S.A, 2017
Author: <NAME> and <NAME>, La Factory, Creative Foundry
This file is part of Predictable Farm project.
The MIT License (MIT)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentatio... |
"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];
... |
let canvas = null;
let ctx = null;
Array.prototype.sum = function(prop) {
let total = 0, i, size = this.length;
for (i = 0; i < size; i++) {
total += this[i][prop];
}
return total;
};
var burgerBuilder = (function() {
const APP_DATA_KEY = "burger-builder";
const SCREEN_UNITS = 110;
const BGCOLOR = Col... |
function drawpage_mng_qt_quiz(page){
cid= $("#inf_cid").val();
lid=$("#inf_lid").val();
search=$("#inf_search").val();
limit=$("#inf_limit").val();
redrawqttbl_quiz(cid,lid, search,limit,page);
}
function drawlv_mng_qt_quiz(event){
cid= $("#inf_cid").val();
lid=$(event).val();
search=$("#inf_search").val();
l... |
import { JsonViewer } from './json-viewer/json-viewer.js'
import { DataTableView } from './table/data-table.js'
import { resolveData } from '../modules/onedrive.js'
import dateFormat from 'dateformat'
export function parseOptions( options, defaults ) {
// keys = keys || [...Object.keys(options), ...Object.keys(defaul... |
var GfData = [
{
name: 'MM01',
planYield: 20,
lRealYield: 22.4,
lLS: 10.65,
lBXF: 13.33,
lLP: 2.06,
lDC: 2.00,
lYJ: 3.29,
lBeizhu: '保险粉用量+3°~+4°',
bRealYield: 0,
bLS: 0,
... |
'use strict';
const pluginDefs = require('./plugin_defs');
// Maps the name of a server-side hook to a string explaining the deprecation
// (e.g., 'use the foo hook instead').
//
// If you want to deprecate the fooBar hook, do the following:
//
// const hooks = require('ep_etherpad-lite/static/js/pluginfw/hooks')... |
/**
* Copyright 2018 Aarhus University
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... |
const SPHERE_WIDTH_SEGMENTS = 32;
const SPHERE_HEIGHT_SEGMENTS = 32;
const CIRCLE_SEGMENTS = 120;
const ROTATIONAL_FACTOR = 0.01;
const ORBITAL_RADIUS_FACTOR = 2;
const ORBITAL_VELOCITY_FACTOR = 0.05;
let cameraProperties = {
aspectRatio: window.innerWidth / window.innerHeight,
near: 1,
far: 1000,
};
let ... |
'use strict';
require('promise.prototype.finally').shim();
const _ = require('lodash');
const ms = require('ms');
const timers = require('safe-timers');
const PING_INTERVAL = ms('1m');
const PING_KEY = 'ping';
const queues = [];
const tasks = {};
let globalMaxConcurrent = Number.MAX_VALUE;
let globalNumConcurrent = ... |
// ----------------------------------------------------------------------------
// Constants
const INFINITY = Infinity;
const PI = 3.1415926535897932385;
// ----------------------------------------------------------------------------
// Helper Classes
class Vec3 {
constructor(x=0, y=0, z=0) {
this.x = x;... |
function deleteApplication(applicantId) { //create function for deleting application, applicant id passed to function
$.post("../db/deleteApplication.php", { //post values to php
applicantId: applicantId //pass applicant id
}, function(result) { //run function after getting a result
location.reload(); //re... |
/**
*
* controls index.html
*
**/
var divs = ['#homeDiv', '#aboutDiv', '#photosDiv', '#contactDiv'];
var links = ['homeLink', '#aboutLink', '#photosLink', '#contactLink'];
var actives = ['#homeActive', '#aboutActive', '#photosActive', '#contactActive'];
var menuLinks = ['#food1', '#food2', '#food3', '#beer1_1', '#bee... |
/*
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);
... |
/**
* Created by krasilneg on 27.12.16.
*/
'use strict';
const ReportBuilder = require('../interfaces/ReportBuilder');
const parseConditions = require('core/ConditionParser');
const clone = require('clone');
const moment = require('moment');
const Operations = require('core/FunctionCodes');
const Item = require('core... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import * as d3 from 'd3';
import { makeid, isvalid, istrue, numberWithCommas } from '../grid/common.js';
import { RangeSlider, sliderSize } from '../component/RangeSlider.js';
import { RiCheckboxBlankLine, RiCheckboxLine } from 'react-ico... |
var renderer = null,
scene = null,
camera = null,
root = null,
group = null;
var game = false,
life = 0,
score = 0,
highScore = 0,
spawn = 0,
nEnemies = 0,
duration = 60,
clock = null,
currentTime = Date.now();
var directionalLight = null;
var spotLight = null;
var ambientLight = null;
var mapUrl = "./images/grass.... |
import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import Typography from '@material-ui/core/Typography';
import Modal from '@material-ui/core/Modal';
import Button from '@material-ui/core/Button';
import Grid from '@material-ui/core/Grid';
import Card ... |
import {DialogActions, DialogContentText, InputLabel, Switch, Typography} from '@material-ui/core';
import Box from '@material-ui/core/Box';
import Button from '@material-ui/core/Button';
import ButtonGroup from '@material-ui/core/ButtonGroup';
import Dialog from '@material-ui/core/Dialog';
import DialogContent from '@... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.