text stringlengths 5.97k 41.2k |
|---|
const fs = require('fs');
const path = require('path');
const glob = require('glob');
const brs = require('brs-js');
const OmeggaWrapper = require('./wrapper.js');
const { PluginLoader } = require('./plugin.js');
const commandInjector = require('./commandInjector.js');
const { Webserver } = require('../webserver/index... |
const assert = require("chai").assert;
const PORT = require("./_port.js");
describe("Attributes propagation", () => {
before(async () => {
await browser.url(`http://localhost:${PORT}/test-resources/pages/Input.html`);
});
it("Should change the placeholder of the inner input", async () => {
const input = await ... |
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = exports.POSITIONS = void 0;
var _objectSpread... |
/**
@module ember
@submodule ember-runtime
*/
import Ember from "ember-metal/core";
// Ember.ENV.MANDATORY_SETTER, Ember.assert, Ember.K, Ember.config
// NOTE: this object should never be included directly. Instead use `Ember.Object`.
// We only define this separately so that `Ember.Set` can depend on it.
import ... |
var Iconv = require("iconv").Iconv;
/* mime related functions - encoding/decoding etc*/
/* TODO: Only UTF-8 and Latin1 are allowed with encodeQuotedPrintable */
/* TODO: Check if the input string even needs encoding */
/**
* mime.foldLine(str, maxLength, foldAnywhere) -> String
* - str (String): mime... |
/***
*
* Handles local and gdrive file storage interactions.
*
***/
async function saveBT(localOnly = false) {
// Save org version of BT Tree to local storage and potentially gdrive.
// localOnly => don't save to GDrive backing and don't send gtag stat. Used when folding/unfolding
console.log("Writ... |
"use strict";
var _a, _b;
Object.defineProperty(exports, "__esModule", { value: true });
exports.scrollTo = exports.animateTo = exports.toggleWidthOrHeight = exports.percent2Rem = exports.rem2Percent = exports.px2Percent = exports.percent2px = exports.px2rem = exports.rem2px = exports.get1rem = exports.scrollFixedWatch... |
'use strict';
////////////////////////////////////////////////////////////////////////////////
// Helpers
// Merge objects
//
function assign(obj /*from1, from2, from3, ...*/) {
var sources = Array.prototype.slice.call(arguments, 1);
sources.forEach(function (source) {
if (!source) { return; }
Object.k... |
"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 (Object.protot... |
'use strict';
const { Select } = require('enquirer');
const prompt_select = new Select({
name: 'UI-list',
message: 'Select types of UI',
choices: ['Accordian', 'Checkbox', 'Dimmer', 'Dropdown', 'Embed','Modal']
});
const prompt_content_Accordian = new Select({
name: 'content',
message: 'In Accordian... |
/**
* Copyright (C) 2013 KO GmbH <<EMAIL>>
*
* @licstart
* This file is part of WebODF.
*
* WebODF is free software: you can redistribute it and/or modify it
* under the terms of the GNU Affero General Public License (GNU AGPL)
* as published by the Free Software Foundation, either version 3 of
* the License, ... |
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... |
/*
This is the implementation of the JSON OT type.
Spec is here: https://github.com/josephg/ShareJS/wiki/JSON-Operations
Note: This is being made obsolete. It will soon be replaced by the JSON2 type.
*/
/**
* UTILITY FUNCTIONS
*/
/**
* Checks if the passed object is an Array instance. Can't use Array.isArray
... |
import PropTypes from 'prop-types';
import {
GLOBAL_IMAGE_TYPE,
IMAGE_SIZE,
IMAGE_SHAPE,
IMAGE_TYPE,
} from './images';
import { CONTENT_MODULE } from './contentful';
import { PAGE_TYPES } from './settings';
import {
BREAKPOINTS_NAME,
ORIENTATION,
} from './breakpoints';
import { SOCIAL_NETWORK } from './s... |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
// 'use strict';
// // Set default node environment to development
// process.env.NODE_ENV = process.env.NODE_ENV || 'development';
// var express = require('express');
// var mongoose = require('mongoose');
// var config = require('./config/environment');
// // Connect to database
// mongoose.connect(config.mongo.u... |
import regeneratorRuntime from "regenerator-runtime";
function _arrayLikeToArray(arr, len) {
(null == len || len > arr.length) && (len = arr.length);
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
return arr2;
}
function _arrayWithHoles(arr) {
if (Array.isArray(arr)) return arr;
}
... |
// Copyright 2011 The Closure Library 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
//
// Unless requ... |
var min = require('./utils').min
var max = require('./utils').max
var findPointIndex = require('./utils').findPointIndex
var mapFrom = require('./utils').mapFrom
var arePointsEqual = require('./utils').arePointsEqual
var flattenDoubleArray = require('./utils').flattenDoubleArray
var distance = require('./utils').distan... |
// --------- Some general functions ------------//
// creates TOAST for swiping left/right when intake reminder appears
// CENTER notification
// TIMER for notification (in header)
// CLEAR notification / delete notification
// CREATE Notification
// --------- Notification Reminder Functions ---//
... |
'use strict';
const argv = require('minimist')(process.argv.slice(2));
const csv = require('csv');
const path = require('path');
const fs = require('fs');
const queue = require('d3-queue').queue;
const turf = require('@turf/turf');
const parser = require('real-changesets-parser');
const _ = require('underscore');
cons... |
'use strict';
/*
MIT License
Copyright © 2017 <NAME>
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, c... |
var financialCalcIni = function () {
//SUBTOTAL
$("#financialCalcSubTotals").data("AssayRateUnitCost", parseFloat(arguments[1]));
$("#financialCalcSubTotals").data("ImportPercentage", parseFloat(arguments[2]));
$("#financialCalcSubTotals").data("MerchantChargePercentage", parseFloat(arguments[3]));
$("... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
require("core-js/modules/es7.symbol.async-iterator");
require("core-js/modules/es6.symbol");
require("core-js/modules/es6.reflect.set");
require("core-js/modules/es6.reflect.get");
require("core-js/modules/es6... |
// The MIT License (MIT)
// Copyright (c) 1994-2018 The Sage Group plc or its licensors. All rights reserved.
//
// 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, ... |
const { performance } = require('perf_hooks')
const AStar = require('./lib/astar')
const Move = require('./lib/move')
const Movements = require('./lib/movements')
const gotoUtil = require('./lib/goto')
const Lock = require('./lib/lock')
const Vec3 = require('vec3').Vec3
const Physics = require('./lib/physics')
const... |
import { validTicks, tickValues, tickFormat, tickCount } from "../scale/ticks";
import LayerView from "./layerView";
import { isNumber } from "vega-util";
import smoothstep from "../utils/smoothstep";
import { shallowArrayEquals } from "../utils/arrayUtils";
import { FlexDimensions } from "../utils/layout/flexLayout";
... |
'use strict';
var avos = require("cloud/avos.js");
var cheerio = require('cheerio');
var cheerio1 = require('cheerio');
var async = require('async');
var urlsync = require('sync-request');;
exports.timerToFetchKuaiDiInfo = function (callback){
var expressOrderInfo_class = AV.Object.extend("ExpressOrderInfo");
... |
const formulario = document.getElementById('formulario');
const inputs = document.querySelectorAll('#formulario input');
const select = document.querySelectorAll('.form-select');
const expresiones = {
id: /^\d{2,14}$/,// 7 a 14 numeros.
tipo: /^[a-zA-ZÀ-ÿ\s]{4,15}$/, // Letras y espacios, pueden llevar acen... |
import { Color } from '../core/color.js';
import { math } from '../math/math.js';
import { Mat4 } from '../math/mat4.js';
import { Vec2 } from '../math/vec2.js';
import { Vec3 } from '../math/vec3.js';
import { Vec4 } from '../math/vec4.js';
import {
BLUR_GAUSSIAN,
LIGHTTYPE_DIRECTIONAL, LIGHTTYPE_OMNI, LIGHT... |
function SmartUnLoading() {
$(".divMessageBox").fadeOut(300, function() {
$(this).remove()
}), $(".LoadingBoxContainer").fadeOut(300, function() {
$(this).remove()
})
}
function getInternetExplorerVersion() {
var a = -1;
if ("Microsoft Internet Explorer" == navigator.appName) {
var b = navigator.userAgent,
... |
/*
* INTER-Mediator
* Copyright (c) INTER-Mediator Directive Committee (http://inter-mediator.org)
* This project started at the end of 2009 by <NAME> <EMAIL>.
*
* INTER-Mediator is supplied under MIT License.
* Please see the full license for details:
* https://github.com/INTER-Mediator/INTER-Mediator/blob/mast... |
// eslint-disable-next-line
import React from "react";
import { connect } from "react-redux";
import BaseComponent from "../../../containers/base";
import basicStyle from "../../../settings/basicStyle";
import {
ActionWrapper,
TableWrapper,
ButtonHolders,
TitleWrapper,
StatusTag,
ComponentTitle
} from "../.... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var tslib = require('tslib');
var espree = require('espree');
var path = _interopDefault(require('path'));
var remarkMdx = _i... |
const defaultTypes = require('./configs/defaultTypes');
const types = require('./configs/types');
const templates = require('./configs/templates');
module.exports = (baseProvider, options, app) => {
const _ = app.require('lodash');
const {
tab,
commentIfDeactivated,
checkAllKeysDeactiva... |
/*
* Requires:
* psiturk.js
* utils.js
*/
// Initalize psiturk object
var psiTurk = new PsiTurk(uniqueId, adServerLoc, mode);
var mycondition = condition; // these two variables are passed by the psiturk server process
var mycounterbalance = counterbalance; // they tell you which condition you... |
class HarmonyModifier {
constructor() {
this.id = "";
this.active = true;
this._constructorName = "HarmonyModifier";
}
modifyConstantHarmonyElements(elements, module) {
return elements;
}
}
// Adding voice line constraints where appropriate
// After the voice leading ... |
import { Readable, Writable } from 'stream';
import { stringify as qsStringify } from 'querystring';
const TransportException = Jymfony.Contracts.HttpClient.Exception.TransportException;
/**
* Merges and encodes a query array with a query string.
*
* @param {null|string} queryString
* @param {Object.<string, stri... |
export const APP_VERSION = '0.7.1';
// Music
export const allNotes = [
"c",
"c#",
"d",
"d#",
"e",
"f",
"f#",
"g",
"g#",
"a",
"a#",
"b",
];
export const allNotesEnh = [
"c",
"db",
"d",
"eb",
"fb",
"f",
"gb",
"g",
"ab",
"a",
"bb... |
import {UserEvents} from "../UserEvents/UserEvents.js";
import {View} from '../View/View.js';
import {WidgetConfig} from "../DataModel/Config/WidgetConfig.js";
let _barGraphWidgetFactory = null;
let _widgetFactory = null;
let _userEvents = null;
/**
* Responsible for setting up new LineWidgets
*
**/
export class ... |
///////////////////////////////////
// //
// Created on 08/2021 //
// @author: falj //
// @site: mathgames.falj.net //
// //
///////////////////////////////////
let fsshow;
let step = 0;
let real_step = 0;
let nstep;
let puzzleI... |
// (c) <NAME> 11.6.2021
let version = '2.2.2'; // update version here.
console.log("(c) <NAME>, clever.code, version:" + version);
var canvas, ctx;
var padx = pady = 20;
var cellw, cellh;
Number.prototype.pad = function(size) {
var s = String(this);
while (s.length < (size || 2)) {
s = '0' + s;
}
... |
//三大专利减缓按钮颜色切换
$(function() {
// 点击弹出提交之前的页面
$('#search-pt').on('click', beforePage);
// 获取参数传到表单
$('#keyWords0').blur(function() {
var v = $(this).val();
$('#keyWords01').val(v);
});
// 点击关闭或确定按钮,清空表单
$('#btnClose').on('click', remove_html);
$('#btnSure').on('click', remove_html);
$('#btnClose1').on('cl... |
var sp = require('schemapack'); // Serialization module
var bp = require('binary-parser-encoder'); // Binary parser module
var Parser = bp.Parser;
var toggle = require('endian-toggle');
var mDns = require('./dns');
var ip = require('./ip');
var icmp = require('./icmp');
var bootP = require('./bootp... |
// To access by a browser in another computer, use the external IP of machine running AttackMapServer
// from the same computer(only), you can use the internal IP.
// Example:
// - AttackMapServer machine:
// - Internal IP: 127.0.0.1
// - External IP: 192.168.11.106
var webSock = new WebSocket("ws:/127.0.0.1:8888/w... |
////////////////////////////////////////////////////////////////////////////////
// these constants set limits on what the creature can do.
const MIN_X_POSITION = 20;
const MIN_Y_POSITION = 20;
const MAX_X_POSITION = 460;
const MAX_Y_POSITION = 460;
const MIN_TURNS = 0;
const MAX_TURNS = 100;
const ENERGY_CAPACITY = ... |
import PropTypes from 'prop-types';
import React, { useEffect } from 'react';
import './addToHomeScreen.scss';
import DEFAULT_CONFIGURATION from './addToHomeScreenConfiguration.json';
export default function AddToHomeScreen(props) {
const DEFAULT_PROMPT = {
title: 'Do you want to install this application on yo... |
const { getProgram, convert } = require('@algo-builder/algob');
const { Runtime, AccountStore } = require('@algo-builder/runtime');
const { types, parsing } = require('@algo-builder/web');
const { assert } = require('chai');
const { ProposalType, Vote } = require('../scripts/run/common/common');
const {
now, mkPropos... |
// This is the main class called to launch the skills editor.
// Form applications always receive the object being worked on as a variable, so can use this.object to access it.
class EditPlayerSkills extends FormApplication{
constructor(...args){
super(...args);
if (this.object.ty... |
const checkIconSVG = `
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="15px" height="15px" viewBox="0 0 45.701 45.7" style="enable-background:new 0 0 45.701 45.7;" xml:space="preserve">
<path style="fill: #444;" d="M20.687,3... |
import fs__default from 'fs';
import path__default from 'path';
import { p as print_config_conflicts, c as copy_assets, b as posixify, r as resolve_entry, l as load_template, m as mkdirp, a as rimraf } from '../cli.js';
import { d as deep_merge, a as create_app, c as create_manifest_data } from './index2.js';
import { ... |
import Utils from 'misc/Utils';
import MeshStatic from 'mesh/meshStatic/MeshStatic';
import Remesh from 'editing/Remesh';
var Primitives = {};
var createPlaneArray = function(
lx = -0.5, ly = 0.0, lz = -0.5,
wx = 1.0, wy = 0.0, wz = 0.0,
hx = 0.0, hy = 0.0, hz = 1.0
) {
var faces = new Float32Array(4... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
var test3D,
texture,
editor,
presets = [];
var urlparams = {},
hash;
var q = document.URL.split("?")[1];
if (q != undefined) {
q = q.split("&");
for (var i = 0; i < q.length; i++) {
hash = q[i].split("=");
urlparams[hash[0]] = hash[1];
}
}
$(document).ready(function () {
texture = tgen.init();... |
import utils, { safeSetLink, safeSetProp } from './utils'
import {
belongsToType,
hasManyType,
hasOneType
} from './decorators'
import SimpleStore from './SimpleStore'
import LinkedCollection from './LinkedCollection'
const DATASTORE_DEFAULTS = {
/**
* Whether in-memory relations should be unlinked from re... |
const svgToDataUri = require('mini-svg-data-uri')
const plugin = require('tailwindcss/plugin')
const defaultTheme = require('tailwindcss/defaultTheme')
const colors = require('tailwindcss/colors')
const [baseFontSize, { lineHeight: baseLineHeight }] = defaultTheme.fontSize.base
const { spacing, borderWidth, borderRadiu... |
import React, { Component } from 'react';
import { connect } from 'react-redux' ;
import { bindActionCreators } from 'redux';
import TempoCurveVis from './tempoCurveVis';
import ErrorRibbonVis from './errorRibbonVis';
import DynamicsVis from './dynamicsVis';
import ZoomBox from './zoomBox';
class FeatureVis extends C... |
/*
Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed in the hope that... |
window.colorScale = d3.scale.category10()
function classifyCounties(e) { classifyPlaces(e, {placeType: 'county'}) }
function classifyStates(e) { classifyPlaces(e, {placeType: 'state'}) }
function classifyCountries(e) { classifyPlaces(e, {placeType: 'country'}) }
function classifyPlaces(e, options) {
var options = opt... |
/* @flow */
export const button_size_medium = '35px';
export const button_size_large = '40px';
export const button_size_jumbo = '44px';
export const checkbox_backgroundColor_checked = '#2ebf74';
export const checkbox_backgroundColor_checkedHover = '#76d7a4';
export const checkbox_borderColor = '#8e99ab';
export const c... |
// Set this to 'shellcode' to execute /final_shellcode.bin fetched from the server
var FINAL_PAYLOAD_TYPE = 'notepad'; // shellcode / notepad
var INSTRUMENTATION_TYPE = 'patch'; // rce / patch
var final_shellcode;
var BASE = 0x100000000;
// Exploit spray parameters
// TODO: experiment with different values for belo... |
/*
Copyright (c) 2012 <NAME>
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, modify, merge, publish,
distribute, sublicen... |
// Function for generating the period info of the schedule.
function generateScheduleInfo(data) {
var genericDescription;
var holidayDescription;
var isHoliday = false;
var items = [];
var isWeekInfo = false;
var isSpecialInfo = false;
var normalScheduleIsAvailable = false;
var isSpecialWeek = false;
// Turn o... |
var myData = [
{"imports":[],"name":"java-java.base"},
{"imports":["java-java.base"],"name":"java-java.compiler"},
{"imports":["java-java.base"],"name":"java-java.datatransfer"},
{"imports":["java-java.base"],"name":"java-java.instrument"},
{"imports":["java-java.base"],"name":"java-java.logging"},
{"imports":["j... |
const Discord = require("discord.js");
const Database = require("@replit/database");
const util = require("./util");
const db = new Database();
/*
LEADERBOARD
The leaderboard is a dictionary stored in the replit database under the "leaderboard" key.
leaderboard = {
"user1.id": score,
"user2.id": score
}
Eac... |
// define whether user can request live data, the current state that is being shown, and the current county being shown
window.requestAllowed = true;
window.state = null;
window.county = null;
// block request by setting requestAllowed to false and setting the current state and county
function blockRequest(state, coun... |
const Discord = require('discord.js') // discord.js modülü tanımlıyoruz.
const client = new Discord.Client() // client tanımalamsı
const { readdirSync } = require('fs'); // tanımlamalar
const { join } = require('path'); // tanımlamalar
const ayarlar = require('./ayarlar.json')
const db = require('quick.db');
clie... |
/**
* The following custom Leaflet control is a friendly copy, based on the source code
* by <NAME> who published it on his blog (http://odoe.net/blog/custom-leaflet-control/).
*/
var SCHEMA_ORG = "http://schema.org/"
// --- Client Side Model of all nodes annotated in the current DOM ---- //
var articleElements =... |
const cheerio = require("cheerio");
const { packageBCD } = require("./resolve-bcd");
const specs = require("browser-specs");
/** Extract and mutate the $ if it as a "Quick_Links" section.
* But only if it exists.
*
* If you had this:
*
* const $ = cheerio.load(`
* <div id="Quick_Links">Stuff</div>
* ... |
// 快速执行脚本和快速分发文件页面的执行结果页面
var timer = null;
/* 执行结果-滚动条显示隐藏 start */
$("#script-slide-panel .btn-return").on('click', function() {
$('#script-slide-panel').animate({
right : '0',
left : '100%'
}, 1000, function() {
$('body').css('overflow', "auto");
$('div.panel-setp-detail').addClass('none');
$('div.pane... |
var args = arguments[0] || {};
var callbackFunction = args.callback;
var CONN_REMOTE = 'Remote';
var CONN_LOCAL = 'Local';
var NETWORK_BTN_REMOTE_TITLE = "Remote Connection Enabled";
var NETWORK_BTN_LOCAL_TITLE = "Local Connection Enabled";
var DEFAULT_LIGHT_FOLDER_ADDRESS = "11111";
var DEFAULT_SCENE_FOLDER_ADDRESS ... |
import React, { createElement as h } from 'react'
import ReactDOM from 'react-dom'
import { keypath, setKeypath } from 'util/keypath.js'
import IssueState from 'issue-state.js'
import { PRMergeChangesButton } from './pr-actions-bar.js'
import Reviewers from './reviewers.js'
import { ReviewState, ReviewStateColors, rev... |
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbo... |
import 'babel-polyfill';
import _ from 'underscore';
import $ from 'jquery';
import { EventEmitter } from 'events';
import KO from 'knockout';
import Mousetrap from 'mousetrap';
import * as Constants from './helpers/constants';
import * as DOM from './helpers/dom';
import * as Navigation from './helpers/navigation';
i... |
/**
* This work is based on original code developed and copyrighted by TNO 2020.
* Subsequent contributions are licensed to you by the developers of such code and are
* made available to the Project under one or several contributor license agreements.
*
* This work is licensed to you under the Apache License, ... |
import Biscoint from 'biscoint-api-node';
import _ from 'lodash';
import { Telegraf, Markup } from 'telegraf';
import moment from 'moment';
import axios from 'axios';
import Bottleneck from "bottleneck";
// env variables
let apiKey = process.env.APIKEY
let apiSecret = process.env.APISECRET
let amount = process.env.AMO... |
'use strict';
/** @namespace DevKit */
var DevKit;
(function (DevKit) {
'use strict';
DevKit.SalesOrderApi = function (e) {
var EMPTY_STRING = '';
var f = '@OData.Community.Display.V1.FormattedValue';
function webApiField(entity, logicalName, schemaName, entityLogicalCollectionName, entityLogicalName, re... |
/**
* 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 ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);
if (Object.getOwnPro... |
// the game itself
var game;
// this object contains all customizable game options
// changing them will affect gameplay
var gameOptions = {
gameWidth: 800, // game width, in pixels
gameHeight: 1300, // game height, in pixels
tileSize: 100, // tile size, in pixels
fieldSize: 8, // field size, f... |
// Author: Pat
// Description: Get closest shuttle stop from geolocation and display time in min when next shuttle will arrive.
// Search TODO: items to fix a few things
let debug = 0; // 1 or 0 to display debug info in html
let counter = 0;
let closestLocation = document.getElementById("closestLocation");
let closest... |
/*
Code for Turk Experiments for analysis of "regression by eye"
Exp1 : Slope Selection by trend type in scatterplots
Three main factors:
Linear trend
Trigonometric trend
Quadratic model
Exp2 : Slope Selection by visualization type
Three main factors:
Scatterplot
Line graph
... |
const Directions = Object.freeze({
UP: 0,
RIGHT: 1,
DOWN: 2,
LEFT: 3,
});
class Cell {
constructor(code, rowIndex, colIndex) {
this.sides = code.split("");
this.rowIndex = parseInt(rowIndex);
this.colIndex = parseInt(colIndex);
this.cellEm = createGridCell(rowIndex, ... |
"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)... |
const countrySources = {
stJohns: 'https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_deaths_global.csv',
owid: 'https://raw.githubusercontent.com/owid/covid-19-data/master/public/data/ecdc/total_deaths.csv',
};
const usSources = {
nyt... |
const url = require('url')
const cbor = require('cbor')
const jwkToPem = require('jwk-to-pem')
const crypto = require('crypto')
const { sha256, unparseUUID, coseToJwk } = require('./util/util')
// Global map of registered attestation formats
// https://www.w3.org/TR/webauthn/#defined-attestation-formats
const attestat... |
let TEACHER_LIST_SCHEDULE = {};
let getRemoveImage = $("[name=removeImage]").attr('content');
let routeValidateTime = $("[name=route-validate-time]").attr('content');
let distance = $("[name=distance]").attr('content');
let lengthArray = [];
let listRemove = [];
let listExits = [];
let lengthTemp = [];
let listSaveRemo... |
import BigInteger from 'bigi'
import bs58 from 'bs58'
import bs58check from 'bs58check'
import C from 'crypto-js'
import CryptoJS from 'crypto-js'
import ecurve from 'ecurve'
import scrypt from './scrypt'
//import scrypt from 'react-native-scrypt';
import WIF from 'wif'
import { ec } from 'elliptic'
import long from 'l... |
var charList = {
mp1: ['mario', 'luigi', 'yoshi', 'peach', 'wario', 'dk'],
mp2: ['mario', 'luigi', 'yoshi', 'peach', 'wario', 'dk'],
mp3: ['mario', 'luigi', 'yoshi', 'peach', 'daisy', 'wario', 'waluigi', 'dk'],
mp4: ['mario', 'luigi', 'yoshi', 'peach', 'daisy', 'wario', 'waluigi', 'dk'],
mp5: ['mario', '... |
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import { StatusBar, Share, View } from 'react-native';
import { connect } from 'react-redux';
import ParallaxScroll from '@monterosa/react-native-parallax-scroll';
import { Kitsu } from 'app/config/api';
// TODO: Maybe replace this with c... |
$(document).ready(function(){
$('body')
.on('click','.javascript',function(ev){
var callback;
if(callback=$(this).attr('rel')){
if(window[callback]){
window[callback].call(this);
}
}
if ( ev && ev.preventDefault ) ev.preventDefault(); else window.event.returnValue = false; return ... |
/* eslint-disable react/sort-comp */
/* eslint-disable camelcase */
/* eslint-disable no-underscore-dangle */
import {
Button,
Card,
Checkbox,
Col,
Icon,
Modal,
notification,
Progress,
Radio,
Row,
Select,
Upload
} from 'antd';
import { connect } from 'dva';
import { routerRedux } from 'dva/route... |
import 'phaser';
import ImageTracer from '../ImageTracer';
class Game extends Phaser.Scene {
constructor(config) {
super('Game');
this.pCounter = 0;
}
debugUpdate() {
// For toggling the debug physics view and anything else
if (Phaser.Input.Keyboard.JustDown(this.keys.spacebar)) {
... |
/* jshint maxlen:200 */
var utils = require('../utils');
var C = require('../constants');
var TilemapParser = {
/**
* Parse tilemap data from the cache and creates a Tilemap object.
*
* @method parse
* @param {Phaser.Game} game - Game reference to the currently running game.
* @param {stri... |
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbo... |
//Add, Save, Edit and Delete functions code
$(".btnEdit_granel").bind("click", Edit_granel);
$(".btnDelete_granel").bind("click", Delete_granel);
$("#btn_granel").bind("click", Add_granel);
var id_formato = [];
var id_variedad = [];
var nombres_formatos= [];
var nombres_var... |
const dns = require('dns')
const { EventEmitter } = require('events')
const Table = require('kademlia-routing-table')
const TOS = require('time-ordered-set')
const sodium = require('sodium-universal')
const c = require('compact-encoding')
const NatSampler = require('nat-sampler')
const b4a = require('b4a')
const IO = r... |
/* global AFRAME, THREE, MediaStream, HTMLMediaElement */
const { ResonanceAudio } = require('resonance-audio')
const { isVec3Set, onceWhenLoaded } = require('./utils')
const warn = AFRAME.utils.debug('components:resonance-audio-src:warn')
/**
* The Object3D name of the visualization.
*/
const visName = 'audio-src'... |
'use strict'
const EventEmitter = require('events')
const SimpleStats = require('simple-statistics')
const request = require('request')
const Q = require('q')
const _ = require('underscore')
const libratoAggegationFunctions = ['average', 'sum', 'count', 'min', 'max']
const clientAggegationFunctions = ['mean', 'median... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.