text stringlengths 8.5k 48.7k |
|---|
/*
FUTURE DEVELOPMENT:
(-make it work with asymetric matrixes)
(-add Title)
(-auto demo matrixes inputed)
(-D symetry button)
(-float point numbers)
(-make print sheet better/prettier)
(-add calculation numbers to equations --> if 0 then not print combination)
(-make numbers in equations smaller??)
(-add 'Enter' keyboa... |
// src/defs.js
var DEFS = {
VERSION: 1,
TYPES: {
BOOL: { bits: 8 },
UINT8: { bits: 8 },
INT8: { bits: 8, signed: true },
UINT16: { bits: 16 },
INT16: { bits: 16, signed: true },
UINT32: { bits: 32 },
INT32: { bits: 32, signed: true },
INT64: { bits: 64 },
FLOAT: { bits: 64, float... |
/* eslint-disable no-await-in-loop, max-len */
/* eslint no-underscore-dangle: ["error", { "allow": ["_id"] }] */
/* global actions, api */
const DistStrategy = ['fixed', 'pool'];
actions.createSSC = async () => {
const tableExists = await api.db.tableExists('batches');
if (tableExists === false) {
await api.... |
import React, { useCallback, useContext, useMemo, useRef, useState } from "react";
import styled from "styled-components";
import cx from "classnames";
import TextArea from "react-textarea-autosize";
import { useDropzone } from "react-dropzone";
import {
Button,
ButtonGroup,
Card,
Classes,
ControlGr... |
//Base bot discord :
const Discord = require('discord.js');
const client = new Discord.Client();
//Const en plus :
const ytdl = require('ytdl-core');
const queue = new Map();
//Variables :
var servers = {};
var prefix = "f!";
var party_launch = false;
var fs = require('fs');
//Fonctions :
fu... |
let week_cal_offset = 0
let wco_min_value = -2
let wco_max_value = 2
const cal_monthes = [ 'январь' , 'февраль',
'март' , 'апрель' , 'май' ,
'июнь' , 'июль' , 'август' ,
'сентябрь', 'октябрь', 'ноябрь' ,
... |
var editorDic = {};
var bash_id;
var bash_seq = 0;
var current_diff = [];
var langTools = ace.require('ace/ext/language_tools');
var omnisharpCompleter = {
getCompletions: function (editor, session, pos, prefix, callback) {
if (prefix.length == 0) { callback(null, []); return }
node.invoke('AutoCom... |
function initIndexSection(opts) {
extend(cur, {
section: 'index',
options: opts,
updateCount: function() {
var del = cur.options.del;
var next = -(1000 / cur.options.memPerSec) * Math.log(Math.random());
var memCountString = cur.options.memCount.toString();
var len = memCountString.length;
... |
/**************************************************/
/* */
/* AVI.js */
/* v1.00 */
/* */
/* Copyright 2019 <NAME> (Japan) */
/* ... |
function encrypt_password(password){
var c = {"e":"10001","maxdigits":67,"n":"<KEY>"};
var h = c.maxdigits;
var f = c.e;
var k = c.n;
setMaxDigits(h);
var b = new RSAKeyPair(f, "", k);
return encryptedString(b,password);
}
function RSAKeyPair(b, c, a) {
this.e = biFromHex(b);
t... |
import React, { Component } from 'react';
import { withStyles } from '@material-ui/core/styles';
import MuiExpansionPanel from '@material-ui/core/ExpansionPanel';
import MuiExpansionPanelSummary from '@material-ui/core/ExpansionPanelSummary';
import MuiExpansionPanelDetails from '@material-ui/core/ExpansionPanelDetails... |
const kDownTrillDt = 0.125;
const kDownTrillVol = 0.25;
function genDownDrumsOneBar(ctx, first, vigor) {
const notes = [];
function addNoteMaybeTrill(inst, t, vol = 1) {
addNoteWithTrill(
notes, inst, t, vol, randb(0.2 * vigor) ? randi(2, 1) : 0, kDownTrillDt,
kDownTrillVol);
}
const minima... |
// Splash page
// We declare nodes from the splash page
const welcome = document.querySelector('.welcome'),
macIcon = document.querySelector('.mac_loader'),
main = document.getElementById('main'),
header = document.getElementById('header'),
overlay = document.querySelector('.window-overlay'),
error... |
//les sons
let soundA
let soundB
let soundC
let soundD
let soundE
let soundF
let soundG
let soundH
let soundI
let soundJ
let soundK
let soundL
let soundM
let soundN
let soundO
let soundP
let soundQ
let soundR
let soundS
let soundT
let soundU
let soundV
let soundW
let soundX
let soundY
let soundZ
let graphic
funct... |
/**
* CSV sniffer, inspired by the Python CSV library (https://docs.python.org/2/library/csv.html#csv.Sniffer)
*
* We implement approximately the same functionality, but we do not pack it in two seperate
* functions (sniff and has_header) but we do everything inside the sniff function. To
* prevent doing superflu... |
// redirect
if (
location.hostname !== 'localhost' &&
location.hostname !== '127.0.0.1' &&
location.hostname.split('.')[0] !== '192' &&
!(
location.hostname.indexOf('fleet.moe') > -1 ||
location.hostname.indexOf('fleet.test') > -1 ||
location.hostn... |
/** @jsx jsx */
import React from 'react';
import {animated} from 'react-spring'
import {css, jsx} from '@emotion/core';
import {useSpring} from 'react-spring'
import {LineChart, Line, XAxis, Tooltip} from 'recharts';
import {ReactComponent as BlankCanvasSvg} from '../../../images/svg/blank.svg'
import Logo from '../.... |
/**
* Lets define the CraftyClicks Constructor
* @cfg {object} containing base configurations.
*/
function cc_rapid(cfg) {
this.baseURL = 'https://pcls1.craftyclicks.co.uk/json/rapidaddress';
this.key = cfg.key;
this.geocode = cfg.geocode;
if (typeof this.geocode == 'undefined') this.geocode = false;
this.alia... |
const SCWorker = require('socketcluster/scworker');
const express = require('express');
const serveStatic = require('serve-static');
const path = require('path');
const morgan = require('morgan');
const healthChecker = require('sc-framework-health-check');
const bodyParser = require('body-parser');
const jwt_decode = r... |
'use strict';
import './brochure.css';
import { createElement, downloadURI, getId } from '../utils';
import fsm from '../stateMachine/fsm';
import {
events,
TITLE_HEIGHT,
PAGINATION_HEIGHT,
DOWNLOAD_BUTTON_HEIGHT,
ASPECT_RATIO,
} from '../config';
// variables to calculate performance
let start = 0;
let s... |
/* ======================================================
* Copyright (C) 2011-2012 House of Life Property Ltd. All rights reserved.
* Copyright (C) 2011-2012 Crystalnix <<EMAIL>>
*
* @requires
* Strophe
* jQuery
* ======================================================*/
var friendListCached = null;
var fri... |
/* eslint-disable camelcase */
// https://github.com/zondax/cosmos-delegation-js/
// https://github.com/cosmos/ledger-cosmos-js/blob/master/src/index.js
import 'babel-polyfill';
import Long from "long";
import TransportWebUSB from "@ledgerhq/hw-transport-webusb";
import CosmosApp from "ledger-cosmos-js"
import { signa... |
var sjfwdxList;// 数据范围对象
var IS_QX = false;
var SJFWDX_ID_QX = "1";
var SJFWDX_ID_XY = "2";
var SJFWDX_ID_ZY = "3";
var SJFWDX_ID_BJ = "4";
var SJFWDX_QUERY_NJ = "nj";
// var SJFWDX_QUERY_JG = "jg";
var sjfwListJson = {};// 数据范围列表
jQuery(window).load(function(){
setInit();
});
function setInit() {
var js_id = jQuer... |
'use strict';
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
var colors = require('./colors');
var objects = require('./objects');
var utils = require('./utils');
var m... |
function Html5PlayerInterface (playerStateManager, videoElement) {
// "this" binding for callbacks
var _s = this;
// We happen to reuse some of the system interfaces we defined to bootstrap the Conviva SDK here.
// We could use system APIs directly as well.
this._timerInterface = new Html5Timer();... |
const DrawSide = {
Mirror : 0,
Top : 1,
Bottom : 2
}
var CurrentSide = DrawSide.Top;
const DisplayType = {
Curve : 0,
Line : 1,
Box : 2,
Circle: 3,
CircleAlt : 4,
BoxAlt : 5,
Bars : 6
};
var Display = DisplayType.Line;
const DrawType = {
Line : 0,
... |
var H = H || {};
H.trace_function = true;
window.unescape = window.unescape || window.decodeURI;
// upload count
H.upload_count = 0;
// execute obj.function_name if it's a function
H.ExecIfMethod = function (obj, function_name, params) {
//H.Trace(arguments);
if (!obj) return params;
var func = obj[function_name];
... |
"use strict"
const fs = require('fs');
const colors = require('colors');
const dayZero = (new Date('1.1.2000')).getTime();
module.exports = GTFS;
function GTFS(path) {
var me = this;
var data = {};
formats.forEach(format => {
var table = loadGTFSFile(path, format);
if (table) data[format.id] = table;
})
... |
"use strict";
function dlog(msg) {
//Edit this to send Debug messages to the API window.
var debuglog = false;
if(debuglog) { log(msg); }
}
function rolllookups(options,charattrs,who) {
//Get values for relevant abilities...
var attrnames = {"Strength" : "str_pool","Agility" : "agi_pool","Endurance" : "end_p... |
//import { OrbitControls } from '../controls/OrbitControls.js';
import { OrbitControls } from '../controls/OrbitControlsClickMove.js';
import { GLTFLoader } from '../loaders/GLTFLoaderExtras.js';
import { BuilderExtras } from './BuilderExtras.js';
import '../libs/hammer.min.js';
import * as THREE from 'three';
import {... |
import { app, ipcMain, shell, IpcMessageEvent, BrowserWindow, screen, globalShortcut, dialog,crashReporter } from 'electron'
import { autoUpdater } from 'electron-updater'
import { join,resolve } from 'path'
import { isDev ,isOSX,isWindows,isWinXp} from '../comm/is'
import { rmdir,decryStr } from '../comm/util'
import ... |
import * as tslib_1 from "tslib";
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import { defineMessages, injectIntl } from 'react-intl';
import AddIcon from '@findable/icon/glyph/editor/add';
import ExpandIcon from '@findable/icon/glyph/chevron-down';
import TableIcon from '@findable/icon/glyph... |
/** global declaration for Opera //BEGIN
*/
var thisPrincipal;
var fromAS;
//var safe_google_ad = function(){};
//var safe_yahoo_ad = function(){};
/** global declaration for Opera //END
*/
var deployed_domain = "securemashups.net";
var publisher_principal = "top";
var debug = true;
var i... |
var canvas = document.getElementById("myCanvas");
var output_box = document.getElementById("outputText");
var ctx = canvas.getContext("2d");
// Numbers representing each screen
const MAIN_MENU = -1;
const SINGLE_PLAYER = 0;
const GAME_1 = 1;
const GAME_2 = 2;
const GAME_3 = 3;
// Letters that could be assigned to eac... |
var MapSkpd = new SkpdCls({
prefix : 'MapSkpd', formName:'adminForm',
genUrl: function(){
return 'pages.php?Pg=skpd&nm='+this.prefix+'&width=318';
}
});
var MapObj = function(params_){
this.params = params_;
this.map_content = 'map_content';
this.MAP_width = '100%';
this.MAP_height = '100%';
//... |
/** Copyright 2020-present, Pinterest, Inc.
*
* @generated with rollup
*
* This source code is licensed under the Apache License, Version 2.0
* found in the LICENSE file in the root directory of this source tree.
*/
'use strict';
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functio... |
function dropout_nn(x,keep_prob){
uniform = tf.randomUniform(x.shape)
added = tf.add(tf.scalar(keep_prob),uniform)
binary = tf.floor(added)
return tf.mul(tf.div(x,tf.scalar(keep_prob)),binary)
}
function dropout_lstm(cell,a,h,c,dropout_input=1.0,dropout_output=1.0){
var outputs = []
for(var i = 0; i < a.sh... |
/*
* Copyright 2020-2021 Huawei Technologies Co., Ltd.
*
* 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... |
/*
This is an example of 3D rendering, using a
signed distance field shader and standard derivatives
for improved edge quality and scaling.
We've also enabled anisotropy on the texture for
crisp rendering at sharp angles.
*/
global.THREE = require('three')
var Detector = require('./js/Detector')
... |
/*:
* RS_RefreshManager.js
* @plugindesc This plugin creates or changes a file called 'js/plugins.js'
* @author biud436
*
* @param Save File ID
* @desc Auto Save
* @default 1
*
* @param Show Preview Window
* @desc Indicate whether or not the preview window is visible.
* @default false
*
* @param Auto Reloa... |
import React, {Component} from 'react';
import {
Platform,
StyleSheet,
Text,
Button,
View,
Image,
Animated,
Switch,
TouchableOpacity,
TouchableWithoutFeedback,
Dimensions,
Keyboard,
PermissionsAndroid,
AppState,
} from "react-native";import MapView, {Marker} from 'react-native-maps';
import ... |
const OFF = 0;
const WARN = 1;
const ERROR = 2;
// FIXME:
// also add Prettier-disabled rules and comment them out
module.exports = {
// Possible Errors (http://eslint.org/docs/rules/#possible-errors)
"for-direction": ERROR,
"getter-return": ERROR,
"no-async-promise-executor": ERROR,
"no-await-in-loop": ERR... |
"use strict";
var reporterror;
/* liqiJS start */
if (!protobuf){
// in web, will include in HTML; otherwise in node, use require.
var protobuf = require("protobufjs");
}
//cfg.desktop.matchmode
let modeid2room = {
0:'',
1:'铜之间', 2:'铜之间', 3:'铜之间', 17:'铜之间', 18:'铜之间', // dou
4:'银之间', 5:'银之间', 6:'... |
import React from "react";
import PropTypes from "prop-types";
import { SubscriberExt } from "../core";
import { nest as d3Nest } from "d3-collection";
import ImgViewer from "./ImgViewer";
class ScatterSeries extends React.Component {
constructor() {
super();
this.minDist = { x: null, y: null };
}
componentWi... |
/*jshint loopfunc: true */
var debug = require('debug')('gatt');
var events = require('events');
var os = require('os');
var util = require('util');
var ATT_OP_ERROR = 0x01;
var ATT_OP_MTU_REQ = 0x02;
var ATT_OP_MTU_RESP = 0x03;
var ATT_OP_FIND_INFO_REQ ... |
import React, { useState } from "react";
import styled from "styled-components";
/* SEARCH BAR STYLING */
const SearchBox = styled.div`
display: flex;
align-items: center;
flex-direction: column;
`;
const SearchInput = styled.input`
display: block;
width: 100%;
height: 40px;
`;
const Grid = styled.div`
w... |
/*jslint browser: true*/
/*global $, jQuery, Modernizr, google, _gat*/
/*jshint strict: true */
/*************** GOOGLE ANALYTICS ***********/
/*************** REPLACE WITH YOUR OWN UA NUMBER ***********/
window.onload = function () { "use strict"; gaSSDSLoad(""); }; //load after page onload
/*************** REPLACE WI... |
import * as basic from "../scripts/basics.js";
"use strict";
let fileNameID;
// controlBar at the top of the video player
export function topPageControlBarContainer(player) {
const topPageControlBarContainer = document.createElement("div");
topPageControlBarContainer.className = "vjs-control-bar backToHomePageCon... |
import React, {useContext, useEffect, useState} from 'react';
import {Segment, Grid, Dropdown, Popup, Input, Button, Icon, Confirm, Select} from 'semantic-ui-react'
import {TargetsContext, LayoutContext, TriplestoreContext, ActiveraulContext, HistoryContext} from '../../context'
import {useActiveraul} from '../../cu... |
// Vars
var isMuted;
var videoIsPaused;
var dataChanel = null;
const browserName = getBrowserName();
const url = window.location.href;
const roomHash = url.substring(url.lastIndexOf("/") + 1).toLowerCase();
var mode = "camera";
// var isFullscreen = false;
var sendingCaptions = false;
var receivingCaptions = false;
con... |
let parser = require('postcss-value-parser')
let list = require('postcss').list
let uniq = require('../utils').uniq
let escapeRegexp = require('../utils').escapeRegexp
let splitSelector = require('../utils').splitSelector
function convert(value) {
if (
value &&
value.length === 2 &&
value[0] === 'span' ... |
const tool = require('./tool');
const nt = require('./number_theory');
const Scalar = require('./scalar');
const Complex = require('./complex');
const Fraction = require('./fraction');
const Vector = require('./vector');
const Polynomial = require('./polynomial');
const Matrix = require('./matrix');
function i... |
"use strict";
module.exports = Document;
var Node = require('./Node');
var NodeList = require('./NodeList');
var ContainerNode = require('./ContainerNode');
var Element = require('./Element');
var Text = require('./Text');
var Comment = require('./Comment');
var Event = require('./Event');
var DocumentFragment = requi... |
var _ = require('underscore');
var ko = require('knockout');
var moment = require('moment-timezone');
var {getSelectionDesc} = require('app/common/DocActions');
var {nativeCompare, roundDownToMultiple, waitObs} = require('app/common/gutil');
var gristTypes = require('app/common/gristTypes');
var koUtil = require('../li... |
'use strict';
const { contract, web3 } = require('hardhat');
const { assert, addSnapshotBeforeRestoreAfterEach } = require('./common');
const { setupContract } = require('./setup');
const {
constants: { inflationStartTimestampInSecs, ZERO_ADDRESS },
} = require('../..');
const {
toUnit,
divideDecimal,
fastForw... |
import { NgWidgetContainer } from "./NgWidgetContainer";
import { Directive, ElementRef, Renderer2, EventEmitter, KeyValueDiffers, ViewContainerRef, Output } from '@angular/core';
/**
* inputs array instead of @input decorator for ionic compatibility
*/
var NgWidget = /** @class */ (function () {
// constructor
... |
const fs = require('fs');
const https = require('https');
const querystring = require('querystring');
const buscaBR = require('./libs/buscaBR.js');
require('./libs/latinise.min.js');
// Gerar conteúdo minificado?
const MINIFY = true;
// Registra os enums não usados
var enumsNotUsed = [];
// Todos os enums documenta... |
/*
Functions relating to the local action editor and its interaction with nodes (saving, loading, etc.)
*/
function initialiseLocalActionEditor(){
var valency = parseInt(document.getElementById("input_valency").value);
// create the editor elements
var theeditor = '';
for (var i=0;i<colours.length;i++){
theedi... |
/////////////////////// MyLogger ////////////////////////////////////////////
let logLevel = {
always: -1,
error: 0,
warn: 1,
info: 2,
http: 3,
verbose: 4,
debug: 5,
silly: 6,
};
let currentLogLevel = "http";
let loggerURL = `${serverURL}/log`;
function log(level, message) {
if (logLevel[level] > lo... |
import React, {PureComponent as Component} from 'react';
import {connect} from 'react-redux';
import {withRouter} from 'react-router';
import produce from 'immer';
import PropTypes from 'prop-types';
import _ from 'underscore';
import {
fetchCaseData,
fetchCaseList,
fetchInterfaceCaseList,
fetchInterfaceColList... |
// ==UserScript==
// @name YouTube Ultrawide
// @version 0.1
// @description Crops the top and bottom to fit ultrawide
// @author uxamend (modified by C4illin)
// @match https://www.youtube.com/*
// @match https://www.youtube-nocookie.com/embed/*
// @exclude-match h... |
util = require('util');
// console.log(util.inspect(arguments[k], false, null, true))
var matches = [],
scopeDepth = [],
/**
* hack to workaround hbs casting all types to string on template context merge
*/
knownBooleans = [
'showLoves'
];
/**
* add helper signatures here to help converter differ... |
import React from 'react';
import { connect } from 'react-redux'
import Swal from 'sweetalert2';
// Actions.
import { setValidation, reset, setRegistrationRequestFieldField, resetValidityStatus } from '../../actions/RegistrationRequestField';
import { getInstitutionFromRegistry } from '../../actions/InstitutionList';... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
function _createForO... |
#!/usr/bin/env node
'use strict';
// Required jp2a & ffmpeg binaries.
const argv = require('minimist')(process.argv.slice(2)); // https://github.com/substack/minimist
const columnify = require('columnify'); // https://github.com/timoxley/columnify
const connect = require('connect');... |
var stripHtml = /(<([^>]+)>)/ig;
var stripOpeningTag = /<a\b[^>]*>/i;
var stripClosingTag = /<\/a>/i;
import _ from 'lodash'
// http://www.scottmessinger.com/2015/05/19/functional-programming-with-lodash/
// https://stackoverflow.com/questions/35590543/how-do-you-chain-functions-using-lodash
class WidgetsPubMedParser... |
/*ignore jshint console*/
/*
* phantomflow
* Copyright (c) 2014 Huddle
* Licensed under The MIT License (MIT).
*/
var path = require('path');
var util = require('util');
var fs = require('fs');
var _ = require('lodash');
var colors = require('colors');
var connect = require('connect');
var open = require('open')... |
'use strict';
var _typeof2 = require('babel-runtime/helpers/typeof');
var _typeof3 = _interopRequireDefault(_typeof2);
var _toConsumableArray2 = require('babel-runtime/helpers/toConsumableArray');
var _toConsumableArray3 = _interopRequireDefault(_toConsumableArray2);
var _getIterator2 = require('babel-runtime/core... |
'use strict';
const colors = require('./colors');
const objects = require('./objects');
const utils = require('./utils');
const mergeRulesets = require('./optimizations/mergeRulesets');
module.exports.quadLists = {
'border-color': 1,
'-webkit-border-radius': 1,
'-moz-border-radius': 1,
'border-radiu... |
// Discord.js and friends
const Discord = require('discord.js');
const client = new Discord.Client();
const config = require('./config.js');
// Add string scoring
require("string_score");
// Official MongoDB Driver
const MongoClient = require('mongodb').MongoClient
const assert = require('assert');
// Third-party fu... |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
'use strict';
/**
* Called from the main frame when unloading.
* @param {boolean=} opt_exiting True if the app is exiting.
*/
function unload(opt_exit... |
import 'whatwg-fetch';
var ace = require('brace');
var {fastDctLee} = require('./FastDct');
require('brace/mode/assembly_x86');
require('brace/theme/monokai');
require('brace/ext/searchbox');
// Polyfill for browsers besides chrome and firefox,
// taken from https://dev.to/nektro/createimagebitmap-polyfill-for-safari... |
var canvas = document.getElementById('cubic-bezier');
var context = canvas.getContext('2d');
var animateCanvas = document.getElementById('animate-bezier');
var animateContext = animateCanvas.getContext('2d');
var playCanvas = document.getElementById('cubic-bezier-play');
var playContext = playCanvas.getContext('2d');
... |
//
// MoinMoin commonly used JavaScript functions
//
// We keep here the state of the search box
searchIsDisabled = false;
function searchChange(e) {
// Update search buttons status according to search box content.
// Ignore empty or whitespace search term.
var value = e.value.replace(/\s+/, '');
if (... |
import moment from 'moment';
import recur from 'moment-recur';
import _ from 'lodash';
//==================================================================================
// Epiphany & Christmastide
//==================================================================================
// EPIPHANY RUBRIC
// Standard ru... |
"use strict";
exports.Tooltip = exports.TooltipProps = exports.viewFunction = void 0;
var _inferno = require("inferno");
var _vdom = require("@devextreme/vdom");
var _combine_classes = require("../../utils/combine_classes");
var _svg_path = require("./renderers/svg_path");
var _svg_text = require("./renderers/svg... |
import React, { Component } from 'react';
import { Modal, Col, Row } from 'react-bootstrap';
import { connect } from 'react-redux';
import { toastr } from 'react-redux-toastr';
import { Scrollbars } from 'react-custom-scrollbars';
import { reduxForm, getFormValues, propTypes, change } from 'redux-form';
import PropType... |
import React, { useRef, useEffect, useCallback } from 'react'
import { makeStyles } from '@material-ui/core/styles'
import clsx from 'clsx'
import { decimalSeparator } from 'step-wise/settings'
import { isObject, applyToEachParameter } from 'step-wise/util/objects'
import { isNumber, boundTo } from 'step-wise/util/num... |
"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];
... |
const jsDom = []; // here we will link JS "mirror" DOM to actual DOM by their numerical ids
function dom2mx(dom, mustFind=true) {
let js = jsDom[dom.id];
if ( !js && mustFind) {
throw `dom2mx cannot find jsDom with dom.sid ${dom.sid}, dom.id ${dom.id}`;
}
return js;
}
function obsContent (slot, md, newv, oldv... |
/*
Contains a suite of functions used by diff.htm to create a page displaying the
diff between two versions of an HTML or text page. The whole operation can be
performed from start to finish by calling initiateDiff(url) and having a
snapshot of the page at that URL available from getPage(), defined in base.js.
... |
let tempGraph;
let stencilList;
let connectorList;
let globalGraph;
function showTable(graph) {
tempGraph = graph;
if(graph.editorMode == "Shape Editor Mode"){
if(graph.getSelectionCell().connectable != null){
var fix = true;
if(graph.getSelectionCell().children ... |
require("require.async")(require);
const Q = require("q");
//const DEBUG = !!process.env.VERBOSE;
const DEBUG = false;
exports.for = function (module, init, implementation) {
if (Array.isArray(module) && module[0] === module[1]) {
module = module[0];
}
function augmentAPI (API, api) {
Object.keys(ap... |
const faWeb = [
'fa fa-adjust',
'fa fa-anchor',
'fa fa-archive',
'fa fa-area-chart',
'fa fa-arrows',
'fa fa-arrows-h',
'fa fa-arrows-v',
'fa fa-asterisk',
'fa fa-at',
'fa fa-automobile',
'fa fa-balance-scale',
'fa fa-ban',
'fa fa-bank',
'fa fa-bar-chart',
'fa fa-bar-chart-o',
'fa fa-barc... |
'use strict';
/* global ActivityHandler */
/* global ConfirmDialog */
/* global contacts */
/* global ContactsTag */
/* global fb */
/* global fbLoader */
/* global LazyLoader */
/* global MozActivity */
/* global navigationStack */
/* global SmsIntegration */
/* global utils */
/* global DeferredActions */
/* global T... |
let json = [
{
Name: "Lucy",
"Description of Character": "Cowardly",
"Main Character": "Lion",
Location: "a pirate ship",
"Second Character Name": "Lucy",
"Second Character": "and their army of fish",
Problem: "The water has stopped running",
Villain: "<NAME>",
"Where You Travel": ... |
var zlib = require('zlib');
var redis = require('redis');
var async = require('async');
var os = require('os');
var algos = require('stratum-pool/lib/algoProperties.js');
var CreateRedisClient = require('./createRedisClient.js');
// redis callback Ready check failed bypass trick
function rediscreateClient(redisCon... |
//rabbit cipher in javascript
function RABBIT(){
const wc = window.crypto,
wcs = window.crypto.subtle;
const cnv = {
bin2int : s => parseInt(s, 2),
dec2bin : s => parseInt(s, 10).toString(2),
hex2int : s => parseInt(s, 16)
};
const util = {
u82s: function(STR) {
let str = ''
for... |
'use strict';
//TODO: em breve será necessário utilizar cursor ao invés de stream,as futuras versões do mongoose suportam stream, será necessário testar toda a aplicação
const accessControl = require('../api-util/access-control');
const moment = require('moment');
const mongoose = require('mongoose');
const cs... |
import {
FEAT_TIME,
} from './feats';
import {
assign,
min,
max,
inf,
pow,
log2,
log10,
genIncrs,
round,
incrRoundUp,
roundDec,
floor,
fmtNum,
fixedDec,
retArg1,
} from './utils';
import {
hexBlack,
WIDTH,
HEIGHT,
} from './strings';
import {
pxRatio,
placeDiv,
setStylePx,
} from './dom';
i... |
// 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 in the Software without restriction, including
// without limitation the rights to use, copy, modi... |
import _ from 'lodash';
import moment from 'moment-timezone';
import {
AFRICAN_AMERICAN,
FEMALE,
IS_SMOKER,
MALE,
NOT_A_SMOKER,
OTHER,
WHITE,
} from '../ascvd/ASCVDRisk';
import { bloodPressureCutoff, cholesterolCutoff } from '../config';
import PatientInfo from '../ascvd/PatientInfo';
import { RESOURCES } fro... |
import React, { Component } from 'react'
import axios from 'axios';
import GeppettoGraphVisualization from '@geppettoengine/geppetto-ui/graph-visualization/Graph'
import CircularProgress from '@material-ui/core/CircularProgress';
import { queryParser } from './QueryParser';
import DropDownQueries from './DropDownQuerie... |
// used when hosting the site on the ESP8266
var address = location.hostname;
var urlBase = "";
// used when hosting the site somewhere other than the ESP8266 (handy for testing without waiting forever to upload to SPIFFS)
//var address = "192.168.2.15";
//var urlBase = "http://" + address + "/";
var postColorTimer =... |
const HighchartUI = require('./highchart.ui');
const getHighstock = require('../common').requireHighstock;
const getUnderlyingPipSize = require('../symbols').getUnderlyingPipSize;
const Callputspread = require('../../trade/callputspread');
const Defaults = require('../../trade/defaul... |
/*
格式化 SVG 地图:
1. 确保最外层的 <svg> 元素 id 为 svgmap,即:<svg id="svgmap" ...>
2. 地图数据必须包含在一个 <g> 元素内,建议包含在 <g id="viewport"> 内;(地图数据不包括 defs、style)
3. 确保从地图数据所在的 <g> 至最外层的 <svg> 元素上,都没有 viewBox 属性(因为 viewBox 属性对内层地图进行的转换,会影响后面的坐标计算);
*/
import ol from 'openlayers'
import {ZOOM_LEVEL} from '../def/map_def.js'
import {mapIcon}... |
var assetsFolder = "../../examples/assets";
var Viewer = function (canvas) {
var self = this;
// create the application
var app = new pc.Application(canvas, {
mouse: new pc.Mouse(canvas),
touch: new pc.TouchDevice(canvas)
});
var getCanvasSize = function () {
return {
... |
// [VexFlow](http://vexflow.com) - Copyright (c) <NAME> 2010.
//
// ## Description
//
// This file implements the formatting and layout algorithms that are used
// to position notes in a voice. The algorithm can align multiple voices both
// within a stave, and across multiple staves.
//
// To do this, the formatter br... |
/* eslint no-unused-vars: "off" */
/**
* PredicateCore
* @module core
* @namespace core
* @since 1.0.0
* @note rules are 100% tested from PredicateCore.test.js
*/
const merge = require('ramda/src/merge');
const find = require('ramda/src/find');
const curry = require('ramda/src/curry');
const pipe = require('ram... |
'use strict'
let id = 0
const pageBuilder = {
editors: {},
create: function (selector, options) {
try {
checkSelector(selector)
} catch (e) {
console.error(e.message)
return false
}
const list = new PageBuilder(selector, options)
list._init()
this.editors[list.className +... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.