text stringlengths 5.97k 41.2k |
|---|
var capitalize = require('capitalize');
var transitionEnd = require('transition-end');
var polarPositions = {
bottom: 'top',
top: 'bottom',
right: 'left',
left: 'right'
};
var positions = ['top', 'right', 'bottom', 'left'];
var hiddenDisplayRegEx = /^(none|table(?!-c[ea]).+)/;
var showStyles = {
po... |
/* eslint-disable max-classes-per-file */
import { LitElement, html, css } from "lit";
import { unsafeHTML } from "lit/directives/unsafe-html.js";
import { classMap } from "lit/directives/class-map.js";
import { WithWording } from "../utils/wording-mixin.js";
export const selector = "nma-cv";
class CVExperienceElemen... |
$.ajaxSetup({
headers: { 'X-CSRF-TOKEN': $('meta[name="_token"]').attr('content') }
});
(function($, window, document){}(jQuery, window, document));
$.extend({
getValues: function(url) {
var result = null;
$.ajax({
url: url,
type: 'get',
dataType: 'json',
... |
const sizeOf = require('image-size');
var i = 0;
var max_height = 230;
var max_width = 230;
var pg = 0;
var zoomindex = settings.doujinshi.zoomindex;
var showtag = document.getElementById("showtag");
var showcharacter = document.getElementById("showcharacter");
var margindropdown = document.getElementById("margindropdo... |
import { assert } from 'chai'
import seedrandom from 'seedrandom'
// Constants
const PRECISION = 1e-10
// Critical values for P = 0.01
// Source: https://www.medcalc.org/manual/chi-square-table.php
const CHI_TABLE_LOW = [0,
6.635, 9.210, 11.345, 13.277, 15.086, 16.812, 18.475, 20.090, 21.666, 23.209,
24.725, 26.... |
import {css, html, LitElement} from "./../web_modules/lit-element.js";
import {repeat} from "./../web_modules/lit-html/directives/repeat.js";
import "./atoms/blur.js";
import "./atoms/button.js";
import "./atoms/compact-switch.js";
import "./atoms/icon.js";
import {ALLOW_NATIVE_SHARE, DEFAULT_COMPACT_PX, getShareConfig... |
import * as util from '../util';
import * as is from '../is';
import Map from '../map';
import Set from '../set';
import Element from './element';
import algorithms from './algorithms';
import animation from './animation';
import classNames from './class';
import comparators from './comparators';
import compounds from... |
import { Meteor } from 'meteor/meteor';
import { ReactiveVar } from 'meteor/reactive-var';
import { Tracker } from 'meteor/tracker';
import { Blaze } from 'meteor/blaze';
import { FlowRouter } from 'meteor/kadira:flow-router';
import { Template } from 'meteor/templating';
import toastr from 'toastr';
import _ from 'und... |
'use strict';
const ENCH_SCROLL = 0; /* Enchantment from reading a scroll */
const ENCH_ALTAR = 1; /* Enchantment from an altar */
const ENCH_FOUNTAIN = 2; /* Enchantment from a fountain */
function positionplayer(x, y, exact) {
if (x == null) x = player.x;
if (y == null) y = player.y;
if (e... |
const dbOpsGuilds = require('../util/db/guilds.js')
const config = require('../config.js')
const MenuUtils = require('../structs/MenuUtils.js')
const FeedSelector = require('../structs/FeedSelector.js')
const log = require('../util/logger.js')
const Translator = require('../structs/Translator.js')
const getEmbedPropert... |
/*
* Copyright (c) 2016-2017 <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... |
import "./qc.js"
curveColor = "rgb(255,235,59)"
pointColor = "rgb(255,0,0)"
guid = function(){
function s4() {
return Math.floor((1 + Math.random()) * 0x10000)
.toString(16)
.substring(1);
}
return s4() + s4() + '-' + s4() + '-' + s4() + '-' +
s4() + '-' + s4() + s4() + s4();
}
send_to_peer... |
//
// Copyright (c) 2018 by SAP SE or an SAP affiliate company. All rights reserved. This file is licensed under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with th... |
import React from "react";
import PropTypes from "prop-types";
import { withStyles } from "@material-ui/core/styles";
import Grid from "@material-ui/core/Grid";
import InputAdornment from "@material-ui/core/InputAdornment";
import moment from "moment";
import Dialog from "../../../../../elements/Dialog";
import InputG... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
const path = require("path");
const fs = require("fs");
const os = require("os");
const uuid = require("uuid");
const vscode = require("vscode");
const jsonc = require("jsonc-... |
import MyWorker from './worker.js';
//import localforage from 'localforage';
import BroadcastChannel from 'broadcast-channel';
import uuid4 from 'uuid/v4';
import log from './logger.js';
const sleep = ms => new Promise(res => setTimeout(res, ms));
/**
* TDLib in a browser
*
* TDLib can be compiled to WebAssembly o... |
/**
* Copyright (c) 2014,Egret-Labs.org
* All rights reserved.
* 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 above copyright
* notice, this list of c... |
export default (req, res) => {
const { page } = req.body
const total_page = Math.max(0, 5 - page)
// const list = Array.from({ length: 10 }, (t, idx) => ({}))
const list = []
const data = {
...mockData,
orderStatus: "1005",
showRiderMap: 1,
riderChannel: "LHDJ",
... |
var fs = require("fs");
var path = require("path");
var _ = require('underscore');
var Future = require('fibers/future');
var fiberHelpers = require('./fiber-helpers.js');
// Watch for changes to a set of files, and the first time that any of
// the files change, call a user-provided callback. (If you want a
// second... |
var should = require("chai").should();
var rewire = require("rewire");
global.navigator = {};
var CindyJS = require("../build/js/Cindy.plain.js");
function FakeCanvas() {
this.width = 640;
this.height = 480;
};
FakeCanvas.prototype.measureText = function(txt) {
return { width: 8*txt.length };
};
function dummy(... |
var LEVELS = [
[" ",
" ",
" ",
" ... |
//
// Copyright 2018 WebAssembly Community Group participants
//
// 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... |
var libraryList = [];
// If we switch lang in keskikirjastot.fi, the old lang lib name will ghost in url.
var libListMultiLang = [];
var libListMultiLangHelper = [];
var libName;
// Group libraries by city.
// https://stackoverflow.com/questions/46043262/split-array-with-objects-to-multiple-arrays-based-on-unique-combi... |
import h from 'virtual-dom/h';
import diff from 'virtual-dom/diff';
import patch from 'virtual-dom/patch';
import createElement from 'virtual-dom/create-element';
import virtualize from 'vdom-virtualize';
// import nocache from 'superagent-no-cache';
import request from 'superagent';
import URL from 'url-parse';
import... |
const randomstring = require('randomstring')
const util = require('ethereumjs-util')
const get = require('lodash/get')
const { Sentry } = require('../../sentry')
const { Order, Product } = require('../../models')
const sendNewOrderEmail = require('../../utils/emails/newOrder')
const discordWebhook = require('../../ut... |
// twister_following.js
// 2013 <NAME>
//
// Manage list of following users. Load/Save to localstorage and DHT.
// Provides random user suggestions to follow.
var followingUsers = [];
var knownFollowers = [];
var notFollowers = [];
var followingsFollowings = {};
var _isFollowPublic = {};
var _followsPerPage = 200;
var... |
const utils = require('./lib/utils');
const reshaper = require('arabic-persian-reshaper').ArabicShaper;
const opentype = require('opentype.js');
const exec = require('child_process').exec;
const mapLimit = require('map-limit');
const MaxRectsPacker = require('maxrects-packer').MaxRectsPacker;
const path = require('path... |
const focusables = require('makeup-focusables');
const assign = require('core-js-pure/features/object/assign');
const resizeUtil = require('../../common/event-utils').resizeUtil;
const processHtmlAttributes = require('../../common/html-attributes');
const onScroll = require('./utils/on-scroll-debounced');
const scrollT... |
var fs = require('fs')
var path = require('path')
var request = require('teeny-request').teenyRequest
var urlgrey = require('urlgrey')
var jsYaml = require('js-yaml')
var walk = require('ignore-walk')
var execSync = require('child_process').execSync
var detectProvider = require('./detect')
var version = 'v' + require... |
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
import { useState, useCallback, forwardRef, createElement, useContext, useRef, useEffect, useMemo } from 'react';
import { oneOfType, object, string, number, instanceOf, oneOf } from 'prop-types';
import { u as useUtils } from './useUtils-cfb96ac9... |
// Carousel
/* ========================================================================
* Bootstrap: transition.js v3.3.7
* http://getbootstrap.com/javascript/#transitions
* ========================================================================
* Copyright 2011-2016 Twitter, Inc.
* Licensed under MIT (https://gi... |
/*
Copyright 2013, BroadSoft, 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 in writing, softwa... |
import BoundingSphere from "./BoundingSphere.js";
import Cartesian3 from "./Cartesian3.js";
import Cartesian4 from "./Cartesian4.js";
import Check from "./Check.js";
import ComponentDatatype from "./ComponentDatatype.js";
import defaultValue from "./defaultValue.js";
import defined from "./defined.js";
import Geometry ... |
/**
* @license
* Copyright The Closure Library Authors.
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @fileoverview DateIntervalFormat provides methods to format a date interval
* into a string in a user friendly way and a locale sensitive manner.
*
* Similar to the ICU4J class com/ibm/icu/text/DateIntervalFo... |
/*
* 格式化 NEI 上的源数据
* @author huntbao
*/
'use strict';
let path = require('path');
let neiDbConst = require('../fb-modules/config/db.json');
let logger = require('../util/logger');
module.exports = {
/**
* 获取输出参数的类型, 后端在接口代码中需要该信息
*
* 根据返回值的类型,需返回不同的值,规则如下:
* 1. 如果没有定义返回值,则返回: {typeName: null}。
* 2.... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
require("../../../src/components/VTreeview/VTreeview.sass");
var _VTreeviewNode = _interopRequireWildcard(require("./VTreeviewNode"));
var _themeable = _interopRequireDefault(require("../../mixins/themeable"));
... |
/**
* @license
* Copyright 2018 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
const nsdsp = require('../build/Release/nsdsp-native');
const sharedStructs = require('shared-structs');
module.exports = {
Enumerate: nsdsp.NSDSPEnumerate,
Connect: nsdsp.NSDSPConnect,
Disconnect: nsdsp.NSDSPDisconnect,
GetSerial: nsdsp.NSDSPGetSerial,
GetVersion: nsdsp.NSDSPGetVersion,
GetBaudRate: nsdsp.NSDSPGetBau... |
"use strict"
var error;
//canvas must be larger then any framebuffer rendered to it (not tested if requirements exist for textures used by canvas)
var gl = new OffscreenCanvas(1000,1000).getContext("webgl2",{premultipliedAlpha: false, antialias: false,preserveDrawingBuffer: true})
gl.disable(gl.DEPTH_TEST);
gl.disab... |
"use strict";
var DEFAULT_APP_SETTINGS = {
fcm: {
apiKey: "<KEY>",
ttl: 60,
priority: "high"
},
frd: {
databaseUrl: "https://fir-cloudmessaging-4e2cd.firebaseio.com"
},
fa: {
active: true,
apiKey: "<KEY>",
projectId: "fir-cloudmessaging-4e2cd",
appId: "1:322141800886:web:5cdb3... |
/*global d3, startDate, endDate, startTime, endTime, formatWeek, formatHour, numberToHumanSize, formatFixed, formatDate, formatTime, numberWithDelimiter */
// function barWidth(width,length){
// let calc_width = (width/(length)) - 2;
// let bar_width = calc_width;
// if (calc_width > 17){
// bar_width = 17;
... |
/**
* Copyright 2019 IBM All Rights Reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
const TYPE = 'Proposal';
const settle = require('promise-settle');
const {checkParameter, getLogger} = require('./Utils.js');
const logger = getLogger(TYPE);
const fabproto6 = require('fabric-protos');
const ServiceAction = ... |
//Client Specific functions
const priceCallback = function () {
try{
let rate = document.getElementById('officeType').options[document.getElementById('officeType').selectedIndex].getAttribute('data-rate');
let guards = document.getElementById('number1').value;
let date1 = document.getElement... |
import React, { PureComponent } from 'react';
import { connect } from 'dva';
import { Modal, Checkbox, notification, Radio, Form } from 'antd';
import globalUtil from '../../utils/global';
import { Flow, withPropsAPI, RegisterCommand } from 'gg-editor';
import {
addRelationedApp,
removeRelationedApp
} from '../../s... |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";
var ts = require("typescript");
function assertTypeChecked(sourceFile) {
if (!('resolvedModules' in... |
/*
* Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available.
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
* BK-BASE 蓝鲸基础平台 is licensed under the MIT License.
*
* License for BK-BASE 蓝鲸基础平台:
* ----------------------------------------------------... |
/* eslint-disable no-mixed-spaces-and-tabs */
const { MessageActionRow, MessageButton, MessageEmbed } = require('discord.js');
const fs = require('fs');
const funcImports = require('../../functions.js');
const database = require('../../database.js');
const events = require('../../events.js');
module.exports = {
name... |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
const { Cc, Ci, Cu } = require("chrome");
const { getCurrentZoom, getWindowDimensions, getViewportD... |
/**
* Imports
*/
import React from 'react';
import {FormattedMessage, FormattedNumber} from 'react-intl';
import {Link} from 'react-router';
import connectToStores from 'fluxible-addons-react/connectToStores';
import {slugify} from '../../../utils/strings';
// Flux
import CartStore from '../../../stores/Cart/CartSto... |
class FPSDetector {
constructor($container, option) {
if (typeof $container === 'string') {
$container = document.querySelector($container);
}
this.option = Object.assign({
width: 85,
height: 30,
fpsLevels: [10, 30],
memLevels: [2... |
"use strict";
/**
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... |
// Built-in modules
const fs = require('fs')
const zlib = require('zlib')
const util = require('util')
const path = require('path')
// 3rd-party dependencies
const getFolderSize = require('get-folder-size')
const { DateTime } = require('luxon')
const { _ } = require('lodash')
const del = require('del')
const prompts =... |
load("8b38e12cab5de21ec5393724c0d9b7dd.js");
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft Corporation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full licens... |
const remote = require('electron').remote;
const dialog = remote.dialog;
const ipc = require("electron").ipcRenderer;
const path = require("path");
const fs = require("fs");
const _ = require("lodash");
const chokidar = require('chokidar');
const mkdirp = require('mkdirp');
const i18n = require('./i18n.js');
const Edi... |
// Custom jQuery methods
jQuery.fn.extend({
// Returns true if there are any elements in the jQuery wrapped set. Otherwise returns false.
exists: function() {
return jQuery(this).size() >= 1;
},
// Gets or sets the src attribute of an element in the jQuery wrapped set.
src: function(newSrc) ... |
//Get coingecko price. If it doesn't work, do nothing.
fetch('https://api.coingecko.com/api/v3/simple/price?ids=rai&vs_currencies=usd')
.then(
function(response) {
if (response.status !== 200) {
console.log('Looks like there was a problem. Status Code: ' +
response.status);
} else {
... |
/* @author <NAME>, <EMAIL> */
/*
- JsUnit
- Copyright (C) 2001-4 <NAME>, <EMAIL>
- Copyright (C) 2008 litl, LLC
-
- Version: MPL 1.1/GPL 2.0/LGPL 2.1
-
- The contents of this file are subject to the Mozilla Public License Version
- 1.1 (the "License"); you may not use this file except in compliance with
- the... |
// Helper methods for 'routing.js' file. They don't require any method from 'routing.js' but are required by them.
// They are also rarely used directly from outside of 'routing.js'
import { LuigiConfig, LuigiFeatureToggles, LuigiI18N, LuigiRouting } from '../../core-api';
import { AsyncHelpers, EscapingHelpers, EventL... |
$( document ).ready(function() {
var cfc = '';
var f = new Date();
var dia = f.getDate();
var mes = f.getMonth()+1;
if(mes<10){
cfc='0';
}
if(dia<10){
cfd='0';
}
var ano = f.getFullYear();
var fecha = cfd+dia+'/'+cfc+mes+'/'+ano;
$('#fc_venta').text(fecha);
... |
//For traversal.
var nodeArray = new Array(); //Array of nodes.
var bfArray = new Array(); //Array of balance factor.
var checkBFArr = new Array(); //BF of be checked.
var checkIndex; //Index of be checked.
var levelTra = 0, nodeAVLTra = 0; //nodeAVLTra:Node of has been presented; levelTr... |
import React from 'react';
import net from "../network"
import Session from '../session'
import Const from '../../const'
import { ipcRenderer } from 'electron';
import context from '../context'
class Course extends React.Component {
constructor(props) {
super(props)
this.$uuid = 0
this.$stat_arr = []
this.$s... |
//Includes functions for class siteswap
'use strict';
//TODO: expand siteswap in loops to standardize the output: eg siteswap 3 produces loops 3,3,3 instead of 3
var siteswapTranslator = function(site) {
/**
* takes in siteswap in string form, returns siteswap in array form, along with
* the siteswap's multiplex... |
/**
* @copyright 2016- (c) commenthol
* @license ISC
*/
'use strict';
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof ... |
const gulp = require('gulp');
const resx2 = require('./gulp-utils/gulp-resx-js');
const rename = require('gulp-rename');
const gulpMerge = require('merge-stream');
const jeditor = require('gulp-json-editor');
const fs = require('fs');
const path = require('path');
const merge = require('gulp-merge-json');
const del = r... |
import { useState } from 'react';
import { Form, Input, Dropdown, Message, Button } from 'semantic-ui-react';
const Search = ({siteChange, viewChange, functionChange, deviceChange, timerChange, textChange, textCasesChange}) => {
const [site, setSite] = useState('');
const [view, setView] = useState('');
const [d... |
const express = require("express");
const app = express();
const compression = require("compression");
// socket.io stup
const server = require('http').Server(app);
// socket.io needs a native node server, it can't work with express
const io = require('socket.io')(server, { origins: 'localhost:8080'}); //mysocialnetwor... |
import {
DATA_API_ROOT,
MAP_STATISTICS,
PRIMARY_STATISTICS,
STATE_NAMES,
STATISTIC_CONFIGS,
UNKNOWN_DISTRICT_KEY,
} from '../constants';
import useIsVisible from '../hooks/useIsVisible';
import {
fetcher,
formatNumber,
getStatistic,
parseIndiaDate,
retry,
} from '../utils/commonFunctions';
import... |
var tls = require('tls');
var fs = require('fs');
var path = require('path');
var fork = require('child_process').fork;
var assert = require('assert');
var constants = require('constants');
var os = require('os');
var async = require('async');
var debug = require('debug')('test... |
"use strict";
//var Logger = require("./../../logger/Logger");
const Annotation = require("annotation");
const FormObject = require("./FormObject");
const Convert = require("./../../utils/Convert");
const ERROR_NO_JSON_METHOD = "No `json` method implemented";
const ERROR_NO_FORMOBJECT_EXTEND = "The form class does not... |
const urlParams = new URLSearchParams(window.location.search);
const rid = urlParams.get('rid');
const token = urlParams.get('token')
const m_token = urlParams.get('m');
const g_token = urlParams.get("g");
const PING_INTERVAL = 1000 // 1sec
const duration_tolerance = 0.5 // 0.5 sec
const player = new Plyr('#player');... |
/**
* Space Game 101
* a bare-bones arcade game written in vanilla JavaScript (ES6+) for learning purposes
*
* https://github.com/hvianna/space-game-101
* (c) 2020 <NAME> / MIT Licensed
*/
class Starfield {
constructor( originCanvas, options ) {
// default option values
const defaults = {
speed : .4,
... |
///////////////////////////////////////////////////////////////////////////////
//
// Topographic Attribute Maps Demo
// Copyright 2020 <NAME>, <NAME>, <NAME>
//
// This code is licensed under an MIT License.
// See the accompanying LICENSE file for details.
//
//////////////////////////////////////////////////... |
var deepExtend = function (out) {
out = out || {};
for (var i = 1; i < arguments.length; i++) {
var obj = arguments[i];
if (!obj) continue;
for (var key in obj) {
if (obj.hasOwnProperty(key)) {
if (typeof obj[key] === 'object') {
if (obj[key] instanceof Array == true)
out[key] = obj[key].sl... |
// provides the User model for handling users
'use strict';
const CodeStreamModel = require(process.env.CSSVC_BACKEND_ROOT + '/api_server/lib/models/codestream_model');
const UserValidator = require('./user_validator');
const ArrayUtilities = require(process.env.CSSVC_BACKEND_ROOT + '/shared/server_utils/array_utilit... |
// Copyright [2020] [Banana.ch SA - Lugano Switzerland]
//
// 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 ap... |
/**
* Created by BruceWayne on 10/01/2015.
* Want to model
*
* 1. Create an Order [DONE]
* 2. Retrieve Specific Order for a given Customer [DONE]
* 3. Retrieve All Orders for a given Customer [DONE]
* 4. Update Specific Order for a given Customer [DONE]
* - NOTE:
* Ran into the 'depopulation' PROBLEM
* ... |
#!/usr/bin/env node
const fs = require('fs');
const path = require('path');
const crypto = require('crypto');
const Mqtt = require('mqtt');
const chalk = require('chalk');
const qrcode = require('qrcode-terminal');
const nextport = require('nextport');
const oe = require('obj-ease');
const express = require('express')... |
var data = new Object();
var nombre_preguntas = new Map();
var nombre_finales = new Map();
jQuery(document).ready(function(){
data.quest = new Object();
data.quest.preguntas = new Object();
});
jQuery(document).on("click", "#buttonPreguntas", function(){
if (!jQuery("#nombre_historia").val() || !jQuery("#desc... |
// Modified version of this: https://github.com/prouast/heartbeat-js
const RESCAN_INTERVAL = 1000;
const DEFAULT_FPS = 30;
const LOW_BPM = 42;
const HIGH_BPM = 240;
const SEC_PER_MIN = 60;
const MSEC_PER_SEC = 1000;
// Simple rPPG implementation in JavaScript
// - Code could be improved given better documentation ava... |
/**
* \file PnlIdecNavMaint.js
* web client functionality for panel PnlIdecNavMaint
* \author <NAME>
* \date created: 30 Dec 2017
* \date modified: 30 Dec 2017
*/
// IP cust --- INSERT
// --- expand state management
function minimize() {
if (retrieveSi(srcdoc, "StatAppIdecNavMaint", "srefIxIdecVExpstate"... |
import "../css/font.scss";
import "../css/xq-light.scss";
import "../css/github-markdown.scss";
import "../css/github-highlight.scss";
import "../css/iconfont.scss";
import "../css/notie.scss";
import "../css/main.scss";
var ui = require('../js/ui');
var keymap = require('../js/keymap');
var format = require('../js/fo... |
/**
* The main code for Microscope, a game developed for the Ludum Dare #31 2014 game competition.
* @author <NAME>
*/
window.requestAnimationFrame = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || function(f) {
setTimeout(f, ... |
var React = require("react");
// Data
var questionData = require('./data/questions.js');
// Utils
var smoothScroll = require('../util/smoothscroll.js');
// Layout
var Nav = require('../ui-Nav/Nav.js');
// Forms
var AboutForm = require('./AboutForm.js');
var QolForm = require('./QolForm.js');
// Delimiters & submis... |
Bitmap.loadByImage = function(img) {
var bitmap = new Bitmap();
bitmap._image = img;
bitmap._url = "";
bitmap._isLoading = true;
bitmap.width = img.naturalWidth;
bitmap.height = img.naturalHeight;
bitmap._image.onload = Bitmap.prototype._onLoad.bind(bitmap);
bitmap._image.onerror = Bitm... |
// Map II : Simplified bubble map
var width = 960,
height = 500,
active = d3.select(null);
// var projection = d3.geo.albersUsa()
// var projection = d3.geo.kavrayskiy7()
// var projection = d3.geo.equirectangular()
var projection = d3.geo.mercator()
.scale(150)
.translate([width / 2, height / 1.5]);
var path = d3.g... |
'use strict';
const apiBaseUrl = require('./apiBaseUrl').baseUrl;
var WAD_COLORS = [
"rgb(173, 35, 35)", // Red
"rgb(42, 75, 215)", // Blue
"rgb(87, 87, 87)", // Dark Gray
"rgb(29, 105, 20)", // Green
"rgb(129, 74, 25)", // Brown
"rgb(129, 38, 192)", // Purple
"rgb(160, 160, 160)", // Lt Gra... |
/**
*
* �2018-2019 EdgeVerve Systems Limited (a fully owned Infosys subsidiary),
* Bangalore, India. All Rights Reserved.
*
*/
/* eslint-disable no-console */
var loopback = require('loopback');
var fs = require('fs');
var path = require('path');
var _ = require('lodash');
var glob = require('glob');
var logge... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _tslib = require("tslib");
var _g6Core = require("@antv/g6-core");
var _layout = require("../../layout");
var _layout2 = require("../../layout/worker/layout.worker");
var _layoutConst = require("../../layo... |
var open_menu;
class Menu {
constructor(structure) {
var scope = this;
this.children = [];
this.node = $('<ul class="contextMenu"></ul>')[0]
this.structure = structure
}
hover(node, event) {
if (event) event.stopPropagation()
$(open_menu.node).find('li.focused').removeClass('focused')
$(open_menu.node)... |
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
f... |
import { Document } from 'yaml';
import SourceEditor from '~/editor/source_editor';
import { YamlEditorExtension } from '~/editor/extensions/source_editor_yaml_ext';
import { SourceEditorExtension } from '~/editor/extensions/source_editor_extension_base';
import { spyOnApi } from 'jest/editor/helpers';
let baseExtensi... |
/*!
* File: ./gulpfile.js
* Copyright(c) 2016-2017 <NAME>
* License: MIT
*/
'use strict';
//--------------//
// DEPENDENCIES //
//--------------//
const _ = require('lodash');
const $ = require('jquery');
const fs = require('fs');
const del = require('del');
const path = require('path');
const ... |
/**
* Created by TRITON on 10/19/2016.
*/
'use strict';
var intervalObj = {};
var $awaitingBid = 40+Math.floor((Math.random() * 17) + 7);;
var $nextBidDuration = 10;
var $velocityDelay = 0;
function RefreshSomeEventListener($product_id, $sku) {
var $place_bid = $('#placebid_' + $product_id);
$(document).on... |
/*jshint strict:false */
const suits = {
'H': {
name: 'hearts',
color: 'red',
symbol: '\u2665'},
'S': {
name: 'spades',
color: 'black',
symbol: '\u2660'},
'D': {
name: 'diamonds',
color: 'red',
symbol: '\u2666'},
'C': {
name: 'clubs',
color: 'black',
symbol: '\u2663'}
};
const deckValue = ... |
// 'use strict'
const ccxt = require('ccxt')
const log = require('ololog').configure({locate: false})
const api = require('./api')
const fs = require('fs')
const _ = require('lodash')
const {saveJsonToCSV} = require('./utils')
require('ansicolor').nice
const moment = require('moment')
const {MinorError, MajorError} = r... |
/*
* Simple MDL settings page generator
*/
var Options = {};
(function () {
const PREFS_URL = "prefs/schema.json";
const OPTION_ELEMENT_CLASSNAME = "option-list";
var errorHandlers = [];
var onError = function (error) {
for (var i = 0; i < errorHandlers.length; i++) {
errorHandler... |
const _ = require('lodash');
const paths = require('./paths');
const sizeY = 300;
const defaultMargin = 5;
const staffHeight = 100;
const numLines = 5;
const minStemLength = 0.85 * staffHeight;
const baseY = (sizeY + staffHeight) / 2;
const halfLineHeight = staffHeight / (numLines - 1) / 2;
const dotDiameter = halfLi... |
/*
8-bit RGB332 color picker, using colors laid out in HSV color cylinder.
Copyright (c) <NAME>
MIT License
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 withou... |
/* Module: SongRanking -- Grabber add-on for liking/disliking songs and rating them. */
const Module = require('../Module.js');
const emoji = require('emojione');
const random = require('meteor-random');
const LIKEABILITY_WORDS = {
love: 2,
adore: 2,
blissful: 2,
enraptured: 2,
epiphany: 2,
wo... |
var timeInterval = [0.05, 0.1, 0.2, 0.5, 1, 2, 5, 10 ,20, 50, 100, 200, 500, 1000, 2000, 5000, 10000];
var LEFT_SIDEBAR_WIDTH = 200;
var TIMEBAR_HEIGHT = 30;
var TIME_BLOCK_SELF_HEIGHT = 20;
var TIME_BLOCK_INTERVAL = 1;
var TIME_BLOCK_HEIGHT = TIME_BLOCK_SELF_HEIGHT + TIME_BLOCK_INTERVAL;
var DEFAULT_TIME_WIDTH = 400;... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.