text
stringlengths
5.97k
41.2k
/** @babel */ /** @jsx etch.dom */ import path from 'path' import url from 'url' import _ from 'underscore-plus' import fs from 'fs-plus' import {shell} from 'electron' import {CompositeDisposable, Disposable} from 'atom' import etch from 'etch' import PackageCard from './package-card' import PackageGrammarsView fro...
'use strict'; function cFolders(){ var self = this; self.folders = []; self.stats = {}; self._mode = 0; //1 - mobile move mode self.setMode = function(mode, sentOnly){ mode = mode || 0; self._mode = mode; for(var i = 0; i < self.folders.length; i++){ self.folders[i]._dom.show(); if(!self._mode) c...
show_settings = false; function keyup_complete(e) { var locations = $(this).parent().find('.location'); var active = $(this).parent().find('.location').filter('.active'); if (e.which == 40) { var nexts = active.nextAll(':visible'); if (nexts.length) { active.removeClass('active')...
//this is a replacement cypher that I use for price calculation this should later be replaced with a server call to get the prices const PriceBook = { sizes : {party:"25.0",large:"20.0",medium:"13.0",personal:"8.0",slice:"2.5"}, crusts: {handtoss:"2.5",thin:"1.5",stuffed:"3.5",orig:"1.5"}, cFlavor: {garlicButtery...
"use strict";Object.defineProperty(exports, "__esModule", {value: true});/** * Simulator State * Pokemon Showdown - http://pokemonshowdown.com/ * * @license MIT */ var _battle = require('./battle'); var _dexdata = require('./dex-data'); var Data = _dexdata; var _field = require('./field'); var _pokemon = require(...
"use strict"; var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; ...
var fondo, grupoAssets, imagenFondo, capaKinetic; var keyboard = {}; var intv; var personaje, puntaje; var posX, posY; var posYP; var posXM, posYM; var grav = 3;//2.2-la usada por mucho tiempo //3 var val_reb = -0.12;//-0.09 // Variable para el bug de los dobles var b = false; // Variable para el bug del g...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; function _assert() { const data = _interopRequireDefault(require("assert")); _assert = function () { return data; }; return data; } function _utils() { const data = require("@parcel/utils"); _u...
var path = require('path') var fs = require('fs') var crypto = require('crypto'); var moment = require('moment'); var piexif = require("piexifjs"); var Jimp = require("jimp"); var ExifImage = require("exif").ExifImage var logger = require('winston'); logger.emitErrs = true; logger.loggers.add('JPG', { console:...
/* * Copyright (c) 2013 The Native Client 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'; lib.rtdep('lib.f', 'hterm'); // CSP means that we can't kick off the initialization from the html file, // so we...
var nodeCompare=new NodeCompare(); /** * Extract data records from a specific data region or from an entire webpage * @param treeRoot root node of the webpage tree or the data region subtree */ function extractRecords(treeRoot){ var similarNodesList=[]; // Traverse the target tree and col...
"use strict"; require("core-js/modules/es.array.concat.js"); require("core-js/modules/es.array.for-each.js"); require("core-js/modules/es.array.map.js"); require("core-js/modules/es.array.reduce.js"); require("core-js/modules/es.function.name.js"); require("core-js/modules/es.number.constructor.js"); require("co...
#!/usr/bin/env node import chalk from 'chalk'; import { scaleDmxValue, scaleDmxRange, } from '../lib/scale-dmx-values.js'; let errorCount = 0; testScaleDmxValuesUp(); console.log(); testScaleDmxValuesDown(); console.log(); testScaleDmxRangesUp(); console.log(); testScaleDmxRangesDown(); console.log(); testR...
'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 ('v...
import React, { Component, PropTypes } from 'react'; import { createAction } from 'redux-actions'; import { pushState } from 'redux-router'; import { Button } from 'react-bootstrap'; import { Header, Footer, CollectionContentEdit, CollectionCodeExecResourceFile, CodeThemes, Collecti...
import React, { Component } from 'react'; import { StyleSheet, Text, View, ScrollView, TouchableOpacity, TextInput, AsyncStorage } from 'react-native'; import { Title, Tile, Subtitle, Caption, Row, Image, Divider, DropDownMenu, Button, Icon, Screen} from '@shoutem/ui' import { NavigationBar } from '@shoutem/ui/navig...
const Math = require('mathjs'); const request = require('request'); // FIXME: deprecated var fs = require('fs'); const logger = require('log4js').getLogger(); const setDriftlessTimeout = require('driftless').setDriftlessTimeout; const setDriftlessInterval = require('driftless').setDriftlessInterval; const clearDriftle...
'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 Bloodhound from "corejs-typeahead"; /** * Creates a GenomeSelector object that represents a filterable list of genomes * * @param <Array> args.data is an array of around 17k objects with this format: * {"id":57587,"class_id":29547,"genus_id":194, * "name":"Campylobacter jejuni","order_id"...
/* * chord.js * * Copyright (C) 2012 <NAME> [<EMAIL>] * * Based On: * Chord Image Generator * http://einaregilsson.com/2009/07/23/chord-image-generator/ * * Copyright (C) 2009-2012 <NAME> [<EMAIL>] * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Gene...
import React from 'react'; class Mttg extends React.Component{ componentDidMount(){ //set styles var allLines = document.getElementById('svg-container').getElementsByTagName('line'); for(var t of allLines){ t.setAttribute('stroke',"#2975d9"); t.setAttribute('str...
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { DomHandler, ZIndexUtils, ConnectedOverlayScrollHandler, classNames, Portal } from 'hassanreact/core'; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a...
import React, { createRef, PureComponent } from 'react'; import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; import Moment from 'moment'; import classnames from 'classnames'; import { List as ImmutableList } from 'immutable'; import { shouldPatch, getWidgetField } from '../../utils/widgetHelpers';...
/*Copyright 2018-2019 Bang & <NAME>/S 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, ...
// Copyright (c) 2020 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, merge...
import arg from 'arg' import path from 'path' import colors from 'ansi-colors' import { ctxmenu } from 'ctxmenu' import { lookup } from 'mime-types' import './index.css' import README from '../../../README.md' import defaultWallpaperURL from './default_wallpaper.png' import { default as defaultAppIcon } from '../../as...
/** * SPDX-License-Identifier: Apache-2.0 */ 'use strict'; const Client = require('fabric-client'); const User = Client.User; const FabricCAServices = require('fabric-ca-client'); const childProcess = require('child_process'); const stripAnsi = require('strip-ansi'); const path = require('path'); const fs = requir...
const DBL_PI = 2 * Math.PI; const DEFAULT_HEIGHT = 150; const DEFAULT_INSTANT_RATE = 0.5; const DEFAULT_PENCIL_SIZE = 5; const DEFAULT_QUICKNESS = 0.025; const DEFAULT_WIDTH = 300; let minDistance; class Pencilfloor extends HTMLElement { constructor() { super(); ...
function generateUpdateData() { colorFun.reset(); var innerhtml = "<label class='label label-primary'>Search Resources:</label>"; innerhtml += "<table class='table table-bordered table-hover table-sm wholewidth' style='margin-top:0.5vh;'><tbody>"; innerhtml += "<tr><td width='10%'><label>Match Type:</la...
/////////////////////////////////////////////////////////////////////////// // Depends /////////////////////////////////////////////////////////////////////////// var dotenv = require('dotenv').config(); var favicon = require('serve-favicon') var flash = require('connect-flash'); var morgan = require('morgan'); var exp...
var scaleFactor = 0.75; // Create the canvas var canvas = document.getElementById("jp_canvas"); var ctx = canvas.getContext("2d"); // Intro image var introReady = false; var introImage = new Image(); introImage.onload = function () { introReady = true; }; introImage.src = "images/intro.png"; var game_finished = fal...
import * as math from 'mathjs'; const prepBoxPlotData = (data_noH, headers, partId, topicConfig, dyad, groupComp) => { const arrAvg = arr => arr.reduce((a,b) => a + b, 0) / arr.length; // generic function to compute average const variableName = topicConfig.variable; const groupName = topicConfig.group; ...
function enableradio(ckvalue) { var loccheckedcount = $("#loccheckedcount").val(); var locradiocount1 = $("#locradiocount1").val(); var locradiocount2 = $("#locradiocount2").val(); var locradiocount3 = $("#locradiocount3").val(); var locationvalue = $('#ck'+ckvalue).val(); var loccheckedvalue...
/* globals Class, Krypton */ /* eslint arrow-body-style: 0 */ const _ = require('lodash'); const { basePath } = require('$lib/AWS'); const DisputeAttachment = require('$models/DisputeAttachment'); const DisputeTool = require('$models/DisputeTool'); const DisputeStatus = require('$models/DisputeStatus'); const DisputeR...
"use strict"; var db = require("../model/db.js"); var should = require("should"); var async = require("async"); var debug = require("debug")("OSMBC:model:pgMap"); var sqldebug = require("debug")("OSMBC:model:sql"); var config = require("../config.js"); var logger = require("../config.js").logger; var util = re...
var editor = null; var elmDocs = null; function compile() { var form = document.getElementById('inputForm'); form.submit(); } function hotSwap() { var request = null; if (window.ActiveXObject) { request = new ActiveXObject("Microsoft.XMLHTTP"); } if (window.XMLHttpRequest) { request = new XMLHttp...
require('should') const { wikibaseTimeToEpochTime, wikibaseTimeToISOString, wikibaseTimeToSimpleDay, isEntityId, isItemId, isPropertyId, isLexemeId, isFormId, isSenseId, isGuid, isNumericId, getNumericId, getImageUrl } = require('../lib/helpers/helpers') const Q970917 = require('./data/Q970917.json') describe('helpe...
/* // JavaScript for Able Player // HTML5 Media API: // http://www.w3.org/TR/html5/embedded-content-0.html#htmlmediaelement // http://dev.w3.org/html5/spec-author-view/video.html // W3C API Test Page: // http://www.w3.org/2010/05/video/mediaevents.html // YouTube Player API for iframe Embeds https://develope...
var __extends = this.__extends || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } __.prototype = b.prototype; d.prototype = new __(); }; var BABYLON; (function (BABYLON) { var eventPrefix = BABYLON.Tools.GetPointerPrefix(); ...
var zombies = []; var zombie_code = 65025; var boss_code = 65026; var the_zombie = new Object (); the_zombie.started_loading = false; the_zombie.max_chase_d_sq = 100.0; // 8m the_zombie.attack_d_sq = 3.0; // 1m the_zombie.move_speed = 4.0; the_zombie.turn_speed = 150.0; the_zombie.hurt_cd = 0.0; the_zombie.max_draw_dis...
/* Copyright (c) 2006-2013 Regents of the University of Minnesota. For licensing terms, see the file LICENSE. */ /* A note on code style: This file doesn't adhere to Cyclopath's variable and * function naming. It instead follows conventions used in Javascript * development, so that external developers can more ...
if (typeof oObject != "object") window.oObject = {}; var Errors = { "result_unval" : "Error in result", "result_empty" : "Empty result" }; function SonetJsTc(oHandler, sParams, sParser, oBtn, bHint) { var t = this, tmp = 0; t.oObj = typeof oHandler == 'object' ? oHandler : document.getElementById("TAGS"); ...
/** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors ma...
import React, { Component } from 'react'; import './App.css'; import Fetch from './Fetch.js'; import loading_apple from './images/loading_apple.gif'; const initialYear = 2017; const WRONG_INPUT = ( <tr> <td colSpan={8}>Wrong Input. Please check course code.</td> </tr> ...
import React, { Component } from "react"; import { Meteor } from "meteor/meteor"; import { withTracker } from "meteor/react-meteor-data"; import { Link } from "react-router-dom"; import moment from "moment"; import PropTypes from "prop-types"; import momentDurationFormatSetup from "moment-duration-format"; import { gra...
import React, { Component } from 'react'; import InputLabel from '@material-ui/core/InputLabel'; import PropTypes from 'prop-types'; import CustomTag from '../../../../components/CustomTag'; import CustomIcon from '../../../../components/CustomIcon/CustomIcon'; import Radio from '@material-ui/core/Radio'; import RadioG...
import React, { Fragment, useEffect, useState } from "react"; import ControlledCar from "../components/ControlledCar"; import MiddleRoadLines from "../components/MiddleRoadLines"; import UncontrolledCar from "../components/UncontrolledCar"; import ColorSample from "../components/ColorSample"; import carsArray from "../...
'use strict'; var directive = {}; var service = { value: {} }; var DEPENDENCIES = { 'angular.js': 'http://code.angularjs.org/' + angular.version.full + '/angular.min.js', 'angular-resource.js': 'http://code.angularjs.org/' + angular.version.full + '/angular-resource.min.js', 'angular-route.js': 'http:...
import React, { Component } from 'react' import PropTypes from 'prop-types' import * as d3 from 'd3-force' import cloneDeep from 'lodash.clonedeep' import isEqual from 'lodash.isequal' import omit from 'lodash.omit' import pick from 'lodash.pick' import debounce from 'lodash.debounce' import { connect } from 'react-red...
'use strict'; import PropTypes from 'prop-types'; import React from 'react'; import { Image, ListView, TouchableHighlight, StyleSheet, Text, View, PixelRatio, Dimensions, TouchableOpacity, TouchableWithoutFeedback, RefreshControl, ScrollView, InteractionManager, ...
/** * These scripts are part of the Conditional Fields for Contact Form 7 plugin. * Should only be loaded when editing a form in the WP backend. */ var wpcf7cf = {}; wpcf7cf.MAX_CONDITIONS = 50; wpcf7cf.$newEntry = jQuery('#wpcf7cf-new-entry').eq(0); wpcf7cf.$textView = jQuery('#wpcf7cf-settings-text').eq(0); wp...
// ============================================== // Load libraries // ============================================== var dotenv = require('dotenv').config(); // necessary if running via 'node app.js' instead of 'heroku local' var jsforce = require('jsforce'); // fabulous library for accessing sal...
import ol from 'ol'; import { default as proj4 } from 'proj4'; import moment from 'moment'; import { GeoJSON, KML } from 'ol/format'; import { Tile, Group } from 'ol/layer'; import { TileWMS, WMTS, OSM } from 'ol/source'; import { ImageWMS, ImageArcGISRest } from 'ol/source'; import { Vector } from 'ol/source'; var ut...
import React, { useRef, useState } from 'react' import Animator from 'components/Animator' import styled from 'styled-components/macro' import PageContainer from 'components/PageContainer' import FilledButton from 'components/FilledButton' import ArrowRight from 'components/ArrowRight' import { Flex, Text, Backgr...
var processedClauses; var trashExact = [ "…", "sp. z o.o.", "z o.o.", "sp.j.", "S.A.", "-", "itp.", "itp", "itd.", "np.", "tj.", "itd", "®", "w/w", "treść", "ww.", "ponadto", "ich", "tego", "tej", "temu", "jej", "jego", "ró...
/** * **exonIntronMap Class** * * sets defaults, parses user sequences * renders exon intron map * * <NAME> 2018 */ "use strict"; //globals let dnaArray = []; let myTempArray = []; class exonIntronMap { /** **constructor** * call this with `new exonIntronMap()`_ * @param {String...
/* Access GUI tests (PXP-6822) This test plan has a few pre-requisites: 1. The Access Backend component must be declared in the environment's manifest "versions": { "access-backend": "quay.io/cdis/access-backend:1.0", 2. The following artifacts must be created by the env. admin under the gen3 secrets fold...
/* jscrypto library, number theory * by <NAME> <guanzhi at guanzhi dot org> */ function bn_1026_cmp(a, b) { var t; t = a[37] - b[37]; if (t) return t; t = a[36] - b[36]; if (t) return t; t = a[35] - b[35]; if (t) return t; t = a[34] - b[34]; if (t) return t; t = a[33] - b[33]; if (t) return t; t = a[32] - b...
"use strict"; /* The code of this demonstration may seems complicated but it is not If you want to play only with the 2D canvas displayed above the head, Its context is CTX and it matches the canvas element CANVAS2D If you draw something on the 2D canvas using CTX.drawStuff(...) You should call update_canvasTexture()...
import Env from "../Config/Env.js" /** * Writes user defined styles as CSS classes to the DOM dynamically. * @param {object} style - User provided styles parameters * @param {string} id - ID of the UI-class of this NYANG instance */ const initializeGraphStyles = (style = {}, styleID, graphContainer) => { let cssS...
import _ from 'lodash'; import { escape, escapeId } from '../client.js'; import { Op, Predicate, Composition, Negation, Comparison, Expression, Field, Aggregate, FuncCall, InfixOp, Ordering, } from '../ast.js'; import IncludesResolver from '../includes-resolver'; export default (query) => { ret...
/* * Copyright 2012-present, Polis Technology Inc. * 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. An additional grant * of patent rights for non-commercial use can be found in the PATENTS file * in the sam...
function initCharacter(data, diseases) { var character = {}; character.ugcloud = data[0]; character.name = data[1]; character.pc = data[2]; character.generation = data[4]; character.gender = data[5]; character.province = data[7]; character.ses = data[8]; character.born = data[9]; character.ethnicity...
import { EventEmitter, Component, ChangeDetectionStrategy, ViewEncapsulation, ElementRef, NgZone, ChangeDetectorRef, Input, Output, ContentChildren, ViewChild, NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { DomSanitizer } from '@angular/platform-browser'; import { ButtonModule...
var util = require('util'); var ardrone = require('ar-drone-browserified'); var parseAT = require('./lib/atreader'); var createCam = require('voxel-camera'); var tic = require('tic')(); var Drone = function(options) { var self = this; if (options.THREE) options = {game:options}; if (!options....
var currentHeight = 0 var leaderHeight = 0 setInterval(updateHTML,3000); var serverOnline = false // Used to update some things less frequently var skipInterval = false $(window).load( function() { updateHTML() setTimeout(function () { updateHTML() }, 1000); } ); function update...
'use strict'; const { ArrayIsArray, JSONParse, JSONStringify, ObjectGetOwnPropertyNames, ObjectPrototypeHasOwnProperty, SafeMap, StringPrototypeEndsWith, StringPrototypeIncludes, StringPrototypeIndexOf, StringPrototypeSlice, StringPrototypeStartsWith, StringPrototypeSubstr, } = primordials; co...
/** ** jspwiki edit support routines ** Based on brushed template ** Needs jspwiki-common.js and mootools.js ** ** EditTools object (main object) ** - find&replace functionality : with regexp support ** ** - included popup-pagelinks routine from Janne // ** ** TextArea object ** Supports sele...
let com_dists; d3.tsv('./data/comment_dist_wide_2019_12_2020_12_05.tsv') .then(function(data) { setupBigSubredditPlot(data); setupSwarmPlot(data); setupLikelihoodAndSubredditPlots(data); makeSubredditsLegend(); }) .catch(function(error){ console.log(error); }) ...
/** * <NAME> * * Copyright (c) Able Magic AS * All rights reserved. * * MIT License * * 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 limitati...
const Display = require( '../../display'); /** * @const {number} PROC_RATE - Base Proc chance to try any reaction. */ const PROC_RATE = 0.25; /** * @const {RegEx} regExTest - test if string defines a regex. */ const regExTest = /^\s*\/(.+)\/([gim]{0,3})\s*$/; const Embeds = require( 'djs-embed'); const ReactSe...
import {Web3Contract} from "./Web3Contract.js"; import QueryABI from "./abi/demaxQueryABI.js"; import {Web3Provider} from './Web3Provider.js'; import {Web3Storage} from './Web3Storage.js'; import {Web3Platform} from './Web3Platform.js'; import {Constant} from './Constant.js'; import Token from "./model/token.js"; impor...
'use babel'; /** * @module olgm/gm */ import ol from '../ol'; const { geom, proj, style } = ol; const { LineString, Point, Polygon, MultiLineString, MultiPolygon, MultiPoint } = geom; const { transform } = proj; const { Circle, Icon, RegularShape } = style; import {getStyleOf, getColor, getColorOpacity} from './ut...
const execEvent = new CustomEvent("RUNNING", {}); // Initialization $(document).ready(function() { // collapsible sidebar $('.sidebar-tab-btn').click(function () { const target = $(this).data('target'); console.log('target', target, $(this).data('target'), $(this).attr('data-target')) $...
import { createAction, handleActions, } from 'redux-actions'; import { call, delay, fork, put, take, select, } from 'redux-saga/effects'; import GiiKER from 'giiker'; const moment = require('moment'); const bldTimerUtils = require('../bldTimerUtils'); // const ENTER_KEYCODE = 13; const ...
/* Copyright 2013-2015 ASIAL 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 to in writing, so...
import React, { useState, useEffect, useContext, useRef } from 'react'; import { IconCheckSolid, IconCheckLine } from '@instructure/ui-icons' import {EditorState, convertFromHTML, convertFromRaw, convertToRaw, ContentState} from 'draft-js'; import Editor from '@draft-js-plugins/editor'; import createToolbarPlugin, { ...
import React, { useState, useCallback, useMemo } from 'react' import omit from 'lodash/omit' import { area, curveMonotoneX } from 'd3-shape' import { storiesOf } from '@storybook/react' import { ScatterPlot, ResponsiveScatterPlot } from '../src' const sampleData = [ { id: 'girls low', data: [ ...
const ist = require("ist") const {schema, doc, p, h1, li, ul, blockquote} = require("prosemirror-test-builder") const {Transform, ReplaceAroundStep} = require("prosemirror-transform") const {Slice} = require("prosemirror-model") const {Decoration, DecorationSet} = require("..") let widget = document.createElement("bu...
import Awesomplete from 'awesomplete'; /** * Find a parent element according to its tag and its attributes * * @param element Element where to start the search * @param tagName Expected parent tag name * @param attributes Associative array of expected attributes (name=>value). * * @returns Found element o...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PageBinding = exports.Worker = exports.Page = void 0; var frames = _interopRequireWildcard(require("./frames")); var input = _interopRequireWildcard(require("./input")); var js = _interopRequireWildcard(require("./javascript")); ...
function createBrowserLocalStorageCache(e) { const t = `algoliasearch-client-js-${e.key}`; let r; const a = () => (void 0 === r && (r = e.localStorage || window.localStorage), r) , s = () => JSON.parse(a().getItem(t) || "{}"); return { get: (e, t, r = { miss: () => Pr...
/*############################################################################## # HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems. # # 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 Lice...
/* ** Made by ThaCheeseBun, forked from <NAME> ** Edited 12 april 2020 */ const Bitop = require('./bitop'); const AAC_SAMPLE_RATE = [ 96000, 88200, 64000, 48000, 44100, 32000, 24000, 22050, 16000, 12000, 11025, 8000, 7350, 0, 0, 0 ]; const AAC_CHANNELS = [ 0, 1, 2, 3, 4, 5, 6, 8 ]; const AUDIO_CODEC_NAME...
'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...
var crypto = require('crypto'), lazy = require('lazy'), levelup = require('levelup'), memdown = require('memdown'), sublevel = require('level-sublevel'), Lock = require('lock'), Big = require('big.js') exports.create = create exports.lazy = lazyStream exports.validateKey = validateKey exports.v...
#!/usr/bin/env node // @ts-check "use strict"; const MAX_ALLOWED_PROPERTY_GROUPS = 0; const MIN_COMPLEX_CLOSURE = 300; const MIN_COMPLEX_OBJECT = 1; const MIN_ALLOWED_NAME_LENGTH = 3; const MIN_LONG_STRING = 20; const MIN_STRING_LENGTH_TO_COMPUTE_GAIN = 2; const MIN_EXPECTED_STRING_GAIN = 11; // @ts-ignore const TEST...
/* eslint require-atomic-updates : 0 */ // TODO: Make this a class const os = require('os'); function return_obj_check(return_obj) { if (typeof return_obj === 'undefined') return false; if (typeof return_obj[bluetooth.device_num] === 'undefined') ret...
import React, { Component } from 'react' import './index.css' import _ from 'lodash' import Toggle from 'react-toggle' import { Tooltip } from 'react-tippy' import axios from 'axios' import 'rc-slider/assets/index.css' import 'rc-tooltip/assets/bootstrap.css' import 'react-tippy/dist/tippy.css'; import RcTooltip from '...
import React, {Component} from 'react'; import PropTypes, {connect, withViewport, storeUtil} from '../PropTypes.js'; import {getPlayingStatusClass} from '../../models/PlayerModel.js'; import _ from 'lodash'; import {editMatchPlayers} from '../../actions/matchActions.js'; import Table from 'react-bootstrap/lib/Table';...
var Layout = require('../Layout'); var FDLayoutConstants = require('./FDLayoutConstants'); var LayoutConstants = require('../LayoutConstants'); var IGeometry = require('../util/IGeometry'); var IMath = require('../util/IMath'); function FDLayout() { Layout.call(this); this.useSmartIdealEdgeLengthCalculation = FDL...
import React, {useEffect} from 'react'; import { copyStringToClipboard } from '../../utilities/Clipboard'; import GetAppIcon from '@mui/icons-material/GetApp'; import FileCopyOutlinedIcon from '@mui/icons-material/FileCopyOutlined'; import {ResponseDisplay} from './ResponseDisplay'; import RateReviewOutlinedIcon from '...
import { Events } from 'framework/events'; import { View } from 'framework/views/view'; import { AutoType } from 'auto-type'; import { Storage } from 'storage'; import { RuntimeInfo } from 'const/runtime-info'; import { Launcher } from 'comp/launcher'; import { SettingsManager } from 'comp/settings/settings-manager'; i...
/** * Zesty.io Content Model Component * When the ZestyLoader [..slug].js file is used, this component will autoload if it associated with the URL * * Label: Homepage * Name: homepage * Model ZUID: 6-e48cfbfea7-d9b9dt * File Created On: Thu Apr 21 2022 23:09:30 GMT+0800 (Philippine Standard Time) * * Model Fie...
// JSLint cleanup /*jslint sloppy : true */ /*global log4javascript */ /*global $ */ /*global logger */ /*global window */ /*global CSWClient */ /*global incomingParams */ /*global incomingMethod */ var MAXIMUM_STEPS = 2; var AJAX_TIMEOUT = 5 * 60 * 1000; var CURRENT_STEP = 0; var MINIMUM_MAP_HEIGHT = 400; //px var B...
/* Speed and Altitude [speedalt2] <NAME> mike[at]kereru.com 1.10 : add inverted colours */ var v = '1.10'; /*kalmanjs, <NAME>, MIT, https://github.com/wouterbulten/kalmanjs */ var KalmanFilter = (function() { 'use strict'; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Con...
var ans = [1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0] var nowfollowers = 0; var page = 1; var pageCount = 0; var nowlist = []; var list = []; var diff = []; var normal_unfollowers = []; var deleted_unfollowers = []; var all_unfollowers = []; var followers = 0; var user = "SuperScratcher_1234"; $(docum...
//APIs console.log("getting apis..."); const Discord = require('discord.js'); const ytdl = require('ytdl-core'); const fs = require('fs'); const ffmpeg = require('ffmpeg'); const request = require("request"); const getYouTubeID = require('get-youtube-id'); const fetchVideoInfo = require('youtube-info'); const youtubeno...
import React from "react"; import { Card, Picker, List, WhiteSpace, InputItem, Button, SegmentedControl, Checkbox, Switch, DatePicker, Stepper } from "antd-mobile"; import { createForm } from "rc-form"; import { MTR } from "MTR"; import { PARTITION } from "PARTITION"; import { DISTRICK } from "DIS...
var EPSILON = 2; solutions = null; function Graph(){ this.className = "Graph"; this.nodes = []; this.breakUpSelfIntersections(); this.breakUpIntersections(); this.generateBlobPaths(); // this.colorPaths(); this.init(); } var intersectionNodes = []; Graph.prototype = { colorPaths: function(){ var hue =...