text stringlengths 5.97k 41.2k |
|---|
import express from "express";
import http from "http";
import io from "socket.io";
import fs from "fs-extra";
import _ from "lodash";
import sharp from "sharp";
import hash from "hash.js";
import chokidar from "chokidar";
// Setup
const _app = express();
const _http = http.Server(_app);
const _io = io(_http);
// Con... |
var currentNodeUrl = '';
var allNodeUrls = [];
var openNextPage = $axure.player.openNextPage = function () {
var index = allNodeUrls.indexOf(currentNodeUrl) + 1;
if(index >= allNodeUrls.length) return;
var nextNodeUrl = allNodeUrls[index];
currentNodeUrl = nextNodeUrl;
$('.sitemapPageLink[nodeUrl=... |
/**
* Copyright 2016 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... |
"use strict";
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
... |
var JUMP_KEY = 87
var LEFT_KEY = 65
var RIGHT_KEY = 68
var DOWN_KEY = 83
var RUN_KEY = 16
var gameTime
var menuActive
var lastFrameTimeMs
var maxFPS = 60
var delta
var timestep
//create the canvas
var canvas = document.createElement("canvas");
var ctx = canvas.getContext('2d');
var updateables = [];
var fireballs = [... |
'use strict';
const delay = require('delay');
const chalk = require('chalk');
const fs = require('fs');
const path = require('path');
const YAML = require('yamljs');
const mkdirp = require('mkdirp');
const semver = require('semver')
var packageJson = require('./package.json');
const unsupportedRegionPrefixes = ['cn-']... |
'use strict';
var log4js = require('log4js');
var logger = log4js.getLogger('Helper');
logger.setLevel('ERROR');
var path = require('path');
var util = require('util');
var fs = require('fs-extra');
var User = require('fabric-client/lib/User.js');
var crypto = require('crypto');
var copService = require('fabric-ca-cli... |
import React, { Component } from 'react';
import { StyleSheet, View, Text, Dimensions, TouchableOpacity, FlatList, ScrollView } from 'react-native';
import TabNavigator from 'react-native-tab-navigator';
import Storage from 'react-native-storage';
import { captureRef } from "react-native-view-shot";
import { Grid, A... |
"use strict";
var ChessState = require('./chess-state.js');
var ChessMove = require('./chess-move.js');
var ChessRules = function() {
var $public = this;
var $private = {
init: function() {
$public.performMove = this.performMove.bind(this);
$public.getGameStatus = this.getGameStatus.bind(this);
... |
/* jshint browser:true */
'use strict';
/* global socket,io,humaneDate */
/* jshint jquery:true */
var reset = document.querySelector('#reset');
reset.addEventListener('click', function() {
document.querySelector('#secondsSinceLastEdit').value = 240;
document.querySelector('#secondsSinceLastEditValue').innerHTML ... |
import * as L from "leaflet";
export const cerPalette = {
"Night Sky": "#054169",
Sun: "#FFBE4B",
Ocean: "#5FBEE6",
Forest: "#559B37",
Flame: "#FF821E",
Aubergine: "#871455",
"Dim Grey": "#8c8c96",
"Cool Grey": "#42464B",
hcBlue: "#7cb5ec",
hcGreen: "#90ed7d",
hcPink: "#f15c80",
hcRed: "#f45b5b... |
import React from 'react';
// import './App.css';
import { makeStyles, createMuiTheme } from '@material-ui/core/styles';
import Drawer from '@material-ui/core/Drawer';
import AppBar from '@material-ui/core/AppBar';
import CssBaseline from '@material-ui/core/CssBaseline';
import Paper from '@material-ui/core/Paper';
imp... |
angular
.module('nzbhydraApp')
.controller('SearchController', SearchController);
function SearchController($scope, $http, $stateParams, $state, $uibModal, $timeout, $sce, growl, SearchService, focus, ConfigService, HydraAuthService, CategoriesService, $element, SearchHistoryService) {
function getN... |
var markerIcon = require('./img/marker-icon.png');
var markerShadow = require('./img/marker-shadow.png');
var ol = require('openlayers');
const {last, head} = require('lodash');
const blue = [0, 153, 255, 1];
const assign = require('object-assign');
const {trim, isString, isArray} = require('lodash');
const {colorToRgb... |
const esl = require('drachtio-modesl') ;
const assert = require('assert') ;
const delegate = require('delegates') ;
const Emitter = require('events').EventEmitter ;
const _ = require('lodash') ;
const only = require('only') ;
const async = require('async') ;
const generateUuid = require('uuid') ;
const Endpoint = requi... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _sdpTransform = _interopRequireDefault(require("sdp-transform"));
var _Logger = _interopRequireDefault(require("../Logger"));
var _EnhancedEventEmitter2 = _interopRequireDefault(require("../EnhancedEventE... |
/****************************************************************
* Purpose: Proof of concept on how to read values from and configure the mcp3424
* The code is targeted for a raspberry pi expansionboard that
* has 8 ports with a voltage divider allowing measuring of 0-14V
*
* Copyright: <NAME>
*
* L... |
import { PhysicsImpostor } from "../../Physics/physicsImpostor";
import { PhysicsJoint } from "../../Physics/physicsJoint";
import { PhysicsEngine } from "../../Physics/physicsEngine";
import { Vector3, Quaternion } from "../../Maths/math.vector";
import { Logger } from "../../Misc/logger";
import { PhysicsRaycast... |
const is = require('@barchart/common-js/lang/is'),
object = require('@barchart/common-js/lang/object'),
timezone = require('@barchart/common-js/lang/timezone'),
Timezones = require('@barchart/common-js/lang/Timezones');
const CumulativeVolume = require('./CumulativeVolume'),
Exchange = require('./Exchange'),
Prof... |
var clientWidth=document.documentElement.clientWidth;
var clientHeight=document.documentElement.clientHeight;
/*环状图*/
var setItemStyle=function(color1,color2){
var itemStyle={
color: {
type: 'linear',
x: 0,
y: 0,
x2: 0,
y2: 1,
colorS... |
var __defProp = Object.defineProperty;
var __defProps = Object.defineProperties;
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __propIsEnum = Object.prototype.propertyIsEnumerable;
var __defNormal... |
/**
* Wechaty - WeChat Bot SDK for Personal Account, Powered by TypeScript, Docker, and 💖
* - https://github.com/chatie/wechaty
*/
const {
FileBox,
UrlLink ,
Wechaty,
ScanStatus,
log,
} = require('wechaty')
const axios = require('axios')
const fs = require('fs')
const randomInt = require('... |
import {
props as layerProps,
setup as layerSetup,
} from "@vue-leaflet/vue-leaflet/src/functions/layer";
/**
* @typedef {import('leaflet/dist/leaflet-src.esm.js').LatLngBounds} LatLngBounds
*/
export const props = {
...layerProps,
url: {
type: String,
required: true,
},
corners: {
type: [Arr... |
"use strict";
var __read = (this && this.__read) || function (o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { ... |
var ENEMY_MIN_RADIUS = 19;
var ENEMY_MAX_RADIUS = 40;
var MAX_SPHERES = 300;
var WORLD_RADIUS = 1000;
var WORLD_CENTERX = 10000000;
var WORLD_CENTERY = 10000000;
var GRAVITY = 4;
var WORLD_SCALE = 1;
var GROWTH_RATE = 0.25;
var GAME_SPEED;
var scale = [
'Molecule',
'Dust Particle',
'Sand Grain',
'Small... |
/*
Alerta Masiva Correspondiente al IVA Vencido
Consideraciones:
Para pruebas internas definir la variable alttest = 2, de esta manera llegara el correo a cuentas
Internas de AboutIT
Para despachar los emails al cliente, debe definir la variable alttest = 1.
*/
import sql from 'mssql';
//var aws = ... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnPrope... |
import WalletSelection from "./WalletSelection/WalletSelection";
import CreateWalletMachine from "./CreateWalletPage/CreateWalletPage";
import Settings from "./Settings/Settings";
import Logs from "./Logs/Logs";
import { FormattedMessage as T } from "react-intl";
import { createElement as h } from "react";
import GetSt... |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... |
// Copyright (c) 2011 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.
/**
* @fileoverview NTP Standalone hack
* This file contains the code necessary to make the Touch NTP work
* as a stand-alone application (as op... |
const STAR_COUNT = ( window.innerWidth + window.innerHeight ) / 8,
STAR_SIZE = 3,
STAR_MIN_SCALE = 0.2,
OVERFLOW_THRESHOLD = 50;
const canvas = document.getElementById( 'canvas1' ),
context = canvas.getContext( '2d' );
let scale = 1, // device pixel ratio
width,
height;
let stars = []... |
/****************************************************************************
** @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... |
const Command = require("../base/Command");
class CommandName extends Command {
constructor(Bot) {
super(Bot, {
name: "grandarena",
category: "SWGoH",
enabled: true,
aliases: ["ga"],
permissions: ["EMBED_LINKS"],
subArgs: {
... |
import Axis from './axis';
import AxisLabel from './axis-label';
import { BLACK, COORD_PRECISION, DEFAULT_PRECISION, X, Y } from '../common/constants';
import { defined, isNumber, last, limitValue, round, setDefaultOptions, valueOrDefault, HashMap } from '../common';
import { dateEquals } from '../date-utils';
const ... |
"use strict";
/** @module */
module.exports = WirelessTagSensor;
var util = require('util'),
EventEmitter = require('events'),
deepEqual = require('deep-equal'),
u = require('./util'),
xforms = require('./xforms'),
MonitoringConfig = require('./sensorconfig'),
OperationUnsupportedError = requi... |
var UglifyJS = require("uglify-js");
var fs = require("fs");
var vm = require("vm");
var path = require("path");
var crypto = require('crypto');
var utils = require("./Utils");
var reporter = require("./reporter");
var currentReporter;
function log(reporter, level, message) {
if (reporter && reporter[level]) {
rep... |
const _ = require('lodash');
const util = require('../../core/util.js');
const config = util.getConfig();
const dirs = util.dirs();
const moment = require('moment');
const log = require(dirs.core + 'log');
const Broker = require(dirs.broker + '/gekkoBroker');
require(dirs.gekko + '/exchange/dependencyCheck');
const ... |
import shaders from './shaders';
import { Asc, Desc } from './viz/expressions';
const INITIAL_TIMESTAMP = Date.now();
/**
* The renderer use fuzzy logic where < 0.5 means false and >= 0.5 means true
*/
const FILTERING_THRESHOLD = 0.5;
/**
* @typedef {object} RPoint - Point in renderer coordinates space
* @proper... |
require('core-js/fn/object/entries')
/**
* Performs interpretations for three samples and evaluate some references.
* - Sample 1: interpret one round, set to review.
* - Sample 1: check if interpretations from previous round is stored. Finalize the sample.
* - Sample 2: check if variants common with sample 1 are a... |
/**
* Created by Eric.Zhang on 2017/4/7.
*/
var joyconn_layout={};
joyconn_layout.Data={uid:""}
//ajax结果返回值验证,结果为空或失去登录或访问没有权限都会返回false,内部已做好弹出层提示
/**
* 请求结果验证
* @param data 服务器返回的数据
* @param extNote 是否对除未登录、权限不足以外的验证做出提示,true表示自己进行提示,不传或false表示系统自动提示
* @returns {boolean} true验证通过 false验证失败
* @constructor
*/
jo... |
/*Copyright 2015 <NAME> <<EMAIL>>, <NAME> <<EMAIL>>
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 wri... |
$(function () {
JEEGEM.Dict.setSelect("selectisValid","isValid",2,'全部');
loadOrgTree();
//增加回车事件
$("#baseForm").keydown(function(e){
keycode = e.which || e.keyCode;
if (keycode==13) {
search();
}
});
//form显示选择
$("#authorityDiv button").bind('click', function(){
$("#authorityDiv but... |
import React from 'react';
import styled from 'styled-components';
import ErrorBoundary from './ErrorBoundary';
import SearchForm from './SearchForm';
import SearchResultTable from './SearchResultTable';
import Button from 'react-bootstrap/Button';
import VoterDialog from './VoterDialog';
import ProgressBar from 'react... |
"use strict";
jQuery(document).ready(function ($) {
if (Function('/*@cc_on return document.documentMode===10@*/')()) {
document.documentElement.className += ' ie10';
}
/* Show testimonial after loading */
$('.testimonial-item').css('visibility', 'visible');
/* Tabs Init */
easyTab... |
import { getLocationStr } from '../_common/util';
import { OverrideCustomerInfo } from '../_common/customer/override-customer-info';
const format = (arr, str) => {
return (arr && arr[0] && arr[0].replace(str, '').trim()) || '-';
};
const getCompanyName = (text) => {
if (text.includes('企查查')) {
text = t... |
if (!Element.prototype.matches) {
Element.prototype.matches = Element.prototype.msMatchesSelector ||
Element.prototype.webkitMatchesSelector;
}
if (!Element.prototype.closest) {
Element.prototype.closest = function (s) {
var el = this;
do {
if (el.matches(s)) return el;
... |
import m from 'mithril';
import _ from 'underscore';
import h from '../h';
import tooltip from './tooltip';
import creditCardVM from '../vms/credit-card-vm';
import projectVM from '../vms/project-vm';
import creditCardInput from './credit-card-input';
import inlineError from './inline-error';
import subscriptionEditMod... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
function _assert() {
const data = _interopRequireDefault(require("assert"));
_assert = function () {
return data;
};
return data;
}
function _utils() {
const data = require("@parcel/utils");
_u... |
// Provides an outbound email server which listens to a queue service and processes
// outbound emails for CodeStream
'use strict';
//const NewRelic = require('newrelic');
const OutboundEmailServerConfig = require('./config'); // structured config object
const AWS = require(process.env.CSSVC_BACKEND_ROOT + '/shared/... |
var chainrxn = false;
Ball = new Class({
number: 0,
xposition: 0,
yposition: 0,
downspeed: 0,
rightspeed: 0,
color: "#fff",
srcs: "vapp/shit.png",
radius: 0,
expanding: 0,
sizeChangeCount: 0,
disabled: false,
expanded: false,
chainlevel: 0,
initialize: function (gameLevel, number, xposition, yposition) {... |
var __assign = (this && this.__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];
}
return t;
};
import { Deduplicator, } from '../transpo... |
const Mechanic = {
"2001": {
"id": 2001,
"name": "Action Points"
},
"2002": {
"id": 2002,
"name": "Tile Placement"
},
"2003": {
"id": 2003,
"name": "Rock-Paper-Scissors"
},
"2004": {
"id": 2004,
"name": "Set Collection"
},
"2005": {
"id": 2005,
"name": "Stock Ho... |
import PropTypes from 'prop-types';
import React, { Component } from 'react';
const INVALID = 'is-invalid';
const CLOCK = ['am', 'pm'];
class TimeItem extends Component {
constructor(props) {
super(props);
var aria = {};
if (this.props.name === 'meridiem') {
aria = {
... |
/*global process, require */
// ES6 adds a const(ant) declaration for immutable variables
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/const
// note in particular that an (unfrozen) object with a `const`
// declaration still has mutable properties, as demonstrated
// by mutating `app... |
import React, { Component, createRef } from "react"
/*
import Stats from "three/examples/jsm/libs/stats.module"
import { OrbitControls } from "three/examples/jsm/controls/OrbitControls.js"
*/
import { SVGLoader } from "three/examples/jsm/loaders/SVGLoader.js"
import {
WebGLRenderer,
PerspectiveCamera,
Group,
Gr... |
/**
* A Utilities class containing functions for performing various
* helpful utilities, like distance calculations, UTM zone helpers, etc.
*/
var SpatialUtils = /** @class */ (function () {
function SpatialUtils() {
}
/**
* Returns the UTM Zone for a given longitude. Includes rules beyond just BC/C... |
/**
* Keywords for Actor#update() that move the actor in the specified direction.
*/
var keys = {
up: ['up'],
down: ['down'],
left: ['left'],
right: ['right'],
};
/**
* An array of image file paths to pre-load.
*/
var preloadables = [
'../../examples/images/grass2body.png',
... |
/**
* Copyright 2019 Google Inc. 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 law ... |
import {createAction, handleActions} from 'redux-actions';
// import {logInfo, logError, logFail} from './messagePanel';
import {setRecorderStartTimeSeconds, setRecorderStopTimeSeconds} from './hlsRecorders';
import {setCurrentSource} from './liveSelector';
import {setClipSelected} from './clipSelector';
import {setNod... |
"use strict";
const url = require("url");
const path = require("path");
const fs = require("fs-extra-promise");
const { notification } = require("typelib");
const { SshClient } = require("ssh");
const { SlaveCom } = require("../../slavecom");
const { ObjSerialize } = require("misc");
const Job = require("../../types/j... |
var provider = require('./oAuthProvider');
if (!provider) {
console.error('No oAuthProvider configuration found.');
process.exitCode = 1;
process.exit();
}
const CLIENT_ID = provider.clientId;
const CLIENT_SECRET = provider.clientSecret;
const REDIRECT_URI = provider.redirectUri;
const AUTH_END_POINT = pr... |
// ----
// <NAME> - 3d sdf
// https://www.iquilezles.org/www/articles/distfunctions/distfunctions.htm
// ---
//// dot fns
export const rm_dots = `
float dot2( in vec2 v ) { return dot(v,v); }
float dot2( in vec3 v ) { return dot(v,v); }
float ndot( in vec2 a, in vec2 b ) { return a.x*b.x - a.y*b.y; }
`;
//// primtiv... |
import { v4 as uuidv4 } from "uuid";
import inside from "point-in-polygon";
import earcut from "earcut";
import QuadTree from "simple-quadtree";
import TinyQueue from "tinyqueue";
import { Vector, isclose, cross, dot } from "./math";
function _normalizePoint(point) {
if (point instanceof Array) {
return n... |
var url_api = './../api/v1.0/'
idUsuario = 0
/* -----------------------------
- -
- GET PARCELAS -
- -
----------------------------- */
//Obtiene las parcelas de la consulta a la base de datos y llama a crearListaParcelas.
function getP... |
const { app, BrowserWindow, dialog, ipcMain, ipcRenderer, session } = require('electron');
const isDevMode = require('electron-is-dev');
const { format } = require('url');
const { join } = require('path');
const os = require('os');
const shell = require('electron').shell;
//import { shell } from 'electron';
//STORAG... |
import React, { Component } from 'react';
import { ParseTree } from 'bracery';
import { extend, fromEntries, cloneDeep } from './bracery-web';
import GraphView from './react-digraph/components/graph-view';
import ControlledInput from './ControlledInput';
import ParseGraph from './ParseGraph';
import './MapView.css';
... |
"use strict";
const { Contract } = require("./contract");
const TrezorConnect = require("trezor-connect").default;
const ethUtil = require("ethereumjs-util");
const BigNumber = require("bignumber.js");
const Transport = require("@ledgerhq/hw-transport-u2f").default;
const LedgerEth = require("@ledgerhq/hw-app-eth")... |
import Conditions from '../../../../../resources/conditions.js';
import NetRegexes from '../../../../../resources/netregexes.js';
import Outputs from '../../../../../resources/outputs.js';
import { Responses } from '../../../../../resources/responses.js';
import ZoneId from '../../../../../resources/zone_id.js';
... |
/*
* Copyright (c) 2021 Marketify
* Author: Marketify
* This file is made for CURRENT TEMPLATE
*/
jQuery(document).ready(function(){
"use strict";
// here all ready functions
tokyo_tm_menu();
tokyo_tm_modalbox_news();
tokyo_tm_modalbox_about();
tokyo_tm_modalbox_portfolio();
tokyo_tm_m... |
/* paper del stencil_container*/
var graph = new joint.dia.Graph;
var paper = new joint.dia.Paper({
el: $('.stencil_container'),
gridSize: 10,
perpendicularLinks: false,
model: graph,
interactive: false,
width: 200
});
/* paper del contenedor de las figuras*/
var graph2 = new joint.dia.Gr... |
function Square(name, pricetext, color, price, groupNumber, baserent, rent1, rent2, rent3, rent4, rent5) {
this.name = name;
this.pricetext = pricetext;
this.color = color;
this.owner = 0;
this.mortgage = false;
this.house = 0;
this.hotel = 0;
this.groupNumber = groupNumber || 0;
this.price = (price || 0);
th... |
window.packageName = "org.ekstep.contentplayer"
window.version = AppConfig.version
window.packageNameDelhi = "org.ekstep.delhi.curriculum"
window.geniePackageName = "org.ekstep.genieservices"
window.currentUser = {}
window.userList = []
window.COLLECTION_MIMETYPE = "application/vnd.ekstep.content-collection"
window.sta... |
var isMobile = false;
$(function() {
isMobile = $.cookie('isMobile') == 'Y';
//수정모드에서 필드클릭시 에디트모드로 전환
$(document).on('click', '.view_control', function(e){
var trg = $(e.currentTarget);
if(trg.attr('isEditMode')=='true'){
trg.hide();
$('.editable',trg.parent()).show().focus();
}
});
//수... |
import L from 'leaflet';
import { defineMessages } from 'react-intl';
import moment from 'moment';
import { isCaseLocalised, formatThousand } from 'bluesquare-components';
import geoUtils from '../geo';
export const genericMap = mapNode =>
L.map(mapNode, {
attributionControl: false,
zoomControl: fa... |
var globalConfig = {
port: {
management: 8000,
wlan: 9000,
lan: 9001
}
}
var express = require('express');
var app = express();
var net = require('net');
var carrier = require('carrier');
var macDb = require('mac-lookup');
var fs = require('fs');
var server = net.createServer(func... |
"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
var vue = require("vue");
var serverRenderer = require("vue/server-renderer");
var vueRouter = require("vue-router");
var path = require("path");
var vuex = require("vuex");
var App_vue_vue_type_s... |
/**************************************************
* dom-drag.js
* 09.25.2001
* www.youngpup.net
* Script featured on Dynamic Drive (http://www.dynamicdrive.com) 12.08.2005
**************************************************
* 10.28.2001 - fixed minor bug where events
* sometimes fired off the handle, not the r... |
/*
*
* Model for chat entity
*
*/
// Dependencies
import chatAccessor from './../accessor/chatAccessor';
import userAccessor from './../accessor/userAccessor';
import logger from './../util/logger';
import Model from './../schema/chatSchema';
import UserModel from './../schema/userSchema';
import helpers f... |
/**
* Created by <NAME> on 2017.06.19
* Copyright (c) 2017 <NAME>
*
* Permission is hereby granted, free of charge, to any location 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... |
'use strict';
function noop() { }
function is_promise(value) {
return value && typeof value === 'object' && typeof value.then === 'function';
}
function run(fn) {
return fn();
}
function blank_object() {
return Object.create(null);
}
function run_all(fns) {
fns.forEach(run);
}
function safe_not_equal(a... |
import React, { Component } from 'react';
import {
Badge,
Button,
ButtonDropdown,
Card,
CardBody,
CardFooter,
CardHeader,
Col,
Collapse,
DropdownItem,
DropdownMenu,
DropdownToggle,
Fade,
Form,
FormGroup,
FormText,
FormFeedback,
Input,
InputGroup,
InputGroupAddon,
InputGroupText... |
//Assets
var musics = []
var snare
var allerFont
//Variables
let bubbleEffects = []
let onFireCounter = 0
let onFireChangeDivider = 12;
let paused = false;
let level;
let amp;
var pointerCursor = false;
var stage = "loading"
var updateFrames = 0;
var score = 0;
var animationValues = {
assetsLoadedCount: 0,
ass... |
var data_colors = {
wc_hours: "#F29F05",
wc_delta: "#88A61B",
wc_count: "#0E3D59",
};
var lineGraph = function() {
this.select_callout = undefined;
this.select_callin = undefined;
}
lineGraph.prototype.init = function (json_data, date_value, y_values) {
var that = this;
var svg = d3.select("svg"),
... |
require("requirish")._(module);
var encode_decode_round_trip_test = require("test/helpers/encode_decode_round_trip_test").encode_decode_round_trip_test;
var verify_multi_chunk_message = require("test/helpers/verify_message_chunk").verify_multi_chunk_message;
var browse_service = require("lib/services/browse_service");... |
'use strict';
const PromiseManager = require('../../core/promiseManager');
const { callApi } = require('../../util/common');
function getLocationMap() {
return {
Seoul: {
code: 1,
sub: [
'강남구',
'강동구',
'강북구',
'강서구',
... |
window.NUMBER_OF_CIRCLES = 1000;
window.numbersLib = {
generateRandomNumber: function () {
return Math.ceil(Math.random() * 99);
},
alternateNumber: window.alternateNumber = function (oldNum) {
var isEven = oldNum % 2 === 0;
var isOdd = ! isEven;
var isLessThan = oldNum < 50... |
const Path = require('path');
const Exec = require('child_process').exec;
const FLAGS = ['get', 'dnscache'];
exports.install = function() {
ROUTE('/api/apps/', json_query, ['authorize', '*Application']);
ROUTE('/api/apps/', json_apps_save, ['authorize', 'post', '*Applicat... |
/**
* Created by root on 9/19/15.
*/
var Method = {
POST: "post",
GET: "get",
PUT: "put",
DELETE: "delete"
};
var ResponseState = {
REQUEST_SENT: 1,
REQUEST_SUCCESSFUL: 2,
RESPONSE_STARTED: 3,
RESPONSE_COMPLETE: 4
};
var AsyncCaller = function (){
this.xhr = new XMLHttpRequest()... |
"use strict";
/**
* screeps-packrat
* ---------------
* Lightning-fast and memory-efficient serialization of Screeps IDs, Coords, and RoomPositions
* Code written by Muon as part of Overmind Screeps AI. Feel free to adapt as desired.
* Package repository: https://github.com/bencbartlett/screeps-packrat
*
* Type... |
/** @format */
/**
* External dependencies
*/
import cookie from 'cookie';
import debugModule from 'debug';
import page from 'page';
import PropTypes from 'prop-types';
import React from 'react';
import ReactCSSTransitionGroup from 'react-transition-group/CSSTransitionGroup';
import url from 'url';
import {
assign,
... |
// Import Selector engine.
import uSelector from "./uSelector.es6";
/**
* @module Rhythm
*
* @description Web Page Vertical Rhythm Fixer.
*
* @version 1.0
* @author <NAME> <<EMAIL>> https://github.com/h0tc0d3
* @copyright Copyright (c) 2017, <NAME>
* @license Apache License, Version 2.0, http://www.apache.org/l... |
var fs = require('fs');
var nodeUrl = require('url');
var http = require('http');
var https= require('https');
var debug = require('debug')('functions');
var config = require('config');
var sparqljs = require('sparqljs');
/*
MIT License (MIT)
Copyright (c) 2016 <NAME> (http://colin.maudry.com)
Permission is hereby g... |
var $RunBenchmarks = false;
function reduce(arr) {
return arr.length > 1 ? arr : arr[0];
}
var IE8 = Prototype.Browser.IE && navigator.userAgent.indexOf('MSIE 8');
suite("Selector Interactions",function(){
this.timeout(0);
test("Selector With Tag Name", function() {
assertenum($A(document.getElementsByTagN... |
var Service, Characteristic;
var request = require("request");
var pollingtoevent = require('polling-to-event');
module.exports = function(homebridge){
Service = homebridge.hap.Service;
Characteristic = homebridge.hap.Characteristic;
homebridge.registerAccessory("homebridge-http-advanced", "Http-advanced", HttpAdva... |
import _ from 'underscore';
import $ from 'jquery';
import app from '../../../app';
import { capitalize } from '../../../utils/string';
import { getSocket } from '../../../utils/serverConnect';
import {
resolvingDispute,
events as orderEvents,
} from '../../../utils/order';
import { getCachedProfiles } from '../../... |
var db = require("../lib/db.js")
var cluster = require('cluster')
var config = require("config")
var request = require('request')
var async = require("async")
var worldcatDecode = require("../lib/worldcatDecode.js")
var Moniker = require('moniker')
var log = require('simple-node-logger').createSimpleLogger(__dirname ... |
var full_circle = $('#full_circle_id');
var fill_left = $('#fill_left_id');
var fill_right = $('#fill_right_id');
var menu_circle = $('#menu_circle_id');
var aftermovie_icon = $('#aftermovie_icon_id');
var gallery_icon = $('#gallery_icon_id');
var aftermovie_text = $('#aftermovie_text_h1_id');
var gallery_text = $('#ga... |
import { filter } from 'lodash';
import { Icon } from '@iconify/react';
import { sentenceCase } from 'change-case';
import { useState, useEffect } from 'react';
import plusFill from '@iconify/icons-eva/plus-fill';
import axios from 'axios';
import ReactPlayer from 'react-player';
import moment from 'moment';
import { L... |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... |
import React, { forwardRef, useRef, useMemo, useState, useCallback, useEffect } from 'react';
import { s as styleInject, P as PropTypes } from '../style-inject.es-3bd340c8.js';
import { r as randomExtend, g as getPointDistance } from '../index-4a2cc4f9.js';
import { s as slicedToArray, t as toConsumableArray, _ as _ext... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.