text stringlengths 5.97k 41.2k |
|---|
'use strict';
/*
Cheat sheet for those unfamiliar with chess
(because I made some of this less verbose than it could/should be):
p = pawn
r = rook (castle)
n = knight
b = bishop
q = queen
k = king
w = white
b = black
This shorthand is used a couple places that I can't be bothered to change,
so I just used it everyw... |
/**
@flow
*/
'use strict';
const Q = require('q');
const docopt = require('docopt').docopt;
const parseOFX = require('banking').parse;
const OFX = require('./asOFX').OFX;
const freedesktop = require('./secret-tool');
const REALM = 'https://www.bankbv.com/';
const usage = `
Usage:
bbv.js history --login=ID --cod... |
/*
=========================================================
Name : Plugger
GitHub : https://github.com/TimRohr22/Cauldron/tree/master/Plugger
Roll20 Contact : timmaugh
Version : 1.0.5
Last Update : 7/20/2021
=========================================================
*/
var API_Meta = API_Meta || {};
API_Meta.Plu... |
'use strict';
/* global jqLiteRemove */
var ngOptionsMinErr = minErr('ngOptions');
/**
* @ngdoc directive
* @name ngOptions
* @restrict A
*
* @description
*
* The `ngOptions` attribute can be used to dynamically generate a list of `<option>`
* elements for the `<select>` element using the array or object obt... |
var baseURL = $('#base-url').val();
userRequest = function(idmail, idusr, role){
$('#' + idusr + ' .btn').prop('disabled', true);
var txt_btn = $('#' + idusr + ' .btn-action-user' + role)[0].innerHTML;
$('#' + idusr + ' .btn-action-user' + role)[0].innerHTML = 'Sending...';
$.ajax({
type: "POST",... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _regenerator = require('babel-runtime/regenerator');
var _regenerator2 = _interopRequireDefault(_regenerator);
var _keys = require('babel-runtime/core-js/object/keys');
var _keys2 = _interopRequireDefault(_keys);
var _asyncToGenera... |
require('../css/plugins.css');
var $ = require('jquery');
var React = require('react');
var ReactDOM = require('react-dom');
var events = require('./events');
var Dialog = require('./dialog');
var SyncDialog = require('./sync-dialog');
var dataCenter = require('./data-center');
var util = require('./util');
var win = r... |
// Copyright (c) 2015 - 2019 Uber Technologies, Inc.
//
// 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... |
var singleton;
function Frontend(mapContainer, chartContainer) {
this.mapcontainer = mapContainer;
this.chartcontainer = chartContainer;
this.progressRunning = null;
this.user = userid;
this.pass = userkey;
singleton = this;
// init source and layer collections
this.layers = new Object();
}
Frontend.pro... |
const preprints = '{{documentType.pluralCapitalized}}';
const brand = 'OSF Preprints';
const arxivTrademarkLicense = 'arXiv is a trademark of Cornell University, used under license.';
export default {
global: {
share: 'Share',
continue: 'Continue',
complete: 'Complete',
cancel: 'Can... |
//Functions in this file control the "playlists" (i.e., all objects/movies within a given category in the SVL database)
//that are shown to all users when they select a category.
//Note that this does not include the current VLC "playlist" (i.e., the list of movies that are active within the VLC server),
//which is o... |
'use strict';
/* global React, ReactDOM, Selectivity */
var cities = [
'Amsterdam',
'Antwerp',
'Athens',
'Barcelona',
'Berlin',
'Birmingham',
'Bradford',
'Bremen',
'Brussels',
'Bucharest',
'Budapest',
'Cologne',
'Copenhagen',
'Dortmund',
'Dresden',
'Dubl... |
import React, { useEffect, useState } from "react";
import {
Tabs,
Tab,
Typography,
Avatar,
makeStyles,
Box,
TableContainer,
Table,
TableHead,
TableRow,
TableCell,
TableBody,
Paper,
Breadcrumbs,
Divider,
Button,
Select,
MenuItem,
Grid,
TextField,
} from "@material-ui/core";
impor... |
queue()
.defer(d3.json, "coast.json")
.defer(d3.json, "us.json")
.defer(d3.csv, "census.csv")
.await(ready);
var margin = {top: 10, right: 10, bottom: 10, left: 10},
width = 960 - margin.left - margin.right,
height = 500 - margin.top - margin.bottom,
sliderHeight = 20,
sliderWidth = 600,
m... |
/**
* Copyright (c) 2018 GrowthFile
*
* 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... |
const test = require('aqa');
const StreamBuffer = require('./streambuf');
test('initializers', t => {
var sb1 = new StreamBuffer(Buffer.from([1]));
t.true(sb1 instanceof StreamBuffer);
var sb2 = StreamBuffer(Buffer.from([2]));
t.true(sb2 instanceof StreamBuffer);
var buffer = Buffer.from([0,1]);
var sb3 = ... |
/**
* @INFO
* Loading all needed File Information Parameters
*/
const config = require(`${process.cwd()}/botconfig/config.json`); //loading config file with token and prefix, and settings
const ee = require(`${process.cwd()}/botconfig/embed.json`); //Loading all embed settings like color footertext and icon ...
cons... |
import Logger from '../utils/Logger';
import Thumbs from '../ui//Thumbs';
import Menus from '../ui/Menus';
import * as Utils from '../utils/Utils';
import tmpl from '../ui/fjplayer-tmpl';
require('../../css/player.less');
// require('../css/fjfa.css');
/**
* @module PlayerUi
* @description The PlayerUi is the html ... |
import 'misc/Polyfill';
import { vec3 } from 'gl-matrix';
import { Manager as HammerManager, Pan, Pinch, Tap } from 'hammerjs';
import Tablet from 'misc/Tablet';
import Enums from 'misc/Enums';
import Utils from 'misc/Utils';
import Scene from 'Scene';
import Multimesh from 'mesh/multiresolution/Multimesh';
var MOUSE_... |
'use strict';
// モデル
class Ramiel{
constructor( colors ) {
// colors : colors for each plane
// setting
// [T]op, [N]orth, [E]ast, [W]est, [S]outh, [B]ottom
const vpos = [/*0 T*/ [ 0, 1, 0], /*1 S*/ [ 0, 0,-1], /*2 E*/ [ 1, 0, 0],
/*3 N*/ [ 0, 0, 1], /*4 W*/ ... |
import { abs } from '../math/abs';
import { d3_Map, d3$map } from '../arrays/map';
import { d3_time, d3_date, d3_date_utc } from '../time/time';
import { d3$requote } from '../format/requote';
function d3_locale_timeFormat(locale) {
var locale_dateTime = locale.dateTime,
locale_date = locale.date,
locale... |
import { getInitializing } from '../app/initialization'
import { images, getImagesToBeLoaded } from '../app/load_resources'
import { msg } from '../app/messages'
import { infoBubble, INFO_BUBBLE_TYPE_SEGMENT } from '../info_bubble/info_bubble'
import { debug } from '../preinit/debug_settings'
import { system } from '..... |
import { useState, useEffect } from 'react'
import ChecklistCard from './ChecklistCard'
import { Tooltip } from 'antd'
import withBlockHeight from '../../withBlockHeight'
import { Client } from '@helium/http'
import classNames from 'classnames'
const HotspotChecklist = ({ hotspot, witnesses, height, heightLoading }) =... |
"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 myuniv;
var myconfig;
var baseURL = "http://localhost:8080/mapviewer";
function showMap() {
var map = new OM.Map(
document.getElementById('map'),
{
mapviewerURL:baseURL,
disableOverviewMap:false
});
... |
/*
python_interface:
Python mode interface and running logic.
*/
function LogicController(nbTestCases, maxInstructions) {
/**
* Class properties
*/
this._nbTestCases = nbTestCases;
this._maxInstructions = maxInstructions || undefined;
this.language = 'python';
this._textFile = n... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var React = require('react');
var React__default = _interopDefault(React);
/*! *********************************************... |
/*
Copyright (c) 2015-2017, <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:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the ... |
/* global AutoForm, Hooks, validateField, updateTrackedFieldValue, arrayTracker, updateAllTrackedFieldValues, SimpleSchema */
// all form events handled here
var lastAutoSaveElement = null;
var lastKeyVal = null;
function beginSubmit(formId, template, hookContext) {
if (!template || !template.view._domrange || temp... |
module.exports = function (config) {
if (config.cronjobs) {
config.cronjobs.recreateNpcOrders = [300, () => manageOrders(config)]
config.cronjobs.updateNpcOrders = [60, () => updateOrders(config)]
}
}
// Manage orders every 5 minutes
async function manageOrders(config) {
const {common: {sto... |
var productServices = new productService(localStorage.getItem("token"));
// const categoryServices = new categoryService(localStorage.getItem("token"));
function renderSelectList(mangSanPham) {
var contentHTML = "";
mangSanPham.map(function (item) {
contentHTML += `
<li class="element-category" value="${item.i... |
// memoryprofiler.js: Enables HEAP memory usage profiling in Emscripten applications.
// CONFIGURATION: If true, walks all allocated pointers at graphing time to print a detailed memory fragmentation map. If false, used
// memory is only graphed in one block (at the bottom of DYNAMIC memory space). Set this to fals... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const assert = require("assert");
const EventEmitter = require("events");
const _ = require("lodash");
const ts_assert_exists_1 = require("ts-assert-exists");
const bitbuffer_1 = require("./ext/bitbuffer");
const consts = require("./consts");
... |
window.modules.scrambler=true;
scramblers['333'].initialize(null, Math);//For LL-Scrambler
const BR="<br/>";
var customscrambler;
customscrambler=[];
function generateScramble(r,a){var e,n,t,o="",f="",h=[];for(h.U="D",h.D="U",h.L="R",h.R="L",h.F="B",h.B="F",t=0;a>t;t++)e=o,o=r[Math.floor(Math.random()*r.length)],e==o|... |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... |
var plus = window.plus = window.plus || {};
var json = plus.json;
(function () {
/**
* TreeView/Organogram Class
* status: INCOMPLETE
* @param {Object} source table
* @param {Object} el
*/
plus.treeview = function(source, opt) {
this.opt = opt = opt || {};
opt... |
var featureIndexes = {};
function Result()
{
this.fscore = 0;
this.acc = 0;
this.precision = 0;
this.recall = 0;
this.loss = 0;
this.runid = "";
this.params = new Array();
this.finishDate = "";
this.startDate = "";
this.dev = "";
this.test = "";
this.baseline = false;
this.load = function(json){
this.... |
const webdriver = require("selenium-webdriver"),
{expect} = require("chai"),
{initDriver} = require("../../../library/driver"),
{/* clickFeature,*/ logTestingCloudUrlToTest} = require("../../../library/utils"),
{getCenter, getTilt, getResolution, getHeading, setTilt, setCenter} = require("../../../libra... |
var sm_elementoActual = null;
var sm_table;
var sm_table;
var sm_data = {};
var sm_numMaxElementos = 50;
// #region Inicio
var sm_IniciarControles = function () {
$('.selectpicker').selectpicker('render');
$('.sm_NuevoElemento').on('click', function () {
sm_abrirModalAgregar();
});
$('.sm_asignarClientes').on('... |
var canvas = document.getElementById('canvas');
var context = canvas.getContext('2d');
var width = window.innerWidth, height = window.innerHeight;
var airplane;
var scene, camera, renderer;
var acc, force;
var alp, torque;
var t0, dt;
var animId;
// airplane and its properties; values in SI units unless otherwise ... |
let data = {};
let userData;
let options;
let odata;
let allrepodata;
let issues = { open: [], closed: [] };
let velocityData = [];
let sprintData = [];
let valueLabels = {};
let labels = {};
let repocolorScale = d3.scaleOrdinal(d3.schemeCategory10);
function _query(query) {
return new Promise((resolve, reject) => {... |
const fs = require('fs');
const net = require('net');
const parser = require('./parser.js')
/**
* 思路错误
*/
class TrunkedBodyJSONParser {
constructor() {
this.WAITING_LENGTH = 0;
this.WAITING_LENGTH_LINE_END = 1;
this.READING_TRUNK = 2;
this.WAITING_NEW_LENGTH = 3;
this.WAIT... |
/*
Copyright 2017 Ignition Module Development Community
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicab... |
/**
* Created by Administrator on 2018/5/28.
*/
var flax = flax || {};
RANK_LIST_JSON = "res/leaderboard.json";
RANK_LIST_PNG = "res/leaderboard.png";
//显示好友或群排行榜,默认显示好友
//需要PIXI库,完全运行需要微信运行环境
var rankItem = null; //暴露给外部的对象接口,更改标题或者下面按钮内容时使用
var rankList = flax.MovieClip.extend({
//可以在子域通过url验证是不是本人,此时如果没授权仍然... |
/*!
* recursive.js - recursive dns resolver for bns
* Copyright (c) 2018, <NAME> (MIT License).
* https://github.com/chjj/bns
*
* Parts of this software are based on solvere:
* https://github.com/rolandshoemaker/solvere
*/
'use strict';
const assert = require('bsert');
const IP = require('binet');
const Auth... |
"use strict";
/**
* The {@link ChartTemplateBuilder} creates tempate ({@link ChartTemplate}) from the current chart.
* {@link ChartTemplate} contains simplified version of {@link Chart} object in {@link ChartTemplate.specification} property.
* Tempate can be exported as *.tmplt file (JSON format). It also uses on ex... |
import * as CFG from "./cfg";
import md5 from "./md5";
const path = require("path");
window.__dirname = path.dirname(process.execPath);
export const fs = require("fs");
export const IS_NODE = typeof window === "undefined";
export const IS_BROWSER = !IS_NODE;
export const IDBVersion = 1.0;
export const indexedDB = ... |
function initElement(elementClassName, elementInitFunction) {
var x = document.getElementsByClassName(elementClassName);
if (x[0] !== null){
var y;
for(y = 0; y < x.length; y++){
elementInitFunction(x[y]);
}
}
}
function oneElementInit(queryElementName, instantiationFunction) {
if (document.qu... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import withReduxForm from '../../libs/hocs/withReduxForm';
import RenderIf from '../RenderIf';
import { UP_KEY, DOWN_KEY, ESCAPE_KEY, TAB_KEY, SPACE_KEY, ENTER_KEY } from '../../libs/constants';
import { P... |
var graphConfig = new GitGraph.Template({
colors: ["#34A5DA", "#66f", "#fd6a02", "#f19c79", "#00BB00", "#006", "#c2e812", "#9993FF","#999900", "#660033", "#34A5DA", "#006600", "#006", "#000", "#f00"],
branch: {
// color: "#000000",
lineWidth: 7,
spacingX: 40,
mergeStyle: "bezier"... |
//__BEGIN_LICENSE__
//Copyright (c) 2015, United States Government, as represented by the
//Administrator of the National Aeronautics and Space Administration.
//All rights reserved.
//The xGDS platform is licensed under the Apache License, Version 2.0
//(the "License"); you may not use this file except in compliance ... |
import process from 'https://deno.land/std@0.120.0/node/process.ts'
import os from 'https://deno.land/std@0.120.0/node/os.ts'
import fs from 'https://deno.land/std@0.120.0/node/fs.ts'
import Stream from 'https://deno.land/std@0.120.0/node/stream.ts'
import {
mergeUserTypes,
inferType,
Parameter,
Identifier,
... |
import _regeneratorRuntime from 'babel-runtime/regenerator';
import _slicedToArray from 'babel-runtime/helpers/slicedToArray';
import _asyncToGenerator from 'babel-runtime/helpers/asyncToGenerator';
import _extends from 'babel-runtime/helpers/extends';
import _defineProperty from 'babel-runtime/helpers/defineProperty';... |
/**
* Module dependencies.
*/
var Router = require('./router')
, Queue = require('./queue')
, Page = require('./page')
, Layout = require('./layout')
, upath = require('canonical-path')
, marked = require('marked-engine')
, highlight = require('highlight.js')
, yaml = require('js-yaml')
, middleware =... |
"use strict";
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(ex... |
/**
* Created by qianpeng on 2017/6/20.
*/
var printContent = function() {
window.print();
}
$(function(){
var data = JSON.stringify({
"token": $.cookie("token"),
"reportid": md5report
})
ajaxData("/data/query/reportparameter", data, "POST", function(r){
if(r.status == "ok")... |
const membersBody = document.querySelector("#members");
const clanName = document.querySelector("#clanName");
const clanDesc = document.querySelector("#clanDesc");
const clanRequirements = document.querySelector("#clanRequirements");
const clanUpdated = document.querySelector("#clanUpdated");
const th = document.getEle... |
import { findDistance, inOutLocation } from "./distance";
import fetch from "node-fetch";
// ASYNC DATA UTLS--------------------------------------------------------
//async function to fetch revision history
//based on rose-city-resource
export async function getPackageData() {
///new logic
const uri = "/api/packa... |
// @preserve
/*\
title: $:/plugins/felixhayashi/tiddlymap/js/startup/caretaker
type: application/javascript
module-type: startup
@preserve
\*/
/*** Imports *******************************************************/
import visConfig from '$:/plugins/felixhayashi/tiddlymap/js/config/vis';
import utils... |
var country_to_code = {
"Bangladesh": "BD",
"Belgium": "BE",
"Burkina Faso": "BF",
"Bulgaria": "BG",
"Bosnia and Herz.": "BA",
"Brunei": "BN",
"Bolivia": "BO",
"Japan": "JP",
"Burundi": "BI",
"Benin": "BJ",
"Bhutan": "BT",
"Jamaica": "JM",
"Botswana": "BW",
"Brazi... |
/*
* GlyphString.js - ilib string subclass that allows you to access
* whole glyphs at a time
*
* Copyright © 2015-2018, JEDLSoft
*
* 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
*
... |
////////////////////////////////////////////////////////////////////////////////
// Pirate Ship Battles //
////////////////////////////////////////////////////////////////////////////////
const express = require('express');
const unique = require('node-uuid');
con... |
var screen = null;
var layer = null;
var spriteLives = [];
var lifeGame = {
label: "LIVES",
life: 2,
positionX: 50
};
var scoreGame = {
label: null,
score: 0,
text: "SCORE"
};
var LG = {KEYS: []};
/* Box 2D */
/*var world = null;
var b2Vec2 = Box2D.Common.Math.b2Vec2,
b2BodyDef = Box2D.Dynamics.b2BodyDe... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var d3 = _interopRequireWildcard(require("d3"));
var _propTypes = _interopRequireDefault(require("prop-types"));
require("./style.css");
function _interop... |
// @ts-check
self.addEventListener(
'message',
/** @param {MessageEvent<string>} event */ event => {
setTimeout(() => {
// @ts-ignore TS doesn't consider this a Web Worker, so requires a second argument
self.postMessage({ cityId: event.data, qrCode: getQRCode(event.data) });
}, 0);
}
... |
var chai = require('chai');
//var assert = chai.assert;
var expect = chai.expect;
var helpers = require('../helpers');
var localStorage = require('../localStorage');
var configFilename = process.argv[3];
var configFile = require('../'+configFilename);
var config = configFile.config;
var settings = require('../config... |
'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... |
import _ from 'underscore';
import Backbone from 'backbone';
// Import hammerjs for geojs touch events
import Hammer from 'hammerjs';
import d3 from 'd3';
import { staticRoot, restRequest } from 'girder/rest';
import events from 'girder/events';
import ImageViewerWidget from './base';
import convertAnnotation from '.... |
import React, { useEffect } from "react";
import { Link as RouterLink } from "react-router-dom";
// import { makeStyles } from "@material-ui/core/styles";
import axios from "axios";
import moment from "moment";
import NumberFormat from "react-number-format";
import {
Grid,
Button,
Typography,
Container,
Card... |
/// <reference path="storage.ts" />
/// <reference path="chrome.d.ts" />
var OptionsPage = (function () {
/* Public Functions */
/**
* @param storage The storage object to which the page should be synced
* @param document The document to sync. Omit to use the main document.
*/
function Options... |
import cx from 'classnames'
import { get, isEqual, some } from 'lodash/fp'
import qs from 'querystring'
import React, { Component } from 'react'
import Intercom from 'react-intercom'
import Joyride from 'react-joyride'
import {
matchPath,
Redirect,
Route,
Switch
} from 'react-router-dom'
import Div100vh from 'r... |
/** Constants for severity levels */
class Severity
{
}
Severity.NONE = "NONE";
Severity.MINOR = "MINOR";
Severity.MAJOR = "MAJOR";
Severity.INVALID = "INVALID";
Severity.UNDEFINED = "UNDEFINED";
/** Apply alarm-based outline to widget
*
* Default unless widget registers with widget_alarm_methods[].
* Adds/remo... |
const puppeteer = require('puppeteer');
const devices = require('puppeteer/DeviceDescriptors');
const fse = require('fs-extra');
const mkdirp = require('mkdirp');
const rimraf = require('rimraf');
const path = require('path');
const beautify = require('js-beautify').html;
const colors = require('colors');
const amphtml... |
'use strict';
var $ = require('jquery');
var humps = require('humps');
var _ = require('../utils/_');
var OzpAnalytics = require('../analytics/ozp-analytics');
var PaginatedResponse = require ('./responses/PaginatedResponse');
var { PAGINATION_MAX } = require('ozp-react-commons/constants');
var { API_URL } = require('... |
var Bell = require('bell'); // OAuth2.0 authentication library (see https://github.com/hapijs/bell for lib details)
var AuthCookie = require('hapi-auth-cookie'); // auth strategies mechanism
var Promise = require('bluebird');
var request = Promise.promisify(require('request'));
var uuid = require('uuid');
var randomstr... |
var C3 = versor.create({
metric:[1, 1, 1, 1, -1],
types: [
{ name:"Vec3", bases:["e1", "e2", "e3"] },
{ name:"Biv3", bases:["e12", "e13", "e23"] },
{ name:"Tri3", bases:["e123"] },
{ name:"Pss", bases:["e12345"] },
{ name:"Rot", bases:["s", "e12", "e13", "e23"] },
{ name:"Pnt", bases:["e1", "e2", "e3", "e... |
/**
* Detects installed Titanium modules.
*
* @module timodule
*
* @copyright
* Copyright (c) 2009-2016 by Appcelerator, Inc. All Rights Reserved.
*
* @license
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
const
__ = require... |
import React, { useState, useEffect, useRef, useContext } from 'react';
import T from 'prop-types';
import styled, { withTheme } from 'styled-components';
import mapboxgl from 'mapbox-gl';
import config from '../../../config';
import { glsp } from '../../../styles/utils/theme-values';
import { resizeMap } from './mb-ma... |
import React, { Component } from 'react'
import AppBarLogged from '../../components/AppBarLogged/AppBarLogged';
import pin from "../../images/icons/pin.png";
import horario from "../../images/icons/horario.png";
import fone from "../../images/icons/fone.png";
import mapa from "../../images/icons/mapa.png";
import card ... |
var pedding = require('pedding');
var should = require('should');
var MutableBigInteger = require('../lib/MutableBigInteger');
var Long = require('long');
describe('MutableBigInteger', function () {
it('#divide()', function (done) {
var a = new MutableBigInteger([-1966660860, -1981284351]);
var b = new Muta... |
var start, charac, drone, balloon, plane, clothes;
function preload(){
start = {
image: loadImage("images/start.png"),
nohzdyve: loadImage("images/Nohzdyve.gif"),
startClicked: false,
controlsEnabled: false,
endGame: false,
leftrectx: null,
leftrecty: null,
leftrectw: null,
leftrecth: null,
frame1... |
import axios from 'axios'
import helpers from './helpers'
import ElasticSearchConfiguration from './serviceConfiguration';
const baseUrl = ElasticSearchConfiguration.createUrl('gitlab-course-40-commit-data-anonymized/_search');
const getWeeklyPoints = (modules, mapping) => {
const weeklyPts = {}
const weeklyMa... |
function waituserPayByPage(p){
$('#loading').show();
var params = {};
params = WST.getParams('.s-ipt');
params.key = $.trim($('#key').val());
params.page = p;
$.post(WST.U('home/orders/waituserPayByPage'),params,function(data,textStatus){
$('#loading').hide();
var json = WST.toJson(data);
$('... |
import React from "react";
import {Container, Row, Col, Card} from 'react-bootstrap';
import Carousel from 'react-multi-carousel';
import 'react-multi-carousel/lib/styles.css';
function AudioBooks(){
//try using react carousel again instead of multicarousel
//style audio player
const audioBooks = [
... |
/*
* Copyright (c) 1993-1997, Silicon Graphics, Inc.
* ALL RIGHTS RESERVED
* Permission to use, copy, modify, and distribute this software for
* any purpose and without fee is hereby granted, provided that the above
* copyright notice appear in all copies and that both the copyright notice
* and this permission notic... |
var {
Var, Ref, Typ, All,
Lam, App, Let, Ann,
Loc, Ext, Nil,
reduce,
normalize,
Err,
typeinfer,
typecheck,
equal,
} = require("./FormalityCore.js");
// Parsing
// =======
// Finds first value satisfying `cond` in a list
function find(list, cond, indx = 0) {
switch (list.ctor) {
case "Nil":
... |
var commandString;
var statesArray = [];
var i = 0;
var Graph = Dracula.Graph
var Renderer = Dracula.Renderer.Raphael
var Layout = Dracula.Layout.Spring
var g = new Graph();
let x = 1;
let nodeNumber = 1;
const nodeOne = /[^n]*/i;
const nodeTwo = /[^n]*/i;
function fetchFunction() {
fetch('http://192.168.100.216/... |
/*
Copyright (c) 2021 CodingNeverEnds
https://codingneverends.web.app
*/
//Firebase base path
var path="Shigoto/DnDGame/";
//Teams
var teamvals=["cs","ec","eee","civil","mech","chempro","pamp"];
var Markers=[];
/*
cs
Ec
Eee
Civil
Mech
Chempro
Pamb
*/
var Team=[];
class TeamData{
constructor(){
th... |
// Copyright © 2018 <NAME>. All rights reserved.
// Node module: loopback-sdk-ios-swift-codegen
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
const fs = require('fs');
const ejs = require('ejs');
const moment = require('moment');
const pascalCase = req... |
/* eslint-disable */
import { Meteor } from 'meteor/meteor';
import { HTTP } from 'meteor/http';
import { EJSON } from 'meteor/ejson';
import { _Units } from '../units/units';
import { _Topics, _Resources } from '../topics/topics';
// import { _Resources } from '../topics/topics';
// import { _SearchData } from '../sea... |
"use strict";
/*!
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
... |
import {getGridPositionFromPixelsObj, getPixelsFromGridPositionObj} from "./foundry_fixes.js";
import {moveWithoutAnimation, togglePathfinding} from "./keybindings.js";
import {debugGraphics} from "./main.js";
import {settingsKey} from "./settings.js";
import {buildSnapPointTokenData, getSnapPointForTokenDataObj, isMod... |
/**
* 人工制费维护管理
*/
var pageCurr,localtableFilterIns;
var _index = 0;
var fileId = "";
$(function() {
layui.use([ 'form', 'table', 'tableSelect' ,'upload','laydate','tableFilter'],
function() {
var table = layui.table, form = layui.form, tableSelect = layui.tableSelect,laydate = layui.laydate,
tableSelect1 = ... |
/**
* @file
* bootstrap.js
*
* Provides general enhancements and fixes to Bootstrap's JS files.
*/
var Drupal = Drupal || {};
(function($, Drupal){
"use strict";
Drupal.behaviors.bootstrap = {
attach: function(context) {
// Provide some Bootstrap tab/Drupal integration.
$(context).find('.tab... |
'use strict';
const util = require('util');
const manager = require('fast-json-patch');
const article = require('indefinite-article');
const Encounter = require('./encounter');
const Entity = require('./entity');
const Fabric = require('./fabric');
const PER_TICK_CAPITAL = 10;
const PER_TICK_EXPERIENCE = 10;
const T... |
/////////////////////////////////////////////////////////////////////
// Copyright (c) Autodesk, Inc. All rights reserved
// Written by Forge Partner Development
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,
// provided that... |
/**
* Initialize some test assets and participants useful for running a demo.
* @param {com.eximbills.tf.bpu.SetupDemo} setupDemo - the SetupDemo transaction
* @transaction
*/
async function setupDemo(setupDemo) { // eslint-disable-line no-unused-vars
const factory = getFactory();
const NS = 'com.eximbill... |
import http from 'http';
import Url from 'url';
import Path from 'path';
import Koa from 'koa';
import Router from 'koa-router';
import etag from 'koa-etag';
import conditional from 'koa-conditional-get';
import logger from '../lib/logger';
import escapeRegExp from '../lib/helpers/escapeRegExp';
import once from '../... |
var config = {
type: Phaser.AUTO,
width: 821,
height: 552,
parent: 'phaser-example',
scene: {
preload: preload,
create: create,
update: update,
extend:
{
scanFont: scanFont
}
}
};
var fNoop = 0, // No effect
fSin1 = 1, // Sine 1
... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var React = require('react');
require('prop-types');
var Editor$1 = require('react-simple-code-editor');
var Highlight = require('prism-react-renderer');
var buble = require('buble');
var assign = require('core-js/features/object/assign');
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.