text stringlengths 5.97k 41.2k |
|---|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getRectWithCornerRadius = exports.getFunnelPath = exports.getIntervalRectPath = exports.getBackgroundRectPath = exports.parseRadius = exports.getRectPath = exports.getRectPoints = void 0;
var util_1 = require("@antv/util");
var graphic... |
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { connect } from 'react-redux';
import { withRouter } from 'react-router-dom';
import { FormattedMessage, injectIntl } from 'react-intl';
import { get, isNull, isEmpty, isNaN, includes, isString, round } from 'lod... |
//自定义插件
$.fn.some = function(fn, thisArg) {
return Array.prototype.slice.call(this).some(fn, thisArg);
};
$.fn.every = function(fn, thisArg) {
return Array.prototype.slice.call(this).every(fn, thisArg);
};
// 自定义函数
//判断是否为dom元素
function isElement(dom) {
if(dom && dom.length) {
dom = dom[0];
}... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.TrafficMap = undefined;
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descr... |
import React from 'react';
import {
View,
Alert,
StyleSheet,
PermissionsAndroid
} from 'react-native';
import {
List,
ListItem
} from 'react-native-elements';
import BottomNavigation, { Tab } from 'react-native-material-bottom-navigation';
import Icon from 'react-native-vector-icons/FontAwesome';
import MIcon fro... |
'use strict';
var stringify = require('json-stringify-safe');
var parsers = require('./parsers');
var zlib = require('zlib');
var utils = require('./utils');
var uuid = require('uuid');
var transports = require('./transports');
var nodeUtil = require('util'); // nodeUtil to avoid confusion with "utils"
var events = re... |
// # Particle factory
// The Scrawl-canvas particle physics engine is a simple system designed to allow developers a way to add particle-based effects to their canvas animation scenes. The physics engine is built on top of the following components:
// + [Particle objects](./particle.html), which represent a 3-dimension... |
var EventEmitter = require('events').EventEmitter;
var util = require('util');
var DEFAULT_MTU = 23;
var mtuSize = DEFAULT_MTU;
module.exports.Opcodes = Opcodes = {
ERROR : 0x01,
MTU_REQUEST : 0x02,
MTU_RESPONSE : 0x03,
FIND_INFO_REQUEST : 0x04,
FIND_INFO_RESPONSE... |
// TUBULAR-9000 - an ad-free, tracker-free and almost serverless video feed reader
// (c) 2020 <NAME>
// Uncomment during development to start from an empty local cache:
clearLocalStore();
// Settings
const settings = {
// URL of the subscriptions OPML file:
subscriptions: "subscriptions"
};
// Local data
let ... |
var _onreadyfuncs = [];
var onready = function(f) {
_onreadyfuncs.push(function() {f();});
};
var ready = function() {
for(var idx = 0; idx < _onreadyfuncs.length; idx++) _onreadyfuncs[idx]();
};
var nntpchan_mod_mark_spam = function(longhash) {
var elem = document.getElementById(longhash);
if(!elem) return... |
const LOGIN_INFO_KEY = 'login-info';
const ABSENCE_CODES_KEY = 'absence-codes';
const PERSON_KEY_PREFIX = 'person-';
const MESSAGE_KEY_PREFIX = 'message-';
const ADMIN_MESSAGE_KEY_PREFIX = 'admin-message-';
// poll every 2 minutes
const POLLING_INTERVAL_MS = 120000
// after someone checks in/out, automatically retur... |
/**
* Generate the AWS Lambda Edge function using the template cloudfront-lambda-blip-request-viewer.js
* Copyright (c) 2020, Diabeloop
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the associated License, which is identical to the BSD 2-Clause
* License as publi... |
/******************************************************************
@ Item REFRAME - Personal One Page HTML Template
@ Version 1.0
@ Author Avanzare
@ Website http://themeforest.net/user/avanzare
******************************************************************
------------... |
// Upon refresh of page the following happing in order:
//1. initWeb3();
//2. initContract();
//3. checkUserRegistration();
//4. getContractProperties();
//5. displayMyAccountInfo();
//6. getMyBalance();
//7. getMyInboxSize();
var myAddress;
var myInboxSize = 0;
var hasUserRegistered = false;
var currentReceivedMessag... |
import React, { useState } from 'react';
import { graphql } from 'gatsby';
import styled, { css } from 'styled-components';
import AnimateHeight from 'react-animate-height';
import { above } from '@allenai/varnish/theme/breakpoints';
import { outline } from '../outline';
import { getGroupedChapters } from '../utils';
... |
// Copyright 2011 <NAME>
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without limitation the
// rights to use, copy, modify, merge, publish, distribute, s... |
/**
* Chứa các function thông thường được sử dụng nhiều<br>
* Hướng dẫn sử dụng:<br>
* const {<tên hàm 1>, <tên hàm 2>} = kb2abot.helpers;<br>
* Ví dụ:
* <code>const {asyncWait, round, extend} = kb2abot.helpers;</code>
* @module COMMON
*/
const fs = require('fs');
const axios = require('axios');
const minimist =... |
var Qid = ["i1:type", "i4:ver", "i8:path"];
var QTDIR = 0x80;
var debug9p = 0;
var packets = {
100: {name: "Tversion", fmt: ["i4:size", "i1:type", "i2:tag", "i4:msize", "S2:version"], handler: Tversion},
101: {name: "Rversion", fmt: ["i4:size", "i1:type", "i2:tag", "i4:msize", "S2:version"]},
102: {name: "Tauth", f... |
import React, { Component, Fragment } from 'react'
import Modal from 'components/Modal'
import { Query } from 'react-apollo'
import { withRouter } from 'react-router-dom'
import { fbt } from 'fbt-runtime'
import growthEligibilityQuery from 'queries/GrowthEligibility'
import enrollmentStatusQuery from 'queries/Enrollme... |
const Env = require("../../../app/env");
const Nock = require("nock");
const Generator = require("../../../app/lib/generator");
describe("Generator lib", () => {
describe("#generate", () => {
let result;
const setupCommon = async () => {
// Mock list all tags
Nock(Env.GITLAB_API_ENDPOINT)
... |
"use strict";
/**
* @module opcua.miscellaneous
* @class cryptoutils
*
* @static
*/
var crypto_utils = exports;
var path = require("path");
var fs = require("fs");
var crypto = require("crypto");
var assert = require("better-assert");
var _ = require("underscore");
var jsrsasign = require("node-js... |
// MENU DESPLEGABLE -------------------------------------------------------------------
$(document).ready(function (e) {
// primera
$("#desp3").bind("mouseenter", function () {
$(this).children("#menu_nosotros").stop(false, true).slideToggle()
});
$("#desp3").bind("mouseleave", function () {
... |
var Shaderlib = (function() {
var utils = {
rand: [
"float rand(vec2 co){",
" return fract(sin(dot(co.xy ,vec2(12.9898,78.233))) * 43758.5453);",
"}",
].join("\n"),
edge: [
// from http://codeflow.org/entries/2012/aug/02/easy-wireframe-disp... |
import swal from 'sweetalert';
import history from '../../history';
const serverVars = {
baseUrl: "http://142.93.152.229/sesis/api/",
// baseUrl: "https://api.sesiscoop.com/api/",
authUrl: "auth/login",
regUrl: "auth/signup",
resetPass: "<PASSWORD>=",
verifypass:"<PASSWORD>",
verifyemail:"auth/signupVerif... |
import React, { useEffect, useRef, useState } from "react";
import {
View,
Text,
StyleSheet,
ActivityIndicator,
Button,
StatusBar,
Dimensions,
TouchableWithoutFeedback,
FlatList,
ScrollView,
SafeAreaView,
TouchableOpacity,
ToastAndroid,
TouchableNativeFeedback,
} from "react-native";
import ... |
//----------------- disable grading matrix, help_level_selector and duration_interpretation onces the quiz start-----------------------
$(document).ready(function(){
var startDate2 = document.getElementById("begin_time").value;
if(new Date(startDate2) < new Date()){
var inputs = document.getElementsByName('... |
import React, { PureComponent, Fragment } from 'react';
import Animate from 'rc-animate';
import { connect } from 'dva';
import moment from 'moment';
import debounce from 'lodash/debounce';
import {
Row,
Col,
Card,
Form,
Input,
Icon,
Button,
Dropdown,
Menu,
AutoComplete,
DatePicker,
Modal,
Tag... |
/******************************************************************************
LineMaker formats lines for output to a terminal. The class associates style names with escape sequences and conditionally outputs the escape sequences. The client calls LineMaker as if escape sequences were always present, but the followin... |
/**
* mongoose_rpc
* @module mongoose_rpc
*/
// Include the events library so we can extend the EventEmitter
// class. This will allow our evented cache to emit() events.
var EventEmitter = require("events").EventEmitter
var uuid = require('node-uuid')
var schemaDesign = {
//ts: { type: Date, default: Date.no... |
import jetpack from 'fs-jetpack';
import { getSelectedLayer, MAGICAL_ENT_LAYER_ID } from './js/ui/LayersPalette';
import { LOG } from './Logging'
import eyedropperGenerator from './tools/Eyedropper';
import smartEyedropperGenerator from './tools/SmartEyedropper';
import drawGenerator from './tools/Draw';
import s... |
const availableModels = [
{
modelName: 'DeepLab 513',
modelFile: './model/deeplab_mobilenetv2_513.tflite',
labelsFile: './model/labels.txt',
inputSize: [513, 513, 3],
outputSize: [513, 513, 21],
}
];
function main(camera) {
const videoElement = document.getElementById('video');
const image... |
var ryver = require('ryver');
var p = require('path');
var async = require('async');
var eventEC = ryver.eventEC;
var listData = exports.listData = {};
var DO = require( 'deepobject');
var skipMe = false;
/*
DATA SUMMARY:
*
Configuration happens in `_config.yaml` which has something like (for `tags` and `categor... |
const dataTraining = window.dataTraining;
const dataTesting = window.dataTesting;
class NaiveBayes {
/**
*
* @param {Array} dataTraining data training
* @param
*/
constructor(dataTraining, dataTesting, options) {
this.aturan = {
Kebutaan: ["YA", "TIDAK"],
Umu... |
require("babel-register");
const fs = require("fs");
const { join } = require("path");
const getConfig = require("./config").getConfig;
const getFixtureAccounts = require("./getFixtureAccounts").getFixtureAccounts;
const getDeployerAccount = require("./config").getDeployerAccount;
const deployETO = require("./deployETO... |
import React, { Component } from "react";
import {FormGroup, InputGroup,DropdownButton,Button,FormControl,MenuItem,SplitButton,Row,Col,Tabs, Tab } from 'react-bootstrap';
import ReactDataGrid from 'react-data-grid';
import update from 'immutability-helper';
import axios from 'axios';
// import { AxiosProvider, Request... |
import React from 'react';
import ReactDOM from 'react-dom';
import { Dashboard } from './dashboard';
import ReactApp from '../deckgl/react'
import pako from 'pako'
import * as obfObfDd from '../../geo-resolution/obf.json';
import * as obfRevierDd from '../../geo-resolution/reviere.json';
class VWM{
constructor... |
const Discord = require("discord.js");
const client = new Discord.Client({ ws: { properties: { $browser: "Discord Android" }}})
client.on("ready", () => {
console.log(`
+¡Hey, qué tal!
- ¿Uh?
+ Bot iniciado con user: ${client.user.tag}`);
client.user.setActivity("God of War 2", {type: "PLAYING", presence:"DND... |
import __uniqid from '../utils/uniqid'
import __camelize from '../utils/string/camelize'
import __uncamelize from '../utils/string/uncamelize'
import __autoCast from '../utils/string/autoCast'
import querySelectorLive from '../dom/querySelectorLive'
import __matches from '../dom/matches'
import __closestNotVisible from... |
/**
* @name VoiceEvents
* @author Zerthox
* @version 1.6.1
* @description Add TTS Event Notifications to your selected Voice Channel. TeamSpeak feeling.
* @authorLink https://github.com/Zerthox
* @donate https://paypal.me/zerthox
* @website https://github.com/Zerthox/BetterDiscord-Plugins
* @source https://gith... |
'use strict';
var BoardIO = require('board-io'),
i2cBus = require('i2c-bus'),
mutexify = require('mutexify'),
Gpio = require('onoff').Gpio,
fs = require("fs"),
util = require('util'),
Led = require('./led'),
AnalogReader = require('./analogReader');
var DEFAULT_SAMPLING_INTERVAL = 1;
var board = fs.rea... |
// Copyright 2015 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --expose-wasm
function bytes() {
var buffer = new ArrayBuffer(arguments.length);
var view = new Uint8Array(buffer);
for (var i = 0; i <... |
const Race = require('./race');
const Class = require('./charclass');
const Party = require( './social/party');
const Combat = require('./combat');
const dice = require( './dice');
const Guild = require( './social/guild');
const util = require( '../../jsutils');
const Trade = require( './trade');
const item = require( ... |
"use strict";
// for a bar chart story based on Simpsons data
// story variation variables
var discrete = false;
var stepper = false;
var stepperText = false;
if (stepper) {
discrete = true;
}
var reverse = void 0;
var transitionTime = 600;
var sticky = false;
var showTimeline = true;
var stickySwap = false;
// eas... |
import PropTypes from 'prop-types';
import React from 'react';
import {scaleOrdinal, scalePoint, scaleTime} from 'd3-scale';
import ImmutablePropTypes from 'react-immutable-proptypes';
import {OrderedSet} from 'immutable';
import {range} from 'd3-array';
import {StyleSheet, css} from 'aphrodite';
import {sansBold14, sa... |
var arrScrollFunction = [], arrScrollParallaxFunction = [];
var container = $(window);
var scrollbarWidth = getScrollbarWidth();
var menuOpen = false;
$(function() {
initializeDefault();
setScrollAnimFunction();
setParallaxImage();
container.scroll();
if ($(".header-cart, .header-cart-mobile").len... |
const { app, BrowserWindow, Menu, ipcMain, clipboard } = require('electron');
const contextMenu = require('electron-context-menu');
const path = require('path');
const fs = require('fs');
const nodeCrypto = require('crypto');
const algorithm = 'aes-256-gcm';
const bip39 = require('bip39');
const { v4: uuidv4 } = requir... |
const markdownIt = require('markdown-it');
const archiver = require('archiver');
const mdit = new markdownIt({
html: true,
linkify: true,
typographer: true
})
.use(require("markdown-it-container"), "tip")
.use(require("markdown-it-container"), "warning")
.use(require("markdown-it-container"), "dang... |
import React, { PureComponent } from 'react';
import { connect } from 'dva';
import { Link } from 'react-router-dom';
import { change_alias,encodeVI } from '@/utils/utils';
import { formatMessage, FormattedMessage } from 'umi/locale';
import FieldSet from './FieldSet';
import moment from 'moment';
var currencyFormatt... |
// Final Project Team 2
// <NAME>, <NAME>, <NAME>, <NAME>, <NAME>
// All Team Members Contributed Equally
// Importing modules
import * as THREE from "https://cdn.skypack.dev/three"
import { GLTFLoader } from 'https://cdn.skypack.dev/three/examples/jsm/loaders/GLTFLoader.js';
// Declaring variables:
// Cre... |
// svg path for target icon
var targetSVG = "M9,0C4.029,0,0,4.029,0,9s4.029,9,9,9s9-4.029,9-9S13.971,0,9,0z M9,15.93 c-3.83,0-6.93-3.1-6.93-6.93S5.17,2.07,9,2.07s6.93,3.1,6.93,6.93S12.83,15.93,9,15.93 M12.5,9c0,1.933-1.567,3.5-3.5,3.5S5.5,10.933,5.5,9S7.067,5.5,9,5.5 S12.5,7.067,12.5,9z";
var map = null;
var markers =... |
const SpotifyWebApi = require('spotify-web-api-node');
const Discord = require("discord.js");
const ytdl = require("ytdl-core");
const axios = require("axios");
require('dotenv').config()
const prefix = '+';
const token = process.env.discord_token;
const client = new Discord.Client();
const queue = new Map();
var k... |
// Barbiche
// version: 3.0.11
// author: <NAME> <<EMAIL>>
// license: MIT
'use strict';
/* Constants */
var attrs = ['if', 'alias', 'text', 'html', 'repeat', 'import', 'attr', 'class'];
var BB_IF = 0, BB_ALIAS = 1, BB_TEXT = 2, BB_HTML = 3,
BB_REPEAT = 4, BB_IMPORT = 5, BB_ATTR = 6, BB_CLASS = 7;
var globalAtt... |
#!/usr/bin/env node
const program = require('commander');
const prompt = require('inquirer');
const sortedObject = require('sorted-object');
const pkg = require('../package.json');
const logger = require('../lib/logger');
const dirs = require('../lib/dirs');
const { write } = require('../lib/files');
const templates =... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.createResolvedPaneNodeStream = createResolvedPaneNodeStream;
var _isEqual2 = _interopRequireDefault(require("lodash/isEqual"));
var _rxjs = require("rxjs");
var _operators = require("rxjs/operators");
var _generateHelpUrl = requ... |
var gulp = require('gulp'),
war = require('gulp-war'),
zip = require('gulp-zip'),
concat = require('gulp-concat'),
clean = require('gulp-rimraf'),
rename = require("gulp-rename"),
cssmin = require("gulp-minify-css"),
csslint = require('gulp-csslint'),
uglify = require('gulp-uglify'),
... |
import styles from '../styles/Home.module.css'
import Head from "next/head"
import Link from "next/link"
import { STREAM_STATUS } from "../server/livestream_poller"
import getResult from "../server/poller.js"
import { ERROR_IMAGE_SET, HAVE_STREAM_IMAGE_SET, NO_STREAM_IMAGE_SET } from "../imagesets"
import { useEffect, ... |
/* -----------------------------------------------------------------------------
* @copyright (C) 2018, Alert Logic, Inc
* @doc
*
* Master function base class
*
* @end
* -----------------------------------------------------------------------------
*/
'use strict';
const async = require('async');
const msRestA... |
// Get tours
function getTours(cb) {
$.ajax({
type: 'GET',
url: '/api/frontend/tour',
success: resData => cb(resData),
error: err => console.error(err)
});
}
// Render tours
function renderTours(tours) {
let $list = $('.journeys .list');
// Empty list
$list.empty();
// Render tours
for ... |
import { assert } from 'chai'
// Constants
const H = 0.01
const PRECISION = 1e-10
const RANGE_STEPS = 100
// Critical values for P = 0.01
// Source: https://www.medcalc.org/manual/chi-square-table.php
const CHI_TABLE_LOW = [0,
6.635, 9.210, 11.345, 13.277, 15.086, 16.812, 18.475, 20.090, 21.666, 23.209,
24.725, ... |
let song_list = {
records: [],
display_cache: [],
sort_column: '',
reverse: false,
current_song_mode: 0, // 0 = single, 1 = medley, 2 = total
target_records: null,
};
const sl_table_header_ids = ['sl-song-name', 'sl-song-last', 'sl-song-times', 'sl-song-at-youtube', 'sl-song-at-bilibil... |
"use strict";
/*:
* @plugindesc v1.10 - Core script.
* @author <NAME>
* @help
* Load this plugin before any other plugins that requires this plugin.
* If you use SE_Keys.js, please uninstall it because this plugin already includes it.
*
* License:
* For the license and/or terms see: http://forums.rpgmakerweb.c... |
import _ from "lodash";
import React, { Fragment } from "react";
import { declare_panel } from "src/panels/panel_declarations/common_panel_utils";
import { InfographicPanel } from "src/panels/panel_declarations/InfographicPanel";
import {
TabbedContent,
TabLoadingSpinner,
DisplayTable,
} from "src/components/in... |
function QueryParams() {
}
function Notify() {
this.dom = {};
var e = this;
util.addEventListener(document, "keydown", function (t) {
e.onKeyDown(t)
})
}
function Splitter(e) {
if (!e || !e.container)throw new Error("params.container undefined in Splitter constructor");
var t = this;
... |
'use strict';
const amatch = require('./match');
const clients = require('./redis-clients');
const config = require('../config');
const randInt = require('./prng').randInt;
const updateStats = require('./stats');
const utils = require('./utils');
const fifolength = config.songsinarun * config.gameswithnorepeats;
cons... |
/**
* @license Copyright 2019 The Lighthouse Authors. All Rights Reserved.
* 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 applica... |
/*******
Main File
<EMAIL>
*******/
///////////////////////////
//////// Variables ////////
///////////////////////////
var institucion = document.getElementById('institucion');
var comunaInstitucion = document.getElementById('comuna_institucion');
var empresa = document.getElementById('empresa');
var comunaEmpresa... |
/**
* This file implement some basic JQuery functions which we use on all other PHP pages
*/
// This function create UI components of TOP Nav Bar which include breadcrum menu, go to test field and framework
// select drop-down
function buildTopNavBar(framework, testid) {
var topSideNavBar = $("#top-side-nav");
... |
const React = require('react')
import { Map, List, NextChapter, ManyMap, AnyMap } from '../components'
import { connect } from 'react-redux'
import { updateInventory, updateDeck, updateHands, updateChosen, showNextSection } from "../actions"
import { RenderSection } from '.'
const _Chapter = ({currentSection, invento... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } ... |
import adtLogo from '../../public/img/assets/adt.svg';
import aeLogo from '../../public/img/assets/ae.svg';
import ambLogo from '../../public/img/assets/amb.svg';
import antLogo from '../../public/img/assets/ant.svg';
import astLogo from '../../public/img/assets/ast.svg';
import batLogo from '../../public/img/assets/ba... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function _classCallCheck(instance, Construct... |
import html2canvas from 'html2canvas';
import { setRRSSLinks } from './rrss';
import 'url-search-params-polyfill';
import * as d3 from 'd3';
//Necesario para importar los estilos de forma automática en la etiqueta 'style' del html final
import '../css/main.scss';
///// VISUALIZACIÓN DEL GRÁFICO //////
let dataSource ... |
/* eslint-disable import/no-cycle */
import killPort from 'kill-port';
import path from 'path';
import detectPort from 'detect-port';
import ip from 'ip';
import axios from 'axios';
import lGet from 'lodash.get';
import colorString from 'color-string';
import { doResolve } from './resolve';
import { fsExistsSync, write... |
const crypto = require('crypto')
const path = require('path')
const fs = require('fs')
const os = require('os')
const { nanoid, customAlphabet } = require('nanoid')
const cheerio = require('cheerio')
const { CustomExporter } = require('./CustomExporter')
const replaceAll = function (original, oldValue, newValue) {
... |
// module to control the Tools options (click to edit, to re-geenerate, tp add)
"use strict";
toolsContent.addEventListener("click", function(event) {
if (customization) {tip("Please exit the customization mode first", false, "warning"); return;}
if (event.target.tagName !== "BUTTON") return;
const button = even... |
// Copyright (c) Microsoft. All rights reserved.
import React, { Component } from "react";
import { permissions, toDiagnosticsModel } from "services/models";
import { DevicesGridContainer } from "./devicesGrid";
import { DeviceGroupDropdownContainer as DeviceGroupDropdown } from "components/shell/deviceGroupDropdown"... |
/* global cv */
import colorDiff from 'color-diff';
import sortBy from 'lodash/sortBy';
import partition from 'lodash/partition';
import {
add,
clamp,
cross,
diff,
div,
forwardProjectionMatrixForPoints,
mult,
norm,
projectPoint,
shrinkPoints,
} from '../utils';
import { code8400 } from '../dotCode... |
/**
* Return a formatted representation of the monetary amount using scale sympols (e.g. $6.50M)
* @param {number} num - The number to format
* @param {number=} maxSignificantFigures - (default: 6) The maximum significant figures you wish to see (e.g. 123, 12.3 and 1.23 all have 3 significant figures)
* @param {num... |
// Copyright 2017 Google 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 agreed to i... |
"use strict";
let config = {
// Should be higher than real FPS to not skip real frames
// Hardcoded due to JS limitations
fps: 30,
// Low rate decreases the chance of losing frames with poor browser performances
playbackRate: 0.4,
// Format of the extracted frames
imageM... |
/*
* =================================================================
*
* 05.12.17 <-- Date of Last Modification.
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* -----------------------------------------------------------------
*
* **** Module : js-common/cofe.tasks.molrep.js
* ~~~~~~~~~
... |
/*
* This file is provided by the addon-developer-support repository at
* https://github.com/thundernest/addon-developer-support
*
* Version: 1.12
* - no longer allow to enforce custom "namespace"
* - no longer call it namespace but uniqueRandomID / scopeName
* - expose special objects as the global WL object
*... |
'use strict';
// Load Node Modules/Plugins
var gulp = require('gulp-help')(require('gulp'));
var gulpPlugin = require('gulp-load-plugins')({lazy: true});
var gulpNgConfig = require('gulp-ng-config');
var del = require('del');
var plato = require('plato');
var browserSync = require('browser-sync');
var wiredep = requir... |
/*!
* Copyright (c) 2017-present Cliqz GmbH. All rights reserved.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import { StaticDataView, EMPTY_UINT32_ARRAY... |
// pages/index/monthlyPlan/planOrderCertain/planOrderCertain.js
var utils = require("../../../../utils/util.js");
const date = new Date()
const years = []
const months = []
for (let i = 1990; i <= date.getFullYear(); i++) {
years.push(i)
}
for (let i = 1; i <= 12; i++) {
months.push(i)
}
Page({
/**
* 页面的... |
/*
* kthoom.js
*
* Licensed under the MIT License
*
* Copyright(c) 2011 Google Inc.
* Copyright(c) 2011 antimatter15
*/
/* Reference Documentation:
* Web Workers: http://www.whatwg.org/specs/web-workers/current-work/
* Web Workers in Mozilla: https://developer.mozilla.org/En/Using_web_workers
* File API (... |
/**
* 区间选择
* @component Range
* @version 3.0.0
* @description 用户可通过滑动选定一个区间,组件返回这个区间值;支持单、双滑块模式,有step和无step模式等。
*
* @instructions {instruInfo: ./range.md}{instruUrl: range.html?hideIcon}
* @author zongze.li
*/
import React, { Component, PropTypes } from 'react';
import './style.scss';
import RangeCore from './R... |
var path = require("path")
,fs = require("fs")
,appfs = require("sihorton-vfs")
,path = require("path")
;
var cryptoStreamer = require("../../node_modules/sihorton-vfs/crypto-streamer.js");
var b64Streamer = require('../../node_modules/sihorton-vfs/base64-streamer.js');
var config = {
packageExt:'.appfs'
... |
/*********************************************
* app-src/js/yanalise.js
* YeAPF 0.8.50-44 built on 2016-10-03 11:28 (-3 DST)
* Copyright (C) 2004-2016 <NAME> - <EMAIL>
* 2016-09-27 14:14:48 (-3 DST)
* First Version (C) 2014 - <NAME> - <EMAIL>
* yLexObj introduced in 2016-08-22 0.8.50-0
***************************... |
/* jshint -W098 */
'use strict';
var settingsConvertor = require( "viktor-nv1-settings-convertor" ),
CONST = require( "./const" ),
OscillatorBank = require( "./oscillator-bank" ),
WaveformSource = require( "./waveform-source" ),
Noise = require( "./noise" ),
Envelope = require( "./envelope" ),
Filter = require(... |
let cities
let statesJSON
let gunEvents
let gunFreq
let usData
const lowColor = '#fee0d2'
const highColor = '#de2d26'
const lowColor1 = '#fee6ce'
const highColor1 = '#e6550d'
let svg
let projection
let path
let state
let totalDeaths = []
let stateDeaths = []
let deathPerGender = []
let rScale
let spikeScale
let ba... |
import React from 'react';
import cx from 'classnames';
import { orderBy, cloneDeep } from 'lodash';
import ObservedImage from '../components/ObservedImage';
import ProgressBar from '../components/UI/ProgressBar';
import manifest from './manifest';
const interpolate = (investmentValue, displayInterpolation) => {
co... |
/* eslint-disable camelcase, one-var */
const { crypto_verify_32 } = require('./crypto_verify')
const { crypto_hash } = require('./crypto_hash')
const {
gf, gf0, gf1, D, D2,
X, Y, I, A, Z, M, S,
sel25519, pack25519,
inv25519, unpack25519
} = require('./internal/ed25519')
const { randombytes } = require('./rando... |
'use strict';
var _ = require('lodash');
var Location = require('model/Location');
var Geo = require('model/Geo');
var Item = require('model/Item');
var Bag = require('model/Bag');
var Player = require('model/Player');
var pers = require('data/pers');
var pbeMock = require('../../mock/pbe');
var RQ = require('data/Req... |
/*
Among Us - In real life
Made by DroopCat
https://droopcat.com
*/
window.onload = () => {
document.getElementById("allowCamera").addEventListener("click", allowCamera);
document.getElementById("deadbutton").addEventListener("click", killed);
document.getElementById("skipbutton").addEventListen... |
/* <copyright>
Copyright (c) 2012, Motorola Mobility LLC.
All Rights Reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditio... |
/**
* @license
* Copyright (c) 2021 Handsoncode. All rights reserved.
*/
// import
export var dictionary = {
errors: {
CYCLE: '#CYCLE!',
DIV_BY_ZERO: '#¡DIV/0!',
ERROR: '#ERROR!',
NA: '#N/D',
NAME: '#¿NOMBRE?',
NUM: '#¡NUM!',
REF: '#¡REF!',
VALUE: '#¡VALOR!'
},
functions: {
... |
import React, { useState, useEffect, useMemo } from "react";
import LocomotiveScroll from 'locomotive-scroll';
import HomeHeader from "./HomeHeader";
import HomePrograms from "./HomePrograms";
import HomeExpeditions from "./HomeExpeditions";
import HomeGastronomy from "./HomeGastronomy";
import HomeRooms from "./HomeRo... |
var Dota2 = require("../index"),
util = require("util");
Dota2._playerHistoryOptions = {
start_at_match_id: "number",
matches_requested: "number",
hero_id: "number",
request_id: "number",
include_practice_matches: "boolean",
include_custom_games: "boolean"
};
// Methods
/**
* Requests th... |
let areaCanvas = document.getElementById('area');
let playerCanvas = document.getElementById('player');
let enemyCanvas = document.getElementById('enemy');
let statusCanvas = document.getElementById('status');
let itemsCanvas = document.getElementById('items');
let rocketCanvas = document.getElementById('rockets')... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.