text stringlengths 8.5k 48.7k |
|---|
// -------------------- global parameters --------------------
// visualize optical flow results
var TEST_STABILIZATION = eval(getURLParameter('cstabilize', false));
// visualize prediction results
var VISUALIZATION = eval(getURLParameter('visualize', false));
var DOWNLOAD_DATA = eval(getURLParameter('download', true)... |
import "./style.css";
const createShip = (length) => {
let hitbox = [];
const hp = length;
let hitCount = 0;
const resetHitbox = () => {
hitbox = [];
};
const hit = () => {
hitCount++;
};
const pushCoord = (row, col) => {
hitbox.push(`${row}${col}`);
};
const isSunk = () => {
re... |
var EventEmitter = require ('events').EventEmitter;
var async = require ('async');
var MultimediaStream = require ('./MultimediaStream');
// normalize WebRTC primitives
var PeerConnection =
window.RTCPeerConnection
|| window.mozRTCPeerConnection
|| window.webkitRTCPeerConnection
;
var SessionDescription =
... |
var should = require('should');
var humanize = require('../humanize');
process.env.TZ = 'America/Los_Angeles';
describe('humanize:', function() {
describe('#pad', function() {
it('should be able to pad on the left', function() {
humanize.pad(123, 4, '0').should.equal('0123');
humanize.pad('abcd', 3,... |
// 0x070222A0 - 0x070222B8
import {
gdSPDefLights1, gsDPSetTextureImage, gsDPLoadSync, gsDPLoadBlock, gsSPLight, gsSPVertex,
gsSP2Triangles, gsSP1Triangle, gsSPEndDisplayList, gsDPPipeSync, gsDPSetCycleType,
gsDPSetRenderMode, gsDPSetDepthSource, gsDPSetFogColor, gsSPFogFactor, gsSPSetGeometryMode,
gsD... |
// @flow
const V = "MAILGO_VERSION";
// mailgo style (gulp)
const mailgoCSS = document.createElement("style");
mailgoCSS.id = "mailgo-style";
mailgoCSS.type = "text/css";
const mailgoCSSContent = document.createTextNode(`MAILGO_STYLE`);
mailgoCSS.appendChild(mailgoCSSContent);
document.head.appendChild(mailgoCSS);
//... |
// The following code uses d3.js, or Data-Driven Documents, created by <NAME>.
// The animation is inspired by the following post by <NAME>:
// http://flowingdata.com/2017/05/17/american-workday/
var first_time = true
var go = true;
function stop() {
if (go) {
go = false
d3.select("#stop_button").text('... |
/**
* GLOBAL PARAMETERS
*
*/
let ST_CONNECTION = ''
let ST_SCHEMA_ID = ''
let ST_CRED_DEF_ID = ''
let ST_ATTRIBUTE = []
/**
* Display Connection Table
* @param {status} isVisible
*/
function toggleConTable(isVisible) {
let red_spinner = document.getElementById('red_spinner')
let con_table = document.getEle... |
/**
* Created by <NAME> on 2017.09.04
* Copyright (c) 2017 <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, ... |
const moment = require('moment');
const _ = require('underscore');
const UniversalFunc = require('../../../Utils/universalFunctions');
const RESP = require('../../../Config').responseMessages;
const { logger } = require('../../../libs/pin... |
/*RECORD COLLECTION - Given a music album collection as a JSON object, the function will take a record (id), property (prop), and value as arguments, update the specified record and return the updated collection. If an empty string is provided as the value, the property will be deleted instead.*/
// Example album coll... |
import './utils.js'
import './style.css'
import SimpleUndo from 'simple-undo'
import tippy from 'tippy.js'
import './smart-textarea-icons.css'
// Source: https://stackoverflow.com/questions/273789/is-there-a-version-of-javascripts-string-indexof-that-allows-for-regular-expr
RegExp.escape = function (s) {
return s.... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getRandomExample = getRandomExample;
exports.witTimeResponseToTimeZoneObject = witTimeResponseToTimeZoneObject;
exports.witDurationToTimeZoneObject = witDurationToTimeZoneObject;
exports.witDurationToMinutes = witDurationToMinutes;
e... |
import erc20Contracts from 'eth-contract-metadata'
import { ethErrors } from 'eth-json-rpc-errors'
import Common from 'ethereumjs-common'
import { Transaction } from 'ethereumjs-tx'
import { addHexPrefix, BN, bufferToHex, stripHexPrefix } from 'ethereumjs-util'
import EthQuery from 'ethjs-query'
import collectibleAbi f... |
// Turing Machine "class", extending FiniteAutomaton
//<NAME>
var TuringMachine = function(jsav, options) {
Automaton.apply(this, arguments);
this.transitions = [];
}
JSAV.ext.ds.tm = function (options) {
var opts = $.extend(true, {visible: true, autoresize: true}, options);
return new TuringMachine(this, opts);
}... |
var RedshiftCopyS3 = require('../lib/RedshiftCopyS3.js');
var FlushOperation = RedshiftCopyS3.FlushOperation;
var assert = require('assert');
var fs = require('fs');
var path = require('path');
var $u = require('util');
var _l = require('lodash');
var PolyMock = require('polymock');
var dbStuff = require('db-stuff');
v... |
//REQUERINDO MODULOS
const axios = require('axios')
const cheerio = require('cheerio');
const path = require('path')
const msgs_texto = require('./msgs')
const {prettyNum} = require('pretty-num')
const googleIt = require('google-it')
const gis = require("g-i-s")
const ffmpeg = require('fluent-ffmpeg')
const fs = requi... |
import timeDay from "../day";
import year from "../year";
import { sunday as timeSunday, monday as timeMonday, thursday as timeThursday } from "../week";
import utcDay from "../utcDay";
import utcYear from "../utcYear";
import utcSunday, { utcMonday, utcThursday } from "../utcWeek";
function localDate(d) {
// For J... |
/*
Copyright 2015-2017 <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, software
d... |
'use strict'
Object.defineProperty(exports, '__esModule', { value: true })
var dayjs = require('dayjs')
var React = require('react')
var isBetween = require('dayjs/plugin/isBetween')
var reactNative = require('react-native')
function _interopDefaultLegacy(e) {
return e && typeof e === 'object' && 'default' in e ? ... |
// https://booking.jetstar.com/au/en/booking/select-flights
// 选中某个航线的航班信息
let reqData = {
fromCity: "FUK",
toCity: "CTS",
departdate: "2022-04-16",
adultNum: 2,
childNum: 0,
currency: "AUD",
objInfo: {
bookFlight: { // 需要使用哪个航班来进行生单
firstFlightNum: "JQ774",
... |
/* eslint-disable class-methods-use-this */
import NodeDetailManager from '@toruslabs/fetch-node-details'
import { setAPIKey } from '@toruslabs/http-helpers'
import TorusJs from '@toruslabs/torus.js'
import deepmerge from 'deepmerge'
import LocalMessageDuplexStream from 'post-message-stream'
import configuration from ... |
// Models entities from the Telegram API, provides methods
// to parse responses into our models. Also provides methods
// to "resolve" IDs of entities.
var utils = require("./utils");
var checkObj = utils.checkObj;
var checkStr = utils.checkStr;
var checkBool = utils.checkBool;
var checkArr = utils.checkArr;
var chec... |
const EventEmitter = require('events');
const fs = require('fs');
const { resolve, join } = require('path');
const pWaitFor = require('p-wait-for');
const combineErrors = require('combine-errors');
const cron = require('cron-validate');
const debug = require('debug')('bree');
const humanInterval = require('human-inter... |
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true,
});
exports['default'] = void 0;
var _react = _interopRequireWildcard(require('react'));
var _propTypes = _interopRequireDefault(require('prop-types'));
var _arrays = _interopRequireDefault(require('shallow-equal/arrays'));
var _Autowhatev... |
//sources["police"]="/police-man100.png";
//sources["bg"]="/mountainsbg.jpg";
//sources["poney"]="/poney.png";
//sources["heart"]="/heart.png";
var client;
var STATE = {LOAD : 0 , GAME : 1};
var state = STATE.LOAD;
var towerWidth = 135;
var towerHeigth = 500;
var towerX = (450 / 2) - towerWidth/2;
var pos = [towerX -... |
import React from "react";
import PropTypes from "prop-types";
import { withStyles } from "@material-ui/core/styles";
import cslx from "clsx";
import { SnackbarProvider } from "notistack";
import Observer from "react-event-observer";
import { isMobile } from "../utils/IsMobile";
import SrShortcuts from "../components/... |
/*
* Copyright 2009 Kantega AS
*
* 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 i... |
const test = require('tape')
const crocks = require('./index')
// combinators
const applyTo = require('./combinators/applyTo')
const composeB = require('./combinators/composeB')
const constant = require('./combinators/constant')
const flip = require('./combinators/flip')
const identity = require('./combinators/identit... |
/*global jQuery, icl_ajx_url, icl_ajx_saved, icl_ajx_error, icl_ajxloaderimg_src */
jQuery(document).ready(function($){
if(jQuery('#category-adder').html()){
jQuery('#category-adder').prepend('<p>'+icl_cat_adder_msg+'</p>');
}
//jQuery('#noupdate_but input[type="button"]').click(iclSetDocumentToDat... |
#!/usr/bin/env node
/*
* Copyright (c) 2013-2015, salesforce.com, inc.
* All rights reserved.
* Redistribution and use of this software in source and binary forms, with or
* without modification, are permitted provided that the following conditions
* are met:
* - Redistributions of source code must retain the ab... |
import React, { useEffect, useState } from 'react';
//import { View, Text, StyleSheet, TouchableOpacity, TextInput } from 'react-native';
import { Text, TextInput, View, StyleSheet, Switch, ScrollView, Modal, LayoutAnimation, Platform, UIManager, TouchableOpacity, Image, Dimensions } from 'react-native';
import Line... |
import React from 'react'
import ReactDOM from 'react-dom'
import request from 'superagent'
import moment from 'moment'
import Theme from './theme'
import WindowManager from './util/window-manager'
const API_URL = 'http://localhost:8000/graphql';
// # #
// # # ###### # ##### ###### ##### ####
// # ... |
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
if (kind === "m") throw new TypeError("Private method is not writable");
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
if (typeof state === "func... |
const fs = require('fs');
const lineReader = require('readline').createInterface({
input: fs.createReadStream('../../mozillas-pdf.js/build/generic/web/viewer.js')
});
let result = '';
let expectedChanges = 78;
const successfulChanges = {};
for (let i = 1; i <= expectedChanges; i++) {
successfulChanges[i] = 'not ... |
#!/usr/bin/env node
const program = require('commander');
const inquirer = require('inquirer');
const fs = require('fs');
const utils = require('./src/utils.js');
const configIonic = require('./src/configIonic.js').configIonic;
const configAngular = require('./src/configAngular.js').configAngular;
const chalk = requir... |
import * as THREE from 'three';
import Coordinates from 'Core/Geographic/Coordinates';
import CRS from 'Core/Geographic/Crs';
/**
* Extent is a SIG-area (so 2D)
* It can use explicit coordinates (e.g: lon/lat) or implicit (WMTS coordinates)
*/
const _dim = new THREE.Vector2();
const _dim2 = new THREE.Vector2();
co... |
/**
* Note, this file get's browserified via express middleware so we
* can use require statements.
*/
var Game = require('bc19/game')
var SPECS = require('bc19/specs');
var ActionRecord = require('bc19/action_record');
var UNIT_NAMES = [
'Castle',
'Church',
'Pilgrim',
'Crusader',
'Prophet',
... |
// Round Any Corner
// rounds selected corners of PathItems.
// Especially for the corners at the intersection point of curves,
// this script may work better than "Round Corners" filter (but slower).
// ## How To Use
// ## Illustrator CS
// 1. Select the anchor(s) or whole path(es) to round.
// 2. Run t... |
import R from 'ramda';
import * as most from 'most';
import { generateUUID } from './helpers.js';
var snabbdom = require('snabbdom');
var h = require('snabbdom/h').default;
var patch = snabbdom.init([
require('snabbdom/modules/class').default,
require('snabbdom/modules/props').default,
require('snabbdom/modules/... |
// This variable records the current selected parameter
var SELECTED_ELEMENT = null
// The mode indicator, used to change current mode
const MODE_DICT = {
content: "content",
border: "border",
line: "line",
image: "image"
}
// The default mode is 'content'
var CURRENT_MODE = MODE_DICT.content
// This is... |
var customermasterlist = function () {
var handleCustomerMasterList = function () {
var cust_contacts_table = $("#cust_contacts_table").DataTable({searching: false, paging: false});
var contacts_table = $("#cust_contacts_table");
var payment_table = $("#tbl-payments").DataTable({searching... |
//REQUERINDO MÓDULOS
const { decryptMedia } = require('@open-wa/wa-decrypt')
const axios = require('axios')
const puppeteer = require('puppeteer')
const msgs_texto = require('../lib/msgs')
const {erroComandoMsg, consoleErro, removerNegritoComando} = require("../lib/util")
const {sticker, sleep} = require("../lib/sticke... |
/**
* extend class
*/
var initializing = false,
fnTest = /xyz/.test(function () {
xyz;
}) ? /\b_super\b/ : /.*/;
var Class = function () {};
Class.extend = function (prop) {
var _super = this.prototype;
initializing = true;
var prototype = new this();
initializing = false;
for (var... |
/* eslint global-require: "off" */
import {BrowserWindow, Menu, app, ipcMain, dialog, powerMonitor,
crashReporter} from 'electron';
import fs from 'fs-plus';
import url from 'url';
import path from 'path';
import proc from 'child_process'
import {EventEmitter} from 'events';
import GlobalTimer from './global... |
var lib = require('./lib');
var parser = require('./parser');
var nodes = require('./nodes');
var Object = require('./object');
var Frame = require('./runtime').Frame;
// These are all the same for now, but shouldn't be passed straight
// through
var compareOps = {
'==': '==',
'!=': '!=',
'<': '<',
'>'... |
/**
* @description Takes care of every action an album can handle and execute.
*/
let upload = {};
const choiceDeleteSelector = '.basicModal .choice input[name="delete"]';
const choiceSymlinkSelector = '.basicModal .choice input[name="symlinks"]';
const choiceDuplicateSelector = '.basicModal .choice input[name="ski... |
// Write a function identity that takes an argument and returns that argument
const identity = (x) => x;
console.log('identity => ' + identity(5));
// Write a binary function addb that takes two numbers and returns their sum
const addb = (x, y) => x + y;
console.log('addb => ' + addb(1, 4));
// Write a binary functio... |
"use strict";
var shell = require('shelljs');
// Z keeps constants and utility functions in an object
// Currently 4 modules:
// strings manipulates strings
// paths creates file paths
// modules provides functions on the list of modules
// files provides dynamic lists of different kinds of files
// misc is everything... |
hold_text_id = []
hold_text_id_for_call = []
function pop_modal(text_id) {
hold_text_id_for_call.push(text_id)
if (typeof(hold_paths['read_path']) === 'undefined') {
alert('add your read, write and result paths')
style_icon('open_settings', 1, {
"color": "red"
})
a... |
// Copyright (C) 2010 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... |
const Database = require('better-sqlite3');
const paths = require('../util/pathHandler');
function checkDbTables(db) {
db.pragma('journal_mode = WAL');
const metaPrintTypes =
'CREATE TABLE IF NOT EXISTS metaPrintTypes (id INTEGER PRIMARY KEY UNIQUE NOT NULL, type STRING, color_profile STRING);';
const helpe... |
/*
###### ##### ##### ##### ## ##
## ## ## ## ## ## ## ##
## ##### ####### ## ####
## ## ## ## ## ## ## ##
## ## ## ## ## ##### ## ##
*/
var u = require('./utils');
var detect = require('./detect');
var debug = require('./debug');
var Track = function(nam... |
/*
Read license.txt for licensing information.
*/
var page = {
startX: 150,
startY: 150,
endX: 400,
endY: 300,
moveX: 0,
moveY: 0,
pageWidth: 0,
pageHeight: 0,
visibleWidth: 0,
visibleHeight: 0,
dragging: false,
moving: false,
resizing: false,
isMouseDown: false,
... |
/*
* decaffeinate suggestions:
* DS101: Remove unnecessary use of Array.from
* DS102: Remove unnecessary code created because of implicit returns
* DS205: Consider reworking code to avoid use of IIFEs
* DS207: Consider shorter variations of null checks
* Full docs: https://github.com/decaffeinate/decaffeinate/blo... |
const Reader = require('./reader.js')
const Jimp = require('jimp')
const fs = require('fs-extra')
const { join, dirname } = require('path')
const Lz4 = require('./lz4.js')
const path = require('path')
const supportBigInt = typeof BigInt === 'function'
class UnityReader extends Reader {
constructor (buf) {
super... |
var dataExists = 1; // must exist and be set to 1
var pageTitle = "OVP LOCAL Documentation";
var documentName = "the OVP Products";
var headerGraphic = "doc_header.gif";
var img = "<img src=../inc/link.png height='10' border='0'>";
var secTitle = new Array();
var secFile = new Array();
var secDescr = new... |
'use strict';
require('dotenv').config();
// Map of Channel IDs to Objects that stores ALL temporary data
const channelData = new Map();
// Discord authentication (requires secret environment variables)
const Discord = require('discord.js'), discordClient = new Discord.Client();
discordClient.login(process.env.DISCOR... |
/*------Problems and Notes----------*/
//based on https://www.reddit.com/r/dailyprogrammer/comments/3qjnil/20151028_challenge_238_intermediate_fallout/.
//No current Problems.
//problem with input screen not appending correctly
//problem with dud removed not working once the screen had reset once
//Project is completed... |
// const { auth } = require("firebase-admin");
const regex = /"([a-zñA-Z0-9Ñ -]*)"/gm;
const str = decodeURI(window.location.search) //.replace(/%20/g, ' ').replace(/%C3%B1/g, 'n')
let m;
var listMatches = []
while ((m = regex.exec(str)) !== null) {
// This is necessary to avoid infinite loops with zero-width mat... |
/**
* SG2D Utilities
* https://github.com/VediX/sg2d.github.io
* (c) <NAME>
*/
"use strict";
import SG2DConsts from './sg2d-consts.js';
import SG2DMath from './sg2d-math.js';
/**
* @namespace SG2D.Utils
*/
var SG2DUtils = {
DEFAULT_WIDTH: 32,
DEFAULT_HEIGHT: 32,
/**
* Флаг добавления прозрачной границ... |
if(!Push.Permission.has()) {
alert("タブが表示されていない時でも友人からの通知を受け取るために通知を許可してください");
Push.Permission.request();
}
const ws_uri = (function(){
const loc = window.location;
let new_uri;
if (loc.protocol === "https:") new_uri = "wss:";
else new_uri = "ws:";
new_uri += "//" + loc.host;
new_uri += loc.pathname... |
import { GRADIENT } from "./utils/gradient.js";
import { Miscellaneous } from "./utils/miscellaneous.js";
import { PolyominoPacking } from "./polyominoPacking.js";
import { Render } from "./render.js"
import { EventListeners } from "./eventListeners.js"
import Delaunator from 'https://cdn.skypack.dev/delaunator@5.0.0';... |
// roleplay.js
const { Guild, GuildMember, Message, MessageEmbed, TextChannel, MessageActionRow, MessageButton, Collection, MessageSelectMenu, ButtonInteraction } = require('discord.js');
const download = require('download')
const fs = require('fs')
const wait = require('util').promisify(setTimeout);
const { Characte... |
const WORKER_DIR = import.meta.url.replace(/[^\/]*$/, '');
class DracoWorkerDecoder {
nextId = 1;
pendingDecodes = new Map();
constructor() {
this.worker = new Worker(`${WORKER_DIR}draco-worker.js`);
this.worker.onmessage = (msg) => {
const id = msg.data.id;
const decodeRequest = t... |
const ADMIN = 'test_admin'
const STANDARD = 'test_user'
const STANDARD2 = 'test_user2'
const PID = 23
describe('Logging', () => {
before(() => {
// Prepare project
cy.set_user_type('admin')
cy.mysql_db('projects/pristine')
cy.create_cdisc_project('Logging Test', '0', 'cdisc_files... |
let lotion = require('lotion')
let BigNumber = require('bignumber.js'); // https://github.com/MikeMcl/bignumber.js/
let secp = require('secp256k1');
let { sha256, addressHash } = require('./common.js');
let getSigHash = require('./sigHash.js');
let stateUtil = require('./stateUtil.js');
const STARTING_SEQ = 0;
// mar... |
"use strict";
const { isUndefined, mergeConfig, polyfill2DCanvas, Rectangle } = require('./utils');
const { isInsidePolygon } = require('./graphics.js');
const TextFormatter = require('./TextFormatter').TextFormatter;
const CanvasElement = require('./CanvasElement').CanvasElement;
const TextTrail = require('./TextTra... |
import React from 'react'
import { Layout,Row,Col,Tooltip,Modal,Card } from 'antd'
import $ from 'jquery'
import styles from './map.less'
import robot from '../../assets/icon/robot.png'
import robot1 from '../../assets/icon/robot2.png'
import robot2 from '../../assets/icon/robot3.png'
import screen from '../../assets... |
let _feeShipment, // Dùng để lấy trạng thái trước của radio Shipment
_fee,
_feeShop,
_order,
_weight_min,
_product,
_personal,
_postOffice;
$(document).ready(function () {
$("#form12").submit(function (e) {
e.preventDefault();
return false;
});
_initParameterLoc... |
var ajax = new AJAXRequest();
var xmlDoc = GetXml();
var nodes = xmlDoc.documentElement.childNodes;
var str = "size,1152,864;";
var xmlindex = 0;
var top = 0, width = 0;
showpage();
function showpage() {
for (xmlindex; xmlindex < nodes.length; xmlindex++) {
str += parseInt(xmlindex + 1) + ",0_hq," + nodes.... |
// Rupert
// ======
// The librarian.
var utils = require('./utils');
var path = require('path');
var fs = require('fs');
var moment = require('moment');
var Marlowe = require('./marlowe');
var download = require('download');
var url = require('url');
var ProgressBar = require('progress');
var Spinner = require('c... |
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __decorate = (this && this.__decorate) || fu... |
var token = "<PASSWORD>";
var user_id = "5413";
var username = "5413";
var cards = "5413";
var card2 = "5413";
var id = "5413";
var x=0;
var detailid=0;
var card4=new Array();
var dcards=new Array();
var dids=new Array();
var dscores=new Array();
(function ($) {
$.fn.serializeJson = function () {
var se... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
const bufferutils = require('./bufferutils');
const bufferutils_1 = require('./bufferutils');
const bcrypto = require('./crypto');
const bscript = require('./script');
const script_1 = require('./script');
const types = require('./types');
con... |
//The following example will guide you how to add and register a StateHandler class of the rectangular measurement tool, so to implement the logic for creating a rectangular measurement tool.
var PDFUI = UIExtension.PDFUI;
var PDFViewer = PDFViewCtrl.PDFViewer;
var IStateHandler = PDFViewCtrl.IStateHandler;
var E... |
var app = getApp();
var util = require('../../utils/util.js')
var tls = require('../../utils/tls.js')
var webim = require('../../utils/webim_wx.js')
var config = require('../../config.js');
//var webim = require('../../utils/webim.js')
var webimhandler = require('../../utils/webim_handler.js')
var {authorizeInfo,getUs... |
window.addEventListener("load", init);
var scene;
var postProcScene;
var camera;
var postProcCamera;
var controls;
var renderer;
var canvas;
var offscreenRT;
var pathTracerMaterial;
var context;
var imageDataObject;
var canvasSize = 400;
var radianceBuffer = [];
var samples = 0;
var tilesCount;
var currentTileIndex... |
// Screen Size
var WIDTH = 800;
var HEIGHT = 480;
var temp = 0;
var alpha = 0;
var v1x = 0;
var v1y = 0;
var v1xp = 0;
var v1yp = 0;
var v2x = 0;
var v2y = 0;
var v2xp = 0;
var v2yp = 0;
var incX = 0;
var incY = 0;
var a1 = 0;
var a2 = 0;
var nx = 0;
var ny = 0;
var optimizedP = 0;
var grid = [];
v... |
import React, {useState} from "react";
import {Link} from "react-router-dom";
import UrlJoin from "url-join";
import Path from "path";
import PrettyBytes from "pretty-bytes";
import { LabelledField } from "../../components/LabelledField";
import {Redirect, Prompt} from "react-router";
import ClippedText from "../../com... |
"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 (Object.protot... |
console.debug("Defining consts...")
var months = [
undefined,
"Jan",
"Feb",
"Mar",
"Apr",
"May",
"Jun",
"Jul",
"Aug",
"Sep",
"Oct",
"Nov",
"Dec"
]
var translate_texts = {
'header.Header div:nth-child(3) nav a[href="/pulls"]': "プル・リクエスト",
'header.Header div:nt... |
import React, { useState } from 'react'
import clsx from 'clsx';
import { IntlContextConsumer, useIntl } from 'gatsby-plugin-intl' //eslint-disable-line
import {
Grid,
IconButton,
Card,
CardHeader,
CardActionArea,
CardActions,
CardContent,
CardMedia,
Typography,
Avatar,
SvgIc... |
/* tursics.de/story/ - JavaScript file */
/*jslint browser: true*/
/*global $,L,window,document,d3*/
var map = null;
var layerPopup = null;
var layerGroup = null;
var layerPolygons = null;
var settings = {
relativeValues: true,
showHotspots: true,
district: 'berlin',
type: 'all',
year: 2018,
rangeMin: 1,
rang... |
var log_mode = 5
function log(msg, level) {
if (level <= log_mode) {
console.log(msg)
}
}
function debug(msg) {
log(msg, 5);
}
var report_activation = null;
//
// TaskInterface class
//
function interface_fn_completed() {
console.log("state = completed");
$(window).unbind("unload");
... |
// Licensed to Cloudera, Inc. under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Cloudera, Inc. licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this f... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in c... |
// const util = require('util');
// const colors = require('colors');
var human_readable_result = false;
SParser.prototype.mock = function(x) {
this.conditions = x;
if (this.verbose & 0x1 == 1) {
console.log('Factory Girl:');
console.log(this.conditions);
}
}
SParser.prototype.set_verbose = function(x... |
var Handlebars = require('handlebars');
var MacCurve = require('./maccurve.js');
var financial_fns = require('./maccproject_calculations.js');
require('./simple-expand.min.js');
//var activityButtons = require('./activity_buttons.js');
module.exports = {
generate:function(activity){
generate(activity);
... |
/*
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use th... |
import autoBind from 'auto-bind';
import Docker from 'dockerode';
import debug from 'debug';
import EventEmitter from 'events';
import fs from 'fs';
import os from 'os';
import { Readable } from 'stream';
import url from 'url';
import zlib from 'zlib';
import ManifestExtractor from './extractor';
const DEFAULT_WATCHTO... |
import { version } from 'eslint/package.json';
import { isJsxNode, arrayify, DEFAULT_EXTENSIONS, MARKDOWN_EXTENSIONS, last } from 'eslint-mdx';
import esLintNoUnusedExpressions from 'eslint/lib/rules/no-unused-expressions';
import path from 'path';
import vfile from 'vfile';
import { cosmiconfigSync } from 'cosmiconfig... |
const { Client, Collection, DiscordAPIError } = require('discord.js');
const { prefix, token } = require('./config');
const Discord = require('discord.js')
const { readdirSync } = require("fs");
const Canvas = require('canvas');
const db = require('quick.db')
const { CanvasSenpai } = require("canvas-senpai");
... |
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* @fileoverview functions used in server privilege pages
* @name Server Privileges
*
* @requires jQuery
* @requires jQueryUI
* @requires js/functions.js
*
*/
/**
* Validates the "add a user" form
*
* @return boolean whether the form is va... |
/*
* Copyright 2017-2019 EPAM Systems, Inc. (https://www.epam.com/)
*
* 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 requ... |
'use strict';
/* global __dirname */
const crypto = require('crypto');
const fs = require('fs');
const path = require('path');
const bcrypt = require('bcrypt-nodejs');
const { debug, info, warn, error } = require('portal-env').Logger('portal-api:utils');
const utils = function () { };
utils._app = null;
utils.init ... |
/*
Kung Fig Expression
Copyright (c) 2015 - 2021 <NAME>
The MIT License (MIT)
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
... |
/*********************************************************/
/* */
/* File with the functions linked to the data + some */
/* global variables.
/* */
/* By <NAME>, <NAME> & <NAME> */
/* ... |
import { remote, ipcRenderer } from 'electron';
import $ from 'jquery';
import Backbone from 'backbone';
import Polyglot from './utils/Polyglot';
import './lib/whenAll.jquery';
import moment from 'moment';
import app from './app';
import { serverVersionRequired } from '../package.json';
import { getCurrencyByCode } fro... |
var path = require('path');
var logger = require(path.resolve('./config/lib/logger'));
var utils = require('./utils');
var async = require('async');
var dialogModule = require(path.resolve('engine2/bot/action/common/dialog'));
const MAX_ACTION = 100;
function executeTask(task, context, callback, print, options) {
if... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.