text stringlengths 5.97k 41.2k |
|---|
/* eslint-disable no-magic-numbers */
/*global window:false */
import React from "react";
import {
CanvasGroup,
CanvasCurve,
VictoryAxis,
VictoryBar,
CanvasBar,
VictoryChart,
VictoryLine,
VictoryScatter,
CanvasPoint
} from "victory";
import { range, random } from "lodash";
const populationData = [
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var nodeutil = require("./nodeutil");
var fs = require("fs");
var path = require("path");
function crowdinCredentialsAsync() {
var prj = pxt.appTarget.appTheme.crowdinProject;
var branch = pxt.appTarget.appTheme.crowdinBranch;
if (... |
// document.writeln("<script src='js/echarts.min.js'></script>");
// document.writeln("<script src='js/database.js'></script>");
var myChart = null;
var parentFeatures;
var optionValue;
var selectedDistrict = null;
var curDistrict = null;
var acroutes;
var subtext;
// var hideflag = false;
function createOVMap(value,... |
import {
MYVIDEODDEVICELABEL,
MYAUDIODEVICELABEL,
EXTENSIONID,
MYMICROPHONEDEVICELABEL,
} from "./constants.js";
import { getVirtualCam, setModeNone } from "./functions.js";
import {
getButtonCam,
getButtonClose,
getButtonClass,
getButtonShow,
getContainerButton,
addElementsToDiv,
ge... |
/**
* Copyright (c) 2018-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author <NAME> <<EMAIL>>
* @author <NAME> <<EMAIL>>
*/
import { __assign } from "tslib";
import { Subject } from 'rxjs';
import { Vec2, EPSILON } from '../../mol-math/linear-algebra';
import { BitFlags... |
/** @author <NAME> <EMAIL>*/
/** creates an 2d array of random weights from 0 to 1
* if doLRoptimization is true then the weights are small and it helps to
* avoid vanishing or exploding gradient
* @param {number} the input size of the layer
* @param {number} the output size of the layer
* @return {(number|Array)} 2d... |
// Louisiana Groups
// https://louisianagroups.com
// https://github.com/LouisianaGroups/louisiana-groups
var vm = function() {}; // data model
var groupsData = ko.observableArray();
var stateDataGroupsLoaded = ko.observable(false);
var stateDataEventsLoaded = ko.observable(false);
var stateGetEventGroupIDs = ko.obser... |
import React, {Component, Fragment} from 'react'
import {View, Text, StyleSheet, ScrollView, TouchableOpacity, ActivityIndicator} from 'react-native'
import {connect} from 'react-redux'
import * as Colors from "../../utils/colors";
import {SafeAreaView, withNavigationFocus} from "react-navigation";
import commonStyles ... |
String.prototype.replaceAll = function(str1, str2, ignore) {
return this.replace(new RegExp(str1.replace(/([\,\!\\\^\$\{\}\[\]\(\)\.\*\+\?\|\<\>\-\&])/g, function(c){return "\\" + c;}), "g"+(ignore?"i":"")), str2);
};
String.prototype.hashCode = function() {
var hash = 0, i, chr, len;
if (this.length === 0) retu... |
"use strict"
const bodyParser = require('body-parser')
const cookieParser = require('cookie-parser')
const express = require('express')
const http = require('http')
const spdy = require('spdy')
const url = require("url")
const path = require("path")
const fs = require("fs")
const WebSocket = require('ws')
c... |
/* global require, module */
'use strict';
/**
* @fileoverview ニアスケイプwebモジュール
*
* HTTPに関わるところを処理する HTTPヘッダとかレスポンス処理とかHTTPのアクセスログとか
* HTMLはコマンドラインでも使うのでcontents部分はns本体でやる
* webアプリとしてのHTMLやjsはこのモジュールで差し込む
*/
//nodeコアモジュール
var path = require('path');
var zlib = require('zlib');
var url = require('url');
var fs ... |
"use strict";
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enu... |
import React, { useState, useEffect, useRef, useMemo, useCallback, forwardRef } from "react"
import Calendar from "../calendar/calendar"
import DateObject from "react-date-object"
import { getAllDatesInRange } from "../days_panel/days_panel"
import { ReactComponent as Icon } from "./calendar.svg"
import "./date_picker.... |
"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... |
UNICODETABLE = [
0, 9786, 9787, 9829, 9830, 9827, 9824, 8226, 9688, 9675, 9689, 9794, 9792, 9834, 9835, 9788,
9658, 9668, 8597, 8252, 182, 167, 9644, 8616, 8593, 8595, 8594, 8592, 8735, 8596, 9650, 9660,
32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47,
48, ... |
const path = require('path')
const expect = require('chai').expect
const fs = require('graceful-fs')
const rimraf = require('rimraf')
const tar = require('tar')
const createDoctor = require('../doctor')
const createTracker = require('npm-package-dl-tracker').create
const ut = require('./lib/utilities')
const MAPFILE... |
"use strict";
/* Generated from:
* ap-northeast-1 (https://d33vqc0rt9ld30.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 4.3.0,
* ap-northeast-2 (https://d1ane3fvebulky.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 4.3.0,
* ap-northeast-3 (https://d2zq80... |
var json_output = {};
var fields = {};
var events = {};
var feature_sets = {};
var action_sets = {};
var action_tables = {};
var action_divs = {};
function set_editable(id, callback){
var e = document.getElementById(id);
e.onclick = make_editable_factory(e, id, e.tagName, callback);
json_output[id] = e.innerHTML.tr... |
var config = require("../config/app");
var helpers = require("./helpers")
var exec = require('child_process').exec;
var fs = require('fs');
var request = require('request');
var Archive = require('../fabricator/archive.coffee')
ShapeWaysClient = require('../fabricator/shapeways.coffee');
swClient = new ShapeWaysClient... |
let KnexManager = require("./KnexManager");
let knex = null;
var fs = require('fs');
const logger = require("./../log")
class TableMeta {
constructor(json) {
knex = null;
knex = KnexManager.getKnex();
this.tableName = json.tableName;
this.fields = json.fields;
this.primary = ... |
let SURFACE_PLOT = 0, CONTOUR_PLOT = 1, SURFACE_POINTS = 2, CONTOUR_POINTS = 3;
let data = {
'visualizing-gradient-descent__vanilla__plotly-div': [{}, {}, {}, {}],
'visualizing-gradient-descent__momentum__plotly-div': [{}, {}, {}, {}],
'visualizing-gradient-descent__adam__plotly-div': [{}, {}, {}, {}]
};
... |
/**
* Rubine
* Specifying Gestures by Example
*
* This Javascript version was developed by:
* <NAME>
* Université catholique de Louvain
* Louvain Research Institute in Management and Organizations
* Louvain-la-Neuve, Belgium
* <EMAIL>
*
* Based on work by Beat Signer et al. impl... |
// @ts-nocheck
/**
* @module dom
* @summary
* ES6 Import Example:
* ```js
* import {addClass} from 'fmjs';
*
* // or:
* import {addClass} from 'fmjs/dom.js';
* ```
*
*/
import {isArray} from './array.js';
const isNodeList = (els) => {
return NodeList.prototype.isPrototypeOf(els);
};
const isNode = (obj... |
/* By <NAME> @CasualEffects https://casual-effects.com LGPL 3.0 License */
"use strict";
/**
\file quadplay-font.js
Font utility routines for both runtime and tools.
- packFont
*/
/********************************************************************************************/
// This code block uses specific uni... |
const convert = require('xml-js');
var fs = require("fs");
const DOM = require('../DOMCore/DOM.js');
const ArrayUtils = require('../DOMCore/utils/ArrayUtils');
const base_examples_dir = "../InputFiles/";
const html_symbols_json_filename = "../InputFi... |
var prop_panel = undefined;
var prop_panel_header = undefined;
var widget_infos = [];
const ACC_TAB_NONE = -1;
const ACC_TAB_TOGGLE_SIGNAL = 0;
const ACC_TAB_WATCH_SIGNAL = 1;
const ACC_TAB_PLOT = 2;
var widget_panel_accordion_active = ACC_T... |
/**
* These functions support "Bulk Update (synchronous)"
*/
function process_request(druids, action_url, req_type, req_params, success_string, success_handler_callback, error_handler_callback) {
cons = [];
$.each(druids, function(i, druid) {
var object_link = catalog_url(druid);
var url = action_url.replace('... |
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/*
* Copyright (C) 2012 Google Inc. All rights reserved.
* Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
*
* Redistribution and use in sou... |
var ref = require("./fragment");
var Fragment = ref.Fragment;
var ref$1 = require("./mark");
var Mark = ref$1.Mark;
var ContentExpr = function(nodeType, elements, inlineContent) {
this.nodeType = nodeType
this.elements = elements
this.inlineContent = inlineContent
};
var prototypeAccessors = { isLeaf: {} };
pr... |
var IDProjeto = window.localStorage.getItem("IDProjeto");
function listaFeeds(id,qtd,pagina,x){
var xhr = new XMLHttpRequest();
$('#mascara2').addClass('active');
var x = x || 0;
if(x==0){
$("#feedsView").html('');
var html;
html ='<div id="pai_progress" class="... |
function assert(condition, message) {
if (!condition) {
throw new Error(message || 'Assertion failed');
}
}
function removeAllChildren(node) {
while (node.firstChild) {
node.removeChild(node.firstChild);
}
}
/* Return random permutation of array using Fisher-Yates */
function shuffleArray(array) {
... |
var mineNum = 10;
var rowNum = 9;
var colNum = 9;
var T = 300;
var time = T;
var Map;
var Mark;
var game_runing = true;
var img;
var clock;
var bombsoundcount = 0;
var bombExplosion;
var currentLevel = 1;
var currentTheme = 2;
var RestartEnable = true;
var all_images = new Array();
all_images[0] = new Image();
all_... |
const os = require("os");
const Promise = require('bluebird');
const { spawn, exec, execFile, execFileSync } = require('child_process');
const process = require('process');
const { dirname, basename, extname, parse } = require('path');
const shortid = require('shortid');
const { Database, getTimestamp } = require('./d... |
/**
* plTags model
* allows tab-based navigation, based on names of playlist in which tracks are stored
* @author: adrienjoly, whyd
**/
var snip = require('../snip.js');
var mongodb = require('../models/mongodb.js');
var TWO_WEEKS = 6 * 7 * 24 * 60 * 60 * 1000;
/**
* transforms [tag1, tag1, tag2] into [{id:tag1... |
console.log( "=== PureRead: AdapteSite load ===" )
import * as util from './util';
const site = {
url : "",
target : "",
matching : [],
name : "", // only read mode
title : "", // only read mode
desc : "", // only read mode
exclude : [],
include : ""... |
const debug = require('debug')('qdone:cli')
const Q = require('q')
const fs = require('fs')
const readline = require('readline')
const chalk = require('chalk')
const commandLineCommands = require('command-line-commands')
const commandLineArgs = require('command-line-args')
const getUsage = require('command-line-usage'... |
/* <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... |
// Import External Libraries
const Symphony = require('symphony-api-client-node')
const template = require('./lib/template')
const getUsersFromGroupName = require('./api/ldapAPI')
const atob = require('atob')
const csv = require('fast-csv')
const MailParser = require('mailparser-mit').MailParser
// Declare some variabl... |
/// <reference types="@argonjs/argon" />
/// <reference types="three"/>
/// <reference types="googlemaps"/>
// save some local references to commonly used classes
var Cartesian3 = Argon.Cesium.Cartesian3;
var Quaternion = Argon.Cesium.Quaternion;
var Matrix3 = Argon.Cesium.Matrix3;
var CesiumMath = Argon.Cesium.CesiumM... |
import p5 from 'p5';
import {
BOUNDARY,
NO_BOUNDARY,
getBallBoundaryDictionary,
locationKey,
ballBoundaryKey,
boundaryKey,
flipBall,
flipVector
} from './balls-logic';
let stateDrawing;
let mouseIsPressed;
let previousTime;
let mouseX = 1;
let mouseY = 1;
let mouseXstart = 1;
let mouseY... |
/*MIT License
Copyright (c) 2020 <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, d... |
console.clear();
/*////////////////////////////////////////*/
var scene, camera, renderer, orbit, light;
var renderCalls = [];
scene = new THREE.Scene();
scene.fog = new THREE.Fog(0x242426, 20, 600);
camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 10, 600);
camera.position.z = 90;
/... |
/*globals projectInfo BrainBox projectShortname*/
// @todo check and be sure the user picks a username from the dropdown menu
// @todo implement the placeholder for the select tags in the anotation table
// @todo find a way for the user to give a set of values for the annotations and make it obvious that it works th... |
confirmOrderJs = {
init:function(){
this.toggleEvents(true);
this.initPayPage();
},toggleEvents:function(isBind){
var $p = $.mobile.activePage;
var me = confirmOrderJs;
$p.undelegate();
if(isBind){
$p.one('pagebeforehide', function(){
me.toggleEvents();
});
setTimeout(function(){
me.togg... |
/*
* Copyright 2018 DoubleDutch, 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 agre... |
import { Promise as EmberPromise } from 'rsvp';
import { schedule, bind } from '@ember/runloop';
import $ from 'jquery';
import { assign } from '@ember/polyfills';
import { getOwner } from '@ember/application';
import { readOnly, not } from '@ember/object/computed';
import { isHTMLSafe, htmlSafe } from '@ember/string';... |
import React, { Component } from 'react';
import { Badge, Card,ButtonGroup, CardBody, CardHeader, Col, Row, Table, Button, Modal, ModalBody, ModalFooter, ModalHeader,Input, InputGroup, InputGroupAddon, InputGroupText, } from 'reactstrap';
import { RequestService } from '../../shared/services/request.service';
import Wi... |
//import React, {useState, useEffect, Fragment } from 'react';
import React, { Component, useState, useEffect, Fragment, useContext } from "react";
//import {TouchableOpacity, Image, Platform, View, Button, Text, StyleSheet, TextInput } from 'react-native';
import { TouchableWithoutFeedback, ScrollView, TouchableOpacit... |
const fs = require('fs'); // for working with files
const cheerio = require('cheerio'); // for html parsing
const request = require('request'); // for getting html
const XLSX = require('xlsx'); // for reading xls
const he = require('he'); // for decoding html entities
const moment = require('moment-timezone'); // for w... |
var keyLeft = false; var keyRight = false; var keyUp = false; var keyDown = false; var shiftPressed = false;
var player = {x: 0, y: 0, z: -20, angle: 0, sector: 0};
var sectors = [
{bottom: -40, top: 80, floorColor: "#0f0", ceilingColor: "#0ff", points: [{x:-100, y: -100}, {x: 0, y: -140}, {x: 100, y: -100}, {x: ... |
/* Carrd Core JS | carrd.co | License: MIT */
var on = addEventListener,
$ = function(q) { return document.querySelector(q) },
$$ = function(q) { return document.querySelectorAll(q) },
$body = document.body,
$inner = $('.inner'),
client = (function() {
var o = {
browser: 'other',
browserVersion: 0,
... |
var otpi = '';
var filter = {
box: 'inbox', // 'inbox' (default), 'sent', 'draft', 'outbox', 'failed', 'queued', and '' for all
// following 4 filters should NOT be used together, they are OR relationship
read: 0, // 0 for unread SMS, 1 for SMS already read
body: 'OTP:', // content to match
indexFr... |
import "https://dap.js.org/0.5.js";
import Await from "/./stuff/await.js";
import Persist from "/./stuff/persist.js";
import scrollfocus from "/./stuff/scrollfocus.js";
import Starbar from "/./stuff/bricks/starbar.js";
import {untab} from "/./stuff/parse.js";
import Scan from "./scanner.js";
const
grab = src => [... |
/**
* Fetch the votes for a user from the backend and load them in the table
* @param user - name of the user
* @param project - optional name of the user's project (if left empty, all projects for the given user are loaded)
*/
function loadVotes(user, project = "") {
fetch(`/votes/${user}/${project || ""}`, {
... |
"use strict";
var canvas;
var gl;
var numVertices = 114; //(36+30+30+18)
var numChecks = 8;
var pointsArray = [];
var colorsArray = [];
var normalsArray = [];
var texCoordsArray = [];
var program;
var texture;
var c;
var flag = true;
var spot_flag = false;
var tex_flag = true;
var xAxis = 0;
var yAxis = 1;
var ... |
/*
Autoreact utilities
*/
import * as autolang from './autolang.js';
// ====== module start =========
// ====== exported functions =========
// ------- logging and debugging --------
// use autoutils.debug instead of console.log
// document.ready in init.js removes logging if globalState.debug==false
f... |
var _ = require("lodash");
var DB = require("./DB");
var cocb = require("co-callback");
var cuid = require("cuid");
var async = require("async");
var ktypes = require("krl-stdlib/types");
var runKRL = require("./runKRL");
var Modules = require("./modules");
var PicoQueue = require("./PicoQueue");
var Scheduler = requir... |
// Copyright 2018-2021, University of Colorado Boulder
/**
* General dialog type. Migrated from Joist on 4/10/2018
*
* @author <NAME> (PhET Interactive Simulations)
* @author <NAME> (PhET Interactive Simulations)
* @author <NAME> (PhET Interactive Simulations)
* @author <NAME> (PixelZoom, Inc.)
*/
import Prope... |
/* global module */
// load methods defined in mafia
const {
autosell,
availableAmount,
cliExecute,
setProperty,
getProperty,
visitUrl,
print,
printHtml,
wait
} = require('kolmafia');
const steps = {
/*
-------------------------------
| PRE-ASCENSION |
... |
'use strict';
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 = function () { function defi... |
// Controls camera via WASD/Mouse, enables player to jump, run and crouch
// ---- NOTES FOR USAGE----
// IF YOU WANT COLLISION TO WORK, ADD YOUR OBJECTS TO "terrain" WHEN CREATING ENVIRONMENT
// example: var meshX = new THREE.Mesh(geom, material);
// terrain.push(meshX);
// create controls in createScene()... |
$('#mysidebar').height($(".nav").height());
document.addEventListener("DOMContentLoaded", function() {
/**
* AnchorJS
*/
anchors.add('h2,h3,h4,h5');
var referenceAnchors;
if ($('.line-number-anchor')) {
referenceAnchors = new AnchorJS();
referenceAnchors.options = {
placement: 'l... |
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol... |
const fragment = `
precision highp float;
precision highp int;
// Panteleymonov A K 2015
//
// procedural noise from https://www.shadertoy.com/view/4sfGzS
// for first variant
/*float hash( float n ) { return fract(sin(n)*753.5453123); }
float noise( vec3 x )
{
vec3 p = floor(x);
vec3 f = fract(x);
f = f*f... |
/* global global,self,process,System,require */
import _PouchDB from 'pouchdb'; // 7.2.2 breaks stuff
import pouchdbAdapterMem from 'pouchdb-adapter-mem';
import { Path } from 'lively.lang';
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
// PouchDB setup
const GLOB = typeof window !== 'undefined'
? wind... |
/*图片手动轮播*/
var productInfoPlay={
"figer":{
"ischange":true,
"ismove":true //true表示左右移动,执行轮播的JS,false表示上下移动,不执行轮播的JS
},
/*初始化,没有动画弹出*/
init:function(details){
var _this=this;
if(!details){//如果details未输入,则防止报错
details={};
}
_this.moveEle... |
/**
* This is copied and modified from Apache v2 project of <EMAIL>:SeleniumBuilder/selenium-builder.git.
* I respect their work and am really proud of my creation based on it. Thanks.
*/
/**
Apache License
Version 2.0, January 2004
... |
import Field from '../_classes/field/Field';
import { uniqueName } from '../../utils/utils';
import download from 'downloadjs';
import _ from 'lodash';
import NativePromise from 'native-promise-only';
let Camera;
let webViewCamera = navigator.camera || Camera;
// canvas.toBlob polyfill.
let htmlCanvasElement;
if (ty... |
import Steve from '@/plugins/steve';
import {
COUNT, NAMESPACE, NORMAN, MANAGEMENT, FLEET
} from '@/config/types';
import { CLUSTER as CLUSTER_PREF, NAMESPACE_FILTERS, LAST_NAMESPACE, WORKSPACE } from '@/store/prefs';
import { allHash, allHashSettled } from '@/utils/promise';
import { ClusterNotFoundError, ApiError }... |
// robot api client
// takes a dispatch (send) function and returns a receive handler
// TODO(mc, 2018-01-26): typecheck with flow
import { push } from 'connected-react-router'
import find from 'lodash/find'
import functionsIn from 'lodash/functionsIn'
import kebabCase from 'lodash/kebabCase'
import mapKeys from 'lodas... |
// Copyright 2016 <NAME>. 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 applicable la... |
////////////////////////////////////////////////////////////////////////////////////////////////////
function setScroll() {
scrollV = document.documentElement.scrollTop;
scrollH = document.documentElement.scrollLeft;
}
////////////////////////////////////////////////////////////////////////////////////////////////... |
var debug = 0;
var svguri = "http://www.w3.org/2000/svg";
// svg has, from left to right:
// position map | stash | tree
// and from top to bottom:
// title 1
// title 2
// title 3
// content (blocks of position map or stash or tree buckets)
var startX = 0; // start coordinates of drawing on canvas
var startY = 0;... |
var MYDATA_DEBUG_ON = false; // activate to show json, form info, etc
var SHOW_PAGINATION = false; // pagination is available
var APPEND_CARDS_TO_BOTTOM = false; // always starts as false
// bundle text variables
var mydataresult = '';
var mydataresults = '';
var mydataviewnext = '';
var mydatamore = '';
var draft = ... |
import { ObjectUtils } from 'primevue/utils';
const FilterMatchMode = {
STARTS_WITH : 'startsWith',
CONTAINS : 'contains',
NOT_CONTAINS : 'notContains',
ENDS_WITH : 'endsWith',
EQUALS : 'equals',
NOT_EQUALS : 'notEquals',
IN : 'in',
LESS_THAN : 'lt',
LESS_THAN_OR_EQUAL_TO : 'lte',
... |
$(document).ready(function(){
Paloma.start();
});
$(document).on('page:restore', function(){
Paloma.start();
});
var getPlacePrice = function(originalPrice){
var placePrice = parseInt(originalPrice);
var placePriceDollars;
if(placePrice){
if(placePrice == 0){
placePriceDollars = "Free";
}else ... |
/*jslint node:true nomen:true*/
'use strict';
var self, eiscp, send_queue,
net = require('net'),
dgram = require('dgram'),
util = require('util'),
async = require('async'),
events = require('events'),
eiscp_commands = require('./eiscp-commands.json'),
COMMANDS = eiscp_commands.comma... |
/**
* @version 0.43
*/
import React from 'react'
import {
Platform,
View,
Text,
TouchableOpacity,
Dimensions,
PixelRatio,
} from 'react-native'
import Dash from 'react-native-dash'
import { BoxShadow } from 'react-native-shadow'
import _ from 'lodash'
import Feather from 'react-native-vector-... |
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author <NAME> @sokra
*/
"use strict";
const AsyncDependencyToInitialChunkError = require("./AsyncDependencyToInitialChunkError");
const GraphHelpers = require("./GraphHelpers");
/** @typedef {import("./AsyncDependenciesBlock")} AsyncDependenciesBloc... |
import Page from 'components/Page';
import { IconWidget, NumberWidget } from 'components/Widget';
import {
teamPeekData,
} from 'demos/dashboardPage';
import Timer from "react-compound-timer";
import React from 'react';
import {
FaTwitter,
FaTelegram,
FaMobile,
FaMobileAlt
} from 'react-icons/fa';
import {
... |
$(document).ready(function () {
//getLedgersList();
getLedgersListAll($('.add_voucher').data('value'));
$(document).on('change','[name=check_voucher]',function(){
var voucher_id = $(this).val();
var voucher_type =$(this).attr('vtype');
if($(this).is(':checked')){
$(... |
const electron = require('electron');
const autoUpdater = require('electron-updater').autoUpdater;
const path = require('path');
const app = electron.app;
const notifier = require('electron-notifications');
const isDev = require('electron-is-dev');
const getPort = require('get-port');
const fs = require('fs');
const ex... |
"use strict";
// Machine ID
var machineID = window.ipc.getMachineId();
$(".connecting-id").html(machineID);
// Connection
io.sails.url = "https://server.wwsu1069.org";
io.sails.query = `host=${machineID}`;
io.sails.reconnectionAttempts = 3;
var socket = io.sails.connect();
$("#connecting").removeClass("d-none");
$("#... |
import * as _core from "atomic/core";
import * as _reactives from "atomic/reactives";
import * as _transducers from "atomic/transducers";
import * as _repos from "atomic/repos";
import {parse} from "https://deno.land/x/ts_xml_parser/mod.ts"
import {Html5Entities} from "https://raw.githubusercontent.com/matschik/deno_ht... |
// ==UserScript==
// @version 0.5.2
// @author 51114u9
// @name OSM Dark Theme
// @namespace https://github.com/51114u9/osm-dark-theme
// @description Dark theme for OSM.org
// @license BSD-2-Clause; https://opensource.org/licenses/bsd-license.php
// @match *://op... |
/* eslint-disable max-len */
import React from 'react';
import { Link as RouterLink } from 'react-router-dom';
import Typography from 'extensions/Typography';
import Box from '@material-ui/core/Box';
import Icon from 'docs/extensions/icon';
import { mergeInfo } from 'helpers/function';
import code from './typographyCod... |
/*Functions for displaying helptext tooltip*/
function rmHelpTextIn2(a) {
var helpTextNode = jQuery(a).siblings(".rmnote");
var fieldWidth = jQuery(a).children().innerWidth();
var fieldHeight = jQuery(a).parent().outerHeight();
var topPos = fieldHeight;
//var id = setInterval(frame, 1);
jQuery(h... |
import { ipadFieldName, pcFieldName, mdFieldName, forFieldList } from '@/global/style'
/**
* Parse the time to string
* @param {(Object|string|number)} time
* @param {string} cFormat
* @returns {string | null}
*/
export function parseTime(time, cFormat) {
if (arguments.length === 0 || !time) {
return null
... |
import { forwardRef, chakra, useMultiStyleConfig, omitThemingProps, layoutPropNames } from '@chakra-ui/system';
import { isInputEvent, cx, __DEV__, warn, dataAttr, callAllHandlers, ariaAttr, callAll, split } from '@chakra-ui/utils';
import * as React from 'react';
import { useState, useCallback } from 'react';
import {... |
/**
* Implements hook_block_view().
* @param {String} delta
* @param {Object} region
* @return {String}
*/
function menu_block_view(delta, region) {
// NOTE: When rendering a jQM data-role="navbar" you can't place an
// empty list (<ul></ul>) in it, this will cause an error:
// https://github.com/jquery/jque... |
/* jshint node:true */
var _ = require('lodash');
var async = require('async');
var crypto = require('crypto');
var fs = require('fs');
var rmRf = require('rimraf');
var delimiter = require('path').delimiter;
function generateId() {
return crypto.randomBytes(16).toString('hex');
}
/**
* Instantiates Uploadfs.
* ... |
const LIFECYCLES = [ 'env', 'start', 'request', 'error', 'teardown' ]
class Func {
constructor(options) {
options = options || { }
this.NODE_ENV = options.NODE_ENV || process.env.NODE_ENV || 'development'
this.LOG_LEVEL = options.LOG_LEVEL || process.env.LOG_LEVEL || 'info'
this.middleware = {
... |
const Addon_Id = "wcx";
const item = GetAddonElement(Addon_Id);
Sync.WCX = {
xml: OpenXml("wcx.xml", false, true),
IsHandle: function (Ctrl) {
return Sync.WCX.GetObject(Ctrl) != null;
},
GetObject: function (Ctrl) {
if (!Sync.WCX.DLL) {
return;
}
const lib = {
file: "string" === typeof Ctrl ? Ctrl ... |
"use strict";
require("core-js/modules/es.symbol");
require("core-js/modules/es.symbol.description");
require("core-js/modules/es.symbol.iterator");
require("core-js/modules/es.symbol.to-primitive");
require("core-js/modules/es.array.concat");
require("core-js/modules/es.array.find");
require("core-js/modules/es... |
import { range } from 'd3-array';
import slugid from 'slugid';
import { workerGetTiles, workerSetPix } from '../worker';
import { trimTrailingSlash as tts } from '../utils';
// Config
import { TILE_FETCH_DEBOUNCE } from '../configs';
const MAX_FETCH_TILES = 15;
/*
const str = document.currentScript.src
const pathN... |
'use strict';
exports.__esModule = true;
exports.default = exports.withDefaultProps = undefined;
var _defaultProps2 = require('recompose/defaultProps');
var _defaultProps3 = _interopRequireDefault(_defaultProps2);
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var s... |
import querystring from 'querystring';
import crypto from 'crypto';
import EventTracker from 'event-tracker';
import omit from 'lodash/object/omit';
import constants from '../../src/constants';
import addIfPresent from '../../src/lib/addIfPresent';
import { isHidden } from '../../src/lib/dom';
import makeRequest from ... |
var AW = require('../awenlib.js');
AW.consoleOn();
var logger = AW.logger('test', 'debug');
var tagPool = AW.getTagPool('tagTest');
(function () {
var a1 = [1, 2, 3, 8, 1, 9];
AW.exArray.remove(a1, 1);
logger.debug(a1);
}) ();
// test simpleFlowController
(function () {
logger.debug('------------... |
/* global */
'use strict'
var yo = require('yo-yo')
var async = require('async')
var ethJSUtil = require('ethereumjs-util')
var BN = ethJSUtil.BN
var remixLib = require('@shyftnetwork/shyft_remix-lib')
var EventManager = remixLib.EventManager
var crypto = require('crypto')
var TxRunner = remixLib.execution.txRunner
va... |
import {getBrightness} from './helpers.js'
var effectName = null;
var effect = null;
var gui = null;
var fps = null;
const GALLERY = [
"birds",
"fog",
"waves",
"clouds",
"clouds2",
"globe",
"net",
"cells",
// "ripple",
"trunk",
"topology",
"dots",
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.