text stringlengths 5.97k 41.2k |
|---|
// constants
const TILE_H = 15;
const TILE_W = 15;
const MAP_H = 30;
const MAP_W = 80;
const TURRET_OFFSET = 200;
const TURRET_GAP = 5;
const TURRET_D = 40;
// move direction
const MOVE_N = 1;
const MOVE_S = -1;
const MOVE_E = 2;
const MOVE_W = -2;
const MOVE_END = -99;
// global state
var turretDragCounter = 0;
var ... |
const base64url = require("base64-url");
const moment = require("moment");
const crypto = require("crypto");
const router = require("express").Router({ mergeParams: true });
const config = require("./config");
const Lib = require("./lib");
const DB = require("./db");
const ... |
/*!
=========================================================
* Argon Design System React - v1.1.0
=========================================================
* Product Page: https://www.creative-tim.com/product/argon-design-system-react
* Copyright 2020 Creative Tim (https://www.creative-tim.com)
* Licensed under MIT ... |
/* eslint-disable react/no-did-mount-set-state */
import * as React from 'react';
import * as _ from 'lodash-es';
import * as PropTypes from 'prop-types';
import { FilterSidePanel, VerticalTabs } from 'patternfly-react-extensions';
import { EmptyState, FormControl } from 'patternfly-react';
const filterSubcategories =... |
"use strict";
var _a;
Object.defineProperty(exports, "__esModule", { value: true });
exports.combineUserActivitySystemPost = exports.comparePostTypes = exports.postTypePriority = exports.makeGenerateCombinedPost = exports.getLastPostIndex = exports.getLastPostId = exports.getFirstPostId = exports.getPostIdsForCombinedU... |
import {JSONLoader} from './json-loader.js';
const TYPE_LWO2 = 0x4c574f32;
const CHUNK_TYPE_FORM = 0x464f524d;
const CHUNK_TYPE_PNTS = 0x504e5453;
const CHUNK_TYPE_POLS = 0x504f4c53;
const CHUNK_TYPE_SURF = 0x53555246;
const CHUNK_TYPE_TAGS = 0x54414753;
const CHUNK_TYPE_LAYR = 0x4c415952;
const CHUNK_TYPE_BBOX = 0x4... |
function BuildUrl(textBox, relativeUrl) {
textBox.value = document.getElementById('serviceUri').value + relativeUrl;
}
function SetServiceUrl(targetTextBox) {
//this is the url that is pre-configured in the InRule.RuleServices project web.config
var uri = "http://localhost:50001/InRule.RuleServices/RuleE... |
/* eslint-disable no-negated-condition */
const {functions} = require('lodash-es');
let stickySidebar,
stickystatus = false;
$(window).on('load', () => {
window.top.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, (m, key, value) => {
if (key === 'variant') {
const variantId = value;
const varian... |
String.prototype.format = function()
{
var content = this;
for (var i=0; i < arguments.length; i++)
{
var replacement = '{' + i + '}';
content = content.replace(replacement, arguments[i]);
}
return content;
};
var snake;
var frames = 0;
var c;
var ratio_h_w = 1.2;
var x_game_fiel... |
const ioClient = require('socket.io-client');
const io = require('socket.io');
const EventEmitter = require('events').EventEmitter;
const Err = require("./IError.js");
const iCrypto = require('./iCrypto');
const Logger = require("../libs/Logger.js");
const TorController = require('./TorController.js');
const Bimap = ... |
/* global GetFilesList InitVis*/
/* exported InitVis*/
var totalChartSpaceHeight;
$(document).ready(function() {
GetFilesList();
INSTRUCTIONTYPEARR = [];
for (let propt in INSTRUCTIONTYPE) {
INSTRUCTIONTYPEARR.push(INSTRUCTIONTYPE[propt]);
}
totalChartSpaceHeight = parseInt(d3.select("#outercontainer").... |
var mapManager = mapManager || {};
var google = google || {};
var ko = ko || {};
// Temp
var prompt = prompt || function() {};
/**
* The module provides methods for accessing the Google Maps Directions API.
* @param {object} self TheatreMapViewModel object without this module.
* @param {object} ko ... |
import { Icon } from 'expo';
import React from 'react';
import {
Alert,
Animated,
PanResponder,
Platform,
StyleSheet,
ScrollView,
Text,
TouchableOpacity,
View,
} from 'react-native';
import { Divider, Paragraph } from 'react-native-paper';
import { withNavigation } from 'react-navigation';
import * as... |
/***************************** SHOPPING CART TAB ****************************/
function init_cart_tab() {
/*
The shopping cart system enables users to select term items, sections, and
entire forms that they want from existing specification forms defined by
ontology curators or shared by other users. These items ca... |
'use strict';
// Test: npx babel --watch src --out-dir . --presets react-app/prod
var config = {
// Sim info
MAP_DISPLAY_WIDTH: 800, // px
ROBOT_SIZE: 0.274, // m, diameter
ROBOT_DEFAULT_SIZE: 100, // px
COLLISION_THRESHOLD: 0.4,
// Display info
MAP_COLOUR_HIGH: "#00274C", // Michigan b... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
function _nonIterableRest() { throw new TypeError(... |
/* MIT-LICENSE */
/*
Copyright (c) 2009 <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, publis... |
temp_index_number = 1;
lenth = 0;
paramList = []
var _type = "一键查询单表多个不同索引拼接";
$(function() {
// 查询条件展示
// paramList
// search bar 数据
// search bar 数据
var url = '/sysDbmsUserIndexInfo/findAll';
ajaxPost(url, {}, add_user_index_sucess, 1000, findError);
searchButtonClick();
});
var paramString... |
const BFX = require('bitfinex-api-node');
const { Order } = require('bfx-api-node-models');
const moment = require('moment');
const _ = require('lodash');
const ExchangeCandlestick = require('../dict/exchange_candlestick');
const Ticker = require('../dict/ticker');
const Position = require('../dict/position');
const ... |
import '../atoms/cc-button.js';
import '../molecules/cc-error.js';
import '../atoms/cc-img.js';
import '../atoms/cc-input-number.js';
import '../atoms/cc-toggle.js';
import { css, html, LitElement } from 'lit-element';
import { classMap } from 'lit-html/directives/class-map.js';
import { ifDefined } from 'lit-html/dire... |
/********************************
Progress Report of Project 2: Anything™ Proposal - Underwater Mini Game
<NAME>
This is the main script for the project. This js file links all other js files together to make the project work. This js file includes:
1- USE STRICT
2- VARIABLES being DECLARED
3- PRELOAD FUNCTION (for t... |
/* -----------------------------------------
** cablix js version.
** suppport script for edit & manage tree
** ----------------------------------------- */
var userMode="view";
var formEditElement;
var currentRackCfg = new Object();
var elementTypeList = new Object();
$(function(){
formEditElement=$("#formEditEleme... |
var path = require ("path");
var express = require ("express");
var typescript = require ("typescript");
var fs = require ("fs");
var rcopy = require ("recursive-copy");
var execSync = require ("child_process").execSync;
var ws = require ("ws");
var app = express ();
var crypto = require ("crypto");
var archiver = requ... |
/**
* 门店详情
*/
"use strict"
import React, { Component } from "react";
import {
View,
Text,
Image,
FlatList,
ImageBackground,
TouchableOpacity,
StyleSheet
} from "react-native";
import {
windowWidth,
PublicStyles,
PublicStylesString,
ThemeStyle,
windowHeight,
FontStyle
} from "../../../utils/... |
import Solver from './Solver'
import Grid2d from './Grid2d'
import Pattern from './Pattern'
import XYSet from './XYSet'
import poissonDiscSampler from './poissonSampler'
class Minefield {
constructor(sx, sy, rng) {
this.rng = rng === undefined ? Math.random : rng;
this.grid = new Grid2d(sx, sy, '?');
thi... |
const core = require('@actions/core')
const axios = require('axios');
const fs = require('fs');
const { ClientSecretCredential } = require("@azure/identity");
const { SecretClient } = require("@azure/keyvault-secrets");
// Setting SSL OFF // Need to remove this on prod
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
va... |
//-------------------------
// Variables Functions
//-------------------------
var delayTime = 600;
var isSystemAdministrator = "True";
var groupName = "";
var _startDate = "";
var _endDate = "";
var _accountType = "";
var _energyType = "";
var _energyUoM = "";
var chartTypeCaption = "Cost";
var dateRangeText = "";
va... |
/* @flow */
import { genHandlers } from './events.js'
import baseDirectives from '../directives/index.js'
import { camelize, no, extend } from '../../core/utils/tools.js'
import { baseWarn, pluckModuleFunction } from '../helpers.js'
import { emptySlotScopeToken } from '../parser/index.js'
import { execStrFunc, convert... |
import React, { Component } from 'react'
import { View, Text, Keyboard } from 'react-native'
import ImagePicker from 'react-native-image-picker';
import ImagePker from 'react-native-image-crop-picker';
import { connect } from 'react-redux'
import _ from 'lodash'
import { format, parseISO, isBefore, isAfter, parse } fr... |
var itemCount = 0;
var mtsGoogleTypography = function(container, collection, values){
initialize = function(container, collection) {
var container = jQuery(container);
var collection = jQuery(collection);
var preview = jQuery(".font_preview input", collection);
itemCount++;
colle... |
/* Copyright 2012 Mozilla Foundation
*
* 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... |
#!/usr/bin/env node
var fs = require('fs');
var path = require('path');
var spawn = require('spawn-cmd').spawn;
var Pend = require('pend');
var chokidar = require('chokidar');
var findit = require('findit');
var ncp = require('ncp').ncp;
var watchify = require('watchify');
var browserify = require('browserify');
var c... |
/* global window, alert */
import {
THEME,
CATEGORY_ENTITIES,
ENTITY_TAB_FEDERATION,
ENTITY_TAB_ATHRAEL,
ENTITY_TAB_SYLON,
ENTITY_TAB_THORUN,
ENTITY_TAB_ZHOGARN,
ENTITY_TAB_MISC,
EVENT_EFFECT_SELECTION_CANCELED,
EVENT_SPACE_OBJECT_SELECTION_CANCELED,
EVENT_ENTITY_SELECTION_CANCELED,
} from '../../... |
var storage_data = { 'show_hidden': {}, 'filter_address': '', 'bookmark': {} };
var text_dict = {
addStar: '追蹤',
cancelStar: '取消',
showAll: '顯示所有',
hiddenAll: '隱藏所有',
show: '展開',
hidden: '隱藏',
filterAddrKeyword: '去除地址關鍵字:',
save: '儲存',
showStarList: '展開追蹤清單',
hiddenStarList: '隱藏追蹤清單',
display: '顯示... |
"use strict";
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
function _asyncToGenerator(fn) { retur... |
import axios from "axios";
import moment from "moment";
import UIkit from "uikit";
import * as loadMoreItems from "../load-more-items/load-more-items";
export function init() {
let subscribeBtns = Array.from(
document.querySelectorAll(".subscribe-status")
);
if (subscribeBtns) {
subscribeBtns.forEach(sub... |
/*!
* devextreme-react
* Version: 20.2.6
* Build date: Tue Mar 16 2021
*
* Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file in the root of the project for details.
*
* https://githu... |
import path from 'path'
import makeDebug from 'debug'
import logger from 'winston'
import _ from 'lodash'
import 'winston-daily-rotate-file'
import compress from 'compression'
import cors from 'cors'
import helmet from 'helmet'
import bodyParser from 'body-parser'
import { RateLimiter as SocketLimiter } from '... |
// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3
// Copyright (C) 2020-2021 <NAME>. Licensed under GNU GPLv3.
'use strict';
var undoButton = document.getElementById('undo-button');
var redoButton = document.getElementById('redo-button');
var editForm = document.getElementB... |
import cloneDeep from 'lodash/cloneDeep';
import * as d3 from 'd3';
import validateVisConfig from './validateVisConfig';
import parseDataset from './parseDataset';
import { defaults } from './defaults';
import { log } from '../utils';
/**
* @name compileVisConfig
* @description VRIA vis-config compiler
* @author <... |
import {
createElement, getElement, sortExplorer, checkExtension, getDirectChild, getPath,
} from '../helper.js';
class ExplorerView {
constructor() {
this.createFile = getElement('createFile');
this.createFolder = getElement('createFolder');
this.removeBtn = getElement('remove');
this.renameBtn = ... |
/**
* 初始化layui框架
* 并对相应的对象进行赋值
* */
layui.config({
base: '/resources/js/admin/'
}).extend({
tableSelect: 'tableSelect',
formSelects: 'formSelects-v4'
}).use(['table', 'form', 'layer', 'laydate', 'layedit', 'element', 'upload', 'tree', 'tableSelect', 'formSelects'], function () {
this.table = layui.ta... |
import React, { Component } from 'react'
import Matter from 'matter-js'
import polyDecomp from 'poly-decomp'
import pathseg from 'pathseg'
import { Stage, Layer, Rect, Text, Line } from 'react-konva'
import Konva from 'konva'
import Spring from './Spring'
class Physics extends Component {
constructor(props) {
s... |
"use strict";
var chalk = require("chalk");
var Table = require("cli-table");
var Set = require("es6-set");
var fs = require("fs");
var _ = require("lodash");
var readline = require("readline");
var FirebaseError = require("./error");
var logger = require("./logger");
var utils = require("./utils");
var DATA_LINE_RE... |
$(document).ready(function(){
/*****prevent first space on inputs*****/
$("input").on("keypress", function(e) {
if (e.which === 32 && !this.value.length)
e.preventDefault();
});
/********click on profile setting popup redirect*********/
$('.profile_setting').click(function(){
var homeurl = $('#ho... |
import rollupPluginutils from '@rollup/pluginutils';
import importCwd from 'import-cwd';
import postcssrc from 'postcss-load-config';
import path, { dirname } from 'path';
import fs from 'fs';
import concatMap from 'concat-with-sourcemaps';
/*! **************************************************************************... |
import {BentoLightbox} from '#bento/components/bento-lightbox/1.0/component';
import * as Preact from '#preact';
import {useRef} from '#preact';
import '#bento/components/bento-lightbox/1.0/component.jss';
export default {
title: 'Lightbox',
component: BentoLightbox,
argTypes: {
animation: {
name: 'a... |
// const { isAbsolute } = require("path/posix");
var gTimer = 1;
var bw = 1260;
var bh = 800;
var p = 10;
var cw = bw + (p*2) + 1;
var ch = bh + (p*2) + 1;
function explodeCircle(){
/* var circle = document.getElementById('circle').style
circle.position= "absolute"
circl... |
import React, { Component } from 'react';
import {Dialog, Feedback, Field, Table} from "@icedesign/base";
import API from "../../../API";
import Axios from "axios";
import Button from "@icedesign/base/lib/button";
import Pagination from "@icedesign/base/lib/pagination";
import Search from "@icedesign/base/lib/search";
... |
import React, { useEffect, useState, useCallback, useRef } from "react";
import useSWR from "swr";
import { useDispatch } from "react-redux";
import Select from "react-select";
import tw, { styled } from "twin.macro";
import { formatBytes } from "bytes-formatter";
import Switch from "react-switch";
import { shown as r... |
/**
* FlyEditor 的主逻辑文件。
* 对已经编码完成的输入进行解析最终输出可供显示的 HTML
*
* 内置了 UBB 解析和 HitOn 解析两种解析方式
*
* 文件解析的接口中只定义了
* toHTML
* clear
*/
var newXmlWrapper = Coralian.dom.newXmlWrapper;
var isNumber = Number.isNumber,
formatFileSize = Coralian.Formatter.formatFileSize;
let getPlugIn = require("./plugin");
f... |
const EventEmitter = require("events");
const token = require("./util/token.js");
const ws = require("ws");
const sleep = require("./util/sleep.js");
const ua = require("user-agents");
const ChallengeHandler = require("./util/ChallengeHandler.js");
// A Kahoot! client.
class Client extends EventEmitter{
/**
* co... |
#!/usr/bin/env node
// Starts the bot, handles permissions and chat context,
// interprets commands and delegates the actual command
// running to a Command instance. When started, an owner
// ID should be given.
var path = require("path");
var fs = require("fs");
var botgram = require("botgram");
var escapeHtml = req... |
/**
* Detects Xcode installs and their iOS SDKs.
*
* @module xcode
*
* @copyright
* Copyright (c) 2014-2015 by Appcelerator, Inc. All Rights Reserved.
*
* Copyright (c) 2010-2014 Digital Bazaar, Inc.
* {@link https://github.com/digitalbazaar/forge}
*
* @license
* Licensed under the terms of the Apache Publi... |
function initLoadedPage_tetkik_talep_formu() {
loadCheckBoxList('lstTetkikler', 'idTetkik', 'tetkik', 'tetkikler', ' onClick="hesaplaToplam();"');
$('.datepicker').datepicker();
$("#drpMuayeneTuru").unbind();
$("#drpMuayeneTuru").change(function () {
var selectedID = this.selectedOptions[0... |
/*
* This implements link hinting. Typing "F" will enter link-hinting mode, where all clickable items on the
* page have a hint marker displayed containing a sequence of letters. Typing those letters will select a link.
*
* In our 'default' mode, the characters we use to show link hints are a user-configurable opti... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
import React from 'react';
import { Link, withRouter } from 'react-router-dom';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import { cloneDeep, every, find, isEmpty, keys, omit, split } from 'lodash';
import {
APPROVE_BULKUPDATE,
DELETE_BULKUPDATE,
BULK_UPDATE_SEARCH_ADDITIONAL_FUNCT... |
function UserOpts(mainMenu){
this.gpx = gpx
this.trackToDisplay = trackToDisplay
this.trackName = trackName
this.openErrorMessagePopup = false
if(typeof(openErrorMessagePopup) != 'undefined')
this.openErrorMessagePopup = openErrorMessagePopup
this.localityLat = null
if(typeof(localityLat) != 'undef... |
/* eslint-disable no-bitwise */
function add(a, b) {
return a ^ b;
}
exports.add = add;
const sub = add;
exports.sub = exports.add;
const LOG = new Uint8Array([
0xff, 0x00, 0x19, 0x01, 0x32, 0x02, 0x1a,
0xc6, 0x4b, 0xc7, 0x1b, 0x68, 0x33, 0xee,
0xdf, 0x03, 0x64, 0x04, 0xe0, 0x0e, 0x34,
0x8d, 0x81, 0xef, ... |
'use strict';
const http = require('http')
const url = require('url')
const lib = require('http-helper-functions')
const pLib = require('permissions-helper-functions')
const ps = require('./maps-persistence.js')
const MAPS = '/bWFw-'
const ENTRIES = '/ZW50-'
const VALUES = '/dmFs-'
const MAPWIHORGID = '/bWFwd2lk-'... |
var quick_buy_modal = $('#quick_buy_modal');
var cart_modal = $('#cart');
var my_profile_modal = $('#my-profile');
var my_orders_modal = $('#my-orders');
var my_order = $('#my-order');
$(document).ready(function () {
//Init all tooltips
$('[data-toggle="tooltip"]').tooltip();
$('.lazy').Lazy({
sc... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
var selltime = 0;
option = null;
var order_data = {};
var timer = '';
var resorderlist = {};
var timer_orderlist= '';
var _sell_time = 0;
var _ftime = 0;
function getdata(pid) {
var url = "/index/goods/ajaxpro/pid/"+pid;
$.get(url,function(data){
var old_price = $('.data-price')... |
/*
* This file is part of OverPy (https://github.com/Zezombye/overpy).
* Copyright (c) 2019 Zezombye.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3.
*
* This program ... |
class ArtifactFacetSettings {
/**
* Locally manages a settings array with respect to a parent
* settings array
* @param {[type]} settings [description]
* @param {[type]} parentSettings [description]
*/
constructor(settings, parentSettings) {
this.settings = settings;
this.parentSetting... |
var http = require('http'),
express = require('express'),
app = express(),
server = http.createServer(app),
io = require('socket.io').listen(server, { log: false });
require('dotenv').config();
app.use(express.static(__dirname + '/public'));
app.get('/', function(req, res) {
res.sendFile(__dirnam... |
// for token propagation
var totalVisits = [], //total visits for each vertex
graphTokens = [], //tokens currently in each vertex
newTokens = [], //token positions for the next step
moveTokens = []; //how many tokens move from each vertex -
//to another (for animation)
// for cycle detection and d... |
//jQuery time
var current_fs, next_fs, previous_fs; //fieldsets
var left, opacity, scale; //fieldset properties which we will animate
var animating; //flag to prevent quick multi-click glitches
$(".next").click(function(){
var form= $("#msform");
jQuery.validator.addMethod("texto", function(value, ele... |
'use strict';
const cmd=require('node-cmd');
const materialize=require('materialize-css');
const moment = require('moment');
const shell = require('electron');
const os = require('os');
const fs = require('fs');
const settings = require('electron-settings');
const links = document.querySelectorAll('link[rel="import"]'... |
var krapAttr = {
width: 'width',
height: 'height',
id: 'id',
class: 'class',
undefined: 'undefined'
};
var errorMessages = {
inf: 'id is not found',
stw: 'How did it come here. Some thing went seriously wrong.',
cou: 'Create object first and use it'
};
var fnSvgElement = {
newElemen... |
/*
This part of script would pair the Landsat 7 and Landsat 8 images and export to Google Drive.
It was inspired by <NAME>'s GEE tutorial:
https://developers.google.com/earth-engine/tutorials/community/landsat-etm-to-oli-harmonization
The batch export was done via the tools developed by <NAME> :
https://github.com/fit... |
// @ts-check
/** This file contains the Driver that will convert SimpleQL requests into MySQL queries **/
const { WRONG_VALUE, CONFLICT, REQUIRED, PAYLOAD_TOO_LARGE } = require('../errors')
const Driver = require('./template')
const { isPrimitive, operators, sequence, ensureCreation, getOptionalDep, now, uuid } = req... |
//--------------
// Global Vars
//--------------
// defines lines and points
var username = []; // initialize for labels
var usernameUC = []; // decided to display upper case in points, did not want to rewrite code so made new var
var usernameToPrint;
var pointset = [];
var pdfPolynomial = "";
// helps with rescalin... |
var page=1; //分页
var moban_time=0; //全局时间戳
var bq_h=".png"; //表情格式后缀
var load_over = false; //是否加载完聊天记录
/******************全局方法*********************/
//提示框弹出
function ts(html){
//获取垂直居中的px
$(".prompt p").html(html)
$(".prompt").fadeIn();
}
//提示框关闭
functi... |
(function(e){e.fn.unveil=function(t,n){function f(){var t=u.filter(function(){var t=e(this),n=r.scrollTop(),s=n+r.height(),o=t.offset().top,u=o+t.height();return u>=n-i&&o<=s+i});a=t.trigger("unveil");u=u.not(a)}var r=e(window),i=t||0,s=window.devicePixelRatio>1,o=s?"data-src-retina":"data-src",u=this,a;this.one("unvei... |
var express = require('express')
, path = require('path')
, favicon = require('serve-favicon')
, cookieParser = require('cookie-parser')
, bodyParser = require('body-parser')
, session = require('express-session')
, MemoryStore = require('memorystore')(session)
, passport = require('passport... |
var wavesurfer = null;
var combined;
var loudness_canvas = null;
var psr_canvas;
var loudness = null;
var psr = null;
var true_peak = null;
var integratedLoudness = null;
var loudness_display = null;
var psr_display = null;
var dbtp_display = null;
var channel_count = null;
var impulseResponseBuffer = null;
var max_tr... |
var transcript = require("./transcript");
var audio = require('./audio');
var utils = require('./utils');
var preview = require('./preview');
function reverseHMS(str) {
var time = str.split(':');
var sec = 0;
var place = 0;
for (var i = time.length - 1; i >= 0; i--) {
sec += +time[i].replace(/[^\d.-]/g, ''... |
/*! AtlasMaker */
import 'structjs';
import './css/atlasmaker.css';
import $ from 'jquery';
import {AtlasMakerDraw} from './atlasmaker-draw.js';
import {AtlasMakerIO} from './atlasmaker-io.js';
import {AtlasMakerInteraction} from './atlasmaker-interaction.js';
import {AtlasMakerPaint} from './atlasmaker-paint.js';
i... |
import PoliciesManager from './PoliciesManager';
class PoliciesGUI {
constructor(pepGuiURL, pepURL, messageBus) {
let _this = this;
_this.policiesManager = new PoliciesManager(pepGuiURL, pepURL, messageBus);
// assume prepareAttributes is called after this
}
prepareAttributes() {
let _this = th... |
import React from 'react';
import {
Dimensions,
Image,
StyleSheet,
Text,
TouchableHighlight,
TouchableWithoutFeedback,
View,
} from 'react-native';
import Slider from 'react-native-slider';
import { Audio, Font, KeepAwake } from 'expo';
import { MaterialIcons } from '@expo/vector-icons';
import { Grid, Co... |
var LABJACK_OVERVIEW_IMG_SRC = './static/img/T7-cartoon.png';
var CONNECTOR_OVERVIEW_IMG_SRC = './static/img/T7-DB-cartoon.png';
var DEVICE_IMAGE_X_OFFSET = 150;
var DEVICE_IMAGE_Y_OFFSET = 10;
var VALUE_LABEL_X_OFFSET = {left: -40, right: 30}; // Switch for sides
var DEVICE_IMG_WIDTH = 225;
var DEVICE_IMG_HEIGHT = 525... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var tslib = require('tslib');
var useMotionValue = require('./use-motion-value-3615b5bb.js');
var React = require('react');
var popmotion = require('popmotion');
var three = require('three');
var mergeRefs = require('react-merge-refs');
var ... |
var Dao = require("../../../models").MysqlDao;
var MysqlDB = require("../../../models").MysqlDB;
var logger = require("../../../models").logger;
var config = require('../../../config');
var core = require('../../../models');
var importLogDao = require('../dao/importLogDao');
var xlsx = require("node-xlsx");
var fs = r... |
// MODULES //
import React, { Component, Fragment, lazy, Suspense } from 'react';
import Button from 'react-bootstrap/Button';
import round from '@stdlib/math/base/special/round';
import ceil from '@stdlib/math/base/special/ceil';
import max from '@stdlib/math/base/special/max';
import min from '@stdlib/math/base/spec... |
/**
* GPGPU mappings for step/draw shaders input/output.
*
* These maps show shaders how to make use of a system's supported features, how
* to pack/unpack their data from framebuffers/textures, perform only minimal
* needed samples to retrieve any past values they must derive from, etc.
* Shaders may declare val... |
// eslint-disable-next-line no-unused-vars
const { hexView, hexString, genOTP, hexStringToBytes, keccak, bytesEqual, sha256: fastSHA256, sha256b, processOtpSeed, namehash, DEPRECATED, stringToBytes } = require('./util')
const ONEConstants = require('./constants')
const BN = require('bn.js')
const AES = require('aes-js'... |
const waterfall = require('async/waterfall');
const Emitter = require('../modules/emitter');
const Event = require('../components/event');
const Search = require('../components/search');
const augmentChat = require('../plugins/augment/chat');
/**
This is the root {@link Chat} class that represents a chat room
@pa... |
// create a standard D3 SVG map
var width = 700,
height = 380;
var projection = d3.geoMercator()
.center([-76.3, 40.6]);
// deliver a smaller size to smaller screens
// for some reason I am giving all small screens the same scale
// works best on my phone as landscape
var testWidth = d3.select('#map').style('wi... |
class Pokemon {
constructor(id, name, image,imageBack, types, height, weight, stats, moves) {
this._id = id;
this._name = name;
this._image = image;
this._types = types; //array type class
this._height = height;
this._weight = weight;
this._stats = stats; //st... |
function event_scroll(id_post) {
var parent = $('.read-more').first();
var load = parent.attr('data-load');
if( load != 'true' ) return;
$('.loading').removeClass('hide');
parent.attr('data-load','false');
var ir = id_post;
var _url = url + 'loadMoreCommentFresh/'+ir;
var count = $('.ide... |
const mongoose = require('mongoose');
const keys = require('../config/keys');
let DestinationModel = require('../models/Destination');
mongoose.connect(keys.mongoURI, { useNewUrlParser: true, useUnifiedTopology: true });
let cities = [
{"name": "Rochester","latitude": -77.6109219, "longitude": 43.16103, "price": ... |
import moment from 'moment'
import BigNumber from 'bignumber.js'
import { Token } from 'Datasets'
import { repoAccount, queryList, queryStr, sortMap, pairMap } from 'Config'
import {
getPrecision,
getStrWithPrecision,
commonErrorHandler,
req,
getDataListFromDataForCal,
errorHandler,
} from 'Utils'
const p... |
/* eslint-disable camelcase */
'use strict'
// eslint-disable-next-line one-var
var reqlib = require('app-root-path').require,
OpenZWave = require('openzwave-shared'),
utils = reqlib('/lib/utils.js'),
EventEmitter = require('events'),
fs = require('fs'),
jsonStore = reqlib('/lib/jsonStore.js'),
store = req... |
// eth compiler
require('./tokens');
var core = require('./core');
// read {{{
var NODES = {
ROOT: 'root',
NIL: 'nil',
BOOLEAN: 'bool',
NUMBER: 'number',
STRING: 'string',
KEYWORD: 'keyword',
SYMBOL: 'symbol',
ARRAY: 'array',
OBJECT: 'object',
CALL: 'call',
REF: 'ref',
BLOCK: 'block'
};
var to... |
const ipc = require('electron').ipcRenderer;
const bindings = require("bindings");
const whoami = bindings("module");
const defaults = {
mapW:120,
mapH:120,
depMin:1,
depMax:10,
tileSize:5,
start:{ x: 2, y: 2 }
}
var testJs = false;
function to1d( tx, ty ){
return ty * defaults.mapW + tx;
}
function to2... |
var expect = require("chai").expect;
var namedRegexp = require("../lib/named-js-regexp");
describe("NamedRegExp must", function () {
var regex = namedRegexp("(?<hours>\\d\\d?):(?<minutes>\\d\\d?):(?<seconds>\\d\\d?)");
it("be instance of RegExp.", function () { expect(regex).to.be.instanceof(RegExp); });
it("have e... |
// ------------------------------------------------------------------------ \\
// HODL & GREED Strategy \\
// Written by <NAME> \\
// doc at-sign drow dot org \\
// --------... |
import {
createBufferInfoFromArrays,
createProgramInfoFromProgram,
createUniformBlockInfo,
createVertexArrayInfo,
setAttribInfoBufferFromArray,
setUniformBlock,
setUniforms,
} from "twgl.js";
import { isDiscrete } from "vega-scale";
import createEncoders, {
isChannelDefWithScale,
isD... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.