text stringlengths 5.97k 41.2k |
|---|
/*global $:false, google:false*/
var $portfolio = $('#portfolio'),
$goTop = $('#go-top'),
$preloader = $('#preloader'),
InfoBox;
var $window = $(window),
windowWidth = $window.width(),
windowTop = $window.scrollTop(),
mapObject, marker, yPos, coords, TimelineLite;
var App = {
start: function() {
// on ... |
function Init() {
$.get("/api/getCity", function(data) {
InitMap(data);
for (var i = 0; i < data.length; i++) {
$("#origin").append("<option>" + data[i].CityName + "</option>");
$("#destination").append("<option>" + data[i].CityName + "</option>");
}
});
$.get("/api/getTransInfo", function... |
import React, { Component, Fragment } from 'react'
import { compose } from 'redux'
import { connect } from 'react-redux'
import { updatePlaybackTime } from '../../actions'
import { Link, withRouter } from 'react-router-dom'
import { push } from 'connected-react-router'
import { Button } from 'reactstrap'
import React... |
/**
* @license
* Copyright 2012 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @fileoverview Helper functions for generating JavaScript for blocks.
* @author <EMAIL> (<NAME>)
*/
'use strict';
import Blockly from 'blockly/core';
import templateText from 'raw-loader!./bbasic.bb.hbs';
import Handlebars... |
//
// Computed Observable Values
//
// (before tko, `computed` was also known as `dependentObservable`)
//
import {
addDisposeCallback,
arrayForEach,
canSetPrototype,
createSymbolOrString,
domNodeIsAttachedToDocument,
extend,
options,
hasOwnProperty,
objectForEach,
options as koO... |
// Cronicle API Layer
// Copyright (c) 2015 <NAME>
// Released under the MIT License
var fs = require('fs');
var assert = require("assert");
var async = require('async');
var Class = require("pixl-class");
var Tools = require("pixl-tools");
module.exports = Class.create({
__mixins: [
require('./api/config.js'),... |
// 依赖
// ------------------------------------
/*@require application:toolbar.less*/
/*@require application:application.less*/
/*@require ui:button.less*/
/*@require application:exportDialog.less*/
// Backbone
var Backbone = require('backbone');
// jQuery
var $ = Backbone.$;
// Underscore
var _ = require('underscore')... |
var ROLLUP_URL = "/api/v1/rollups/";
var semaphore = false;
var metricList = null;
module.controller('rollupController', ['$scope', '$http', '$uibModal', 'orderByFilter', 'KairosDBDatasource', simpleController]);
function simpleController($scope, $http, $uibModal, orderByFilter, KairosDBDatasource) {
$scope.TOOLTIP_... |
"use strict;"
var Multimap = require('./lib/multimap'),
DangerCalculator = require('./danger-calculator'),
Square = require('./square'),
Serializer = require('./serializer'),
Glyphs = require('./constants').Glyphs,
MessageOverlay = require('./constants').MessageOverlay,
DEFAULT_GAME_OPT... |
import React, { useCallback, useEffect, useReducer } from 'react';
import { useHistory } from 'react-router-dom';
import styled from 'styled-components';
import { shape } from 'prop-types';
import { t } from '@lingui/macro';
import {
WorkflowDispatchContext,
WorkflowStateContext,
} from 'contexts/Workflow';
import... |
const apiKey = "c1ecab3291362f3fe61c8735f3bd9de6";
let units = "metric";
const searchHistory = [];
const iconPathPrefix = "https://openweathermap.org/img/wn/";
const iconPathSuffix = "@2x.png";
// Provide 250 most populated cities in the US by default
const cityList = [
"New York, New York",
"Los Angeles, Californi... |
import { mod } from './Math.js';
import {
date as localisedDate,
get as getLocalised,
} from '../localisation/i18n.js';
const isLeapYear = function (year) {
return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
};
const daysInMonths = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
// eslint-... |
import config from 'DE.config';
import Events from 'DE.Events';
import gamepad from 'DE.gamepad';
import Localization from 'DE.Localization';
import Time from 'DE.Time';
/**
* Author
@Inateno / http://inateno.com / http://dreamirl.com
* ContributorsList
@Inateno
*/
/**
* An Inputs lib to detect keyboard and game... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var pouchdbUtils = require('pouchdb-utils');
var pouchdbErrors = require('pouchdb-errors');
var pouchdbMerge = require('pouchdb-merge');
var pouchdbBinaryUtils = require('pouchdb-binary-utils');
var pouchdbMd5 = require('pouchdb-md5');
var p... |
// import { utils } from '../../utils/utils';
// import { stringUtils as str } from '../../utils/string';
// import { Locale } from '../locale/locale';
import {
ALPHAS_REGEX,
ANY_REGEX,
CARET_TRAP,
DIGITS_REGEX,
EMPTY_STRING,
NON_DIGITS_REGEX
} from './ids-mask-common';
import { IdsDeepCloneUtils } from '... |
var thumbnailMap = {
"none": "imgs/kirara.png",
"kirara": "imgs/kirara.png",
"lamp": "imgs/lamp.png",
"match": "imgs/match.png",
"maintenance": "imgs/maintenance.png",
"shop": "imgs/shop.png",
"mirroran": "imgs/mirroran.png",
"kanna": "imgs/kanna.png",
"clea": "imgs/clea.png",
"leine":... |
/* eslint-disable id-length, no-shadow */
import path, { join as p } from 'path';
import ava from 'ava-spec';
import fs from 'fs-extra-promisify';
import {
objectSearch,
findFiles,
readFiles,
pool,
parsers,
} from '../dist/utils';
import { map } from 'async-array-methods';
import to from 'to-js';
import AdmZ... |
var FILETYPE = { JSON: "json", XML: "xml", TWEE: "twee", TWEE2: "tw2", UNKNOWN: "none", YARNTEXT: "yarn.txt", WOOL: "wool", CSV: "csv" };
var data =
{
editingPath: ko.observable(null),
editingType: ko.observable(""),
editingFolder: ko.observable(null),
appendRoot: function(filepath) {
if (app.fs.fstype != "node... |
var fadeIn = function (self) {
self.wrapper.classList.add('notify--fade');
setTimeout(function () {
self.wrapper.classList.add('notify--fadeIn');
}, 100);
};
var fadeOut = function (self) {
self.wrapper.classList.remove('notify--fadeIn');
setTimeout(function () {
self.wrappe... |
var Template = (function () {
function Template(json) {
this.name = json.Name;
this.fileName = json.FileName;
this.language = json.Language;
this.icon_class = json.IconClass;
this.appService = json.AppService;
}
Template.prototype.select = function (event) {
... |
Function.prototype.bind = function(obj, args) {
var method = this,
temp = function() {
return method.call(obj, args);
};
return temp;
}
var ytEmbed = {
ytQuery: 0,
cl: 0,
callback: {},
cfg: {},
player: false,
/**
* Main Init Method
... |
//====================================================================================================================
//================================== FUNCTIONS FOR THE GAME DEVELOPMENT =========================================
//===============================================================================... |
// WorldView
import React from "react";
import * as THREE from "three";
import TrackballControls from "./TrackballControls";
import { ResizeListener } from "react-resize-listener";
import TextBoardCanvas from "./TextBoardCanvas";
const MAX_MES_NUM = 200;
// メッセージ の可視化ベース
export default class WorldView extends React.... |
/**
* Module dependencies
*/
var AbstractClass = require('./model.js');
var List = require('./list.js');
var EventEmitter = require('events').EventEmitter;
var util = require('util');
var path = require('path');
var fs = require('fs');
var when = require('when');
var existsSync = fs.existsSync || path.existsSync;
/... |
(function () {
setTimeout(function () {
window.onload = loadCnaOla();
}, 2000);
function loadCnaOla() {
// var host = "http://localhost:28331/";
// var host = "http://cna.targetsoftware.com.br:8382/";
var host = "https://www.cna.com.br/";
var params = getParams("cnaola");
var ticks = ((new Date().ge... |
/*Copyright 2015-2018 <NAME> <<EMAIL>>, <NAME> <<EMAIL>>
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 i... |
'use strict'
const express = require('express')
const app = express()
const proxy = require('express-http-proxy')
const Keycloak = require('keycloak-connect')
const session = require('express-session')
const path = require('path')
const bodyParser = require('body-parser')
const async = require('async')
const helmet = ... |
//laser.js - main javascript for running the LASER puzzle suite.
//
// 2012.08.31 yybtcbk ver 1.0 completed.
// 2014.09.22 yybtcbk altered to externalize puzzle contents to laser_problems.js
// 2014.09.23 yybtcbk altered to externalize some styling to css file
//
// specs memo: html must have variable holders with th... |
/// Custom sorting for DataTable ///////////////////////////////////////
(function () {
function isChapterNumber(a) {
var parts = a.split(".")
for (var i = 0; i < parts.length; i++) {
if (isNaN(Number(parts[i]))) {
return false
}
}
return true
};
function chapterNumberCom... |
export const fulltextPayload = {
total_results: 2,
total_pages: 1,
per_page: 10,
page: 1,
etablissement: [
{
id: 112277319,
siren: "802585703",
siret: "80258570300035",
nic: "00035",
l1_normalisee: "<NAME>",
l2_normalisee: null,
l3_normalisee: null,
l4_norma... |
// ********************************************************************** //
// SE BULLET DOCS: https://pybullet.org/Bullet/BulletFull/annotated.html *** //
//
// SE OGSÅ: https://medium.com/@bluemagnificent/intro-to-javascript-3d-physics-using-ammo-js-and-three-js-dd48df81f591
// OG: https://github.com/kripken/am... |
// https://stackoverflow.com/questions/37132031/nodejs-plans-to-support-import-export-es6-es2015-modules
// TODO: give each function a depends on identifier and allow tree shaking
'use strict';
const EOL = require('os').EOL;
const fs = require('fs');
const util = require('util');
let fpAppendFile;
let fpWriteFile;
... |
function dump_test_case(node) {
var result = {
'tag': node.tagName,
'style': {}
}
if (node.tagName) {
var styleNames = [
// 8. Box model #######################################################
// 8.3 Margin properties
'margin-top',
'ma... |
/*
*
* 共用函数,无所谓登不登录
*
* */
// 打印日志函数
const log = true;
function console_log(txt) {
if (txt === 0 || txt === "0") {
}else {
if (!txt){
txt = "空txt";
}
}
log === true ? console.log("%c"+txt, "color:DeepSkyBlue;font-size:13px;"): "";
}
// cookie前缀
cookie_pre = "wx_article_"... |
/*eslint-disable*/
import { TilesRendererBase } from '../base/TilesRendererBase.js';
import { B3DMLoader } from './B3DMLoader.js';
import { PNTSLoader } from './PNTSLoader.js';
import { I3DMLoader } from './I3DMLoader.js';
import { CMPTLoader } from './CMPTLoader.js';
import { TilesGroup } from './TilesGroup.js';
impor... |
// Script to synchronize a calendar to a spreadsheet and vice versa.
//
// See https://github.com/Davepar/gcalendarsync for instructions on setting this up.
//
// Set this value to match your calendar!!!
// Calendar ID can be found in the "Calendar Address" section of the Calendar Settings.
var calendarId = '<<EMAIL>'... |
'use strict';
const common = require('../common');
const PassThrough = require('stream').PassThrough;
const assert = require('assert');
const Interface = require('readline').Interface;
class FakeInput extends PassThrough {}
function extend(k) {
return Object.assign({ ctrl: false, meta: false, shift: false }, k);
}
... |
//
// GLOBALS
//
const statusInterval = 15 * 1000;
// url = "http://localhost:8080/cmd";
const url_pre = "http://"
const url_post = "/cmd"
const CONTROLLERS = {
"scheduler": {"port": 8080,
"server": "brs-scheduler.local",
"status" : null},
"announce": {"port": 8081,
"se... |
export const Mixed = Symbol('Mixed');
export default class ElValidator {
constructor(schema={}, options={
strictMode : true, // When disabled, the validator will go easy on the errors. (i.e. a number is provided instead of a string the number will be converted to a string instead of throwing an error)
throwUnkow... |
const FPS = 30;
const SHIP_SIZE = 30;
const TURN_SPEED = 360; // deg per second
const SHIP_THRUST = 5; // acceleration of the ship in pixels per sec per sec
const FRICTION = 0.7; // firction coeeficient of space. (0 = no firction, 1 = full friction)
const ASTEROIDS_NUM = 3;
const ASTEROIDS_SIZE = 100; // size in pixel
... |
// chord.js
var note = require('./note');
var interval = require('./interval');
var scale = require('./scale');
var midi = require('./midi');
var _ = require('underscore');
// Parse a chord symbol and return root, chord, bass
var parseChordSymbol = function (chord) {
var noteRegex = '[A-Ga-g][#b]{0,2}';
var root ... |
import PropTypes from 'prop-types';
import React, { useContext } from 'react';
import { Chip, Paper, Typography } from '@material-ui/core';
import { Link as RouterLink } from 'react-router-dom';
import { Link as MaterialLink } from '@material-ui/core';
import { Redirect, withRouter } from 'react-router-dom';
import { f... |
// Global variables
const _classPrefix = 'si-';
const _root2 = 1.41421356237;
const _inverseRoot2 = 0.7071067811865474;
const _eventPrefix = 'snazzy-info-window-';
const _defaultShadow = {
h: '0px',
v: '3px',
blur: '6px',
spread: '0px',
color: '#000'
};
const _defaultOptions = {
placement: 'top'... |
/*:
* @plugindesc This RPG Maker MV plugin simply adds easing feature to the movement and tone changes of the Picture.
* Version : 1.0
* @author <NAME> (https://creft.me/cretapark)
*
* @help
* This RPG Maker MV plugin simply adds easing feature
* to the movement and tone changes of the Picture.
*
* Created b... |
"use strict";
/**
* This file is derived from prior work.
*
* See NOTICE.md for full license text.
*
* Derived from:
* - hash-base, Copyright (c) 2016 <NAME>
* - cipher-base, Copyright (c) 2017 crypto-browserify contributors
* - sha.js, Copyright (c) 2013-2018 sha.js contributors
*/
Object.defineProperty(expor... |
import React from "react";
import {
Stack,
IStackStyles,
IStackTokens,
IStackItemStyles,
} from "office-ui-fabric-react/lib/Stack";
import {
Nav,
INavLink,
INavStyles,
INavLinkGroup,
} from "office-ui-fabric-react/lib/Nav";
import { initializeIcons } from "office-ui-fabric-react/lib/Icons";
import AppC... |
/**
* Created by GuixiangGui on 2017/3/6.
*/
var Promise = require('bluebird')
var execSync = require('child_process').execSync
var exec = require('child_process').exec
var spawn = require('child_process').spawn
var node_ssh = require('node-ssh')
var path = require('path')
var fs = require('fs')
var util = require('... |
require('./bootstrap');
// require('./vendor/jquery-3.2.1.min.js');
require('./vendor/animsition.min.js');
// require('./vendor/popper.js');
// require('./vendor/bootstrap.min.js');
require('./vendor/select2.min.js');
require('./vendor/moment.js');
require('./vendor/daterangepicker.js');
require('./vendor/slick... |
var deltaTime = 10;
var lastTime = 0;
/*
* "Engine"
*/
class Vector{
constructor(x,y){
if(isNaN(x) || isNaN(y)){
console.error("NaN in vector declaration: [" +x+","+y+"]" );
}else{
this.x=x;
this.y=y;
}
}
toString(){
return "[" + this.x + "," +this.y+"]";
}
vezes(m){
retu... |
var app = {
week: undefined
}
// 存放 Bungie 的资源链接
const icons = {
modification: {
// 电弧焦痕
arc_singe: "https://www.bungie.net/common/destiny2_content/icons/ee1536e4ab72c6286ab68980d1ce6ecb.png",
// 烈日焦痕
solar_singe: "https://www.bungie.net/common/destiny2_content/icons/608fb3a03d4... |
const hre = require("hardhat");
const fs = require("fs");
const ethers = hre.ethers;
const BN = require('bn.js');
const {evmCheckpoint, evmRestore} = require("../utils/sharedBeforeEach")
const ExcelJS = require('exceljs');
const {balances, upByDecimals, str, scaleTo18, unscaleFrom18, addr} = require("./balancer-stable-... |
var events = require("events");
var util = require("util");
var crypto = require("crypto");
var stream = require("stream");
var Queue = require("./queue");
function _noop() {}
/**
* Creates a new service endpoint utilizing message queues
* @param bus
* @param name the service name
* @constructor
*/
function Serv... |
import { experimentalRender } from "@candlelib/conflagrate";
import { assert } from "console";
import { ext, parser, exp } from "../build/library/javascript.js";
import { javascript_mappings, renderers } from "../build/library/render/mappings.js";
function parseAndRender(str) {
return experimentalRender(parser(str... |
/*
OpenZWave nodes for IBM's Node-Red
https://github.com/ekarak/node-red-contrib-openzwave
(c) 2014-2017, <NAME> <<EMAIL>>
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.... |
const mime = require('mime-types')
const path = require('path')
const url = require('url')
const fs = require('fs')
const $rdf = require('rdflib')
const mkdirp = require('fs-extra').mkdirp
const uuid = require('uuid')
const debug = require('./debug')
const utils = require('./utils')
const error = require('./http-error'... |
/* @requires mapshaper-common, mapshaper-geom */
MapShaper.ArcDataset = ArcDataset;
// An interface for managing a collection of paths.
// Constructor signatures:
//
// ArcDataset(arcs)
// arcs is an array of polyline arcs; each arc is a two-element array: [[x0,x1,...],[y0,y1,...]
//
// ArcDataset(nn, xx, yy, zz)
... |
const bel = require('bel')
const style_sheet = require('support-style-sheet')
const message_maker = require('message-maker')
const make_grid = require('make-grid')
const {int2hsla, str2hashint} = require('generator-color')
const i_footer = require('footer')
const i_button = require('datdot-ui-button')
var id = 0
modu... |
'use strict';
function draw_logic(){
// Save and translate buffer canvas.
canvas_buffer.save();
canvas_buffer.translate(
canvas_properties['width-half'],
canvas_properties['height-half']
);
// Draw environment.
entity_group_modify({
'groups': [
'background',
'... |
const assert = require('assert')
const zlib = require('zlib')
const fetch = require('node-fetch')
const eosjs = require('eosjs')
const { Serialize } = eosjs
const { SigningRequest } = require('eosio-signing-request')
const { source } = require('./deploy')
const { accounts, eos } = require('./helper')
const { proposeMs... |
/*globals google */
const path = require('path')
const {remote, shell} = require('electron')
const Store = require('./js/store.js')
const Friends = require('./js/friends.js')
const InfoPane = require('./js/infopane.js')
const PosRep = require('./js/posrep.js')
const WindowControls = require('./js/window-controls.js')
/... |
jQuery(function() {
jQuery('.theme-detail').click(function () {
jQuery(this).siblings('.themedetaildiv').toggle();
return false;
});
jQuery("#startdate, #startstats, #enddate, #endstats").datepicker({
dateFormat: "yy-mm-dd",
changeMonth: true,
changeYear: true
});
show_hide_columns_history();
add_scrol... |
/**
* @license
* Copyright The Closure Library Authors.
* SPDX-License-Identifier: Apache-2.0
*/
goog.module('goog.math.MatrixTest');
goog.setTestOnly();
const Matrix = goog.require('goog.math.Matrix');
const testSuite = goog.require('goog.testing.testSuite');
testSuite({
testConstuctorWithGoodArray() {
co... |
import { AppError, isNil } from "@compas/stdlib";
import { isQueryPart, query } from "./query.js";
/**
* @typedef {object} EntityWhere
* @property {{
* tableKey: string,
* keyType: string,
* matchers: {
* matcherKey: string,
* matcherType: "equal"|"notEqual"|"in"|"notIn"|"greaterThan"|"lowerThan"|... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va... |
var gl;
var canvas;
var legacygl;
var drawutil;
var camera;
var controlPoints;
var selected = null;
var COMB; // 二項係数の計算をメモする
const MAX = 10; // 最大の次元数
var bezierFunc; // ベジェ曲線の関数
//#####################################################################
//#
//# 制御点のリストを管理するクラス
//#
//#####################################... |
import randomId from 'random-id';
import storage from './utilitiesStorage';
import ext from './utilitiesCrossBrowser';
import moment from 'moment';
import { getConfig, debugAO } from '../config';
/*
This is the Fisher-Yates-Durstenfeld shuffle algorithm
*/
export function shuffleArray(inputArray) {
var outputArray... |
var Web3 = require('web3');
var R = require("r-script");
var csv = require("array-to-csv");
var fs = require('fs');
var net = require('net');
var exec = require('child_process').exec;
var hash = require('string-hash'); // number between 0 and 4294967295 (2^32 - 1), inclusive
const parse = require('csv-parse/lib/sync');... |
var base_url = $('input[name="base_url"]').val();
var method = $('input[name="basemethod"]').val();
$(document).ready(function() {
var tbl_employees = $('#tbl_employees').DataTable({
"destroy":true,
"processing": true, //Feature control the processing indicator.
"serverSide": true, //Feature... |
var Body = {};
module.exports = Body;
var Vertices = require('../geometry/Vertices');
var Vector = require('../geometry/Vector');
var Sleeping = require('../core/Sleeping');
var Render = require('../render/Render');
var Common = require('../core/Common');
var Bounds = require('../geometry/Bounds');
var Axes = requi... |
var page = 0;
var startTime = new Date().toUTCString();
var id = Math.floor(Math.random() * 100000000000000);
var db = null;
var dbEntryPath = 'survey-data-' + env + '/entries/entry_';
var dbOverviewPath = 'survey-data-' + env + '/overview/';
function initDB()
{
firebase.initializeApp(config);
if (env == "product... |
let versionReceived = false;
let loggedIn = false;
let balance = 0;
let curr_bal = 0;
let profitcheck = 0;
let ducoUsdPrice = 0.0065;
let sending = false;
let daily_average = [];
window.addEventListener('load', function() {
// RANDOM BACKGROUND
const bg_list = [
'https://i.imgur.com/trNkG47.png',
... |
/*jshint esversion: 6 */
// Experimental
class PyTorchModelFactory {
match(context, host) {
var extension = context.identifier.split('.').pop();
return extension == 'pt' || extension == 'pth';
}
open(context, host, callback) {
host.require('pickle', (err) => {
if (er... |
//=============================================================================
// Pentomino Puzzle (Demo function)
//
// 11/05/2012 by <NAME>
//=============================================================================
//=======================
// BEGIN for idle demo
//=======================
var MAX_IDLE_TIME = ... |
/**
* Copyright 2018-2020 BigML
*
* 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 ... |
'use strict';
var app = angular.module('SioPortal',
['ngRoute', 'ngFileUpload', 'LocalStorageModule','components']);
var modules = angular.module('components', []);
app.config(function ($routeProvider, $locationProvider, $sceProvider) {
$locationProvider.html5Mode(true);
$routeProvider.when("/init/logi... |
/**
* hash.js - parse HTML hash and convert to JavaScript object, then send AJAX request
*
* @author <NAME> <<EMAIL>>
* @copyright 2020-05-28
* @package VsoP
* @name hash.js
* @since 2019-06-24
* @version 0.17
* @license MIT
*/
var poll = {};
var vueobj = {};
var vuemsg... |
var port = process.env.OPENSHIFT_NODEJS_PORT || 3000
, ip = process.env.OPENSHIFT_NODEJS_IP || "127.0.0.1";
var express = require("express"), app = express()
, http = require("http")
, server = http.createServer(app).listen(port, ip)
, io = require("socket.io").listen(server);
var bot = require("uwcr-chatbot");
var ... |
const app = require('electron').remote.app;
const {ipcRenderer} = require('electron');
const Excel = require('exceljs');
const path = require('path');
const fs = require('fs');
const performance = require('perf_hooks').performance;
var dir = path.join(app.getPath('desktop'), 'PEDS_Results');
module.exports.writexl... |
import { unlinkSync } from 'fs'
import { homedir } from 'os'
import { join } from 'path'
import * as Sentry from '@sentry/node'
import { format } from 'date-fns'
import faker from 'faker'
import glob from 'glob'
import { isArray, isNil } from 'lodash'
import { ClientFunction, RequestLogger, Selector, t } from 'testcaf... |
const {createCanvas} = require('canvas');
function SpatialPainter() {
/**
* 初始化颜色版
*/
this.init = function (conrec) {
try {
let _paleCanvas = createCanvas(1, 256);
let ctx = _paleCanvas.getContext("2d");
let grad = ctx.createLinearGradient(0, 0, 1... |
'use strict';
/**
* Kado - Web Application System
* Copyright © 2015-2019 <NAME>, NULLIVEX LLC. All rights reserved.
* Kado <<EMAIL>>
*
* This file is part of Kado and bound to the MIT license distributed within.
*/
let P = require('bluebird')
let fs = require('graceful-fs')
/**
* Master process
* @this {obje... |
const request = require('request');
const axios = require('axios');
const sgMail = require('@sendgrid/mail');
let telegram_url =
'https://api.telegram.org/bot1227967672:AAGT6hYHmrvMP5C6Xi9FJmsCeeNYmoQZrf8/sendMessage';
const AWS = require('aws-sdk');
AWS.config.update({
region: 'us-east-2',
accessKeyId: process... |
import { ApolloClient, InMemoryCache, HttpLink } from '@apollo/client';
import { gql } from '@apollo/client';
import fetch from 'cross-fetch';
import ethersApi from './ethers.api';
import graphUtils from 'utils/graphUtils';
import {
gotchiByIdQuery,
gotchiesQuery,
svgQuery,
activeListingQeury,
erc... |
// this is exposed as the legaleseSignature library
//
// upon loading it sets the variable legaleseSignature._loaded = true;
// this is (not publicly) available at
// M_Wuaitt08FDk5mzAwEoxpXYH5ITXFjPS
var _loaded = true;
function getDigitalSignatureService(config) {
var signatureService = config.signature_service;... |
/****************************************************************************
* expander.js
* openacousticdevices.info
* February 2021
*****************************************************************************/
'use strict';
const fs = require('fs');
const path = require('path');
const wavHeader = require('./... |
/**
*
*/
var map = null;
var marker = null;
var markers = [];
var clickListener = null;
var dialog = null;
var confirmDialog = null;
var dialogoRemocaoSucesso = null;
var dialogCarregaFoto = null;
var dialogoMensagemShotArea = null;
var form = null;
var flagSaved = false;
var poiParaRemocao = null;
var poiAdicionarF... |
/* Imported From: https://itnext.io/how-to-use-plain-three-js-in-your-react-apps-417a79d926e0 */
import * as THREE from 'three';
import Compartment from './Compartment';
import ProgressBar from './ProgressBar';
import FluxArrow from './FluxArrow';
class SceneManager {
constructor(canvas, dataContext) {
co... |
function getChainNiceName(chain_id) {
chain_id = chain_id.toLowerCase();
if (chain_id == "eos") return "Eos"; else
if (chain_id == "tlo" || chain_id == "telos") return "Telos"; else
if (chain_id == "wbi" || chain_id == "worbli") return "Worbli"; else
if (chain_id == "utx" || chain_id == "uxnetw... |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... |
/**
*
* var actions = undefined;
* var rootElement = undefined,
* containerElement = undefined,
* toolbarElement = undefined,
* showToolbarElement = undefined,
* containerElementStyle = undefined,
* sourceImage = undefined,
* previewCanvas = undefined,
* previewContext = undefined;
* var srcIma... |
/* eslint 'max-len': ['error', {'code':100}] */
const {Router} = require('express');
const router = new Router();
const controllerApi = require('./../controller/api');
const validation = require('./../lib/validation');
const middlewareAuth = require('./../middleware/auth');
const middlewareValidation = require('./../mi... |
const crfsuite = require('crfsuite');
const fs = require('fs');
const path = require('path');
const LABELS = [
'AddressNumberPrefix',
'AddressNumber',
'AddressNumberSuffix',
'StreetNamePreModifier',
'StreetNamePreDirectional',
'StreetNamePreType',
'StreetName',
'StreetNamePost... |
function load_viz_data(inst_name){
// var inst_name = 'mult_view';
var tmp_num;
var cat_colors;
cgm = {};
resize_container();
function make_clust(make_sim_mats){
var clust_name = inst_name+'.json'
d3.json('json/'+clust_name, function(network_data){
var args = $.extend(true, {}, default_arg... |
const debug = require('debug')('mhio:largs:largs')
const { ArgumentException, ArgumentsException, LargsException } = require('./exceptions')
const { Arg } = require('./arg')
const forEach = function(iterable, fn){
for (const [key, value] of Object.entries(iterable)) {
fn(value, key)
}
return iterable
}
cla... |
'use strict';
const sysPath = require('path');
const exec = require('child_process').exec;
const logger = require('loggy');
const readComponents = require('read-components');
const anymatch = require('anymatch');
const coffee = require('coffee-script');
const debug = require('debug')('brunch:application');
const deppac... |
class Chart {
constructor(container) {
this.container = container;
this.canvas = document.createElement('canvas');
this.ctx = this.canvas.getContext('2d');
this.W = 1000 * 2;
this.H = 600 * 2;
this.padding = 120;
this.paddingTop = 50;
this.title = ''... |
(function () {
var C = CryptoJS;
var C_lib = C.lib;
var WordArray = C_lib.WordArray;
var Hasher = C_lib.Hasher;
var C_algo = C.algo;
var W = [];
var SM3 = C_algo.SM3 = Hasher.extend({
_doReset: function () {
this._hash = new WordArray.init([0x7380166f, 0x4914b2b9, 0x17244... |
import L from "leaflet";
import "leaflet-draw";
import {initProj4, transform} from "../../assets/msk2wgs";
import {getJSON} from "../services/Request";
import Mapster from "../services/Mapster";
import {AreaTypes} from "./page-builder";
import {serializeUrlParam} from "../utils";
let mapster = new Mapster('map');
let... |
import { SimpleSigner, decodeJWT } from 'did-jwt'
import { createJWT, verifyJWT } from './JWT'
const MNID = require('mnid')
import { ec as EC } from 'elliptic'
const secp256k1 = new EC('secp256k1')
import UportDIDResolver from 'uport-did-resolver'
import MuportDIDResolver from 'muport-did-resolver'
import EthrDIDResol... |
import React, { useState, useEffect, useCallback, useMemo } from 'react';
import Button from '../../components/UI/Button/Button';
import Board from '../../components/Sudoku/Board/Board';
import Controls from '../../components/Sudoku/Controls/Controls';
import Modal from '../../components/UI/Modal/Modal';
import Loading... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.