text stringlengths 8.5k 48.7k |
|---|
/*
* Copyright (C) 2011-2013 by NonStop Games
* Please refer to license.txt for licensing details
*
* Nonstop-games utils.js
*
*/
"use strict";
Function.prototype.inherits = function( parent ) {
var that = this;
var ctor = function() { this.constructor = that; };
ctor.prototype = parent.prototype;
this.pro... |
/*
* lib/datasource-manta.js: implementation of Datasource for Manta-based data
* sources
*/
var mod_assertplus = require('assert-plus');
var mod_manta = require('manta');
var mod_fs = require('fs');
var mod_fstream = require('fstream');
var mod_jsprim = require('jsprim');
var mod_path = require('path');
var mod_st... |
'use strict';
let blacklist = [];
let prevURLTracker = {};
const BLACKLIST_ENDPOINT = 'https://stoptabnabbing.online/get_blacklist';
const MALICIOUS_PAGE_WARNING = 'Warning! This page is probably malicious\n' +
'Do you want to leave? If yes, press ok. If no, press cancel.';
function init() {
refreshBlacklist(... |
$(function () {
// 修正第二个modle关闭引发的scroll表现不正确的Bug
$('#newMasterData-modal').on('hide.bs.modal', function () {
setTimeout(function () {
$('body').addClass('modal-open');
}, 510);
});
// 新建临时主数据options
// 加载级别下拉列表
loadMedicalOrgLevel('#cn_medicalOrgLevel');
// 加载等次下拉列表
... |
/*********************************************************************
*
* mj-page-svg.js
*
* Implements an API to MathJax in node.js so that MathJax can be
* used server-side to generate SVG, MathML, or images (the latter
* requires an external library, batik, to do the svg to png
* conversion). This API ... |
var gl
function Stage(canvID) {
DisplayObjectContainer.call(this)
document.body.setAttribute('style', 'margin:0; overflow:hidden')
var meta = document.createElement('meta')
meta.setAttribute('name', 'viewport')
meta.setAttribute(
'content',
'width=device-width, minimum-scale=1.0, maximum-s... |
// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
// guide
// globals
// sim_worker
// sim_output
// constants
// parameter_name_list
// heat_options_json
// heat_options_print
// solar_options_json
// solar_options_print
// epc_api_url
// functions
// 'initiate ... |
class CartPoleInfo
{
constructor()
{
this.episodeUpdateSteps = 0;
this.episodeRewards = [];
this.episodeActions = [];
this.episodeStates = [];
//this.episodeConcatStates = [];
this.discountedEpisodeRewards = [];
}
reset()
{
this.episodeUpdat... |
const PREC = {
COMMENT: -2,
CURLY_BLOCK: 1,
DO_BLOCK: -1,
AND: -2,
OR: -2,
NOT: 5,
DEFINED: 10,
ALIAS: 11,
ASSIGN: 15,
RESCUE: 16,
CONDITIONAL: 20,
RANGE: 25,
BOOLEAN_OR: 30,
BOOLEAN_AND: 35,
RELATIONAL: 40,
COMPARISON: 45,
BITWISE_OR: 50,
BITWISE_AND: 55,
CALL: 56,
SHIFT: 60,
... |
import Url from 'url';
import sha256 from 'crypto-js/sha256';
import WebexPlugin from '../webex-plugin';
import ServiceCatalog from './service-catalog';
import ServiceRegistry from './service-registry';
import ServiceState from './service-state';
const trailingSlashes = /(?:^\/)|(?:\/$)/;
/* eslint-disable no-und... |
/*
* Copyright 2017-19 IBM 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 ... |
import eventsEngine from '../../events/core/events_engine';
import { extend } from '../../core/utils/extend';
import { isNumeric, isDefined, isFunction, isString } from '../../core/utils/type';
import browser from '../../core/utils/browser';
import devices from '../../core/devices';
import { fitIntoRange, inRange } fro... |
var chai = require('chai');
var expect = chai.expect; // we are using the "expect" style of Chai
require('./../src/datetime_thai');
console.log('TESTING node-datetime-thai on', new Date().toThaiString(3));
//'วันอาทิตย์ที่ 1 มกราคม พ.ศ.2560'
var newYear2017 = new Date('2017-01-01 08:00:00');
var newYear2017_aft... |
"use strict";
const JSON_DIR = "data/spells/";
const JSON_LIST_NAME = "spell";
// toss these into the "Tags" section to save screen space
const META_ADD_CONC = "Concentration";
const META_ADD_V = "Verbal";
const META_ADD_S = "Somatic";
const META_ADD_M = "Material";
const META_ADD_M_COST = "Material with Cost";
const... |
/* jshint node: true, esnext: true */
var packet = require('dyio/packet');
var bowler_util = require('dyio/util');
var EventEmitter = require('events').EventEmitter;
var util = require('util');
var Q = require('q');
var gen_run = null; // only load if necessary
var introspection_util = null; // only load if necessary... |
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
* vim: sw=2 ts=2 sts=2 expandtab filetype=javascript
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not... |
import { createSelector } from 'reselect';
import { remove, isEmpty, isArray, pick, flatten, sortBy } from 'lodash';
import qs from 'query-string';
import { findEqual, isANumber, noEmptyValues, useSlug } from 'utils/utils';
import { isNoColumnField, isNonColumnKey } from 'utils/data-explorer';
import { isPageContained ... |
let ELEMENT = function(renderer, data, index, selectedIndices){
this.renderer = renderer;
this.data = data;
this.index = index;
this.selected = this.setSelected(selectedIndices);
this.init();
};
let RENDERER = {
PADDING: 0.05,
init: function (categoryData, elementData) {
this.setPar... |
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 ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des... |
const initialZoom = 20;
const earthCircumference = 40e6;
const metersToDegrees = 360 / earthCircumference;
/////////////////////
// map
const canvasRenderer = L.canvas();
const mapBounds = [[0, 0], [0.15, 0.15]];
const maxBounds = [[-0.02, -0.02], [0.17, 0.17]];
const map = L.map('map', {
minZoom: 13,
maxBounds: ... |
VRtwglQuad = require('./VRtwglQuad.js');
VRRenderModes = require('./VRRenderModes.js');
VRLookController = require('./VRControllers.js');
VRDeviceManager = require('./VRDeviceManager.js');
VRCanvasFactory = require('./VRCanvasFactory.js');
VRRotMath = require('./VRRotMath.js');
VRImageURLParser = require('./VRImageURLP... |
$(function () {
$('input').attr('autocomplete', 'off');
var arrRemoveDetails = new Array();
global.applyDatepicker($("#ArrivalDate").prop("id"), false);
global.applyDatepicker($("#DocRefDate").prop("id"), false);
global.applyInputPicker(
$("#ArrivalTypeName").prop("id"),
... |
// Copyright 2014, 2015 <NAME>
// X11 (“MIT”) Licensed. (See LICENSE.)
var fs = require("fs")
var util = require("util")
var assert = require("assert")
var jsTokens = require("../")
suite("jsTokens", function() {
test("is a regex", function() {
assert(util.isRegExp(jsTokens))
})
})
suite("jsT... |
/**
* --------------------------------------------------------------------------
* Ace (v3.0.1): fileinput.js
* Custom styling for default browser file input
*/
import $ from 'jquery'
import bootstrap from 'bootstrap'
/**
* ------------------------------------------------------------------------
* Constants
* -... |
// Get Fusebox and its modules
const {
FuseBox,
EnvPlugin,
WebIndexPlugin,
QuantumPlugin,
LESSPlugin,
PostCSSPlugin,
CSSPlugin,
RawPlugin,
CSSResourcePlugin,
SourceMapPlainJsPlugin
} = require("fuse-box");
// Node path utils
const path = require('path');
// File manager
const { Files } = require('@zouloux/f... |
/*
Copyright 2014 <NAME>
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, software
distribu... |
function run() {
var len = 10;
var text = "";
for (i = 4; i < len; i++) {
text = text + i + " ";
console.log("So " + text);
}
}
function run0() {
console.log(Math.abs(-3)); // returns 3
console.log(Math.abs(4)); // returns 4
console.log(Math.acos(1)); // 0
console.log(Math.acos(2)); // Na... |
// var $ = require('jquery');
const svgSymbols = require('./svg.symbols');
const ProtVista = require('ProtVista');
// const getPredictProtein = require('./services').getPredictProtein;
const predictProteinId = require('./settings').pvPredictProteinCat.id;
const predictProteinUrl = require('./settings').urlPredictProte... |
const applicationKey = 'YOUR_APPLICATION_KEY';
const clientKey = 'YOUR_CLIENT_KEY';
const applicationId = 'YOUR_APPLICATION_ID';
const ncmb = new NCMB(applicationKey, clientKey);
let current_user = ncmb.User.getCurrentUser();
if (current_user) {
ncmb.User
.equalTo('objectId', current_user.objectId)
.fetch()
... |
let mymap; // Variable qui permettra de stocker la carte
let marqueur; // Variable qui permettra de stocker le nouveau marqueur
let cercle; // Variable qui permettra de stocker le nouveau marqueur
let UpdateMarqueur; // Variable qui permettra de stocker l'dentifiant du marqueue en mouvement
let TableauEmplacem... |
// Copywrite © <NAME> 2013
// this program is under the "MIT license"
// please see the file "license" in the source
// distribution of this software for license terms
/*
function dosomething(canvas_pass,picture_pass)
{
var ctx=document.getElementById("testcanvas").getContext("2d");
var img=document.getEle... |
/*jslint node: true */
"use strict";
var _ = require('lodash');
var async = require('async');
var constants = require('GAEAcore/constants.js');
var conf = require('GAEAcore/conf.js');
var mutex = require('GAEAcore/mutex.js');
var objectHash = require('GAEAcore/object_hash.js');
var db = require('GAEAcore/db.js');
var e... |
'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import memoize from 'memoize-one';
import url from 'url';
import _ from 'underscore';
import { ItemDetailList } from '@hms-dbmi-bgm/shared-portal-components/es/components/ui/ItemDetailList';
import { Alerts } from '@hms-dbmi-bgm/shared-porta... |
/* eslint-disable no-useless-escape */
import React from 'react';
import Select from 'antd/lib/select';
import Radio from 'antd/lib/radio';
import specificity from 'specificity';
const Option = Select.Option;
const RadioButton = Radio.Button;
export const colorExp = /^rgba?\(((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\... |
/**
* This script will automate common tasks with OpenTripPlanner such as
* downloading needed OSM and GTFS files, builing a graph and running a graph.
*/
const { spawn } = require('child_process')
const path = require('path')
const JSONSchemaValidator = require('ajv')
const CircularBuffer = require('circular-buff... |
/**
* @name string-fix-broken-named-entities
* @fileoverview Finds and fixes common and not so common broken named HTML entities, returns ranges array of fixes
* @version 5.3.1
* @author <NAME>, Codsen Ltd
* @license MIT
* {@link https://codsen.com/os/string-fix-broken-named-entities/}
*/
'use strict';
Object.... |
let mimes = {
"323": "text/h323",
"3g2": "video/3gpp2",
"3gp": "video/3gpp",
"3gp2": "video/3gpp2",
"3gpp": "video/3gpp",
"7z": "application/x-7z-compressed",
aa: "audio/audible",
AAC: "audio/aac",
aaf: "application/octet-stream",
aax: "audio/vnd.audible.aax",
ac3: "audio/ac3",
aca: "application... |
/*global */
/*jslint browser:true,sloppy:true,nomen:true,unparam:true,plusplus:true */
/*
| Copyright 2012 Esri
|
| 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.apach... |
// infovisGraphSubs.js
var labelType, useGradients, nativeTextSupport, animate;
(function() {
var ua = navigator.userAgent,
iStuff = ua.match(/iPhone/i) || ua.match(/iPad/i),
typeOfCanvas = typeof HTMLCanvasElement,
nativeCanvasSupport = (typeOfCanvas == 'object' || typeOfCanvas == 'function'),
... |
"use strict";
import * as d3 from "d3";
import _ from "lodash";
import fociLayout from "./foci";
import colaLayout from "./colaFoci.js";
import * as d3_force from "d3-force";
import computeTagGraph from "./tagGraph.js";
import computeCompGraph from "./componentGraph.js";
// import computeCompGraph2 from "./componentGra... |
/* globals origraph, d3 */
import GoldenLayoutView from './GoldenLayoutView.js';
import ZoomableSvgViewMixin from './ZoomableSvgViewMixin.js';
import ConnectModal from '../Modals/ConnectModal/ConnectModal.js';
const NODE_SIZE = 30;
const CURVE_OFFSET = NODE_SIZE * 2;
const OBJECT_PATHS = {
// Diamond for generic cl... |
// Copyright (c) 2015 <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, subli... |
/*
* Copyright 2012, <NAME>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions a... |
Ext.Loader.setConfig({
enabled : true
});
Ext.application({
name : "websure.backup",
appFolder : '/page/backup/script',
controllers : ['BackupController'],
launch : function() {
Ext.create("websure.backup.mainPanel");
}
});
/**
* 备份监控模块主框架
*/
Ext.define('websure.backup.mainPanel', {
... |
import React from 'react'; // eslint-disable-line no-unused-vars
import { Image, HorizontalRule, Pagebreak, StyledBlock, Table, ListItem } from './blockRenderComponents';
import { camelCase, isEmpty, kebabCase } from 'lodash';
import { COLORS, FONTS, FONT_SIZES, MAX_LIST_DEPTH, defaultPreTagStyling } from './constants'... |
"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(... |
import {
resolveUrl,
urlToRelativeUrl,
urlIsInsideOf,
urlToParentUrl,
urlToBasename,
urlToFilename,
} from "@jsenv/filesystem"
import { createLogger } from "@jsenv/logger"
import { setJavaScriptSourceMappingUrl } from "@jsenv/core/src/internal/sourceMappingURLUtils.js"
import { promiseTrackRace } from "../... |
const view = (/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent) ||
(/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.platform))); //If true, user is on a mobile device
const IS_MOBILE = view;
if (view) {
alert("Looks like you're playing on a mobile device, please keep your device... |
//-----------------------------------------------------------------------------
// Remote Imgui for https://github.com/ocornut/imgui
// https://github.com/JordiRos/remoteimgui
// <NAME>
//-----------------------------------------------------------------------------
// utility function to parse an arraybuffer like a st... |
/* eslint camelcase: 0 */
/* eslint arrow-body-style: 0 */
function AddEditCredentialsController (
models,
$state,
$scope,
strings,
componentsStrings,
ConfigService,
ngToast,
Wait,
$filter,
CredentialType,
GetBasePath,
Rest,
) {
const vm = this || {};
const {
... |
//query graph and profiling charts
var queryGraphInteractive = function (element, queryStatus, fragments) {
var chartElement = d3.select('.chart');
var graphObj = new Graph();
graphObj.loadQueryPlan(queryStatus, fragments);
graphObj.loadCosts(function() {
graphObj.render(element, chartElement);... |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MPL/
*
... |
const t = require("@babel/types");
const clone = require("clone");
const nodePath = require("path");
const parse = require("@babel/parser").parse;
const generate = require("@babel/generator").default;
const traverse = require("@babel/traverse").default;
const pathUtil = require("./pathUtil");
const utils = require('./u... |
import * as React from 'react';
import classNames from 'classnames';
import $ from 'jquery';
import _ from 'underscore';
import { keepPosInView } from '../../util/worksheet_utils';
import * as Mousetrap from '../../util/ws_mousetrap_fork';
import WorksheetActionBar from './WorksheetActionBar';
import WorksheetItemList ... |
// main ecoder javascript ##
// file functions ##
// frame target, action || mode, file path, file name, file extension || file/folder, change tracker ##
function ecoder_files ( frame, mode, path, file, type, changed ) {
var ecoder_tabs_max = 10; // max tabs ##
// make uniquish iframe id ##
var e... |
function sleep (ms) {
return new Promise(resolve => setTimeout(resolve, ms))
}
// Simple wrapper around randomColor
function randomCellColor () {
return randomColor({
luminosity: 'bright',
format: 'hsl'
})
}
function randomInt (min, max, centeredness = 0) {
if (centeredness) {
return Math.floor(... |
/*
* ░█████╗░██████╗░░█████╗░░██████╗░██████╗████████╗░░░░█████╗░██╗░░██╗░█████╗░████████╗
* ██╔══██╗██╔══██╗██╔══██╗██╔════╝██╔════╝╚══██╔══╝░░░██╔══██╗██║░░██║██╔══██╗╚══██╔══╝
* ██║░░╚═╝██████╔╝██║░░██║╚█████╗░╚█████╗░░░░██║░░░░░░██║░░╚═╝███████║███████║░░░██║░░░
* ██║░░██╗██╔══██╗██║░░██║░╚═══██╗░╚═══██╗░░░██║░... |
'use strict';
const path = require('path');
const glob = require('glob').sync;
const chalk = require('chalk');
const extend = require('lodash').extend;
const _ = require('lodash');
const fs = require('fs');
const known = () => require('../../utils/known');
const NpmUtils = require('../../utils/NpmUtils');
const PipUti... |
// @ts-check
const emojis = {
ABACUS: "🧮",
ABCD: "🔠",
ABCS: "🔤",
ADIEU: "👋",
ALIEN: "👽",
ANGEL: "😇",
ANGRY: "😠",
ANNA: "👸🏽",
ANTS: "🐜",
APPLE: "🍎",
ARMS: "💪",
ARROW: "🏹",
ARTIST: "👨🎨",
ARTS: "🎭",
AUDIO: "🔈",
AWARD: "🎖️",
AXES: "🪓",
BABY: "🚼",
BACK: "🔙",
BAC... |
// This Page is Skeleton of React Structure for Web Development
// If you want to make other page, Copy and Refactor this page.
import React, { Component } from "react";
import { connect } from "react-redux";
import {
NavBar,
List,
SideBar,
Thumb,
Button,
SocialInput,
Footer
} from "../../Components";
im... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getResolvedPublishConfig = exports.PlatformPackager = exports.Target = undefined;
var _bluebirdLstC;
function _load_bluebirdLstC() {
return _bluebirdLstC = require("bluebird-lst-c");
}
var _bluebirdLstC2;
function _load_bl... |
function $_hace_secciones(_url)
{
};
/*
*
*
*@function: agregar producto de ecommerce
*
*
*/
function $__agrega_producto_a_ecommerce(a)
{
a.stopPropagation();
var _itemSel = this._datos;
var _encontrado = false; // si no se encontro se agrega
// verificamos si tenemos carrito creado.
if(typeof _variables.... |
"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... |
var VIEW = {
w : 640,
h : 480
}
var myGame = new tobi.Game({width:VIEW.w,height:VIEW.h, parent:"canvas-container"});
myGame.canvas.style.border = "none";
window.addEventListener("resize", OnResizeCalled, false);
function OnResizeCalled() {
/*var gameWidth = document.getElementById('canvas-container').client... |
console.log(getServer("stickMontainsServer"));
var client;
var mode = 0;
var LOAD = 0;
var GAME = 1;
var ENDGAME = 2;
var erroMsg;
var theme = {backgroundColor: "#74c7d9", loading: "#fff", nonLoading: "#444", font:"gamefont"
};
//game
var game = new Engine("game", 1080, 600, {resize: true});
game.start(loading);
ga... |
'use strict';
/* globals MockDOMRequest, MockNfc, MocksHelper, NDEF,
NfcUtils, NfcManager, MozActivity, NfcHandoverManager */
require('/shared/test/unit/mocks/mock_settings_listener.js');
require('/shared/js/nfc_utils.js');
require('/shared/test/unit/mocks/mock_event_target.js');
require('/shared/test/unit... |
$(document).ready(function() {
//getRepoList(page, limit, search);
getRepoList(1, 10, null);
});
var node_num=1;
//
function getRepoList(page, limit, search) {
$('#tablebody').html("");
$.ajax({
type : 'get',
url : '/RepositoryAction/ContainerRepoList',
data : {
page : page,
limit : limit,
search : ... |
const url = require("url");
const { v4: uuidv4 } = require("uuid");
const stringify = require("json-stringify-safe");
const R = require("ramda");
const Joi = require("@hapi/joi");
const amqp = require("@trusk/amqp-connection-manager");
const Stream = require("stream");
const {
subscribeQualifierParser,
publishQual... |
/**
*
* @class PlateViewer
*
* Shows the plate information
*
* @param {string} target The name of the target container for the plate viewer
* @param {int} plateId OPTIONAL The id of the plate to visualize
* @param {int} rows OPTIONAL If plateId is not provided, the number of rows
* @param {int} cols OPTIONAL I... |
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modi... |
/**
Copyright 2014-2018 <NAME>
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, software... |
'use strict';
const periodic = require('periodicjs');
const capitalize = require('capitalize');
const Busboy = require('busboy');
const csv = require('fast-csv');
const unflatten = require('flat').unflatten;
const view_utilities = require('../views');
const transformhelpers = require('../transformhelpers');
con... |
/* eslint-disable camelcase */
import echo, { OPERATIONS_IDS, validators } from 'echojs-lib';
import { List, Map } from 'immutable';
import _ from 'lodash';
import BN from 'bignumber.js';
import Operations, {
accountOperations,
assetOperations,
committeeOperations,
proposalOperations,
} from '../constants/Operatio... |
/* eslint-disable */
// DIsabling eslint for this file as it's not our code.
// Todo: refactor away from `createReactClass` & apply linting rules
import React from "react";
import PropTypes from 'prop-types';
import createReactClass from "create-react-class";
import _assign from "lodash/assign";
import _isArray from "... |
import React from 'react';
import ReactDOM from 'react-dom';
import ReactCSSTransitionGroup from 'react-addons-css-transition-group';
import initOpbeat from 'opbeat-react';
initOpbeat({
appId: '92cc2b0285',
organizationId: '622909d2afcb421383e9cec60bd045ae',
secretToken: 'aa9d4874898f7790456ea4da9d641201c... |
/*!
* ed448.js - ed448 for bcrypto
* Copyright (c) 2018, <NAME> (MIT License).
* https://github.com/bcoin-org/bcrypto
*
* Resources:
* https://eprint.iacr.org/2015/625.pdf
* https://tools.ietf.org/html/rfc7748
* https://tools.ietf.org/html/rfc7748#section-5
* https://tools.ietf.org/html/rfc8032
* ht... |
// start a timer
var buildTime = process.hrtime();
var buildTimeDiff = buildTime;
// load environment variables
require("dotenv").load({ silent: true });
// process.env.NODE_ENV VARS - default to development
process.env.NODE_ENV = process.env.NODE_ENV || "development";
// cache require paths in development
if (process.... |
'use strict'
// Line 1 should always be 'use strict'
// This prevents silent erroring
//////////////////////////////////////////////////////////////////////////
// MASSIVE JAVASCRIPT/ES6 HELP SHEET //
// <NAME> //
///////////////////... |
/*jshint esversion: 6 */
const express = require('express');
const functions = require("./modules/functions");
const verificacao = require("./modules/verificacao");
// File System - Lidar com arquivos
var fs = require('fs');
const axios = require('axios');
// const { application } = require('express');
const app = ex... |
const assert = require("assert")
const { vec2, vec3, vec4, quat, mat2, mat2d, mat3, mat4} = require("gl-matrix")
const gl = require('./gles3.js')
const glfw = require('./glfw3.js')
const vr = require('./openvr.js')
const glutils = require('./glutils.js');
if (!glfw.init()) {
console.log("Failed to initialize GLFW");... |
// ==UserScript==
// @name TESS - ExoFOP tweak
// @namespace astro.tess
// @match https://exofop.ipac.caltech.edu/tess/target.php?id=*
// @grant GM_addStyle
// @grant GM_setClipboard
// @noframes
// @version 1.9.0
// @author -
// @description
// @icon https://panoptes-uploads.... |
// Utility functions
var util = {
clean_string: function(string) {
/*
Cleans a string in prep for comparisons or other uses. Strips out extra
white space and punctuation.
Args: string (str) - string to clean
Return: cleaned string (str)
*/
// strip filter text of extra whitespace before/a... |
function getRandomIntInclusive(min, max) {
min = Math.ceil(min);
max = Math.floor(max);
return Math.floor(Math.random() * (max - min + 1)) + min;
}
if ( ! Detector.webgl ) Detector.addGetWebGLMessage();
function FFBOMesh3D(div_id, data, func) {
this.div_id = div_id;
this.func = func;
this.container = document.... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.... |
/*****************************************************************/
/* 5grid 0.4.1-dev by n33.co | MIT+GPLv2 license licensed */
/* init.js: Init script */
/*****************************************************************/
/*********************/
/* Settings ... |
/*
* Copyright 2017, GeoSolutions Sas.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
const Rx = require('rxjs');
const {get, head, isEmpty, find} = require('lodash');
const { LOCATION_CHANGE } = require... |
const Lightbox = ($ => {
const NAME = "ekkoLightbox";
const JQUERY_NO_CONFLICT = $.fn[NAME];
const Default = {
title: "",
footer: "",
maxWidth: 9999,
maxHeight: 9999,
showArrows: true, //display the left / right arrows or not
wrapping: true, //if true, gallery loops infinitely
type: n... |
'use strict'
function t(t) {
return t && 'object' == typeof t && 'default' in t ? t.default : t
}
Object.defineProperty(exports, '__esModule', { value: !0 })
var e,
n,
r = t(require('jsbi')),
o = require('@lescovex/sdk-core'),
u = t(require('tiny-invariant')),
i = require('@ethersproject/solidity'),
a = r... |
import React, { useState, useEffect, useContext } from 'react';
import Form from 'react-bootstrap/Form';
import Button from 'react-bootstrap/Button';
import Row from 'react-bootstrap/Row';
import Col from 'react-bootstrap/Col';
import * as moment from 'moment';
import 'moment/locale/de';
import { sprintf } from 'spr... |
/* FB Wiki's Facebook Editor Helper
*
* This modifies the fb places editor to add new capabilities which will
* hopefully boost the productivity of people using the editor
*
* Description of patterns in the fb places editor DOM:
*
* Containing Element
* ------------------
* #workarea_box the conta... |
// Exports
// MAX_SCORE : number
// FETCH_LANDS : { [str]: [Color] }
// COLORS : [Color]
// BASICS : [str]
// ORACLES : [Oracle]
// ORACLES_BY_NAME : { [string]: Oracle }
// getSynergy : (int, int, [Card]) -> number
// considerInCombination : ([Color], Card) -> bool
// isPlayableLand : ([Color], Card) -> bool
// getCas... |
'use strict';
const {
ApplicationCommandType,
InteractionType,
ComponentType,
ButtonStyle,
ApplicationCommandOptionType,
ChannelType,
ApplicationCommandPermissionType,
MessageType,
GuildNSFWLevel,
GuildVerificationLevel,
GuildDefaultMessageNotifications,
GuildExplicitContentFilter,
GuildPremi... |
const inquirer = require('inquirer');
const pathLib = require('path');
const fs = require('fs-extra');
const category = 'api';
const serviceName = 'API Gateway';
const parametersFileName = 'api-params.json';
const cfnParametersFilename = 'parameters.json';
const uuid = require('uuid');
async function serviceWalkthrou... |
"use strict";
class BlacklistUtil {
static _IGNORED_CATEGORIES = new Set([
"_meta",
"linkedLootTables",
// `items-base.json`
"itemProperty",
"itemType",
"itemEntry",
"itemTypeAdditionalEntries",
]);
static _BASIC_FILES = [
"actions.json",
"adventures.json",
"backgrounds.json",
"books.json",
... |
/**
* Configure the Codemirror editor
* Add markDown shortcut key
* Modified some emmet triggering mechanisms
* 配置codemirror编辑器
* 添加markdown快捷键
* 修改emmet部分触发机制
*/
import CodeMirror from 'codemirror'
import markdownTools from './markdownTools'
// 语言高亮
import 'codemirror/mode/javascript/javascript'
import 'codem... |
// function setup_new_diagram_dialog() {
// console.log("setting up diagram");
// $("#new_diagram_dialog").load ("new_diagram_dialog.html", function () {
// });
// $("#new_diagram_dialog").dialog({
// title:"New Diagram Dialog",
// position:['middle',0],
// autoOpen: false,
// height:'auto',
// width:['9... |
//init the variable if it's undefined, sometimes wordpress will not run the wp_footer hooks in wp-admin (in modals for example)
if (typeof td_get_template_directory_uri === 'undefined') {
td_get_template_directory_uri = '';
}
/* ----------------------------------------------------------------------------
On loa... |
/* *******************************************************************************************
* GLOBAL CONFIG
* Vue.config is an object containing Vue’s global configurations.
* You can modify its properties listed below before bootstrapping your application.
* https://vuejs.org/v2/api/#Global-Config
* **********... |
/* -----------------------------------------------------------------------
* TypeJig - run a typing lesson.
*
* `exercise` is a TypeJig.Exercise object, while `display`, `input`,
* `output`, and `clock` are elements (or element ID strings).
*/
function TypeJig(exercise, display, results, input, clock, hint, speed... |
/**
* @description Post view. Show the user, post image, latest comments, etc.
*
* @author <NAME>
* @version v1.01
* @see https://github.com/FranciscoCoya
* @copyright © 2020 <NAME>
*/
import React, { useState, useEffect } from "react";
import { withRouter, useHistory, Link } from "react-router-dom";
import Mom... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.