text stringlengths 8.5k 48.7k |
|---|
/**
* 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
... |
/****************************************************************************
** @license
** This demo file is part of yFiles for HTML 2.2.
** Copyright (c) 2000-2019 by yWorks GmbH, Vor dem Kreuzberg 28,
** 72070 Tuebingen, Germany. All rights reserved.
**
** yFiles demo files exhibit yFiles for HTML functionali... |
// Copyright IBM Corp. 2016,2019. All Rights Reserved.
// Node module: strong-soap
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
'use strict';
var xmlBuilder = require('xmlbuilder');
var sax = require('sax');
var stream = require('stream');
var assert... |
/**
* @module ol/renderer/canvas/VectorTileLayer
*/
import CanvasBuilderGroup from '../../render/canvas/BuilderGroup.js';
import CanvasExecutorGroup, {
replayDeclutter,
} from '../../render/canvas/ExecutorGroup.js';
import CanvasTileLayerRenderer from './TileLayer.js';
import EventType from '../../events/EventType.... |
/*!
* ripple.js
* Copyright (C) 2016-2018 <NAME> and <NAME>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later versi... |
"use strict";
exports.GroupingHelper = void 0;
var _extend = require("../../core/utils/extend");
var _iterator = require("../../core/utils/iterator");
var _uiData_grid = _interopRequireDefault(require("./ui.data_grid.core"));
var _uiData_gridGrouping = require("./ui.data_grid.grouping.core");
var _uiData_grid2 = ... |
"use strict";
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
... |
/**
* Copyright 2012-2018, Plotly, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
var d3 = require('d3');
var isNumeric = require('fast-isnumeric');
var Loggers = require('./loggers');
var mod... |
import {
EVENT_AFTER_INIT,
EVENT_BEFORE_RENDER,
EVENT_AFTER_RENDER,
EVENT_BEFORE_DATA_CHANGE,
EVENT_AFTER_DATA_CHANGE,
EVENT_AFTER_SIZE_CHANGE,
EVENT_AFTER_GEOM_INIT,
EVENT_BEFORE_GEOM_DRAW,
EVENT_AFTER_GEOM_DRAW,
EVENT_CLEAR,
EVENT_CLEAR_INNER,
EVENT_REPAINT
} from './const';
import Base from '... |
var Backbone = require("backbone");
var Models = require("./../models");
var _ = require("underscore");
require("content-container.less");
var BaseViews = require("./../views");
var DragHelper = require("edit_channel/utils/drag_drop");
var dialog = require("edit_channel/utils/dialog");
var descriptionHelper = require("... |
//
// Author(s):
// Fr. <NAME>, OSJ <<EMAIL>>
//
// Copyright (c) 2008-2016 Fr. <NAME>, OSJ
//
// 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 limita... |
"use strict";
import * as gameobj from './gameobj';
import * as sfg from './global';
import * as graphics from './graphics';
/// 敵弾
export class EnemyBullet extends gameobj.GameObj {
constructor(scene, se) {
super(0, 0, 0);
this.NONE = 0;
this.MOVE = 1;
this.BOMB = 2;
this.collisionArea.width = ... |
var OPEN_HTTP_REQUESTS= 0;
var HTTP_REQUESTS = {};
var NEXT_REQUEST_ID = 1;
function xmlhttpPost(strURL, strParams, fun, timeout) {
timeout = typeof timeout !== 'undefined' ? timeout : (20000);
//if (Math.random() > 0.5) timeout = 10;
var self = { open : true,
id : NEXT_REQUEST_ID... |
import { Vector3 } from "../Maths/math.vector";
import { VertexBuffer } from "../Meshes/buffer";
import { SubMesh } from "../Meshes/subMesh";
import { Mesh } from "../Meshes/mesh";
import { AsyncLoop } from "../Misc/tools";
import { Epsilon } from '../Maths/math.constants';
/**
* Class used to specify simplific... |
// A base quantity is a physical quantity in a subset of a given system of quantities that is chosen by convention, where no quantity in the set can be expressed in terms of the others.
export const baseQuantities = ['MASS', 'LENGTH', 'TIME', 'CURRENT', 'TEMPERATURE', 'LUMINOUS_INTENSITY', 'AMOUNT_OF_SUBSTANCE', 'ANGLE... |
/** @private All the events we listen to inside the iframe at the root level.
* Each one is mapped to the corresponding method on the instance. */
import { _defaultCss } from "./_defaultCss";
import { _LooseArray } from "./_LooseArray";
import {_shift} from "./_shift";
import {parseArrayString, stringifyArray} from ".... |
/** @constructor
* Interface to the dat.GUI UI.
*/
var GUI = function(visible = true)
{
// Create dat gui
this.gui = new dat.GUI({autoPlace: true});
this.gui.domElement.id = 'gui';
var gui = this.gui;
this.visible = visible;
this.createguiSettings();
if (!visible)
this.gui.__proto__.constructor.toggleHide... |
/*jshint esnext:true, eqnull:true, undef:true */
/*globals require, window */
var moment = require('moment');
var d3 = require('d3');
var nv = require('./vendor/nvd3');
import {styleSheet, d3textWrap, range} from './utils';
import {debounce} from './vendor/debounce';
import {TabularLegendRenderer} from './tabularLegen... |
/*
author: <NAME>
*/
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { withRouter } from 'react-router-dom';
import Axios from 'axios';
import ConfigMain from '~/configs/main';
import PropTypes from 'prop-types';
import LeftNa... |
// <NAME>
// CSC 561
// 09/23/16
// read the sphere in .json
function getInputSpheres() {
const INPUT_SPHERES_URL =
"https://ncsucgclass.github.io/prog1/spheres.json";
// load the spheres file
var httpReq = new XMLHttpRequest(); // a new http request
httpReq.open("GET", INPUT_SPHERES_URL, fals... |
// Copyright (c) 2005 <NAME>
// All Rights Reserved.
// See "LICENSE" for details.
// Basic JavaScript BN library - subset useful for RSA encryption.
// Bits per digit
var dbits;
// JavaScript engine analysis
var canary = 0xdeadbeefcafe;
var j_lm = ((canary & 0xffffff) == 0xefcafe);
// (public) Constructor
functio... |
//Import library and loaders easiest way: link to unpkg website
import * as THREE from 'https://unpkg.com/three@0.118.3/build/three.module.js';
import { PointerLockControls } from 'https://unpkg.com/three@0.118.3/examples/jsm/controls/PointerLockControls.js';
import {load_audio, load_world, onKeyUp, ... |
import React, { Component } from "react";
import ChartistGraph from "react-chartist";
import * as d3 from "d3";
import {nest as d3_nest} from 'd3-collection';
import "../../assets/css/charts.css";
import _ from "lodash";
import $ from "jquery";
import axios from "axios";
// @material-ui/core
import { makeStyles } from ... |
/*==[ Hotkeys.js ]============================================================================================
HOTKEYS
============================================================================================================*/
var HotKeys = {
cPost: null,
enabled... |
//MooTools More, <http://mootools.net/more>. Copyright (c) 2006-2009 <NAME> <http://clientcide.com/>, <NAME> <http://mad4milk.net> & the MooTools team <http://mootools.net/developers>, MIT Style License.
/*
---
script: More.js
description: MooTools More
license: MIT-style license
authors:
- <NAME>
- <NAME>
- <NAME... |
function setTab(obj, hoverObj, setObj, current, active, event, judge) {
var _this = 0;
if(!active) {
obj.find(setObj).hide();
obj.find(setObj).eq(0).show();
}
obj.find(hoverObj).on(event, function() {
_this = $(this).index();
if(judge && $(this).prop('tagName')=='LI'){
... |
var crypto = require('crypto');
var events = require('events');
var https = require('https');
var http = require('http');
var path = require('path');
var util = require('util');
var tls = require('tls');
var url = require('url');
var net = require('net');
var fs = require('fs');
// Optional pem mod... |
/*variabel titip ke ar */
var nomor_memo_titip_ar = '';
var nomor_kontrak_id_titip_ke_ar = '';
var nomor_kontrak_titip_ke_ar = '';
var nama_nasabah_titip_ke_ar = '';
var saldo_titip_ke_ar = '';
/*--------------------------- search nomor kontrak tab titipan to ar ----------------------------*/
$('#search-no-kontrak-ti... |
import React, { Component, useContext, useState, useEffect, useRef } from "react";
import { FlatList, TextInput, Button, StyleSheet, View, Image, Dimensions, TouchableOpacity, Text, Alert } from "react-native";
import MaterialBasicFooter1 from "../components/MaterialBasicFooter1";
import { useFonts } from '@expo-google... |
function onSelectStart(event) {
let controller = event.target;
let intersections = getIntersections(controller, 0, 0, -1);
if (intersections.length < 1) return;
let intersection = intersections[0];
let object = intersection.object;
if (object && object.userData.moveable && object.userData.inte... |
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
import _createClass from "@babel/runtime/helpers/createClass";
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
import _getPrototypeOf... |
// TODO pull out jQuery library to separate HOC
import $ from 'jquery';
import i18n from 'i18n';
import React, { Component, PropTypes } from 'react';
import ReactDOM from 'react-dom';
import ReactTestUtils from 'react-addons-test-utils';
import ReactCSSTransitionGroup from 'react-addons-css-transition-group';
import { ... |
'use strict';
/* global hivemind PathFinder Room RoomPosition FIND_STRUCTURES
STRUCTURE_KEEPER_LAIR STRUCTURE_CONTROLLER CONTROLLER_DOWNGRADE FIND_SOURCES
TERRAIN_MASK_WALL TERRAIN_MASK_SWAMP POWER_BANK_DECAY STRUCTURE_PORTAL
STRUCTURE_POWER_BANK FIND_MY_CONSTRUCTION_SITES STRUCTURE_STORAGE
STRUCTURE_TERMINAL FIND_RUI... |
"use strict";
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
Object.defineProperty(exports, "__esModule", { value: true });
const ClientMetricReportDirection_1 = require("../clientmetricreport/ClientMetricReportDirection");
const ContentShareConstants_1 = re... |
//Mudando cor de fundo do título inicial
var logo_inicial = document.getElementById("logo_inicial"); //Identificando o elemento que será alterado
logo_inicial.addEventListener("mouseover", trocarFundo); //Adiciona um listener para quando o mouse estiver sobre o título
logo_inicial.addEventListener("mouseout", voltarF... |
//初始化
var industrys = null;
var rowDta_xf = null,cbtnArr = window.top.buttonAuth;
$(document).ready(function(){
initIndustryInfo("searchForm");
initGrid();//初始化界面
initButton();//初始化按钮
// initDialog();
initAisinoCheck("checkForm");//初始化这个form的校验
collapseLink();//修改折叠事件的绑定
});
var colMap ={
colNames : ['id','销方税... |
/*
tinyTLS project
Copyright 2014 <NAME>.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, sof... |
/*
Create a new environment.
*/
function newUserGroup(obj){
$("body").append(
$("<div>", { class: "modal fade", id: "newTeamModal", "tabindex": "-1", "role": "dialog", "aria-labelledby": "newTeamModalLabel", "aria-hidden": "true" }).html(
$("<div>", { class: "modal-dialog" }).html(
... |
import { Point } from './../primitives/point';
import { Size } from './../primitives/size';
import { pathSegmentCollection, processPathData } from './../utility/path-util';
import { setAttributeSvg, setChildPosition } from './../utility/dom-util';
import { overFlow, wordBreakToString, cornersPointsBeforeRotation } from... |
/*
kit.js
2020-01-08 13:51 GMT(+1)
js toolkit
https://github.com/jniac/js-kit
*/
/*
'Random' === 'PRNG'
Forked from https://gist.github.com/blixt/f17b47c62508be59987b
other example https://github.com/davidbau/seedrandom
*/
class Random {
constructor(seed = 123456789) {
this.seed = seed;
}
next() {
r... |
var width = document.getElementById("id_genderPie").clientWidth,
height = document.getElementById("id_genderPie").clientHeight,
barWidth = 30;
var data = jsonData;
var processedData = [];
//Data preprocessing to get the data in single object to be used in all the charts.
var pieProcessing = function (s) {
... |
var N3Parser = require('../N3').Parser;
var chai = require('chai'),
expect = chai.expect;
chai.should();
chai.use(require('chai-things'));
describe('N3Parser', function () {
describe('The N3Parser module', function () {
it('should be a function', function () {
N3Parser.should.be.a('function');
});
... |
var Constants = require('Constants');
var FirstPersonAgent = require('sim/FirstPersonAgent');
var NavScene = require('nav/NavScene');
var SceneUtil = require('scene/SceneUtil');
var Object3DUtil = require('geo/Object3DUtil');
var Transform = require('geo/Transform');
var _ = require('util');
/**
* Basic simulator sta... |
import React from "react";
import { useHistory } from "react-router-dom";
import { findIndex } from "lodash";
import Select from "react-select";
import makeAnimated from "react-select/animated";
import Loader from "components/Loader/Loader";
import NetworkStatus from "components/NetworkStatus";
import OfflinePlaceholde... |
// !ref: local://default_avatar.avatar
// !ref: local://crosshair.js
if (!server.IsRunning() && !framework.IsHeadless())
{
engine.ImportExtension("qt.core");
engine.ImportExtension("qt.gui");
engine.IncludeFile("local://crosshair.js");
}
// A simple walking avatar with physics & 1st/3rd person camera
var ... |
const { loadImage, createCanvas } = require('canvas');
const Discord = require('discord.js');
let cards;
let blankCard;
let client;
let deckSize = 54;
function cardName(card) {
switch (Math.floor(card / 4)) {
case 0:
return 'three';
case 1:
return 'four';
case 2:
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const debounce_1 = tslib_1.__importDefault(require("debounce"));
const vscode_languageserver_protocol_1 = require("vscode-languageserver-protocol");
const events_1 = tslib_1.__importDefault(require("../events"... |
import Button from '@material-ui/core/Button';
import Card from '@material-ui/core/Card';
import CardContent from '@material-ui/core/CardContent';
import PublishIcon from '@material-ui/icons/ChevronRight';
import EditIcon from '@material-ui/icons/Edit';
import SaveIcon from '@material-ui/icons/SaveAlt';
import WarnIcon... |
'use strict';
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
Object.defineProperty(exports, '__esModule', {
value: true
});
exports.default = normalize;
... |
// FLAT Theme v2.2
(function ($) {
$.fn.retina = function (retina_part) {
// Set default retina file part to '-2x'
// Eg. some_image.jpg will become some_image-2x.jpg
var settings = {
'retina_part': '-2x'
};
if (retina_part) jQuery.extend(settings, {
'retina_part': retina_part
});
if (window.device... |
/* eslint-disable no-nested-ternary */
/* eslint-disable no-underscore-dangle */
/* eslint-disable react/jsx-indent-props */
/* eslint-disable react/jsx-indent */
import {
Alert,
Button,
Card,
Form,
Input,
List,
Modal,
Radio,
Select,
Spin,
Tabs,
Tag
} from 'antd';
import { connect } from 'dva';
... |
// NodeBB Plugin Modmin
const async = require('async')
const User = require.main.require('./src/user')
const Privileges = require.main.require('./src/privileges')
const Helpers = require.main.require('./src/privileges/helpers')
const Categories = require.main.require('./src/categories')
const Database = require.main.... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.setup = setup;
exports.run = run;
exports._determineFlowVersion = determineFlowVersion;
exports._installNpmLibDefs = installNpmLibDefs;
exports._installNpmLibDef = installNpmLibDef;
exports.description = exports.name = void 0;
var ... |
import _ from 'lodash';
import NativePromise from 'native-promise-only';
import NestedArrayComponent from '../_classes/nestedarray/NestedArrayComponent';
import Component from '../_classes/component/Component';
import Alert from '../alert/Alert';
import { fastCloneDeep, Evaluator, getArrayFromComponentPath } from '../.... |
/*
+--------------------------------------------------------------------+
| ____ __ __ |
| / __ \____ _/ /_____ ______/ /___ ___ __ |
| / / / / __ `/ __/ __ `/ ___/ / __ `/ / / / |
| / /_/ / /_/ / /_/ ... |
var l_dateCollector = [];
var l_countryKind = [];
var tableCollector;
var tableFull;
var l_image = [];
var l_country = ['US', 'China', 'Japan', 'SKorea', 'Canada'];
var l_countryOriginal = ['United States', 'China', 'Japan', 'Korea, Republic of', 'Canada']
var l_countryName = ['US', 'CHINA', 'JAPAN', 'KOREA', 'CANADA']... |
"use strict";
const esprima = require("esprima");
const {Syntax} = esprima;
const escope = require("escope");
const ModuleName = require("../utils/ModuleName");
const {Format: ModuleFormat} = require("../resources/ModuleInfo");
const UI5ClientConstants = require("../UI5ClientConstants");
const {findOwnProperty, getLoc... |
/*
* This module encapsulates the official Jisho.org API
* and also provides kanji and example search features that scrape Jisho.org.
* Permission to scrape granted by Jisho's admin Kimtaro:
* https://jisho.org/forum/54fefc1f6e73340b1f160000-is-there-any-kind-of-search-api
*/
import axiosBuilder from 'axios';... |
/**
* An adapter to make CodeMirror's vim bindings work with monaco
*/
import {
KeyCode,
KeyMod,
Range,
Position,
Selection,
SelectionDirection,
editor as monacoEditor,
} from 'monaco-editor';
import { TypeOperations } from 'monaco-editor/esm/vs/editor/common/controller/cursorTypeOperations';
const Vert... |
/**
* String Tension Calculator
* @author <NAME>
* @license MIT
* @see https://github.com/rodrigocfd/string-tension-calc
*/
const COLORS = ['#EDC240', '#AFD8F8', '#CB4B4B', '#4DA74D', '#9440ED',
'#FF158A', '#0244FE', '#804040', '#FF8000'];
const SCALES = [
{scale: '24.625"', inches: [24.625, 24.625]},
{scale:... |
import "./three.js/three.min.js"
const attribs = ["position","uv"
, "in_Color", "in_FaceColor", "in_Modulous"
, "normal", "in_Pow", "in_flat_color"
, "in_use_texture", "in_decal_texture", "in_face_index"
, "copies" /*internal*/, "types1", "types2", "typeDelta"
, "simplex"
];
const attrib_bytes = [4,4, 1,1,4, 4... |
import { useState, useEffect, useCallback } from 'react';
import { getStatementsBySubject, getStatementsBySubjectAndPredicate } from 'services/backend/statements';
import { getContributorInformationById } from 'services/backend/contributors';
import { getObservatoryAndOrganizationInformation } from 'services/backend/ob... |
'use strict';
var Block = function() {
/** @member {Float} */
this.x = 0.0;
/** @member {Float} */
this.y = 0.0;
/** @member {Float} */
this.r = 0.0;
}
var Point = function(x, y) {
/** @member {Float} */
this.x = x;
/** @member {Float} */
this.y = y;
}
var EndPoint = function(x, y) {
/** @member {Float} *... |
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import {DragDropContext} from 'react-dnd';
import HTML5Backend from 'react-dnd-html5-backend';
import isEqual from 'deep-equal';
import WordMap, {Alignment, Ngram} from 'wordmap';
import Lexer, {Token} from 'wordmap-lexer';
import {VerseEditor}... |
const mongoose = require('mongoose');
const moment = require('moment');
const EventEmitter = require('events');
const ValidationError = require('../errors/validation');
module.exports = class PlayerService extends EventEmitter {
constructor(gameRepo, randomService, mapService, starService, carrierService, sta... |
"use strict";
/**
* @module opcua.address_space
*/
require("requirish")._(module);
var NodeClass = require("lib/datamodel/nodeclass").NodeClass;
var NodeId = require("lib/datamodel/nodeid").NodeId;
var resolveNodeId = require("lib/datamodel/nodeid").resolveNodeId;
var DataValue = require("lib/datamodel/datavalue")... |
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des... |
/*******************************************************************************
* jsRipOff.js
* Copyright (c) 2010, <NAME> (http://wwWendt.de)
*
* Released under the MIT license
* http://www.opensource.org/licenses/mit-license.php
*
* A current version and some documentation is available at
* https://githu... |
/*
* Copyright (C) 2013 salesforce.com, 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 ... |
import PropTypes from 'prop-types';
import React, { useEffect, useRef } from 'react';
// material-ui
import { makeStyles, useTheme, withStyles } from '@material-ui/styles';
import { Box, Button, Card, Grid, TextField, Typography, Avatar, List, ListItem, ListItemAvatar, ListItemText } from '@material-ui/core';
// proj... |
/**
* VisitorCounter
* 基于LeanCloud的无后端访问统计
* @version 1.0.0
* @author Qin, YuanPei [<EMAIL>]
* @copyright Qin, YuanPei 2014-2017
* @license MIT
**/
function VisitorCounter() {
/**
* 当前配置
**/
this.config = {
appId: '', //应用ID, 必输
appKey: '', //应用Key, 必... |
var projectsJsonLink = "https://raw.githubusercontent.com/MarcoRob/marcorob.github.io/Develop/projects.json";
var Page = React.createClass({
displayName: 'Page',
getInitialState: function getInitialState() {
return {
tabs: ['Me', 'Skills', 'Projects', 'Contact'],
filters: [{
name: "all",
... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread"));
var _toConsumableArray2 = _inter... |
// # bionode-ncbi
// > Node.js module for working with the NCBI API (aka e-utils) using Streams.
// >
// > doi: [10.5281/zenodo.10610](https://doi.org/10.5281/zenodo.10610)
// > author: [<NAME>](http://bmpvieira.com)
// > email: <<EMAIL>>
// > license: [MIT](https://raw.githubusercontent.com/bionode/bionode-ncbi/master... |
/**
* Entry point to build a bundle containing a set of globals used when displaying
* tutorialExplorer. Includes the TutorialExplorer React class.
*/
import React, {PropTypes} from 'react';
import ReactDOM from 'react-dom';
import Immutable from 'immutable';
import FilterHeader from './filterHeader';
import Filte... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnPrope... |
var NRS = (function(NRS, $, undefined) {
"use strict";
NRS.server = "";
NRS.state = {};
NRS.blocks = [];
NRS.genesis = "5547846998156852386";
NRS.account = "";
NRS.accountRS = ""
NRS.accountInfo = {};
NRS.database = null;
NRS.databaseSupport = false;
NRS.settings = {};
NRS.contacts = {};
NRS.isTestNet... |
/*
* debouncedresize: special jQuery event that happens once after a window resize
*
* latest version and complete README available on Github:
* https://github.com/louisremi/jquery-smartresize/blob/master/jquery.debouncedresize.js
*
* Copyright 2011 @louis_remi
* Licensed under the MIT license.
*/
var $event =... |
"use strict";
var __generator = (this && this.__generator) || function (thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.... |
var AJAX = {
request: function(options) {
var xhr = new XMLHttpRequest();
xhr.addEventListener('readystatechange', function(){
if (this.readyState == 4) {
if (this.status == 200) {
var result = this.response;
if (typeof result == '... |
function displayFloat (v, nbDecimals) {
var str = parseFloat(v).toFixed(nbDecimals)
return str.indexOf('.') === -1 ? str + '.' : str.replace(/0+$/, '')
}
function initBrain (params) {
// Parameter initialization - for internal use
var defaultParams = {
smooth: false,
flagValue: false,
colorBackgro... |
var Hints = {};
Hints.tryGooglePattern = function(forward) {
if (location.hostname.indexOf('www.google.'))
return false;
var target = document.getElementById(forward ? 'pnnext' : 'pnprev');
if (target)
target.click();
return !!target;
};
Hints.matchPatternFilters = {
'*://*.ebay.com/*': {
'next'... |
module.exports = parser
var full_parse_expr = require('./expr')
, Scope = require('./scope')
// singleton!
var Advance = new Object
var DEBUG = false
var _ = 0
, IDENT = _++
, STMT = _++
, STMTLIST = _++
, STRUCT = _++
, FUNCTION = _++
, FUNCTIONARGS = _++
, DECL = _++
, DECLLIST = _++
, FORLOOP... |
/*
* Name: Save Panel Options
* Author: <NAME> (c) 2013
* Email: <EMAIL>
* Website: http://lumens.se/tools/savepanel/
*
* Description: Options dialog for the Save Panel script.
*/
//@include common.js
//@include constants.js
//@include actions.js
//@include Json.js
setupEventHelper();
var SavePanelOptions =... |
/*
* Node.js Buffer toString()
*
* In Duktape 2.x Node.js Buffer.prototype.toString() does an actual UTF-8
* decoding.
*/
/*@include util-buffer.js@*/
/*@include util-string.js@*/
function makeBuffer(bytes) {
var buf = new Buffer(bytes.length);
for (var i = 0; i < bytes.length; i++) {
buf[i] =... |
import {Map, List, fromJS} from 'immutable';
import {
Group,
Layer,
Hole,
Vertex
} from './export';
import {
IDBroker,
NameGenerator,
GeometryUtils,
SnapUtils,
SnapSceneUtils,
} from '../utils/export';
import {
MODE_IDLE,
MODE_WAITING_DRAWING_LINE,
MODE_DRAWING_LINE,
MODE_DRA... |
const FORMATIONS = {
defensive_0: [
[11,06,02,04,02,04,02,03,06,11],
[03,02,08,07,06,05,02,11,05,02],
[09,06,01,04,05,02,10,05,11,07],
[04,02,03,07,08,03,03,11,00,11],
],
balanced_0: [
[06,02,04,09,06,02,02,10,02,06],
[05,02,07,05,11,02,07,07,08,03],
[04,08,01,03,11,02,06,05,05,11],
... |
/**
* LIQUIDO GraphQL client
*
* Every call to the backend goes through this class.
* Here we also handle data caching.
* And login and logout because the currently logged in use with his team is also cached.
*/
import axios from "axios"
import config from "config"
import PopulatingCache from "populating-cache"
... |
'use strict';
const assert = require('assert');
const path = require('path');
const sep = path.sep;
const pm = require('..');
const compare = (a, b) => {
a = a.toLowerCase();
b = b.toLowerCase();
return a > b ? 1 : a < b ? -1 : 0;
};
const match = (list, pattern, options = {}) => {
let isMatch = pm(pattern, ... |
/*global CKEDITOR*/
import {
nonEmpty,
listNodeNames,
bookmarks,
inheritInlineStyles,
cleanUpDirection
} from './iccListUtils'
import {toRoman, toArabic} from 'roman-numerals'
import _ from 'lodash'
export const ordinalParseRegex = /^(\s*(?:\(|Class|CHAPTER)?\s*(?:[a-zA-Z0-9]+\.)*)(?:([a-zA-Z0-9]+)... |
import CONFIG from './config.js';
import { renderFriendsNavTab, renderMessageSnippet, renderAllMessageSnippets, renderMessage, renderMessagesBox, addMessageToSessionStorage, previewFiles } from './home-functions.js';
let socket = io();
socket.connect(`${CONFIG.serverAddress}:${CONFIG.serverPort}`, { secure: true... |
var countryCodes = {
'AD':{de:'Andorra',en:'Andorra'},
'AE':{de:'Vereinigte Arabische Emirate',en:'United Arab Emirates'},
'AF':{de:'Afghanistan',en:'Afghanistan'},
'AG':{de:'Antigua und Barbuda',en:'Antigua and Barbuda'},
'AI':{de:'Anguilla',en:'Anguilla'},
'AL':{de:'Albanien',en:'Albania'},
'AM':{de:'Armenien... |
/*
https://github.com/PlanetRenox/in0sight
Contact: <EMAIL>
*/
document.getElementById("zerosight-button").addEventListener("click", replace);
document.getElementById("zerosight-button-quit").addEventListener("click", quit);
function replace()
{
var nodes = document.querySelectorAll("#zerosight-1p2-node, #zerosight-... |
import Logger from './Logger.js'
import mysql from './MysqlWraper.js'
import Pusher from './Pusher.js'
// import ReportFile from './reportFile.js'
let metaDefinition = require('./meta_definition.js')
let cardDefinition = require('./card_definition.js')
// let datatable = require('./meta_dat.js')
let config = require... |
/*!
* WooCommerce Custom Scripts
*
* Functions used to add custom functionality to WooCommerce integration
*
*/
/*!
* Variations Plugin
*/
;(function ( $, window, document, undefined ) {
jQuery.fn.wc_variation_form = function () {
jQuery.fn.wc_variation_form.find_matching_variations = function( produ... |
// credit slider: https://bl.ocks.org/johnwalley/e1d256b81e51da68f7feb632a53c3518
var dataGlob = [];
var svgGlob = []
window.onload = function() {
// decodes the JSON file
var username = "goblok"
var listType = "2"
var requests = [d3.json(`${username}_${listType}.json`)];
// ensures that all data... |
// prevents hot air balloon from being fixed horizontally
$(window).scroll(function () {
$('.dockwrapper').css('left', 0 - $(window).scrollLeft());
});
// slider yayay
var sliderOptions =
{
sliderId: "slider",
effect: "series1",
effectRandom: false,
pauseTime: 2600,
transitionTime: 500,
sli... |
$(function(){
if($(".ico-bind-email").length > 0){
var xh_left_email = $(".ico-bind-email").position().left +20;
var xh_top_email = $(".ico-bind-email").position().top -10;
$(".bind-email").css({"left":xh_left_email,"top":xh_top_email,"display":"block"});
}
if($(".ico-bind-phone").length > 0){
var xh_left... |
/*
JavaScript file for Distributome project
See http://www.distributome.org
*/
//Constants
const HOR = 0, VERT = 1, LEFT = 0, RIGHT = 1, ABOVE = 2, BELOW = 3, AT = 4;
const PDF = 0, CDF = 1;
//A basic graph
function Graph(cvs, a0, a1, b0, b1){
var ctx, x0, x1, y0, y1, w, h;
//Initialize
if (-Infinity < a0 && a0 <... |
/**
* Created by Michael on 21/07/2015.
*/
// set global ajax timeout and disable cache
$.ajaxSetup({timeout: 30000, cache: false});
// customised jquery ajax function for posting JSON
$.postJSON = function(url, data, callback) {
return jQuery.ajax({
'type': 'POST',
'url': url,
'contentType': 'applicat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.