text stringlengths 5.97k 41.2k |
|---|
var randf = function (lo, hi) { return Math.random() * (hi - lo) + lo; }
var randi = function (lo, hi) { return Math.floor(randf(lo, hi)); }
// A 2D vector utility
var Vec = function (x, y) {
this.x = x;
this.y = y;
}
Vec.prototype = {
// utilities
dist_from: function (v) { return Math.sqrt(Math.pow(this.x - ... |
import { HTTP } from 'meteor/http';
// URL prefix for tests to talk to
let _XHR_URL_PREFIX = '/http_test_responder';
const url_base = function () {
if (Meteor.isServer) {
const address = WebApp.httpServer.address();
return 'http://127.0.0.1:' + address.port;
} else {
return '';
}
}
const url_prefix... |
import '../css/style.css';
import * as d3 from 'd3';
import Papa from 'papaparse';
// import myCyto from './MyCyto';
import OrCha from './OrCha';
import { isNumeric, randomize, d3ToCyto, saveSvg } from './functions.js';
var editors = {};
var orcha;
// var cyto;
var data = {
streams: [],
links: [],
t... |
/* global BigInt */
const Command = require('../../structures/Command');
const SubMenu = require('../../structures/SubMenu');
const MultiSelect = require('../../structures/MultiSelect');
const WebhookFilters = require('../../structures/WebhookFilters');
const GenericPrompt = require('../../structures/GenericPrompt');
c... |
/****************************************************************************
Copyright (c) 2008-2010 <NAME>
Copyright (c) 2011-2012 cocos2d-x.org
Copyright (c) 2013-2014 Chukong Technologies Inc.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this softw... |
$("#frmEditCandidate").validate({
rules: {
first_name_edit: {
required: true,
},last_name_edit : {
required : true
},email_edit : {
required : true
},company_edit : {
required : true
},vacancy_edit : {
required : true
... |
import moment from "moment-timezone";
import splCfg from "../config";
import splSrv from "../services";
import { INITSplAPI, INITSplSessionMgr } from "./api";
import { INITGeotabTpmsTemptracLib } from "./api/temptrac-tpms";
import { INITSplSensorDataTools } from "./sensor-data-tools";
import { showMsg, splToolsHelper }... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... |
/*
更新时间: 2020-06-15 15:35 取消打卡挑战,ck时效短,可弃坑
本脚本仅适用于京东来客有礼每日获取京豆
获取Cookie方法:
1.将下方[rewrite_local]和[MITM]地址复制的相应的区域
下,
2.微信搜索'来客有礼'小程序,登陆京东账号,点击'发现',即可获取Cookie,获取后请禁用或注释掉❗️
3.非专业人士制作,欢迎各位大佬提出宝贵意见和指导
4.5月17日增加自动兑换京豆,需设置兑换京豆数,现可根据100、200和500设置,不可设置随机兑换数,根据页面填写兑换数值,默认设置500,注意是京豆数❗️ 已取消自动兑换‼️
5.增加打卡挑战赛自动报名,需要5天后手动领取瓜分奖励‼️
b... |
'use strict';
var XLSX = require('xlsx');
var htmlparser = require('htmlparser');
var util = require('util');
var lodash = require('norman-server-tp').lodash;
var entityHelper = require('./entityHelper.js');
var url = require('url');
var R8 = 'No random text allowed around the data area of the Object or mapping table... |
// Copyright 2018-2021, University of Colorado Boulder
/**
* Model for the "Waves" screen and other derivative screens. This model supports two sources, even though the waves
* screen only uses one. The controls are in a metric coordinate frame, and there is a transformation to convert
* metric coordinates to lat... |
/* jshint globalstrict: true */
/* jshint browser: true */
/* jshint devel: true */
/* jshint jquery: true */
/* global util */
/* global graphics */
/* global INITIAL_SERVER_NUMBER */
'use strict';
var raft = {};
var RPC_TIMEOUT = 50000;
var MIN_RPC_LATENCY = 10000;
var MAX_RPC_LATENCY = 15000;
var ELECTION_TIMEOUT =... |
import $ from "dom7";
import History from "../../utils/history";
import Support from "../../utils/support";
import Device from "../../utils/device";
import Utils from "../../utils/utils";
function SwipeBack(r) {
const router = r;
const { $el, $navbarEl, app, params } = router;
let isTouched = false;
le... |
import { setValue, setInternalValue } from './value';
import {
handleError,
isPropertyDefined,
getSuggestionQuery,
handleResponse,
executeQueryListener,
handleResponseMSearch,
getQuerySuggestionsId,
} from './utils';
import { pushToStreamHits } from './hits';
import {
logQuery,
setLoading,
logCombinedQuery,
... |
#!/usr/bin/env node
var path = require ('path');
var fs = require ('fs-extra');
var async = require ('async');
var required = require ('required');
var resolve = require ('resolve');
var glob = require ('glob');
var bunyan = require ('bunyan');
var filth ... |
// Template by http://github.com/jackdougherty/leaflet-map/
// See Leaflet tutorial links in README.md
// set up the map center and zoom level
var map = L.map('map', {
center: [41.76, -72.67], // [41.5, -72.7] for Connecticut; [41.76, -72.67] for Hartford county or city
zoom: 9, // zoom 9 for Connecticut; 10 for H... |
var _ = require('lodash');
var formatter = require('./formatter');
var numberUtils = require('./numberUtils');
var Area = require('./Area');
var areaUtils = require('./areaUtils');
/** Processing functions should not exist
* Rather processing should be done in the corresponding model: Summary, Unit, Building
* For now... |
import React, { Component } from "react";
import ProjectContract from "./contracts/Project.json";
import getWeb3 from "./utils/getWeb3";
import Button from 'react-bootstrap/lib/Button';
import Form from 'react-bootstrap/lib/Form';
import FormGroup from 'react-bootstrap/lib/FormGroup';
import FormControl from 'react-bo... |
// JavaScript Document
var lotude = '';
var latude = '';
var Address = '';
var geocoder = '';
var infowindow;
var marker;
var source, destination, via;
var directionsDisplay;
var directionsService;
var userName = '';
var userID = '';
var userEmail = '';
var status = '';
var map;
var infoWindow;
var hostserver = 'http:... |
/*
MIT License
Copyright (c) 2021 <NAME>
My Website : https://www.maskoding.com
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 us... |
var main = {
config : {
add:base + '/role_toAdd.do',
edit:base + '/role_toAdd.do',
getTreeUrl : base + '/role_getList.do',
getInfo : base + '/role_getBean.do',
doSaveUrl : base + '/role_save.do',
doDelUrl : base + '/role_delete.do',
getAllAppListUrl: base + '/role_getAllAppList.do',
getAppUrl: base +... |
var color = d3.scale.category10();
var width = document.getElementsByTagName("body")[0].offsetWidth,
height = 768;
var x_scale = d3.scale.linear()
.range([-200, width + 1000]);
var y_scale = d3.scale.linear()
.range([-350, height + 400]);
var force = d3.layout.force()
.charge(-80)
// .charge(fun... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Ttimer_1 = require("../../tools/Ttimer");
const TbaseService_1 = require("../TbaseService");
const ChannelsManager_1 = require("./ChannelsManager");
const Client_1 = require("./Client");
const uuid = require("uuid");
const ws = re... |
const path = require('path');
const builtinProfiles = require('./builtin_profiles');
const { AppSetting } = require('./app_setting');
const { BagItProfileInfo } = require('./bagit_profile_info');
const { Choice } = require('./choice');
const Const = require('./constants');
const { Field } = require('./field');
const { ... |
/*
Kung Fig
Copyright (c) 2015 - 2021 <NAME>
The MIT License (MIT)
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, cop... |
const minVersion = 10423; // client
const debug = false;
const PORT = process.env.PORT || 5000;
if (debug) console.log("listening to port", PORT);
const CPUs = require("os").cpus().length;
if (debug) console.log("CPUs", CPUs);
const cluster = require('cluster');
const http = require('http');
const WebSocket = requir... |
/*
* Please see the included README.md file for license terms and conditions.
*/
/*jslint browser:true, devel:true, white:true, vars:true */
/*global $:false, intel:false app:false, dev:false, cordova:false */
// This file contains your event handlers, the center of your application.
// See app.initEvents() in i... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Switch, Route, NavLink} from 'react-router-dom';
import classNames from 'classnames';
import compose from 'recompose/compose';
import AppBar from 'material-ui/AppBar';
import Drawer from 'material-ui/Drawer';
import SwipeableDrawer ... |
var endpointRunSim = '/api/sim/runsim';
var endpointErlangPdf = '/api/sim/erlangpdf';
var endpointSaveSim = '/api/sim/'
//var chartInputLos;
var chartInputCat1;
var chartInputCat2;
var chartInputCat3;
var chartOutputMedication;
var chartOutputResources;
var chartOutputConsultations
const csrftoken = $("[name=csrfmiddle... |
// Copyright (c) 2016 <NAME>.
// All rights reserved.
/*
* Initialize variables for parallelCoordinates display
*/
var pcAppMFI = pcAppMFI || {};
pcAppMFI.origData;
pcAppMFI.flowData;
pcAppMFI.background;
pcAppMFI.foreground;
pcAppMFI.selectedLines = [];
pcAppMFI.selectedPopulations = [];
pcAppMFI.selectedSamples = [... |
//@format
// Guidelines for building the program:
// - Opening app:
// - - If GPS signal: Show white canvas with recorded smileys, when loss of signal show map and radial menu, so smiley can be chosen
// - - If NO GPS signal: Ask person to get GPS signal - can't place a simley if no position is known
//
//
var data = ... |
// keeps track of the currently selected PID
// jsTree does not have a way to add extended data to the element to retreive on selection
// which is.. quite lame
//
var CURR_PID = 0;
var CURR_PJSON = {};
var LICENSE_TREE = {};
var VERBOSE = false;
// helper function
function exists(a) {return (a!=undefined && a!=null... |
/*
* Copyright 2013 Intel 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 law or agreed ... |
let supervillains = [
"Abattoir",
"<NAME>",
"<NAME>",
"Absorbing Man",
"Acolytes",
"Acrobat",
"Advanced Idea Mechanics",
"Agamemno",
"Agent H of HYDRA",
"Al-Tariq",
"<NAME>",
"<NAME>",
"Alkhema",
"Allatou",
"Amazing Grace",
"Amazo",
"Americop",
"<NAME>",
"Amygdala",
"Anaconda",
"Anarky",
"Animora"... |
/**
* Created by armin on 12/26/16.
*/
function getParameterByName(name, url) {
if (!url) {
url = window.location.href;
}
name = name.replace(/[\[\]]/g, "\\$&");
var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
results = regex.exec(url);
if (!results) return null;
... |
document.onkeydown = function (e) {
var keyCode = e.keyCode;
if(keyCode == 13) {
startButton.checked = true;
animation()
}
};
function animation() {
setTimeout(onStart, 500);
}
function onStart() {
wrapper = document.getElementById("wrapperID");
wrapper.style.display="none"... |
const canv = document.querySelector('canvas');
const ctx = canv.getContext('2d');
canv.width = 1000;
canv.height = 500;
const canH = canv.height;
const canW = canv.width;
const ballSize = 20;
let ballX = canW /2 - ballSize /2;
let ballY = canH /2 - ballSize /2;
const paddleH = 100;
const paddleW = 20;
const player... |
/** Utilities and algorithms. */
const aStar = require('a-star');
// Helpers.
/** Print a matrix. */
const showMat = mx => mx.map(r => r.join('')).join('\n');
/** Basic range to list function. */
const range = (min, max) => {
let arr = [];
for (let k = min; k < max; k++) arr.push(k);
return arr;
};
/** Flatten an... |
<!--
function silentError(){return true}
window.onerror=silentError;
if (self.location!=top.location) top.location=''+self.location;
// BROWSER DETECTION
ie4 = (navigator.appName.indexOf("Microsoft")>=0 && parseInt(navigator.appVersion)>3) ? true:false;
ns4 = ((navigator.appName=="Netscape" || navigator.appName=="O... |
import { db } from 'db';
import { Item, placeholderItem } from 'db/item';
import { Component } from 'component';
import { HTML } from 'lib/HTML';
import { filenameFromPath } from 'utils/paths.js';
import { modalConstructor } from 'ui/modal';
import './index.css';
class RelatedItems extends Component {
constructor(de... |
/**********
🐬Author: Github@toulanboy
📕地址:https://github.com/toulanboy/scripts
📌不定期更新各种签到、有趣的脚本,欢迎star🌟
📕更多有趣脚本:https://t.me/cool_scripts
【配置步骤,请认真阅读】
1. 根据你当前的软件,配置好srcipt。 Tips:由于是远程文件,记得顺便更新文件。
2. 前往boxjs,订阅应用(地址见下方),填写你需要监控的京东链接和目标价格。
🔅BoxJs订阅地址:https://raw.githubusercontent.com/tou... |
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... |
// # exemplar.js
"use strict";
const Stream = require('./stream');
const WriteBuffer = require('./write-buffer.js');
const NAMES = require('./exemplar-props');
const FileType = require('./file-types');
const LotObject = require('./lot-object');
const { makeEnum, invert, hex } = require('./util');
const Type = makeEnum... |
import arrays from 'arrays';
import { makeHeatSolver } from 'models/energy2d/models/physics-solvers/heat-solver';
import { makeHeatSolverGPU } from 'models/energy2d/models/physics-solvers-gpu/heat-solver-gpu';
import { makeFluidSolver } from 'models/energy2d/models/physics-solvers/fluid-solver';
import { makeFluidSo... |
var Player = {
HUMAN: "human",
COMPUTER: "computer",
};
function AIState(grid)
{
if (!grid)
return;
this.size = grid.size;
this.player = Player.HUMAN;
this.lastMove = null;
this.cells = this.empty();
for (var x = 0; x < this.size; x++) {
for (var y = 0; y < this.size; y++) {
if (grid.cel... |
//-----------------------------------------------------------------------------
// Galv's Diagonal Movement
//-----------------------------------------------------------------------------
// For: RPGMAKER MV
// GALV_DiagonalMovement.js
//-----------------------------------------------------------------------------
/... |
/**
* SlackController
*
* @description :: Server-side logic for converting Jira
* events to Slack API calls.
*/
'use strict';
const apiToken = process.env.SLACK_TOKEN || sails.config.jira2slack.slackToken;
const Slack = require('slack-node');
const slack = new Slack(apiToken);
const accessToken = process.env.ACCE... |
MOBILE=window.mobilecheck();
ENUM_GROUND = 255;
ENUM_AIR=0;
ENUM_COIN=1;
ENUM_END=2;
ENUM_DIE=3;
ENUM_ROCAMBOLLI=4;
ENUM_GAMEEND=5;
COINS = 0;
ROCAMBOLLIS = [];
GAMED_ENDED = false;
GAMED_ENDED1 = false;
right_accell = 0;
left_accell = 0;
lastpressframe = 0;
var first_action = 0;
function gameEndFinal(){
var goode... |
const SubjectAPI =
"https://kufillinggood.appspot.com.storage.googleapis.com/SubjectOpen.json";
var subjectData = [];
var Sess = {
subjectData: [],
BuuData: [],
FixedSubject: [],
FixedSubjectInfo: [],
timetable: [[], [], [], [], [], [], []],
canAdd: [],
creditLimit: 22,
currentCred... |
"use strict";
let ta = require("./timeago.js");
let seq = require("./promise-sequential.js");
String.prototype.replaceAll = function(search, replacement) {
let target = this;
return target.replace(new RegExp(search, 'g'), replacement);
}
String.prototype.count = function(search) {
return (this.match(new RegExp(searc... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.WeeklySharedStreetsLinearBins = exports.PeriodSize = exports.generateBinId = exports.getBinPositionFromLocation = exports.getBinLength = exports.getBinCountFromLength = void 0;
const linearProto = require('./proto/linear.js');
var fs =... |
// Copyright (c) 2020, <NAME>, <NAME> and contributors
// For license information, please see license.txt
// store request_for_quotation and related data in here
window.rfq_dataset = {
items_filter_arr: {}
}
let make_rfq_dataset_itemsfilter = (frm, item_name, order_by)=>{
// filter and sort items
if(order_by==='... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _trim2 = require('lodash/trim');
var _trim3 = _interopRequireDefault(_trim2);
var _trimEnd2 = require('lodash/trimEnd');
var _trimEnd3 = _interopRequireDefault(_trimEnd2);
var _last2 = require('lodash/last');
var _last3 = _interop... |
/**************************-NX-NETCINEMATIX-****************************************************************/
// (c) copyright NetCinematics 2018-2019. All rights reserved. See EULA. No distribution without permission.
// for distribution opportunities contact <EMAIL> - Open-source templates available.
/***************... |
"use strict";
var $babel = require("babel-core");
var $util = require("./util");
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#Reserved_keywords_as_of_ECMAScript_2015
// TODO Remove this after https://github.com/rollup/rollup/issues/1321 gets fixed
var isReservedWord = /^(?:bre... |
/**
* @license
* Copyright (C) 2020 Tutorbook
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option) any
* later version.
*
* This... |
/*-------------------------------------------------------------------------
* HNUSolarModel.js
* Calculate solar heat gain of an indoor human body and convert it into Delta MRT
*-------------------------------------------------------------------------*/
function HNUSolar(Position, Width, Height, Bottom, Tsol, Rfloo... |
import * as swcHelpers from "@swc/helpers";
import algoliasearchHelper from "algoliasearch-helper";
import createWidgetsManager from "./createWidgetsManager";
import { HIGHLIGHT_TAGS } from "./highlight";
import { hasMultipleIndices } from "./indexUtils";
import { version as ReactVersion } from "react";
import version ... |
/**
* DevExtreme (ui/scheduler/ui.scheduler.timeline.js)
* Version: 18.2.5
* Build date: Wed Jan 23 2019
*
* Copyright (c) 2012 - 2019 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
"use strict";
var $ = require("../../core/rend... |
"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... |
/**
* @remix-run/server-runtime v1.1.3
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var da... |
var assert = require('assert');
var BN = require('../').BN;
describe('BN', function() {
it('should work with Number input', function() {
assert.equal(new BN(12345).toString(16), '3039');
});
it('should work with String input', function() {
assert.equal(new BN('29048849665247').toString(16),
... |
"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];
})... |
function generateLineChart(){
var margin = {top: 20, right: 20, bottom: 25, left: 55},
width = $("#line_total").width() - margin.left - margin.right,
height = $("#line_total").height() - margin.top - margin.bottom;
var x = d3.time.scale()
.range([0, width]);
var y = d3.scale.linear... |
var socketClusterServer = require('socketcluster-server');
var EventEmitter = require('events').EventEmitter;
var crypto = require('crypto');
var uuid = require('uuid');
var http = require('http');
var https = require('https');
var fs = require('fs');
var base64id = require('base64id');
var async = require('async');
va... |
var DATA = null;
var SPEED_MODE = 0;
var CLOCK_RATE = 100;
var COLOR_ON = "#00c6ff";
var COLOR_OFF = "#202020";
var PANE = "dashboard";
var WEATHER_CACHE = [
"ExtraSunny", "Clear","Clouds","Smog","Foggy","Overcast","Raining",
"ThunderStorm","Clearing","Neutral","Snowing","Blizzard","Snowlight",
"Christmas"
... |
/*
* Copyright 2003-2006, 2009, 2017, United States Government, as represented by the Administrator of the
* National Aeronautics and Space Administration. All rights reserved.
*
* The NASAWorldWind/WebWorldWind platform is licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file... |
// This will be the object that will contain the Vue attributes
// and be used to initialize it.
let app = {};
// Given an empty app object, initializes it filling its attributes,
// creates a Vue instance, and then initializes the Vue instance.
let init = (app) => {
// This is the Vue data.
app.data = {
... |
/**
* DateStorage structure : Immutable.Map {
* y : Immutable.Map {
* m : Immutable.Map {
* d : Immutable.Map {
* h : Immutable.List [{
* d : Date,
* p : Immutable.Map => state (Integer)
* }]
* }
* }
* }
* }
*/
import Immutable from 'immutable';
import DateTools ... |
/*
miscUtilities.js contains utility functions reused in multiple places throughout the application
*/
import Vuex from "vuex";
import Vue from "vue";
import store from "../store/index";
// returns if the object definition is an object or not
// "duplicate function, use canInherit or isDefnObj, not both"
export fun... |
var Q = require("q");
var gapi = require('googleapis');
var path = require('path');
var uuid = require('node-uuid');
var BACKREF_KEY = "originalProgram";
function start(config, onServerReady) {
var express = require('express');
var cookieSession = require('cookie-session');
var cookieParser = require('cookie-pa... |
import * as dateFns from 'date-fns'
import * as R from 'ramda'
import * as React from 'react'
import { FormattedPlural } from 'react-intl'
import { Link } from 'react-router-dom'
import * as M from '@material-ui/core'
import { fade } from '@material-ui/core/styles'
import JsonDisplay from 'components/JsonDisplay'
impo... |
const fs = require('fs');
const execa = require('execa');
const stripAnsi = require('strip-ansi');
const {
createPackageVolume,
removePackageVolume,
removeVolume,
createVolume,
} = require('./volumes');
const { removeContainer, getContainerStateSync } = require('./containers');
const { files } = requir... |
/*
Copyright 2021, Kontron AIS GmbH
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, distr... |
const { LiquidPledging, LPVault, Kernel } = require('@giveth/liquidpledging-contract');
const { LPPCappedMilestone } = require('@giveth/lpp-capped-milestone');
const { BridgedMilestone, LPMilestone } = require('@giveth/lpp-milestones');
const { GivethBridge } = require('@giveth/bridge');
const semaphore = require('sema... |
var fs = require("fs-extra");
var path = require('path');
var yaml = require('js-yaml');
var DataPacksErrorHandling = module.exports = function(vlocity) {
this.vlocity = vlocity || {};
this.errorHandlingDefinition = yaml.safeLoad(fs.readFileSync(path.join(__dirname, "datapackserrorhandling.yaml"), 'utf8'));
};... |
import _ from 'lodash/fp'; // eslint-disable-line no-restricted-imports
import { getDefaultFormState } from '@department-of-veterans-affairs/react-jsonschema-form/lib/utils';
import { checkValidSchema, createFormPageList } from '../helpers';
function isHiddenField(schema) {
return !!schema['ui:collapsed'] || !!sche... |
"use strict";
/*
* Created with @iobroker/create-adapter v1.26.0
*/
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 (... |
const fs = require('fs');
const path = require('path');
app.base_path = (...paths) => {
return app.make('path').join(__dirname, '..', ...paths);
};
app.require = (path) => require(app.base_path(path));
app.resource_path = (...paths) => app.base_path('resources', ...paths);
app.storage_path = (...paths) => app.base_... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var EscapeSequences_1 = require("./EscapeSequences");
var Charsets_1 = require("./Charsets");
var normalStateHandler = {};
normalStateHandler[EscapeSequences_1.C0.BEL] = function (parser, handler) { return handler.bell(); };
normalStateHandler... |
"use strict";
var Util = {
'Debug': function() {},
'Info': console.log,
'Error': console.error,
}
class GotQuitPacket extends Error { };
class NotEnoughBytes extends Error { };
class UndefinedPacket extends Error { };
class UndefinedQueueFormat extends Error { };
class UndefinedRLEMethod extends Error { };
class O... |
// Detects webgl
if ( ! Detector.webgl ) {
Detector.addGetWebGLMessage();
document.getElementById( 'container' ).innerHTML = "";
}
// - Global variables -
// Graphics variables
var container, stats;
var camera, controls, scene, renderer;
var textureLoader;
var clock = new THREE.Clock();
var... |
import {utils} from "../XKTModel/lib/utils.js";
import {math} from "../lib/math.js";
import {parse} from '@loaders.gl/core';
import {GLTFLoader} from '@loaders.gl/gltf';
/**
* @desc Parses glTF into an {@link XKTModel}, supporting ````.glb```` and textures.
*
* * Supports ````.glb```` and textures
* * For a light... |
const {Fragment} = require("./fragment")
const {Mark} = require("./mark")
class ContentExpr {
constructor(nodeType, elements, inlineContent) {
this.nodeType = nodeType
this.elements = elements
this.inlineContent = inlineContent
}
get isLeaf() {
return this.elements.length == 0
}
start(attrs... |
import { TYPE, OPERATOR, MUTATION } from './condition';
import {
assert,
hasOwn,
isString,
isObject,
isArray,
isArrayOfObjects,
each,
} from '@twipped/utils';
export const OPERATOR_LABELS = {
[OPERATOR.EQUAL]: 'Equal to',
[OPERATOR.NOT_EQUAL]: 'Not equal to',
[OPERATOR.LIKE]: 'Li... |
/*Template.post_item.events({
'click .getbtn': function(){
$('body').css('color','red');
$('.ownerimg').attr('src','https://avatars3.githubusercontent.com/u/7588279?s=140');
Posts.update({_id: Posts.findOne()._id }, {$set: {owner: Posts.findOne().author }} );
//ex. {_id: player._id}, {$set: {score: ... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.OpMonDatasource = undefined;
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; de... |
import React, { Component } from 'react';
import { View, ScrollView, Text, Platform, Alert, BackHandler } from 'react-native';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { StackActions, NavigationActions } from 'react-navigation';
import SystemSetting from 'react-native-sy... |
import React from "react";
import { withSnackbar } from "notistack";
import { withStyles } from "@material-ui/core/styles";
import { Button, Tooltip, Typography, Grid } from "@material-ui/core";
import IconWarning from "@material-ui/icons/Warning";
import CallMadeIcon from "@material-ui/icons/CallMade";
import InfoIco... |
import * as domUtils from './dom';
import * as arrayUtils from './array';
//nodes utils
function getOwnFirstVisibleTextNode (el) {
var children = el.childNodes;
var childrenLength = domUtils.getChildNodesLength(children);
if (!childrenLength && isVisibleTextNode(el))
return el;
return ... |
///////////////////////////////////////////////
//////////Author: <NAME>//////////////
///////////////////////////////////////////////
"use strict";
////////////////////////////////////////////////////////////////
//////ON LOAD///////////////////////////////////////////////////
///////////////////////////////////////... |
searchable('input.table-search', 'table.searchable');
function searchable(input, table){
var input = document.querySelector(input);
var table = document.querySelector(table);
if(input !== null){
input.addEventListener('change', function(){
var filter = this.value.toUpperCase();
... |
var webAudioMediaStreamSources = [];
function convertToAudioStream(mediaStream) {
if (!mediaStream) {
throw 'MediaStream is mandatory.';
}
if (mediaStream.getVideoTracks && !mediaStream.getVideoTracks().length) {
return mediaStream;
}
var context = new AudioContext();
var medi... |
var v_nodeMenuCode = "";
/**
* @함수명: onLoad
* @작성일: 2014. 09. 29.
* @작성자:
* @설명: 로딩 및 Event
* @param
*/
$(document).ready(function(){
fnMakeEventComponent_99600(); // 버튼 이벤트 등록
$(".form_date").datetimepicker({
language: 'ko',
weekStart: 1,
todayBtn: 1,
autoclose:... |
import { isToday, isYesterday } from 'date-fns'
import { differenceInCalendarMonths } from 'date-fns/fp'
import _ from 'lodash/fp'
import * as qs from 'qs'
import { forwardRef, memo, useEffect, useRef, useState } from 'react'
import { div, h, span } from 'react-hyperscript-helpers'
import { v4 as uuid } from 'uuid'
e... |
// English Numbers
function numbers10(){
let nu1=document.querySelector(".n1")
let nu2=document.querySelector(".n2")
let nu3=document.querySelector(".n3")
let nu4=document.querySelector(".n4")
let nu5=document.querySelector(".n5")
let nu6=document.querySelector(".n6")
let nu7=document.querySelector(".n7")
let nu8=docu... |
/*jslint node: true */
/*global Future, Log, xml, checkResult */
var http = require("http");
var https = require("https");
var url = require("url"); //required to parse urls
if (!console.trace) {
console.trace = function () { "use strict"; };
}
var httpClient = (function () {
"use strict";
var proxy = {port: 0, h... |
/**
Copyright 2018 Alibaba Group
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, softwar... |
var MielScene = function(fps, gameHost, config) {
//Phaser.Scene.apply(this, arguments);
if (config == undefined) {
this._config = { key: this.getKey() };
} else {
this._config = config;
this._config.key = this.getKey();
}
Phaser.Scene.call(this, this._config);
this._fp... |
"use strict"
/*
* Contains id's of context-menus.
* The most recently clicked is at the end of the queue.
* See ClickMenu.reorder()
*/
let contextMenuQueue = []
/**
* Create context menu with custom contents.
* Can be used like this:
let cm = new ClickMenu(event, 'my-context-menu')
let some_element = $('<a>'... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.