text stringlengths 3.22k 29.5k |
|---|
'use strict';
var util = require('util');
function format() {
var arg = arguments;
var msg = '';
var ptr = 0;
// Only one argument, the error...
if ((arg.length == 1) && util.isError(arg[0])) {
var error = arg[0];
return format(error.message || error.toString(), error);
}
// Process the format... |
import React, { Component } from 'react';
import './App.css';
import Popup from './Popup.js'
const {Paper,Rect,Text} = require('react-raphael');
const ARROW_KEY_LEFT = 37;
const ARROW_KEY_UP = 38;
const ARROW_KEY_RIGHT = 39;
const ARROW_KEY_DOWN = 40;
const CONTINUE = 89;
//Position class contains snake's position i... |
import React,{useEffect,useState,useRef} from 'react';
import { TextInput,View,Text,TouchableOpacity,Image,KeyboardAvoidingView,Platform,ScrollView,StyleSheet,Keyboard } from 'react-native';
import { widthPercentageToDP as wp, heightPercentageToDP as hp } from 'react-native-responsive-screen';
import Toast from 'react-... |
/* eslint-env node, es6 */
/* eslint strict: 0, no-console: 0, complexity: [1, 5], no-use-before-define: 0 */
/* Project directory structure
*
* barebones
* |- node_modules [node] node packages (via npm)
* |- dev [project] files, compiled for development (html, ico, png, xm... |
var r = 100;
var padding = 10;
var inset = .7 ;
var pos_wheel_2 = 300;
var y_pos = 350;
var spin_speed = 1;
var rec_init_x = 150;
var rec_init_y = 0;
var dragOne = d3.behavior.drag()
.on('drag', dragOne);
var dragTwo = d3.behavior.drag()
.on('drag', dragTwo);
var g = d3.select('svg')
.attr({
width: 1000,
h... |
// WWConstante3.js
/*! 24.0.1.0 */
/*! VersionVI: 01A240063m x */
// Le seul support technique disponible pour cette librairie est accessible a travers le service "Assistance Directe".
// Days of the week
var STD_LUNDI = "Monday";
var STD_MARDI = "Thuesday";
var STD_MERCREDI = "Wednesday";
var STD_JEUDI = "Thursday";
... |
function ATM(){
this.n5 = 0;
this.n10 = 0;
this.n20 = 0;
this.n50 = 0;
this.n100 = 0;
this.abastecer = function(qtn, nota){
if((nota == 5)||(nota == 10)||(nota == 20)||(nota == 50)||(nota == 100)){
if((this.n5 < 100)&&((this.n5+qtn)<=100)&&(nota === 5)) return this.n5 += qtn;
if((... |
import {useRef} from 'react'
import isEqual from 'react-fast-compare'
import {parseQuery, stringifyQuery, navigation} from '@stellar-expert/navigation'
import {getCurrentStellarNetwork} from '../state/stellar-network-hooks'
import {useDependantState} from '../state/state-hooks'
import fetchExplorerApi from './explorer-... |
// The Cloud Functions for Firebase SDK to create Cloud Functions and setup triggers.
const functions = require('firebase-functions');
var req = require('request');
const {google} = require('googleapis');
const admin = require('firebase-admin');
var moment = require('moment-timezone');
admin.initializeApp();
// // The ... |
"use strict";
/**
* AnnoTip library main source.
* Author: Ivan (Jonan) Georgiev, 2020
*/
import './AnnoTip.css';
import $ from 'jquery';
import tippy from 'tippy.js';
import TextMonitor from './TextMonitor';
import CssSelectorGenerator from 'css-selector-generator';
const NS_ANNO = 'annotip-main';
const DEF_CONT... |
'use strict';
// As a user, I would like to display three unique products by chance so that the viewers can pick a favorite.
// Create a constructor function that creates an object associated with each product, and has the following properties:
// Name of the product
// File path of image
// Times the image has been... |
'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 {
GithubOutlined,
GooglePlusOutlined,
LeftOutlined,
PoweroffOutlined,
ReadOutlined,
RedditOutlined,
RightOutlined,
UserOutlined,
ZoomInOutlined,
} from '@ant-design/icons';
import { Input } from 'antd';
import React, { Fragment, PureComponent } from 'react';
import { connect } from 'react-redux';
import... |
"use strict"
const GAMEWIDTH = 1000 // width of game window in px
const LANDHEIGHT = 120 // height of the land in games in px
const PORT = 8080 // port will be used for game server
var net = require( 'net' )
var games = { } // all online games
var clients = { } // all online clients
var server = net.createS... |
var util = require("util");
var _ = require("underscore");
var get = require('lodash').get;
var isEmpty = require('lodash').isEmpty;
const { object } = require("underscore");
exports.writer = writer;
function writer(options) {
return simpleWriter();
}
function getReadableElement (tagName) {
const elMapping =... |
var API_BASEURL = '%CORONAFRIEND_API_ENDPOINT%';
var state = {
map: null,
layers: null,
active_road: null,
permalink: null
};
var road_styles = {
empty: {
color: '#F9D8BF',
weight: 10,
opacity: 0.75,
},
partial: {
color: '#FFE288',
weight: 10,
... |
$(document).ready(function () {
setInterval("ajaxd()", 3000)
});
function ajaxd(){
$.get('getDataFromSensor', function (data) {
document.getElementById("temperaturec").innerHTML = data;
});
$.get('getDataFromSensor2', function (data) {
document.getElementById("temperaturecC").i... |
/*
ActionPlanCreationScripts
version 1
22 Nov 2010
<NAME>
version 2
March 2021
<NAME>
*/
var maxDays = 1000;
function checkSkipWeekend(checkboxId, skipDayTableId) {
var skipbox = document.getElementById(checkboxId);
var daypicklist = document.getElementById(skipDayTableId);
if( j$( skipbox ).is("... |
/*
* Copyright 2015 <NAME>, OneFire Media 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 ... |
import React from 'react'
import PropTypes from 'prop-types'
import BigNumber from 'bignumber.js'
const LOADING_GAME_MESSAGE = "Loading Details...";
const NULL_ADDR = "0x0000000000000000000000000000000000000000";
const DEFAULT_STATUS = "Enter a Game ID or create a new game.";
/*
JoinAction is one of:
- "None": does n... |
"use strict"
var CallType = {
PERFORM: 1,
CALL: 2,
CICS_LINK: 3
};
var NodeType = {
PROCEDURE: 1,
BATCH_PROGRAM: 2,
ONLINE_PROGRAM: 3,
DYNAMIC: 4
};
/**
* This constant when seted to true will alow to all debug messages be printed on webbrowser console.
*/
const IS_DEBUG = false;
/**
... |
import React, { Component, Fragment } from 'react';
import ReactDOM from 'react-dom';
import { Link, withRouter, Redirect} from 'react-router-dom';
import { Pagination, Modal, Card, message, Divider, Table, Select } from 'antd';
import ws from '../../../utils/webservices';
import keys from '../../../utils/keys';
import... |
#!/usr/bin/env node
const fs = require('fs');
const path = require('path');
const parse5 = require('parse5');
const whitelist = [
'CalendarOutline',
'CheckCircleFill',
'CheckCircleOutline',
'CheckOutline',
'ClockCircleOutline',
'CloseCircleOutline',
'CloseCircleFill',
'CloseOutline',
'DoubleLeftOutl... |
// title: iwashi harvest(iwashi収穫祭)
const clamp = require('lodash/clamp');
const shuffle = require('lodash/shuffle');
const chunk = require('lodash/chunk');
const meanBy = require('lodash/meanBy');
const noop = require('lodash/noop');
const flatten = require('lodash/flatten');
const sumBy = require('lodash/sumBy');
mod... |
/**
* @license
* Rxjs 7.0.0 (Custom Build) <https://github.com/ReactiveX/rxjs>
* Apache License 2.0 <https://github.com/ReactiveX/rxjs/blob/master/LICENSE.txt>
* Build By: ExiaHuang
* Build Date: 2020-11-29
* lwc-rxjs: https://github.com/exiahuang/lwc-rxjs
*/
function isFunction(value) {
return typeof value === 'f... |
// Copyright IBM Corp. 2020. All Rights Reserved.
// Node module: @loopback/mock-oauth2-provider
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
/**
* Mock Authorization Server:
* mocks the authorization flow with a social app login like face... |
import "react-native-gesture-handler";
import React, { useEffect, useState } from "react";
import { View } from "react-native";
import { createStore, applyMiddleware, compose } from "redux";
import { Provider, useDispatch, useSelector } from "react-redux";
import AsyncStorage from "@react-native-async-storage/async-sto... |
//jqGrid的配置信息
if($.jgrid){
$.jgrid.defaults.width = 1000;
$.jgrid.defaults.responsive = true;
$.jgrid.defaults.styleUI = 'Bootstrap';
}
//工具集合Tools
window.T = {};
// 获取请求参数
// 使用示例
// location.href = http://localhost/index.html?id=123
// T.p('id') --> 123;
var url = function(name) {
var reg = new RegExp... |
import React from 'react';
import {connect} from 'react-redux';
import {closePopout, goBack, openModal, openPopout, setPage} from '../../store/router/actions';
import API from './../../../API/API';
import Icon16Done from '@vkontakte/icons/dist/16/done';
import Icon16Cancel from '@vkontakte/icons/dist/16/cancel';
impo... |
import React from "react";
import SyntaxHighlighter from "react-syntax-highlighter";
import {
GeoDistanceDropdown,
DataSearch,
NumberBox,
DateRange
} from "@appbaseio/reactivemaps";
const location_overlay_render = () => {
const code = `<GeoDistanceDropdown
componentId="LocationSensor"
appbaseField="l... |
import React, { useEffect, useState, useContext, useRef } from 'react';
import { View, StyleSheet, AsyncStorage } from 'react-native';
import Animated, { call, cond, eq, useCode } from 'react-native-reanimated';
import { mix } from 'react-native-redash';
import CircularProgress from '../../../utils/CircularProgress';
i... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.WsProvider = void 0;
const util_1 = require("@polkadot/util");
const x_ws_1 = require("@polkadot... |
var song;
var fft;
var button;
var rotSlider, shrSlider, strokeSlider;
var comin, boxSize;
var a = 0;
var count = 0;
var theta = 0;
var thetacum = 0;
var p,s,t,q;
var color,spectrum,level,size;
var title = 'Taylor Swift - Lover', artist, album, syear;
var axisA = 'Y', axisB = 'X';
var reader = new FileReader();
const l... |
'use strict'
const ci = require('case-insensitive')
const getClassChain = require('class-chain')
const isBuffer = require('is-buffer')
const isGeneratorFunction = require('is-generator-function')
const isPlainObject = require('is-plain-object')
const removePrefix = require('remove-prefix')
const whitespaceRegex = requ... |
//"use strict";
const WHITE = 'W'
const BLACK = 'B'
const NEUTRAL = '?'
const EMPTY = '.'
const BCOL = 1;
const WCOL = 0;
const NCOL = 2;
var SIZE = Number(stage.options.initialData2); // default 11
var PLAYER = 0; // current player; white=0, black=1
var colors = [
'white',
'black',
'grey'
];
... |
/*
* Copyright © 2019 LambdAurora <<EMAIL>>
*
* This file is part of aurbrowser.
*
* Licensed under the MIT license. For more information,
* see the LICENSE file.
*/
import {AUR_BASE_URL, AUR_RPC_URL, CORS_PROXY} from './constants';
import utils from './utils';
function build_url(page, details) {
switch (pag... |
function _extends() { _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]; } } } return target; }; return _extends.apply(this, arguments); }
i... |
var app = angular.module('mapApp',[]);
var gmarkers=[];
var ginfowindow=[];
app.controller('mainCtrl',function($scope, $http){
$scope.locations = [];
$scope.val = 5;
$scope.gIndex = 0;
$scope.alertstrack = 0;
// $scope.url = 'getVehicleLocation.php?userId=demouser1&group=personal';
$scope.url = 'http://192.... |
import { EventDispatcher } from '../core/EventDispatcher.js';
import { FrontSide, FlatShading, NormalBlending, LessEqualDepth, AddEquation, OneMinusSrcAlphaFactor, SrcAlphaFactor, AlwaysStencilFunc, KeepStencilOp } from '../constants.js';
import { MathUtils } from '../math/MathUtils.js';
let materialId = 0;
fun... |
export const CreateSong = (config = {}) => ({
id: (config.id) ? config.id : 1032,
artistString: (config.artistString) ? config.artistString : 'doriko feat. 初音ミク',
defaultName: (config.defaultName) ? config.defaultName : 'ロミオとシンデレラ',
songType: (config.songType) ? config.songType : 'Original',
create... |
import React, { useState, useEffect, useRef, useContext } from 'react';
import styled from 'styled-components';
// hooks
import useMediaQuery from '@kiwicom/orbit-components/lib/hooks/useMediaQuery';
import useWindowDimensions from '@utils/hooks/useWindowDimensions';
import useNavbarHeight from '@components/navbar/mod... |
import Phaser from 'phaser';
/*
Based largely on phaser.io examples, with some stuff stolen here and there.
*/
var Breakout = new Phaser.Class({
Extends: Phaser.Scene,
initialize:
function Breakout() {
Phaser.Scene.call(this, { key: 'breakout' });
this.bricks;
this.paddle... |
'use strict';
exports.__esModule = 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]; } } } return target; };
var _classnames = ... |
import moment from "moment";
import { Enum } from "enumify";
import Errors from "./errors";
class FormCheck extends Enum {}
FormCheck.initEnum(["VALID", "INVALID", "NO_CHANGE"]);
class MenuRecordType extends Enum {}
MenuRecordType.initEnum(["PAGE", "SEPARATOR", "MENU_ENTRY"]);
export default {
/**
* Enum of the... |
goog.provide('Matrix.Model');
/* global kNascent, kUntilAsked, kAlways, kAwake, qAwaken, Cell */
//@formatter:off
function allArgs(args) {
// expects a special arguments instance, array-like but not really
return Array.apply(null, args).slice(0)
}
window['allArgs'] = allArgs;
function cdrArgs(args) {
//... |
import { Ref } from '@fluentui/react-component-ref'
import cx from 'clsx'
import _ from 'lodash'
import PropTypes from 'prop-types'
import React, { Component, createRef } from 'react'
import {
childrenUtils,
customPropTypes,
createShorthandFactory,
getElementType,
getUnhandledProps,
SUI,
useKeyOnly,
us... |
import 'bootstrap/dist/css/bootstrap.min.css'
import './main.css'
import { PDFDocument, StandardFonts } from 'pdf-lib'
import QRCode from 'qrcode'
import './check-updates'
import './icons'
import { $, $$ } from './dom-utils'
import pdfBase from './certificate.pdf'
const generateQR = async (text) => {
try {
co... |
import Delta from 'quill-delta';
import { ClassAttributor, Scope } from 'parchment';
import Inline from '../blots/inline';
import Quill from '../core/quill';
import Module from '../core/module';
import { blockDelta } from '../blots/block';
import BreakBlot from '../blots/break';
import CursorBlot from '../blots/cursor'... |
import './style.css';
import { $, getElementInfo, isDOM, addRule, findIndex, getMaxZIndex, isParent } from './dom.js';
import { throttle, isNull } from './utils.js';
import logger from './logger.js';
class DomInspector {
constructor(options = {}) {
this._doc = options.window ? options.window.document : window.docum... |
#!/usr/bin/env node
/**
* Copyright (c) Microsoft 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 a... |
/**
* @fileoverview Rule to disallow use of unmodified expressions in loop conditions
* @author <NAME>
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
var Map = requir... |
/* before including this file, make sure you have a variable, exclusions, initialized like:
var exclusions = [{"s1": "1", "s2": "4", "s3": "7", "s4":"a"},
{"s1": "1", "s2": "5", "s3": "8", "s4":"a"},
{"s1": "2", "s2": "6", "s3": "8", "s4":"b"},
{"s1": "2", "s2": "5", "s3": "*", "s4":"*"},
{"s1": "*", "s... |
/*
* Copyright 2018 IBM Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
import * as blueslip from "./blueslip";
import * as compose_fade_users from "./compose_fade_users";
import * as hash_util from "./hash_util";
import {$t} from "./i18n";
import * as muted_users from "./muted_users";
import {page_params} from "./page_params";
import * as people from "./people";
import * as presence from ... |
var coordinateDisplays = {
DMS: 'degree_minute_second',
DD: 'decimal_degrees',
Other: 'other'
};
var settings = {
coordinateDisplay: coordinateDisplays.DMS,
DDPrecision: 8,
WFSVersion: '1.1.0',
WMSVersion: '1.1.1',
WPSVersion: '1.0.0',
//Set to OsmLocalUrl to 'default' for default mapnick osm basemap... |
import { deepAccess, getDNT, deepSetValue, logInfo, logError, isEmpty, getAdUnitSizes, fill, chunk, getMaxValueFromArray, getMinValueFromArray } from '../src/utils.js';
import {registerBidder} from '../src/adapters/bidderFactory.js';
import {config} from '../src/config.js';
import {ADPOD, BANNER, VIDEO} from '../src/me... |
import { useState, useEffect, useRef, useCallback } from 'react';
import {
WebGLRenderer,
LinearFilter,
OrthographicCamera,
Scene,
PlaneBufferGeometry,
TextureLoader,
ShaderMaterial,
Mesh,
Color,
sRGBEncoding,
} from 'three';
import { spring, value, listen, pointer } from 'popmotion';
import classNa... |
/**
* Copyright 2019 The AMP HTML 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 require... |
import React, {useContext} from 'react';
import { Button, Grid, Paper, MenuItem, Chip, TextField } from "@material-ui/core"
import { Field, Form } from "react-final-form";
import { CustomFormInput } from "..";
import { Autocomplete, Checkboxes, Radios, Select } from 'mui-rff';
import CustomMultiple from './customMulti... |
"use strict";
var __rest = (this && this.__rest) || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySy... |
const request = require('request');
const webhook = require('./webhook.js');
const standardUpdates = require('./updates.js');
const standardMethods = require('./methods.js');
const DEFAULT_PLUGIN_FOLDER = '../plugins/';
const DEFAULT_PLUGINS = ['regExpMessage', 'shortReply'];
class TeleBot {
constructo... |
if(typeof SiteTreeHandlers == 'undefined') SiteTreeHandlers = {};
SiteTreeHandlers.showNLDraft_url = 'admin/newsletter/shownewsletter/';
SiteTreeHandlers.showNLType_url = 'admin/newsletter/showtype/';
SiteTreeHandlers.controller_url = 'admin/newsletter';
SiteTree.prototype = {
castAsTreeNode: function(li) {
behaveA... |
goog.require('ol.Map');
goog.require('ol.View');
goog.require('ol.layer.Tile');
goog.require('ol.layer.Vector');
goog.require('ol.source.Biolucida');
goog.require('ol.source.Vector');
goog.require('ol.control.OverviewMap');
goog.require('ol.control.ScaleLine');
goog.require('ol.interaction');
goog.require('ol.interac... |
"use strict";
function $__interopRequire(id) {
id = require(id);
return id && id.__esModule && id || {default: id};
}
Object.defineProperties(module.exports, {
__esModule: {value: true},
SuperTransformer: {
enumerable: true,
get: function() {
return SuperTransformer;
}
}
});
var $__spread = ... |
var langCode = 'sv';
var dataContent = '';
var defaultContent = 'Sorry we couldn\'t find any images or pronunciations';
var langQ = '';
var popped = false;
var clicksound = '';
var thumbWidth = '300'; // remember to adapt .thumb and .popover in main.css
$( document ).ready( function() {
//set language by parameter
v... |
var releasetime = '2020-04-05 03:30:00 GMT+0800';
var _v = new Date(releasetime).getTime() / 1000;
//if (1) _v += Math.random(); // ie test mode
var inpanel = angular.module('inpanel', ['inpanel.services', 'inpanel.directives', 'inpanel.filters']);
inpanel.config(['$routeProvider', function ($routeProvider) {
... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2017 The Regents of the University of California
* Author: <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 restricti... |
/* * Some init hooks * */
$(document).ready(function(){
initFilterConfig();
initConstructorDialog();
});
/* * Socket, messages handling * */
wSocket.onclose = function(e) { showStatus('error', 'Connction to server closed!') };
wSocket.onmessage = function(msg) {
console.log('received message: '.concat(msg.da... |
/**
* Navigation utility functions.
*/
import React from 'react';
import { ListGroup, ListGroupItem } from 'reactstrap';
import { StyleSheet, css } from 'aphrodite';
import TagList from './TagList';
import Column from './Column';
import { LIGHT_GREY, DARK_GREY } from "../Common/defaults";
import CommonStyles from ".... |
var gulp = require('gulp'),
wrap = require('gulp-wrap'),
connect = require('gulp-connect'),
watch = require('gulp-watch'),
minifyCss = require('gulp-minify-css'),
minifyJs = require('gulp-uglify'),
concat = require('gulp-concat'),
less = require('gulp-less'),
rename = require('gulp-renam... |
/**
* Imports.
*/
import React from 'react';
import async from 'async';
import connectToStores from 'fluxible-addons-react/connectToStores';
import {FormattedMessage} from 'react-intl';
import {Link} from 'react-router';
import {slugify} from '../../../utils/strings';
// Flux
import CollectionsStore from '../../../st... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(gene... |
import {forward} from '@enact/core/handle';
import ForwardRef from '@enact/ui/ForwardRef';
import {Media, getKeyFromSource} from '@enact/ui/Media';
import EnactPropTypes from '@enact/core/internal/prop-types';
import Slottable from '@enact/ui/Slottable';
import compose from 'ramda/src/compose';
import {isValidElement, ... |
import utils from 'osg/utils';
import notify from 'osg/notify';
import Program from 'osg/Program';
import Shader from 'osg/Shader';
import Compiler from 'osgShader/Compiler';
import ShaderProcessor from 'osgShader/ShaderProcessor';
var ShaderGenerator = function() {
this._cache = {};
// ShaderProcessor single... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//Libraries
var colors_1 = require("./colors");
var DynamicRoute = /** @class */ (function () {
function DynamicRoute() {
this.RouteFiles = [];
this.Info = true;
/*
* Ana url ayarlanıyor.
*/
... |
const config = require('../config.js')
const models = require('../models')
const { handleResponse, successResponse, errorResponseServerError } = require('../apiHelpers')
const { sequelize } = require('../models')
const { getRelayerFunds, fundRelayerIfEmpty } = require('../relay/txRelay')
const { getEthRelayerFunds } = ... |
const m = {
'application/andrew-inset': ['ez'],
'application/applixware': ['aw'],
'application/atom+xml': ['atom'],
'application/atomcat+xml': ['atomcat'],
'application/atomdeleted+xml': ['atomdeleted'],
'application/atomsvc+xml': ['atomsvc'],
'application/atsc-dwd+xml': ['dwd'],
'applic... |
/*
* Original code from: https://twitter.com/blurspline / https://github.com/zz85
* See post @ http://www.lab4games.net/zz85/blog/2014/11/15/resizing-moving-snapping-windows-with-js-css/
*/
import { subscribeMixin } from './mixin';
// Thresholds
var FULLSCREEN_MARGINS = -30;
var MARGINS = 10;
function setBounds(e... |
'use strict';
exports.type = 'perItem';
exports.active = true;
exports.description = 'collapses multiple transformations and optimizes it';
exports.params = {
convertToShorts: true,
// degPrecision: 3, // transformPrecision (or matrix precision) - 2 by default
floatPrecision: 3,
transformPrecision: ... |
import toPath from "lodash.topath";
import Ajv from "ajv";
let ajv = createAjvInstance();
import { deepEquals } from "./utils";
let formerMetaSchema = null;
ajv.addFormat(
"percentage",
/^\d+(\.\d+)?/
);
import { isObject, mergeObjects } from "./utils";
function createAjvInstance() {
const ajv = new Ajv({
... |
var path = require('path');
var util = require('util');
var events = require('events');
var Q = require('q');
var ClientManager = require('./clientmanager.js');
var Module = require('./module.js');
var TestCase = require('./testcase.js');
var Logger = require('../util/logger.js');
var Utils = require('../util/utils.js'... |
'use strict'
// Pieces Types
var KING_WHITE = '♔';
var QUEEN_WHITE = '♕';
var ROOK_WHITE = '♖';
var BISHOP_WHITE = '♗';
var KNIGHT_WHITE = '♘';
var PAWN_WHITE = '♙';
var KING_BLACK = '♚';
var QUEEN_BLACK = '♛';
var ROOK_BLACK = '♜';
var BISHOP_BLACK = '♝';
var KNIGHT_BLACK = '♞';
var PAWN_BLACK = '♟';
// The Chess Bo... |
import React from "react";
import LiteHeader from "../../../Common/Header/LiteHeader";
import {
Card,
CardHeader,
CardBody,
FormGroup,
Form,
Input,
Row,
Col,
Table,
Container,
Button,
Modal,
ModalHeader,
ModalBody,
ModalFooter,
CardFooter,
} from "reactstrap";
import AsyncLoad from "glo... |
import { gmhi_model, pca_data } from "./data.js";
import { get_export_plot_link } from "./utils.js";
export function plot_pca(ele, data, sample, metric) {
ele.innerHTML = "";
let projected;
if (JSON.stringify(sample) === "{}") {
projected = null;
} else {
// get feature vector
const vector = get_v... |
/* eslint-env mocha */
'use strict'
const chai = require('chai')
const dirtyChai = require('dirty-chai')
const expect = chai.expect
chai.use(dirtyChai)
const sinon = require('sinon')
const once = require('once')
const parallel = require('async/parallel')
const series = require('async/series')
const TCP = require('lib... |
var OV;
var session;
var isIE = navigator.userAgent.indexOf('MSIE') !== -1 || navigator.appVersion.indexOf('Trident/') > 0;
var isFirstVideoCreatedByPublisher = true;
/* OPENVIDU METHODS */
function joinSession() {
var mySessionId = document.getElementById("sessionId").value;
var myUserName = document.getElementB... |
const RULE_FIELDS = ['mime', 'referrer', 'url', 'filename'];
const DEFAULT_RULES = [
{ "description": "Windows installers and applications (.exe and .msi files)", "mime": "application/(x-msdownload|x-ms-installer|x-msi|exe)", "pattern": "installers/", "enabled": true },
{ "description": "Linux installers (.deb... |
/* globals describe: false, it: false */
"use strict";
var J = require('../lib/parser'),
M = require('unparse-js').maybeerror,
assert = require('assert');
var module = describe,
test = it,
deepEqual = assert.deepEqual;
module("parser", function() {
function good(rest, state, value) {
re... |
//更改主界面连接
function GetLeftUrl (url) {
window.parent.frames["mainFrame"].window.location.href = url;
}
//隐藏和显示
function hideAndShow (showID, hideID) {
document.getElementById(showID).style.display = '';
document.getElementById(hideID).style.display = 'none';
}
//隐藏或显示
function hideOrShow (itemID) {
var Item = docum... |
// -*- mode: js; js-indent-level: 4; -*-
//
// Run runtime tests under a JS shell or a browser
//
//glue code to deal with the differences between chrome, ch, d8, jsc and sm.
var is_browser = typeof window != "undefined";
// if the engine doesn't provide a console
if (typeof (console) === "undefined") {
var console ... |
import _range from 'lodash/range';
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]; } } } return target; };
var _createClass = functi... |
/* eslint-disable max-lines*/
import {
MAINNET,
TEST_FIXTURES,
} from "unchained-bitcoin";
import {
PENDING,
ACTIVE,
INFO,
} from "./interaction";
import {
trezorCoin,
TrezorInteraction,
TrezorGetMetadata,
TrezorExportHDNode,
TrezorExportPublicKey,
TrezorExportExtendedPublicKey,
TrezorSignM... |
/**
* This function sets up the pagination.
* @author <NAME>
* @version 1.0 -- 8/27/2015
*/
(function() {
if(userProfileListSize){
var pathArray = window.location.pathname.split( '/' );
var listSortValue = window.location.search;
var numberOfPages = tenantListSize / pathArray[3];
... |
import React from 'react'
import { Icon } from 'antd'
import { Button,NavBar } from 'antd-mobile'
import { clearHexPrefix, toBig, toHex } from 'LoopringJS/common/formatter'
import config from 'common/config'
import intl from 'react-intl-universal'
import * as orderFormatter from 'modules/orders/formatters'
import Notif... |
var html2canvas = require('html2canvas');
var domtoimage = require('dom-to-image');
function randomLength(min, max){
return parseInt(min + Math.random()*10 % (max-min));
}
function randomText(){
var length = randomLength(5, 10);
var text = "";
var possible = "abcdefghijklmnopqrstuvwxyz ";
for (var i = 0; ... |
// The Auth0 client, initialized in configureClient()
let auth0 = null;
let arrayCreated = false;
let pizzaCount = 1;
let pizzaPrice = 0;
let pizzaPriceTotal = 0;
let pizzaPriceCount = 0;
let checkoutString = "";
/**
* Starts the authentication flow
*/
const login = async (targetUrl) => {
try {
console.log("Lo... |
const snarkjs = require("snarkjs");
//const r1csfile = require("r1csfile");
const fs = require("fs");
const path = require("path");
const util = require("util");
const firebase = require("firebase");
const {Storage} = require("@google-cloud/storage");
const Logger = require("js-logger");
const fbSkey = require(... |
/**
*
* OptionalHeader
*
*/
import React, { Fragment } from 'react';
import withSizes from 'react-sizes';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import { OptionalHeaderContainer } from './style';
class OptionalHeader extends React.PureComponent {
// eslint-disable-line reac... |
var DELAY_REPORTS = 1000;
$(document).ready(function() {
$(document).on("click", "#reports #articles h2", function() {
$("#reports #article_ids").toggle(DELAY_REPORTS);
});
$(document).on("click", "#reports #sh_articles h2", function() {
var form = $("form[name='reports']");
var articles = form.find("input[... |
/**
* This is simple module for adding/removing some custom methods for each JS function
* Main usage is to add/remove custom logs to every file by given directory
*/
const path = require('path');
const chalk = require('chalk');
const prompt = require('prompt');
const fs = require('fs');
const rea... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.