text stringlengths 5.97k 41.2k |
|---|
/**
* Copyright 2020 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... |
/**
* Skeleton code implementation for a half-edge mesh
*/
let vec3 = glMatrix.vec3;
function HEdge() {
this.head = null; // Head vertex
this.face = null; // Left face
this.pair = null; // Half edge on opposite face
this.prev = null; // Previous half edge in CCW order around left face
this.next ... |
const debug = require('debug')('bundledom');
const postcss = require('postcss');
const postcssUrl = require('postcss-url');
const postcssImport = require('postcss-import');
const postcssAspectRatio = require('postcss-aspect-ratio-polyfill');
const postcssFlexBugs = require('postcss-flexbugs-fixes');
const presetEnv = ... |
// ==UserScript==
// @name Get Data from Steam / SteamDB / EpicDB
// @namespace sak32009-get-dlc-info-from-steamdb
// @description Get Data from Steam / SteamDB / EpicDB
// @author Sak32009
// @year 2016 - 2021
// @version 4.1.9
// @license MIT
// @homepageURL https://github... |
// $Id: AsyncUnitTest.js 2738 2008-09-10 11:11:20Z graham.klyne $
//
// Asynchronous unit testing interface framework
//
// This module provides a unified interface for running suites of synchronous
// and asynchronous unit tests. It is intended to cope with unit tests written
// for a variety of test frameworks (e.... |
// Copied from https://github.com/nodejs/node/blob/v17.0.1/lib/internal/modules/cjs/loader.js
'use strict';
const {
ArrayIsArray,
ArrayPrototypeConcat,
ArrayPrototypeFilter,
ArrayPrototypeIncludes,
ArrayPrototypeIndexOf,
ArrayPrototypeJoin,
ArrayPrototypePush,
ArrayPrototypeSlice,
ArrayPrototypeSpli... |
/** Time-input-form related eventlisteners **/
$("#main-view").on("click", ".baseline-aggregate", function () {
selectAggregate(this)
});
//When any form field has changed enable Go (submit) button
$("#main-view").on("change",
".current-start-date, .current-start-time, " +
".baseline-start-date,... |
import {assert} from 'chai';
import sinon from 'sinon';
import MrChart, {
subscribedQuery,
} from 'elements/issue-list/mr-chart/mr-chart.js';
import {prpcClient} from 'prpc-client-instance.js';
let element;
let dataLoadedPromise;
const beforeEachElement = () => {
if (element && document.body.contains(element)) {... |
/**
* Windows module build command.
*
* @module cli/_buildModule
*
* @copyright
* Copyright (c) 2015 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.
*/
var archiver = require('archiver'... |
const Discord = require('discord.js');
const config = require('../../config.json');
const osudroid = require('osu-droid');
const { Db } = require('mongodb');
const cd = new Set();
/**
* @param {Discord.Client} client
* @param {Discord.Message} message
* @param {string[]} args
* @param {Db} maindb
*... |
//Set up default drawing colors.
var ctx = $("#canvas1")[0].getContext("2d");
var grd = ctx.createLinearGradient(0, 0, 500, 0);
grd.addColorStop(0, "rgb(0,0,200)");
grd.addColorStop(1, "rgb(255,255,255)");
ctx.strokeStyle = grd;
//Adjust size and resize canvas according to window
$("#canvas1").attr("width", $(window... |
/**
* Utility functions that do a local calculation (i.e., these functions do not
* make RPC requests).
*/
"use strict";
var BigNumber = require("bignumber.js");
var clone = require("clone");
var abi = require("augur-abi");
var utils = require("../utilities");
var constants = require("../constants");
var makeRepor... |
const E = this.global.EFFECTS;
const F = require("func");
const C = this.global.COLORS;
const S = this.global.STATUSES;
const spikeBullet = extend(BasicBulletType, {
draw(b) {
Draw.color(C.diamond, C.diamondDark, b.fout());
Drawf.tri(b.x, b.y, 4.0, 8.0, b.data == null ? b.rotation() : b.dat... |
/** Socket.IO 0.6.2 - Built with build.js */
/**
* Socket.IO client
*
* @author <NAME> <<EMAIL>>
* @license The MIT license.
* @copyright Copyright (c) 2010 LearnBoost <<EMAIL>>
*/
var io = this.io = {
version: '0.6.2',
setPath: function(path){
this.path = "";
}
};
/**
* Socket.IO client
*
* @author... |
/*
Author: Rafay
For Mashups Fall 2019
*/
var url = "http://api.worldweatheronline.com/premium/v1/astronomy.ashx?q=new%20york&date=today&format=json&key=<KEY>"; // api URL for new york
var url2 = "http://api.worldweatheronline.com/premium/v1/weather.ashx?q=new%20york&num_of_days=1&date=today&format=json&key=<KEY>"
... |
import Line from './Line';
import Word from './Word';
import Pron from './Pron';
import * as phonstants from './phonstants';
class Rhyme {
constructor(line1, line2) {
this.line1 = line1;
this.line2 = line2;
}
numless(pron) {
/*
* Given a string representing a CMUPD pron, removes the numerals th... |
$.ajaxSetup({
headers: { // 默认添加请求头
"X-Frappe-CSRF-Token": auth_token
}
});
/**
* 创建设备列表
*/
function creat_devs_list(sn){
$.ajax({
url: '/apis/api/method/iot_ui.iot_api.gate_devs_list',
headers: {
Accept: "application/json; charset=utf-8",
"X-Frappe-CSRF-T... |
//------------------------------------------------------------------------------
// Sample entity object
//------------------------------------------------------------------------------
// entity = {
// "flag_svg": "img/wh-32.png",
// "code": "3",
// "name": "<NAME>",
// "locality": "State of North Rhin... |
const cookies = document.cookie.split('; ')
let idIn = -1
let tok = ''
cookies.forEach(function (cookie) {
if(cookie.indexOf("id") >= 0) {
idIn = cookie.split('=')[1]
}
if(cookie.indexOf("token") >= 0) {
tok = cookie.split('=')[1]
}
})
if(idIn !== -1 && tok !== '') {
// 验证登录
try ... |
'use strict';
var util = require('util');
var crypto = require('crypto');
var path = require('path');
var log4js = require('log4js');
var request = require('request');
var CacheManager = require('./CacheManager');
var AppTimer = require('./AppTimer');
var Helper = {};
/**加密 */
Helper.encrypt = function (... |
/**
* The copyright in this software is being made available under the BSD License,
* included below. This software may be subject to other third party and contributor
* rights, including patent rights, and no such rights are granted under this license.
*
* Copyright (c) 2013, Dash Industry Forum.
* All rights re... |
'use strict';
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.definePrope... |
'use strict';
require('../../../../../../asset/js/xxt.ui.share.js');
if (/MicroMessenger/i.test(navigator.userAgent) && window.signPackage && window.wx) {
window.wx.ready(function() {
window.wx.showOptionMenu();
});
}
require('./directive.css');
require('./main.css');
require('../../../../../../asset/j... |
import { connect } from 'react-redux';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Tag, Input, Modal, Button, message, Icon, Tooltip, Spin } from 'antd';
import R from 'ramda';
import { propContains, toggleArrayItem } from '../../../lib/littleFn';
import { getBusinessCardRef }... |
var annotation_objects = {};
function Annotations(id){
this.id = id;
this.text_div = $("#annotationtext_"+id);
this.text = this.text_div.text().replace(">", ">").replace("<", "<");
this.original_html = this.text_div.html();
this.annotation_div = $("#annotations-"+id);
this.insert_count = ... |
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.render = render;
exports.renderToHTML = renderToHTML;
ex... |
var utils = require('./connection_utils'),
inherits = require('util').inherits,
net = require('net'),
EventEmitter = require('events').EventEmitter,
inherits = require('util').inherits,
binaryutils = require('../utils'),
tls = require('tls');
var Connection = exports.Connection = function(id, socketOptions... |
/*
* Constants copied from DGAM1 in the NSWC library.
*/
/** The constant {@code A0} defined in {@code DGAM1}. */
const INV_GAMMA1P_M1_A0 = .611609510448141581788E-08;
/** The constant {@code A1} defined in {@code DGAM1}. */
const INV_GAMMA1P_M1_A1 = .624730830116465516210E-08;
/** The constant {@code B1} defined... |
import "../../../src/components/VDataTable/VDataTable.sass"; // Components
import { VData } from '../VData';
import { VDataFooter, VDataIterator } from '../VDataIterator';
import VBtn from '../VBtn';
import VDataTableHeader from './VDataTableHeader'; // import VVirtualTable from './VVirtualTable'
import VIcon from '.... |
/*Company Landing Details Shows Income Statement,Balance Sheet, Cash Flow, Ratio. All data dynamically shows as hierarchal Tree View Structure */
/*Data Comes in Panel Array Object: Panel object contains relevant info.Structure : Panel[Panel Name: Data Object For Panel] */
function format1(n, pre) {
return n.toFi... |
/** API connecting to remote part:
* {
* // General settings
* alignMode: String, // choices from ['promoter', 'enhancer']
* epiName: String,
*
* // Query/search shared settings
* genomeAssembly: Array<String>(2), // choices from ['hg38', 'mm10']
* speciesText: Array<String>(2),
*
* // Qu... |
var $ = require("../../core/renderer"),
core = require("./ui.grid_core.modules"),
each = require("../../core/utils/iterator").each,
gridCoreUtils = require("./ui.grid_core.utils"),
equalByValue = require("../../core/utils/common").equalByValue,
isDefined = require("../../core/utils/type").isDefined,... |
import React from 'react';
import PropTypes from 'prop-types';
import {
Text, View, ScrollView, TouchableOpacity, Keyboard, Alert
} from 'react-native';
import { connect } from 'react-redux';
import equal from 'deep-equal';
import { BLOCK_CONTEXT } from '@rocket.chat/ui-kit';
import ImagePicker from 'react-native-imag... |
var treeEditor = null,
codeEditor = null;
"https:" === location.protocol && (location.href = location.href.replace(/^https:/, "http:"));
var app = {},
AUTO_SAVE_DELAY = 4e3,
LOCAL_SAVE_DELAY = 1e3,
MAX_LOAD_DURATION = 3e3;
app.doc = {
name: null,
_id: null,
_rev: null
}, app.lastChanged = vo... |
/*
* Copyright 2021 Adobe. All rights reserved.
* This file is licensed to you 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 appli... |
/*
* Copyright (c) AXA Group Operations Spain S.A.
*
* 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,... |
/* eslint-disable no-console, require-jsdoc */
/* global browser: false */
const path = require('path');
const os = require('os');
const {createServer} = require('http');
const dotenv = require('dotenv');
const glob = require('glob');
const uuidv4 = require('uuid/v4');
const handler = require('serve-handler');
const ... |
// built from https://everymac.com/systems/by_capability/mac-specs-by-machine-model-machine-id.html
/*
// TODO automate this process and run during build process
const selectors = '[id^=contentcenter_specs_externalnav_noflip_2],[id^=contentcenter_specs_externalnav_noflip_3]'
JSON.stringify([...document.querySelectorAll... |
// Licensed to the Software Freedom Conservancy (SFC) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The SFC licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you m... |
/****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing
**
** This file is part of Qbs.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the c... |
/**
* @class 流程节点
* @param {Object} container 节点容器(画布),jquery对象
* @param {String} id 节点id
* @param {String} name 节点名称
* @param {Number} x 节点x坐标
* @param {Number} y 节点y坐标
* @param {Object} [options] 节点附加属性
* @param {String} [options.color] 节点文字颜色
* @param {String} [options.bgColor] 节点背景... |
/**
* Mock objects for testing
*
* Copyright (C) 2014,2017 <NAME>
* Licensed under the Apache License, Version 2.0
*/
'use strict';
var util = require('util');
var assert = require('assert');
var stub = require('./stub');
var mockTimers = require('./mockTimers');
var mockRequire = require('./mockRequire');
var m... |
/*! (c) <NAME> - ISC */
try {
if (!self.customElements.get('f-d')) {
class D extends HTMLLIElement {}
self.customElements.define('f-d', D, {extends: 'li'});
new D;
}
}
catch (o_O) {
var attributesObserver = (whenDefined, MutationObserver) => {
const attributeChanged = records => {
for (l... |
import React ,{Component}from "react";
import { Radio, Checkbox} from 'antd';
const CheckboxGroup = Checkbox.Group;
const RadioGroup = Radio.Group;
import NewAdSpaceStore from "../../../mobx/mediaManage/adSpace/new-adSpace-store"
import {observer} from "mobx-react";
import {Link} from "react-router-dom";
import Layout ... |
import _ from 'underscore';
import { retryWithExpBackoff, RetryableError } from 'apify-shared/exponential_backoff';
import {
checkParamOrThrow,
gzipPromise,
pluckData,
catchNotFoundOrThrow,
wrapArray,
parseDateFields,
} from './utils'; // eslint-disable-line import/no-duplicates
import * as Util... |
import {camposVaciosFormularios, query, SnackAlerta,removerClassErrorForm} from './funcionesGlobales.js';
let tabla_usuarios = null;
let id = null;
let cedula = null;
let accion = "registrar";
let estado = null;
let reglasValidacion = []
let nueva_contrasena = '';
window.addEventListener('load',iniciarEventos,true)... |
'use strict';
// Convenient setup of Express that uses the most popular and useful Express
// middleware handlers from the Express community.
// We're using process.exit() intentionally here
/* eslint no-process-exit: 1 */
const { each, extend, memoize, noop, keys } = require('underscore');
const path = require('pa... |
import React from 'react';
import styles from './styles.scss';
import * as PIXI from 'pixi.js';
import fileDialog from 'file-dialog';
const { detect } = require('detect-browser');
const browser = detect();
import AspectSelect from '../AspectSelect';
import { removeHash, roundNumber } from '../../helpers';
let that; ... |
"use strict";
/*jshint esversion: 6*/
const geotiff = require("./geotiff.json");
const Uint64LE = require("int64-buffer").Uint64LE;
const Int64LE = require("int64-buffer").Int64LE;
function get_char_array(buffer, offset, length) {
let array = new Uint8Array(buffer, offset, length);
let data = "";
for (let x... |
import fs from 'fs';
import DebugLogger from 'debug';
import config from 'config/server.js';
import ServerError from 'server/Error.js';
import Timeout from 'server/Timeout.js';
export const FILES_DIR = 'src/data/files';
const ops = new Map([
[ 'create', '_createFile' ],
[ 'get', '_getFile' ],
[ 'put', '_p... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
'use strict';
var EXIF_MARK_SOI = 0xffd8; // Start of image data.
var EXIF_MARK_SOS = 0xffda; // Start of "stream" (the actual image data).
var EXI... |
var MAX_SUPPORTED_PAGES_NO_AUTH = 30;
$(document).ready(function() {
$('#plot-container').hide();
$('#url-container').hide();
$('#repo').keyup(function(event) {
if (event.keyCode == 13) {
go();
}
});
$(window).scroll(function() {
if ($(this).scrollTop() > 100) {
$('.scrollToBottom').fadeOut();
} ... |
//Spawn Sequence Camera Positions & Rotations
var spawn_sequence_campos = [
new Vector3(-2015.038, -1242.178, 35.5102), new Vector3(-1956.667, -1235.156, 32.49281),
new Vector3(-379.8545, -2652.042, 118.9725), new Vector3(-382.2806, -2585.594, 112.1685),
new Vector3(425.1143, -665.7761, 33.75719), new Vect... |
'use strict'
const bls = require('../src/index.js')
const assert = require('assert')
const fs = require('fs')
const readline = require('readline')
const { performance } = require('perf_hooks')
const curveTest = (curveType, name) => {
bls.init(curveType)
.then(() => {
try {
console.log(`name=${name}... |
// eslint-disable-line strict
const assert = require('assert');
const { DummyLogger, genericFilterGenerator, loggingMisuseGenerator } = require('../Utils.js');
const RequestLogger = require('../../lib/RequestLogger.js');
/*
* This function is a thunk-function calling the Utils' filterGenerator with
* the right ... |
class Character {
constructor(characterID) {
this.name = getAttrByName(characterID, 'character_name');
this.id = characterID;
this.token = this.getTokenId(characterID);
this.src = this.getTokenURL(characterID);
}
getTokenId(id) {
return findObjs({represents: id, _typ... |
import React from 'react'
import Swal from 'sweetalert2'
import Button from '@material-tailwind/react/Button'
import Card from '@material-tailwind/react/Card'
import CardBody from '@material-tailwind/react/CardBody'
import CardHeader from '@material-tailwind/react/CardHeader'
import Input from '@material-tailwind/react... |
import React from "react";
import Arrow from "../assets/ic-arrow-back.svg";
import Edit from "../assets/border-color-24-px.svg";
import {
TextField,
InputAdornment,
Box
} from "@material-ui/core";
import Button from "@material-ui/core/Button";
import "../scss/CreateMarket.scss";
import { createNewBooth, updateBoo... |
/*!
* Piwik - Web Analytics
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
// NOTE: if you cannot find the definition of a variable here, look in SitesManager.tpl
function SitesManager(_timezones, _currencies, _defaultTimezone, _defaultCurrency) {
var timezo... |
/*
Parser for .XKT Format V7
*/
import {utils} from "../../../viewer/scene/utils.js";
import * as p from "./lib/pako.js";
import {math} from "../../../viewer/scene/math/math.js";
import {geometryCompressionUtils} from "../../../viewer/scene/math/geometryCompressionUtils.js";
let pako = window.pako || p;
if (!pako... |
"use strict";
const Cesium = require("cesium");
const draco3d = require("draco3d");
const hashObject = require("object-hash");
const Promise = require("bluebird");
const addBuffer = require("./addBuffer");
const addExtensionsRequired = require("./addExtensionsRequired");
const addExtensionsUsed = require("./addExtensio... |
/*
Introduction to Redux
Imagine a calendar app. One part of the app lists all of the events.
Another part of the app sets filters on which types of events are shown.
A third part of the app sets the current time zone and a fourth part creates new events.
Whew, that’s a lot to keep track of!
In React, e... |
import React from "react";
import {Form, Col, Modal, Alert} from "react-bootstrap";
import {Link} from "react-router-dom";
import {websocketUrl} from "../utils.js";
import Websocket from "react-websocket";
import * as utils from "../utils.js";
import {Api} from "../api.js";
import { FontAwesomeIcon } from "@fortawesome... |
const ast_util = require("../ast_util.js");
var symtbl;
var pipeline_next_state = {};
var pipeline_states = [];
var strglobals = [];
const PFUNC = "_";
const PVAR = "";
const SPTR = "_p";
function array_method_call(ast){
var id = ast.qid[0];
var fn = ast.qid[1];
var sym = symtbl.lookup(id);
if(!sym){
return... |
'use strict';
const Promisie = require('promisie');
const CronJob = require('cron').CronJob;
const path = require('path');
const fs = require('fs-extra');
const crypto = require('crypto');
const async = require('async');
const http = require('http');
const https = require('https');
const cronstrue = require('c... |
var config = require('../../config.js'),
models = require("../../models.js"),
permissions = require("../../permissions.js"),
utils = require("../../utils.js"),
apiUtil = require('../util'),
prepareMapResult = apiUtil.prepareMapResult,
prepareLayerResult = apiUtil.prepareLayerResult,
sortByPosition = apiUtil.sort... |
/**
* Copyright 2013 Wordnik, Inc.
*
* 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 a... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va... |
var _ = require('lodash');
var sass = require('node-sass');
var fs = require('fs');
var marked = require('marked');
module.exports = function (grunt) {
grunt.util.linefeed = '\n';
// Load all grunt tasks matching the ['grunt-*', '@*/grunt-*'] patterns
require('load-grunt-tasks')(grunt);
grunt.initConfig... |
import rb, { Component } from '../core';
import getCss from '../utils/get-css';
const $ = Component.$;
const isContainerScroll = {scroll: 1, auto: 1};
const isContainerAncestor = {parent: 'parentNode', positionedParent: 'offsetParent'};
const docElem = document.documentElement;
if (!rb.components._childfx) {
rb.l... |
function getRandomInt(max) {
return Math.floor(Math.random() * Math.floor(max));
}
async function renderElements(elements, canvas, pageNumber){
var canvas = viewer.pages[pageNumber].fcanvas;
//$.each(elements, async (i,v)=>{
for(let eit=0;eit!=elements.length; eit++){
v = elements[eit];
if(typeof v=='... |
"use strict";
const C = require("cli-color");
const strings = require("./strings.js");
var spaceReg = new RegExp("\\s+", "gm");
/**
* Object of public functions for performing various miscellaneous stuff
* @namespace utils
*/
var utils = module.exports = {
/**
* Colors a media title based on its source. Req... |
var Vector3 = require('../math/Vector3');
var Vector2 = require('../math/Vector2');
var MathUtils = require('../math/MathUtils');
var Camera = require('../renderer/Camera');
var SystemBus = require('../entities/SystemBus');
var ZOOM_DISTANCE_FACTOR = 0.035;
var EPSILON = 1e-6;
/**
* @param {Object} args
* @param {b... |
import React, { Component } from "react";
import { connect } from "react-redux";
import createClassString from "classnames";
import * as actions from "./actions";
import * as reviewSelectors from "../store/reviews/reducer";
import * as userSelectors from "../store/users/reducer";
import Tag from "./Tag";
import Icon fr... |
import React from 'react';
import { useState } from 'react';
import Swipeable from 'react-native-swipeable';
import { StyleSheet, Text, View, TouchableOpacity, Button, Image, Alert, SafeAreaView, ScrollView, ToastAndroid, Share, Linking, TouchableHighlight } from 'react-native';
import {ProgressBar} from '@react-nativ... |
//https://www.npmjs.com/package/debug
let debug=require('debug')('sounddbserver')
//===================================================
const express = require('express');
const https = require('https');
const bodyParser= require('body-parser')
const http = require('http');
// created depending on the port number
le... |
import { Observable, BehaviorSubject, of, from } from 'rxjs';
import { concatMap, first } from 'rxjs/operators';
import { getStatusText, isSuccess, STATUS } from './http-status-codes';
import { delayResponse } from './delay-response';
import { InMemoryBackendConfig, parseUri, removeTrailingSlash } from './interfaces';
... |
/**
* The Agent API Simulator is being released under the standard MIT License.
* Copyright (c) 2020 Genesys. All rights reserved.
*/
const _ = require("underscore");
const auth = require("./auth");
const conf = require("./conf");
const log = require("../common/log");
const messaging = require("./messaging");
const rm... |
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import autoBindReact from 'auto-bind/react';
import { bindActionCreators } from 'redux';
import { AppState, InteractionManager, Platform } from 'react-native';
import _ from 'lodash';
import {
DropDownMenu,
EmptyStateView,
ListView,... |
function istext(e) {
// needs to be before e.ctrlKey check, because AltGr+7 etc. causes e.ctrlKey to be true
if (e.key == "{" || e.key == "}" || e.key == "[" || e.key == "]" || e.key == "~" || e.key == "\\")
return true;
if (e.ctrlKey)
return false;
if (e.key == "Home") return false;
if (e.key == "End"... |
const universalStyles = {
background: props => props.background,
backgroundAttachment: props => props.backgroundAttachment,
backgroundBlendMode: props => props.backgroundBlendMode,
backgroundClip: props => props.backgroundClip,
backgroundColor: props => props.backgroundColor,
backgroundImage: props => props... |
#!/usr/bin/env node
var sys = require('sys'), fs = require('fs'), path = require('path');
__dirname = path.dirname(fs.realpathSync(__filename));
require.paths.unshift(__dirname + '/lib');
var oui = require('oui'),
couchdb = require('couchdb'),
imagemagick = require('imagemagick'),
config = require('dropular... |
import React, { PureComponent, Fragment } from 'react';
import PropTypes from 'prop-types';
import equals from 'fast-deep-equal';
import VirtualList from 'react-tiny-virtual-list';
import { bind, memoize, debounce } from 'utils/decorators/decoratorUtils';
import KeyboardArrowDown from '@material-ui/icons/KeyboardArrow... |
import * as helper from './helper.js';
import * as vcid3 from './d3.vci.js';
var GUIcontrols = new function () {
this.mode = "NCEP";
this.partitions = 8;
this.pressure = 5;
this.timeslice = 0;
this.numSteps = 50;
this.seedsShownAtOnce = 125;
this.monkeyTest = false;
};
class D3_APP exten... |
/**
* Copyright 2012-2020, Plotly, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
var Lib = require('../../lib');
var autorange = require('./autorange');
var id2name = require('./axis_ids').id2... |
import './pudding-chart/tree';
import './pudding-chart/sankey';
import db from './db';
import generateSankeyData from './generate-sankey-data';
// import britneyData from './britney';
import PEOPLE from './people';
const RANGE = [1, 10];
PEOPLE.sort((a, b) => d3.ascending(a.fullname[1], b.fullname[1]));
const PEOPLE_... |
var $ = require('jquery');
require("jquery-ui/ui/widgets/autocomplete");
require("jquery-ui/ui/widgets/sortable");
require("jquery-confirm");
require('datatables');
require('blueimp-file-upload/js/jquery.iframe-transport.js');
require('blueimp-file-upload');
require('blueimp-file-upload/js/jquery.fileupload-process.js... |
"use strict";
var Long = require('long');
var decimal_1 = require('./decimal');
var S2CellId_1 = require("./S2CellId");
var S2Point_1 = require("./S2Point");
var S2LatLng_1 = require("./S2LatLng");
var S2Projections_1 = require("./S2Projections");
var R2Vector_1 = require("./R2Vector");
var MutableInteger_1 = require("... |
const ExifImage = require('exif').ExifImage;
const XLSX = require("xlsx");
const fs = require('fs-extra');
const argv = require('argv');
const Jimp = require('jimp');
const path = require('path');
const geojson_template = {
type: "FeatureCollection",
crs: { type: "name", properties: { name: "urn:ogc:def:crs:OGC:1.... |
import { expect } from "chai";
import { prettyPrintGasCost } from "./helpers/gasUtils";
import EvmError from "./helpers/EVMThrow";
import { parseNmkDataset } from "./helpers/dataset";
const CurveGas = artifacts.require("./test/CurveGas.sol");
const BigNumber = web3.BigNumber;
const EUR_DECIMALS = new BigNumber(10).to... |
var finder_settings = finder_settings || {};
var geolocate_supported = true; // until prove false
var geocoder = new google.maps.Geocoder();
if (typeof finder_settings.EXAMPLE_PLACE_BBOX != 'undefined') {
var bounds = finder_settings.EXAMPLE_PLACE_BBOX.split(',');
var southwest_limit = new L.LatLng(parseFloat(... |
// Tiny Speck would like to offer a shoutout to <NAME>
// (http://kevin.vanzonneveld.net). We're using his number_format() function.
// Kevin, there weren't any licensing terms on this, so please let us know
// (<EMAIL>) if you'd like us to remove it.
//
//#include common.js
//#include utils/craftytasking.js
//#inclu... |
import {Component} from "react";
import {
Clipboard,
StyleSheet,
ScrollView,
TextInput,
TouchableWithoutFeedback,
Text,
Image,
View,
Dimensions,
TouchableOpacity,
Animated,
RefreshControl
} from "react-native";
import React from "react";
const { height, width } = Dimensions.get('window');
const ... |
console.log("D3 running");
var sneakers_link = "https://gist.githubusercontent.com/gagejustins/54e8196f4a89078ca91ea59371a1b644/raw/86eb66010d4de9548ad6ce856603d5be9a1df080/nikexoff-white.csv"
var width = window.innerWidth * .7,
height = 600,
padding = 20;
var legend_width = window.innerWidth * .25,
legend_height = ... |
const { makeExecutableSchema } = require('graphql-tools');
const { // define resolvers
getUser_R,
checkUserExists_R,
loginUser_R,
addUser_R,
addTiposdocu_R,
updateUser_R,
updateUserAdmin_R,
setJobCode_R,
setJobCodeDoc_R,
getJobCode_R,
delJobCodeDoc_R,
setTiposdocuCode_R,
setTiposdocuCo... |
var playlists = {};
var displays = [];
var content = [];
var editPlaylistId = null;
var editTrackId = null;
var trackContentItem = null;
var publishPlaylistId = null;
var publishDisplayItem = null;
var areYouSureItemId = null;
// Used in Typeahead string matching
var substringMatcher = function(objs) {
return funct... |
import * as csp from 'plexus-csp';
import * as tilings from '../dsymbols/tilings';
import { coordinateChangesF as opsF } from '../geometry/types';
import { Archive } from '../io/archive';
import { structures } from '../io/cgd';
import parseDSymbols from '../io/ds';
import { embed } from '../pgraphs/embedding';
import ... |
const fs = require('fs-extra');
const HAXCMS = require('../lib/HAXCMS.js');
const explode = require('locutus/php/strings/explode');
const base64_encode = require('locutus/php/url/base64_encode');
const parse_url = require('locutus/php/url/parse_url');
const strtr = require('locutus/php/strings/strtr');
/**
* @OA\Po... |
let mContainer;
let mCamera, mRenderer;
let mControls;
let mScene;
let mParticleCount = 60; // <-- change this number!
let mParticleSystem;
let mTime = 0.0;
let mTimeStep = (1 / 60);
let mDuration = 200;
window.onload = function() {
init();
};
function init() {
initTHREE();
initControls();
initPart... |
overlayOda();
class Hole {
constructor(value, id) {
this.id = id;
this.value = value;
this.addedDotcount = 0;
}
}
var user1hole = [];
var user2hole = [];
for (var i = 1; i < 7; i++) {
var hole1 = new Hole(4, "user1hole" + i.toString());
var hole2 = new Hole(4, "user2hole" + i.toString());
user1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.