text stringlengths 5.97k 41.2k |
|---|
/**
* Copyright (c) Microsoft Corporation
* All Rights Reserved
* 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 without limitation the ... |
var rtcroom = require('../../../utils/rtcroom.js')
var webim = require('../../../utils/webim_wx.js');
var report = require('../../../utils/report.js');
var app = getApp();
Component({
properties: {
roomID: {type: String, value: ''},
roomInfo: {type: String, value: ''},
template: {type: Stri... |
'use strict';
const { EventEmitter } = require('eventemitter3');
const { name, version } = require('../../package.json');
const clusterCount = require('os').cpus().length;
const Queue = require('../utils/Queue.js');
const { Client } = require('eris');
const master = require('cluster');
const Logger = require('../utils... |
// ==UserScript==
// @name HN Comment Trees
// @description Hide/show comment trees and highlight new comments since last visit in Hacker News
// @namespace https://github.com/insin/greasemonkey/
// @match https://news.ycombinator.com/*
// @version 34
// ==/UserScript==
var COMMENT_COUNT_KEY = ':cc'... |
import 'phaser';
import Koji from '@withkoji/vcc';
import Block from '../components/Block';
import Player from '../components/Player';
import config from '../config/config';
import {GAME_HEIGHT, GAME_WIDTH, MOBILE} from '../config/config'
// import levels from '../components/levels';
import fader from '../components/fa... |
import React, { Component,PropTypes } from 'react';
import {Link} from 'react-router';
import SplitLine from '../../Component/NewComponent/SplitLine'
import Tabscontrol from '../../Component/GoodsDetails/Tabscontrol'
import GoodsPopup from '../../Component/GoodsDetails/GoodsPopup'
import IsShowEmptyImg from '../CommonC... |
const router = require('express').Router()
const ResponseUtil = require('../../../util/response_util')
const RequestUtil = require('../../../util/request_util')
const IceUtil = require('../../../util/ice_util')
// const download = require('download')
const ApiValidateException = require('../../../exception/api_validate... |
'use strict';
var _ = require('lodash'),
async = require('async'),
beanstalkConnect = require('../beanstalk_connect'),
config = require('api-umbrella-config').global(),
elasticSearchConnect = require('../elasticsearch_connect'),
events = require('events'),
logCleaner = require('./cleaner'),
... |
////////////////////
// setup
////////////////////
//post-heartbeat callback:
function dataUpdate(){
updateRunStatus();
repaint();
}
function registerODB(payload){
//park the ODB responses in the dataStore, and run through initial parsing
dataStore.ODB.DAQ = payload[0];
dataSt... |
let objectsPage = require('../pages/Objects.page')
let {Explorer, SubNav, AddObjectWizard, ObjectEditorPanel} = objectsPage
describe('Peregrine objects page', function () {
it('should login', function() {
objectsPage.open()
expect( browser.getUrl() ).to.contain('content/admin/objects.html')
})
... |
import * as faceapi from "face-api.js";
import {getCameraList, loadCamera} from "./utils/camera";
import {drawPoint, loadCanvas} from "./utils/canvas";
import {getFrontUrl} from "./utils/config"
import * as posenet from '@tensorflow-models/posenet'
import * as math from 'mathjs'
import {euclidean} from "./utils/c... |
var resourcePath = "/resources.json";
var basePath = "/";
var swaggerVersion = "1.1";
var apiVersion = "0.0";
var resources = {};
var validators = [];
var appHandler = null;
var allowedMethods = ['get', 'post', 'put', 'delete'];
var allowedDataTypes = ['string', 'int', 'long', 'double', 'boolean', 'date', 'array'];
var... |
// import images from '../image/examples/*.jpg'
// const _ = require('../lib/lodash.min.js')
// const OPTICS = require('../lib/OPTICS.js')
// const convexhull = require('../lib/convex-hull.js')
var menu5 = new Vue({
el: '#menu5',
data: {
analysis: {
metadata: [],
executed_studies: [],
gaze: ... |
import React from 'react';
import { useSelector } from 'react-redux';
import Tooltip from '@material-ui/core/Tooltip';
import Grid from '@material-ui/core/Grid';
import Hidden from '@material-ui/core/Hidden';
import useMediaQuery from '@material-ui/core/useMediaQuery';
import ColumnListBackscratcher from 'components/Va... |
import { createSlice } from '@reduxjs/toolkit'
import BigNumber from 'bignumber.js'
import log from 'loglevel'
import {
addToken,
addUnapprovedTransaction,
fetchAndSetQuotes,
forceUpdateMetamaskState,
resetSwapsPostFetchState,
setBackgroundSwapRouteState,
setInitialGasEstimate,
setSwapsErrorKey,
setS... |
/************************************************************************************
jQuery AJAX Chat
version 1.4
Author: http://www.jquerychat.net/
If you want to buy this script, drop me a mail: <EMAIL>
************************************************************************************/
history.navigation... |
//************************** Define global variables
var machine_loaded = false;
var input_loaded = false;
var transitions;
var new_transitions;
var final_states;
var new_final_states;
var initial_state;
var new_initial_state;
var n_tapes;
var error;
var ncells;
var new_ncells;
if ( document.body.offsetWidth > 720 ) ... |
// Copyright 2019 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.
import * as i18n from '../../core/i18n/i18n.js';
import * as Platform from '../../core/platform/platform.js';
import * as UI from '../../ui/legacy/legacy.j... |
var byId = function (id) {
return document.getElementById(id);
};
// Recuperamos y aplicamos ajustes guardados:
byId("optionMusic").checked = JSON.parse(
localStorage.getItem("optionMusic") || true
);
byId("optionShowButtons").checked = JSON.parse(
localStorage.getItem("optionShowButtons") || true
);
var finalesC... |
const clientId = "842112189618978897",
DiscordRPC = require("discord-rpc"),
iTunes = require("itunes-bridge"),
AutoLaunch = require("auto-launch"),
{ ipcMain, app, Menu, Notification, Tray, BrowserWindow, dialog } = require("electron"),
Store = require("electron-store"),
{ autoUpdater } = requir... |
/* ***************************************************************
Introduction to JavaScript
You mist write code to make all of the tests at the bottom pass.
Run the file in the terminal with: node main.js
If there are no test failures, you will see a message like this:
No... |
import * as Obj from "./obj.js";
import * as Block from "./block.js";
import * as Curry from "./curry.js";
import * as $$Buffer from "./buffer.js";
import * as Printf from "./printf.js";
import * as Caml_array from "./caml_array.js";
import * as Pervasives from "./pervasives.js";
import * as Caml_js_exceptions from "... |
/*HTML Include*/
function includeHTML(callback) {
var z, i, elmnt, file, xhr;
/*loop through a collection of all HTML elements:*/
z = document.getElementsByTagName("*");
for (i = 0; i < z.length; i++) {
elmnt = z[i];
/*search for elements with a certain atrribute:*/
file = elmnt... |
/* lib/protos.js */
require('./extensions.js');
var app;
var _ = require('underscore'),
events = require('events'),
net = require('net'),
inflect = require('./support/inflect.js'),
child_process = require('child_process'),
cluster = require('cluster'),
fs = require('fs'),
os = require('o... |
// Global variables
var canvas = document.querySelector("#scene");
var ctx = canvas.getContext("2d");
var INPUTS = {
count: document.querySelector("#count"),
minSize: document.querySelector("#min-size"),
maxSize: document.querySelector("#max-size"),
rotation: document.querySelector("#rotation"),
... |
/**
* @typedef VOXMod
* @prop {number} [s] start (0-100)
* @prop {number} [e] end (0-100)
* @prop {number} [v] volume (0-100)
* @prop {number} [p] pitch (0-100)
* @prop {number} [t] time compression (0-100)
*/
// https://www.russellgood.com/how-to-convert-audiobuffer-to-audio-file/
function make_downl... |
/*global variable declarations*/
var myHighlightApplier;
var cssClassApplierModule = rangy.modules.CssClassApplier;
var range, sel, highlightAction = "save";
var highlightResponseText;
var extendHighlightClass;
var urlList;
var extendType;
function enableUserHighlights(){
//check if it's not the contents or index... |
/*
* @Descripttion:
* @version:
* @Author: <NAME>
* @Date: 2021-03-05 11:13:59
* @LastEditors: <NAME>
* @LastEditTime: 2021-03-05 16:04:49
*/
import { Point } from 'pixi.js'
const AFFINE = {
NONE: 0,
FREE: 1,
AXIS_X: 2,
AXIS_Y: 3,
POINT: 4,
AXIS_XR: 5
}
// 3阶单位矩阵
const mat3id = [1, 0, 0, 0, 1, 0,... |
var save_method; //for save method string
var table;
var href = window.location.href; // https://portalh.sefa.pa.gov.br
$(document).ready(function() {
table = $('#table').DataTable({
"dom": "flrtip",
"language": {
"url": "https://cdn.datatables.net/plug-ins/1.10.16/i18n/Portuguese-B... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
'use strict';
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.i... |
const $RefParser = require('@apidevtools/json-schema-ref-parser');
const { pathToRegexp, match } = require('path-to-regexp');
const getAuth = require('./lib/get-auth');
const getPathOperation = require('./lib/get-path-operation');
const getUserVariable = require('./lib/get-user-variable');
const Operation = require('./... |
// this is a diagnostic tool independent of the yauzl library.
// this too is useful for examining the details of how a zipfile is put together.
var fs = require("fs");
var zipfileBuffer;
function main() {
var args = process.argv.slice(2);
if (args.length !== 1) throw new Error("exactly 1 arg expected, which is a... |
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// RICMsgHandler
// Communications Connector for RIC V2
//
// RIC V2
// <NAME> & <NAME> 2020
// (C) Robotical 2020
//
/////////////////////////////////////////////////////////////////////////////////////... |
/**
* Base Model - Provides generic reusable methods that child models can inherit from
*/
'use strict';
var _ = require('underscore');
var Backbone = require('backbone');
var tungsten = require('../../src/tungsten');
var errors = require('../../src/utils/errors');
var ComponentWidget = require('./component_widget');... |
import {GameObjects, Math as pMath} from 'phaser';
import Rockets from '../projectiles/Rockets';
import Kabooms from '../sprites/Kabooms';
const {Container} = GameObjects;
class RedLeader extends Container {
constructor({scene, x, y}) {
const top = scene.physics.add.sprite(0, 0, 'mc-top');
const bottom = sc... |
/** Variables */
const email = "<EMAIL>";
const linkedin = "https://linkedin.com/in/iyashasgowda";
const twitter = "https://twitter.com/iyashasgowda";
const facebook = "https://facebook.com/iyashasgowda";
const instagram = "https://instagram.com/iyashasgowda";
const github = "https://github.com/iyashasgowda";
const sel... |
const {Markdown:md,Format:fmt,Math,Ratio,pascalsTriangle,fetch} = require('../../../Utils');
const Calculator = require('./Calculator');
const Polynomial = require('./Polynomial');
const MATH_TITLE = 'Math:1234:';
module.exports = {
'math': {
aliases: ['maths','calculate','calculator','calc'],
category: 'Misc',
... |
/*
=================
Select Elements of Input section
=================
*/
// main-page
const mainPage = document.getElementById("main-page");
// result-page
const resultPage = document.getElementById("result-page");
// Google Map
const gmap = document.getElementById("map");
// Select Button
const searchBtn = docum... |
"use strict";
// Command palette -> Organize imports
Object.defineProperty(exports, "__esModule", { value: true });
exports.readSync = exports.readLinkSync = exports.readLink = exports.readFileSync = exports.readFile = exports.readDirSync = exports.readDir = exports.read = exports.openSync = exports.open = exports.m... |
const exploreDataStrings = {
feature: {
class: 'Features',
db: 'lingfeatures',
xslt: 'cross_features_02.xslt',
xslt_single: 'features_01.xslt',
single_selector: 'data-featurelist'
},
sample: {
class: 'Samples',
db: 'samples',
xslt: 'cross_sampl... |
// the audio engine is a fairly simple staging-live setup.
// It maintains two sets of sources:
// - live, currently playing
// - staging, up next / loading
// sources are cued up in staging, and then flipped to live either
// immediately or through a crossfade operation.
// Engine cannot transition staging to live unt... |
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d... |
const { locatorToLatLng } = require("./QthLocator")
const fs = require('fs')
const readline = require('readline')
const { exit } = require("process")
// You can increase if you want to reserve the first groups for your own use
var initialGroupNumber = 1
const columnSeparator = ','
const onlyVhfAndUhf = true
const useR... |
//click the buttom to enter full screen
function requestFullScreen(element) {
// 判断各种浏览器,找到正确的方法
var requestMethod = element.requestFullScreen || //W3C
element.webkitRequestFullScreen || //Chrome等
element.mozRequestFullScreen || //FireFox
element.msRequestFullScreen; //IE11
if (re... |
import quickRegex from './levels.js';
import RegexContainer from './extern/RegexContainer.js';
import Mark from './extern/mark.es6.js';
import Queue from './extern/FunctionQueue.js';
import RegexColorizer from './extern/RegexColorizer.js';
var caseList = document.querySelector('.case-list');
var caseTemplate = documen... |
import request from '@/utils/frame/base/request'
import toolUtil from '@/utils/frame/base/toolUtil.js'
import messageUtil from '@/utils/frame/base/messageUtil.js'
const contractUtil = {
billTypeShort(billType) {
switch (billType) {
// 采购合同
case 'CON_PC_INFO':
case 'pc':
return ['P', 'C',... |
// var $ = require("jquery");
// var cockpit = require("cockpit");
// var Mustache = require("mustache");
cockpit.translate();
var _ = cockpit.gettext;
var C_ = cockpit.gettext;
var CONFIG_FILE = "/etc/shares.cockpit.json";
var CONFG_SMB = "/etc/samba/smb.conf";
var CONFG_AFP = "/etc/netatalk/afp.conf";
var GUEST_... |
/***************************************************************************************
* Script to control Windows PCs
* -------------------------------------------------------------------------------------
* Send commands to Windows PCs for shutdown, hibernate, etc.
* Source: https://forum.iobroker.net/topic... |
// Reasons.js by <NAME>
// Copyright 2017-2019 University of Queensland
// Available under the MIT license
'use strict'
const View = require('./view')
const Utils = require('./utils')
const Graph = require('./graph')
const Keycode = require('keycode')
const Hammer = require('hammerjs')
module.exports = {... |
// Tagged input form control
// Based loosely on https://adamwathan.me/renderless-components-in-vuejs/
import Vue from '../../utils/vue'
import identity from '../../utils/identity'
import KeyCodes from '../../utils/key-codes'
import looseEqual from '../../utils/loose-equal'
import { arrayIncludes, concat } from '../../... |
import _ from 'lodash'
import * as DIY from './enums.js'
import * as HitAreaVisualizer from './visualizer'
import GL from './lib/lightgl'
import Line from './csg/csg-line'
import Global from './global.js'
import Overlay from './misc/overlay'
import SelectedObjectHandler from './misc/selected-obj-handler'
import Plane f... |
// Copyright 2019 SAP SE.
//
// 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... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*------------------------------------------------------------... |
var RENDERER = {
LEAF_INTERVAL_RANGE : {min : 100, max : 200},
FIREWORK_INTERVAL_RANGE : {min : 20, max : 200},
SKY_COLOR : 'hsla(210, 60%, %luminance%, 0.2)',
STAR_COUNT : 100,
init : function(){
this.setParameters();
this.reconstructMethod();
this.createTwigs();
this.createStars();
this.render();
},... |
//Création de la map
var map = L.map('map')
var code_dep_selected = null
//Création des marker cluster
var markersCluster = new L.MarkerClusterGroup();
//Point de la map
var centreFrance = [47.242, 2.791]
//afficher la map avec un premier niveau de zoom
map.setView(centreFrance, 6);
//Ajout de fonds de carte
var ... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
/** @babel */
import * as char from 'hjs-core/lib/char';
import {Command} from 'hjs-cmd/lib/command';
export const NO_ARGUMENT = 0;
export const REQUIRED_ARGUMENT = 1;
export const OPTIONAL_ARGUMENT = 2;
export class LongOpt {
constructor({name, has_arg = NO_ARGUMENT, flag = [], val = 0} = {}) {
... |
import $ from 'jquery';
import Component from '@ember/component';
import EmberObject, {computed, set} from '@ember/object';
import {
IMAGE_EXTENSIONS,
IMAGE_MIME_TYPES
} from 'ghost-admin/components/gh-image-uploader';
import {utils as ghostHelperUtils} from '@tryghost/helpers';
import {htmlSafe} from '@ember/t... |
require('dotenv').load();
const express = require('express');
const bodyParser = require('body-parser');
const request = require('request');
const fs = require('fs');
const jsonfile = require('jsonfile');
var app = express();
var port = process.env.PORT || 8080;
var api_key = process.env.WOWS_API_KEY || "demo";
... |
/********************************/
/***** Auditory N-Back Task *****/
/********************************/
/*
## Description
The n -back task is a continuous performance task that is commonly used
as an assessment in psychology and cognitive neuroscience to measure
a part of working memory and working memory capacity.
... |
/**
* Copyright 2018 The Subscribe with Google Authors. All Rights Reserved.
*
* 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
*
* U... |
function horizontalGroupBarChart(config) {
function setReSizeEvent(data) {
var resizeTimer;
var interval = 500;
window.removeEventListener('resize', function () {
});
window.addEventListener('resize', function (event) {
if (resizeTimer !== false) {
... |
//wait for all the input before loading
function makeUI(local=false){
//if (local) GUIParams.usingSocket = false;
console.log('making UI', local)
if (!local){
initGUIScene();
if (!GUIParams.animating) animateGUI();
}
console.log("waiting for GUI init...")
clearInterval(GUIParams.waitForInit);
GUIParams.wai... |
var DEBUG_MODE = false; //print debug and piloting information to the console
function sendData(data) {
console.log('sending data to mturk');
jsPsych.turk.submitToTurk({
'score': 0 //this is a dummy placeholder
});
}
//randomize button order on a subject basis
var get_random_choices = () => {if(Math.random(... |
/* Copyright 2022 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... |
import config from './../../config.js';
import Base_layers_class from './../../core/base-layers.js';
import Helper_class from './../../libs/helpers.js';
import Dialog_class from './../../libs/popup.js';
import alertify from './../../../../node_modules/alertifyjs/build/alertify.min.js';
import canvasToBlob from './../..... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
'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 ("val... |
import * as canvasPainter from "./modules/canvasPainter.js";
import { postMessage } from "./modules/minis.js";
import { PlayerManager } from "./modules/playersManager.js";
import { Const } from "./modules/sharedConstants.js";
const enumState = {
Login: 0,
WaitingRoom: 1,
OnGame: 2,
Ranking: 3,
};
const enumPa... |
/*
* Copyright (C) 2017-2019 Dremio Corporation
*
* 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 l... |
import ApproximateTerrainHeights from "../Core/ApproximateTerrainHeights.js";
import arraySlice from "../Core/arraySlice.js";
import Cartesian2 from "../Core/Cartesian2.js";
import Cartesian3 from "../Core/Cartesian3.js";
import Color from "../Core/Color.js";
import ComponentDatatype from "../Core/ComponentDatatyp... |
const SOLS_TO_PARSECS = 2.25461e-8
, AU_TO_PARSEC = 4.84814e-6;
var fields = ['x','y','z','vx','vy','vz','absmag','temp','radius','id']; // all float32s
var stardata = require('../../assets/data/stardata.json');
var colorTable = require('../colorTable.json');
var HttpStore = require('../HttpStore');
/* globals AFR... |
/*!-----------------------------------------------------------------
Name: neXessary - neXessary
Version: 0.0.0
Author: fujitsu
Website: http://fujitsu.com
Purchase: http://fujitsu.com
Support: http://fujitsu.com
License: You must have a valid license purchased only from ThemeForest (the above link) in or... |
/*
* Copyright (c) 2015-2016 PointSource, LLC.
* MIT Licensed
*/
'use strict';
var path = require('path'),
async = require('async'),
_ = require('lodash'),
di = require('./di'),
subRequire = require('./subRequire'),
depCalc = require('./dependencyCalc');
var debug = require('debug')('loader');
... |
const t = {}
t.loading = '加载中...'
t.brand = {}
t.brand.lg = '人人权限企业版'
t.brand.mini = '人人'
t.add = '新增'
t.delete = '删除'
t.deleteBatch = '删除'
t.update = '修改'
t.query = '查询'
t.export = '导出'
t.handle = '操作'
t.confirm = '确定'
t.cancel = '取消'
t.logout = '退出'
t.prompt = {}
t.prompt.title = '提示'
t.prompt.info = '确定进行[{handl... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnPrope... |
// LICENSE_CODE ZON ISC
'use strict'; /*jslint node:true*/
require('./config.js');
const array = require('./array.js');
const crypto = require('crypto');
const rimraf = require('rimraf');
const path = require('path');
const fs = require('fs');
const StringDecoder = require('string_decoder').StringDecoder;
const E = exp... |
import React, { Component } from "react"
import { connect } from "react-redux"
import {
CModal,
CModalHeader,
CModalTitle,
CModalBody,
CModalFooter,
CButton,
CContainer,
CRow,
CCol,
CAlert,
CFormFloating,
CFormControl,
CFormLabel,
CForm,
CSpinner,
CFormSelect,
} from "@coreui/react"
//i... |
/*
* (C) Copyright 2014 Kurento (http://kurento.org/)
*
* 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 applicab... |
/** JULY 24TH 2017 -- START DATE **/
//deleteStorage();
let IS_DATE_STARTED = false; // Has the start date been selected.
let START_DATE = ""; // Date timer was started (first accident).
let LAST_ACCIDENT = ""; // Date timer left off at. JS Version of Date.
let ACCIDENT_COUNT = 0; // Count of accidents.
let AC... |
import React, { Component } from 'react';
import { ApiService } from '../../ApiService';
import { useQuery } from '../../util';
import Button from 'react-bootstrap/Button';
import queryString from 'query-string'
import { languages } from 'prismjs/components/prism-core';
import 'prismjs/components/prism-clike';
import '... |
/*
* Copyright (C) 2014 MetaBrainz Foundation
*
* This file is part of MusicBrainz, the open internet music database,
* and is licensed under the GPL version 2, or (at your option) any
* later version: http://www.gnu.org/licenses/gpl-2.0.txt
*/
import he from 'he';
import $ from 'jquery';
import ko from 'knockou... |
import React, { useCallback, useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
import BigNumber from 'bignumber.js';
import {
useFetchApproval,
useFetchClaim,
useFetchExit,
useFetchStake,
useFetchWithdraw,
useLaunchpoolSubscriptions,
useLaunchpoolUpdates,
usePo... |
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("././aPIException"));
__export(require("././account"));
__export(require("././accountType"));
__export(require("././allowanceType... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnPrope... |
'use strict';
/* eslint guard-for-in: 0 */
/* eslint no-unused-vars: 0 */
/* eslint capitalized-comments: 0 */
/* eslint max-params:0 */
/* eslint no-negated-condition:0 */
const jsnx = require('jsnetworkx');
const commandLineArgs = require('command-line-args');
function setDefault(options) {
/* This function set d... |
import { logger } from './logger';
const debug = require('debug')('router');
const math = require('mathjs');
const uni = require('@uniswap/sdk-core');
const uniV3 = require('@uniswap/v3-sdk');
const ethers = require('ethers');
const globalConfig =
require('../services/configuration_manager').configManagerInstance;
c... |
import {
getTokenV2,
wrapListener,
ethers,
getSigner,
walletIsConnected,
renderAmount,
renderAddress,
getEtherscanLink,
} from '/lib/utils.js';
import {
doQueryWithOptions,
getProviders,
getDelegatedAmountsForToken,
decodeMetadata,
getReceipt,
fetchModuleInformation,
getTotalDelegatedAmoun... |
/* LICENSE
_This file is Copyright 2018 by the Image Processing and Analysis Group (BioImage Suite Team). Dept. of Radiology & Biomedical Imaging, Yale School of Medicine._
BioImage Suite Web is licensed under the Apache License, Version 2.0 (the "License");
- you may not use this software except in complianc... |
// Forbidden Arena [Hagufna]
//
// made by michengs / HSDN
const { HIGHLIGHT_ITEM, SpawnItem, SpawnMarker, SpawnVector, SpawnCircle } = require("../lib");
let player, entity, library, effect;
let timer1;
let timer2;
let timer3;
let shield_notices = true;
let print_shield = true;
let print_hp = true;
le... |
// Copyright (©) 2020 NewCraft Corporation. All rights reserved. MIT License.
const Discord = require('discord.js');
const config = require("../config.json");
const dir = "Servidores/Card/Carteiras";
const dir2 = "Servidores/Card/Cards";
const cmd = `${config.pr}.length`
var tc, tc2, trocar, n, n2, card1, card2;
var ... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Identity = void 0;
exports.default = useSlider;
exports.valueToPercent = valueToPercent;
var _extends2 = _interopRequireDefault(require("@babel/... |
// 管廊信息
let date = new Date();
var d0 = new Date(date.getTime() - 24*60*60*1000*2);
var d1 = new Date(date.getTime() - 24*60*60*1000*3);
var d2 = new Date(date.getTime() - 24*60*60*1000*5);
var d3 = new Date(date.getTime() - 24*60*60*1000*7);
let time = {
year : function(){
return date.getFullYear()+'年'+... |
/**
* Created by jun on 15/11/26.
*/
$(function () {
$.getJsonp(apiBaseUrl + '/cart/list', {'check':'1',isbuy: 1}, function (json) {
if (json.list.length == 0) {
window.location.href = '/cart.html';
return;
}
createGoodsListHtml(json);
renderPayInfo();
... |
import React, {Component, Fragment} from "react";
import {__} from "../../../layouts/utilities/i18n";
import LayoutIcon from "../../../layouts/LayoutIcon";
import {components} from "../Section";
import InputForm from "./InputForm";
import FlaotDettingDialog from "./FlaotDettingDialog";
import matrix from "../data/matr... |
var contentGrid = {
freeForm : true,
init : function (freeForm) {
contentGrid.freeForm = true; // freeForm ? true : false;
// temporarily we will remove uniform from here and add it on the ui.js page line 357
// $jQ('.content-grid .add-cart-cta, .quick-view-details .add-cart-cta').uni... |
import * as moment from 'moment';
import { supabase } from '../supabaseConfig';
// https://api.met.no/weatherapi/locationforecast/2.0/complete?lat=19.478969&lon=-70.695968&altitude=4150
let latitude;
let longitude;
export async function littersQuantityPerDay(cultivo, sowingDate, periodTotalDays) {
const dateEnd = m... |
import similarity from 'compute-cosine-similarity';
import {
COLOR_COMBINATIONS,
COLOR_INCLUSION_MAP,
cardCmc,
cardColorIdentity,
cardName,
cardType,
cardDevotion,
cardCost,
cardElo,
} from 'utils/Card';
import { arraysAreEqualSets, fromEntries } from 'utils/Util';
import probTable from 'res/probTab... |
//@ts-nocheck
const Table = require('cli-table')
const bs58 = require('bs58')
const multihash = require('multihashes')
const ethers = require('ethers')
const provider = new ethers.providers.JsonRpcProvider()
const feedABI = require('../packages/testenv/build/Feed.json')
const feedFactoryABI = require('../packages/tes... |
"use strict";
const tg = require('node-telegram-bot-api');
let util = require('util');
let http = require('http');
let request = require('request');
var fs = require('fs');
var process = require('process');
////////////////////////////////
//----------------------------//
// Copyright (c) 2017 NullDev //
//-----------... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.