text stringlengths 8.5k 48.7k |
|---|
import './styles.css'
import * as THREE from 'three'
import * as dat from 'dat.gui'
import { OrbitControls } from 'three/examples/jsm/controls/orbitcontrols'
import loadGrassTextures from './config/GrassTexture'
import { loadCannonTextures } from './config/CannonTextures'
import { loadBaseTextures } from './config/Base... |
var fileTabCount = 0;
var openedTabs = 0;
var untitledCount = 0;
var editorId;
var codeStatId;
function createNewFile() {
//responsible for appending a new list item in filesContainer
addNewExplorerTabInFilesConitainer();
//responsible for opening a coding screen
openCodeSlate(fileTabCount);
}... |
// UE4locresOnlineEditor v1.2, by Kly_Men_COmpany!
"use strict";
const fs = require('fs');
const path = require('path');
const util = require('util');
const TextEncoder = function(){
return {
encode: function(str){
const n = str.length;
const buf = new Uint8Array(n);
for(let i=0... |
const test = require('ava');
const avaRuleTester = require('eslint-ava-rule-tester');
const rule = require('../rules/assertion-arguments');
const ruleTester = avaRuleTester(test, {
env: {
es6: true,
},
parserOptions: {
ecmaVersion: 2021,
},
});
const missingError = 'Expected an assertion message, but found no... |
'use strict';
const fs = require('fs');
const {ArgumentParser} = require('argparse');
const path = require('path');
const prompt = require('prompt');
const cliProgress = require('cli-progress');
const {BarFormat} = require('cli-progress').Format;
const FastPriorityQueue = require('fastpriorityqueue');
// Set up logg... |
import {mod} from './math.js';
import Commands from './path-commands.js';
import _ from './underscore.js';
import Anchor from '../anchor.js';
import Vector from '../vector.js';
import Matrix from '../matrix.js';
import Constants from '../constants.js';
var HALF_PI = Math.PI / 2;
/**
* @name Utils.Curve
* @property... |
/**
* hokug v0.1.1
* http://hoku.in/
*
* Copyright 2013 hoku.
* Released under the MIT License.
*/
////////////////////////////////////////////////////////////
//// core ////
// hokugクラス
var hokug = function () {};
////////////////////////////////////////////////////////////
//// 定数 ////
// アニメーション種別定数
hok... |
/*
* Copyright 2021 <NAME>
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
*/
const path = require('path'),
is = require('is'),
fs = require('fs'),
... |
var config={
scrollZoom: true,
modeBarButtonsToRemove: ['lasso2d','select2d','toggleSpikelines'],
responsive: true,
annotationText: true
}
function grafico_localizacao(instancias, indice){
//grafico 1 - localização dos clientes e rotas
//clientes localização
var clientes = {
x: i... |
import React from 'react';
import AppBar from '@material-ui/core/AppBar';
import Toolbar from '@material-ui/core/Toolbar';
import Tooltip from '@material-ui/core/Tooltip';
import Button from '@material-ui/core/Button';
import InputBase from '@material-ui/core/InputBase';
import Typography from '@material-ui/core/Typogr... |
// ======= Utility Functions for US Charts ====== //
// process US school closure data
// return an array grouped by dates
const processUSDate = (dataOriginal) => {
const dateParser = d3.timeParse("%m/%d/%y");
let dataFiltered = dataOriginal.filter((element) => {
return (
element["State Abb... |
import { MODULE } from "../module.js";
import { Shape } from "./Shape.js";
import { Segment } from "./Segment.js";
import { Point } from "./Point.js";
import { logger } from "../logger.js";
import { queueUpdate } from "./update-queue.js"
const NAME = "CoverCalculator";
export class CoverCalculator{
static register(... |
var pathParse = require('path-parse')
var path = require('path')
var fs = require('fs')
var transformAst = require('transform-ast')
var countLines = require('count-lines')
var convertSourceMap = require('convert-source-map')
var combineSourceMap = require('combine-source-map')
var through = require('through2')
var umd ... |
JustRun.playnieveState = function(game){
JustRun.puntuacionC = 0;
JustRun.puntuacionE = 0;
}
//variables globales necesarias para la gestión de la información que se recibe del servidor
var emitterc;
var emittere;
ObjetoChaser = {
ID: "Chaser",
posicionX: 60,
posicionY: 300,
puntuacion: 0,
};
Obj... |
import * as React from "react";
import * as PropTypes from "prop-types";
import { findDOMNode, createPortal } from "react-dom";
import * as Spinner from "react-spinner";
import { schemaJSONPointer, uiSchemaJSONPointer, parseJSONPointer, getJSONPointerFromLajiFormIdAndRelativePointer, JSONPointerToId, classNames } from ... |
/*
* LocaleData.js - utility class to load ilib locale data from a list
* of root directories
*
* Copyright © 2022 JEDLSoft
*
* 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
*
* h... |
/* jshint -W097 */
/* jshint strict: false */
/* jslint node: true */
'use strict';
const utils = require('@iobroker/adapter-core'); // Get common adapter utils
const engines = require('./admin/engines.js');
const Text2Speech = require('./lib/text2speech');
const Speech2Device = require('./lib/speech2de... |
class Mode {
constructor(kind, info) {
this.kind = kind;
this.info = info;
this.highlighted_cell_one = -1;
this.highlighted_cell_two = -1;
this.action = "";
this.prompt = "";
}
clear() {
this.kind = Modes.none;
this.info = {};
this.highlighted_cell_one = -1;
this.highlight... |
//////////////////////
///Helper Functions///
//////////////////////
// Function to update Place Data (County, State, Rating Area) from PlanShepherd API
function getPlaceData(zip){
var request = new XMLHttpRequest();
var url = "http://localhost:3000/home/update_zip?zip=" + zip
//readyState Listener for API reques... |
const { error: { catchErrors, wrapErrors }, promise: { delay } } = require('puffy')
const { homedir, EOL } = require('os')
const { join } = require('path')
const { exec, isCommandExist } = require('../core')
const { spawn } = require('child_process')
const fileHelper = require('../fileHelper')
const regions = require('... |
import $ from 'jquery';
import whatInput from 'what-input';
import slick from "slick-carousel";
import projects from "./projects";
import {TweenMax, Power2, TimelineLite} from "gsap/TweenMax";
window.$ = $;
import Foundation from 'foundation-sites';
$(document).foundation();
let contactSteps = $(".step");
$('[data-... |
import {fs, cp, unesc, _, dec, INT as I} from './bridge.js'
let SL = {}
SL["("] = $=>{
I.lambda = 1
I.scope.unshift({})
}
SL[")"] = $=>{}
SL["["] = $=>{
I.iter.unshift(I.st)
I.st = I.iter[0] + '\n'
I.stack[I.st] = []
}
SL["]"] = $=>{
let X = I.stack[I.st]
delete I.stack[I.iter[0] + '\n']
I.st = I.it... |
"use strict";
/*global require*/
var Cartesian3 = require("terriajs-cesium/Source/Core/Cartesian3").default;
var Cartesian2 = require("terriajs-cesium/Source/Core/Cartesian2").default;
var Cartographic = require("terriajs-cesium/Source/Core/Cartographic").default;
var mergeSort = require("terriajs-cesium/Source/Core/... |
var CANNON = require("cannon");
var THREE = require("three");
var PI_2 = Math.PI / 2;
var Type = {
BOX: "Box",
CYLINDER: "Cylinder",
SPHERE: "Sphere",
HULL: "ConvexPolyhedron",
MESH: "Trimesh"
};
var quickhull = (function() {
var faces = [],
faceStack = [],
i,
NUM_POINTS,
extremes,
ma... |
// import { mat3, mat4, vec3 } from 'gl-matrix';
import { mat4 } from 'gl-matrix';
import * as macro from 'vtk.js/Sources/macros';
import vtkHelper from 'vtk.js/Sources/Rendering/OpenGL/Helper';
import vtkMapper2D from 'vtk.js/Sources/Rendering/Core/Mapper2D';
import vtkPoints from 'vtk.js/Sources/Common/Core/Points';... |
"use strict";
// From : https://bl.ocks.org/d3noob/43a860bc0024792f8803bba8ca0d5ecd
// Set the dimensions and margins of the diagram
let margin = {
top: document.getElementById('tree-details').clientHeight,
right: 200,
bottom: 10,
left: 90
};
let menuHeight = document.getElementById('menu').clientHeig... |
'use strict';
// Note that this test is in the database dir because UnitValue requires DB objects
//
require('source-map-support').install();
const Database = require('../../build/database/Database.js').default;
const Loader = require('../../build/database/Loader.js').default;
const DatabaseContext = require('../../b... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "DnDSource", {
enumerable: true,
get: function get() {
return _DnDSource["default"];
}
});
Object.defineProperty(exports, "DnDContext", {
enumerable: true,
get: function get() {
return _DnDCo... |
import 'angular/utils/local-storage-adapter';
angular
.module('graphdb.framework.core.directives', [
'graphdb.framework.core.services.repositories',
'graphdb.framework.utils.localstorageadapter'
])
.directive('ontoLoader', ontoLoader)
.directive('ontoLoaderFancy', ontoLoaderFancy)
.... |
'use strict';
const typedefs = require('../../typedefs');
const { Manager, Dialect } = require('../../index');
const UtilOpts = require('../util/utility-options');
const Stream = require('stream');
const { expect } = require('@hapi/code');
/**
* Error raised when there is no SQL
*/
class NoSqlErrorClass extends Er... |
if (!window.console) window.console = {}; //IE fix
if (!window.console.log) window.console.log = function (){}; //IE fix
var qc = qc || {};
var focused = window;
qc.event = _.extend({}, Backbone.Events);
qc.confirmOrderVar = 0;
qc.payment_address_waiting = {};
qc.shipping_address_waiting = {};
qc.statistic = qc.statis... |
/*******************************************************************************
~ Display Area Layout ~
This script sets up the display area for showing the processing results.
*******************************************************************************/
////////// DISPLAY AREA LAYOUT //////////////////////... |
// Based on
// https://github.com/simonsarris/Canvas-tutorials/blob/master/shapes.js
function CollectionShapeRanges() {
this.shapeRanges = []; // array of shapeRanges
}
function ShapeRanges(id) {
this.id = id || -1;
this.shapes = [];
}
ShapeRanges.prototype.size = function () {
return this.shapes.length;
}... |
const express = require('express');
const router = express.Router();
const assert = require('assert');[]
var path = require('path');
var fs = require('fs');
var models = require('../../models');
let UserApplication = models.user_application;
let Application = models.application;
let AssetsGroups=models.assets_groups;
... |
var Service, Characteristic;
var request = require("request-promise");
const packageJSON = require("./package.json");
let aqibot = require("aqi-bot");
module.exports = function(homebridge) {
Service = homebridge.hap.Service;
Characteristic = homebridge.hap.Characteristic;
homebridge.registerAccessory("homebridge-... |
'use strict';
const dashboardVersion = '0.3.1a';
let serverAddress;
let context;
let lastHeardLimit;
let dstarnowLimit;
let logLevel;
let logger;
let noraapi;
let kdkapi;
let currentSelectedFunction = 'home';
let dashboardInfo;
let currentLanguage;
let loggedin;
let isTokenLogin;
let loginToken;
let isloginError... |
// test/sample types
var SearchWindow = function(id, parent, init_data) {
var header = $('<div class="window-header search-header" >' +
'<input type="text" class="search-text app-input i18n" data-i18n="[placeholder]windows.search.placeholder" />' +
'<div class="text-list app-list" style=""> </div>... |
import { serviceTypeNamesMap } from './constants'
import {
timezoneMap,
makeOrderTimes,
makeReadableDateStrFromIso,
} from './datetimes'
import { capitalize } from './helpers'
export const displayPrice = (price) => {
return parseFloat(price).toFixed(2)
}
export const addCommas = (x, d) => {
return x.toFixed... |
let W,
H;
const TASK_HT = 15,
PROGRESS_HT = 8,
GAP = 4,
PROGRESS_TOP_OFFSET = (TASK_HT - PROGRESS_HT) / 2,
TASK_NAME_TOP_OFFSET = TASK_HT / 3,
DURATION = 1000;
IMAGE_SEQUENCE_DOMAIN = [1, 413];
let GANTT,
LINE_GENERATOR,
HEIGHT_SCALE,
TIME_SCALE;
let LINE_GEN_OUTPUT_POINTS = f... |
"use strict";
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
... |
/**
* Copyright (C) 2015 Wasabeef
*
* 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... |
//vex stuff
vex.defaultOptions.className = 'vex-theme-os';
//textContent polyfill for IE8
if (Object.defineProperty &&
Object.getOwnPropertyDescriptor &&
Object.getOwnPropertyDescriptor(Element.prototype, "textContent") &&
!Object.getOwnPropertyDescriptor(Element.prototype, "textContent").get) {
(funct... |
var options_plos = {
dropdowns: [
{id: "time_range", multiple: false, name: "Time Range", type: "dropdown"
, fields: [
{id: "any-time", text: "Any time"}
, {id: "last-month", text: "Last month"}
, {id: "last-year", text: "Last year"}
... |
///////////////////////////////////////////////////////////
// Constants
///////////////////////////////////////////////////////////
var LOGGING_ENABLED = false; // for development use
var MEDIA_PLAYER_STATE_ALIASES = { // player state aliases for youtube player api only atm
'-1': 'unstarted',
'... |
var us = require('underscore');
var util = require('util');
var path = require('path');
var parseString = require('xml2js').parseString;
var fs = require('fs');
var xml2js = require('xml2js');
var parser = new xml2js.Parser();
var nrToParse = 1; //nr to check if last file is converted - if so the end of json file is wr... |
/**
* This is free and unencumbered software released into the public domain.
* See UNLICENSE.
*/
// TODO: split this up into several files. Right now this file includes
// simulation animations as well as other visualizations (e.g. buttons)
// Determines which button on the GUI should be highlighted
function getP... |
#!/usr/bin/env node
var fs = require("fs");
var path = require("path");
var ts = require("typescript");
var templates = {
file:
`namespace Fable.Import
open System
open System.Text.RegularExpressions
open Fable.Core
open Fable.Import.JS
`,
interface:
`[TYPE_KEYWORD] [<AllowNullLiteral>] [DECORATOR][NAME][CONSTRUCTO... |
/*NodeJS Modules*/
var compressor = require('node-minify');
var path = require('path');
const tmp = require('tmp');
tmp.setGracefulCleanup();
const tmpobj = tmp.fileSync({ mode: 0o644, prefix: 'temp-code-', postfix: '.html' });
const fs = require('fs');
const log4js = require("log4js");
log4js.configure({
appenders: ... |
import { Schema, Mark } from 'prosemirror-model';
import markdownit from 'markdown-it';
// ::Schema Document schema for the data model used by CommonMark.
var schema = new Schema({
nodes: {
doc: {
content: "block+"
},
paragraph: {
content: "inline*",
group: "block",
parseDOM: [{t... |
/*
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
*
* Uses the built in easing capabilities added In jQuery 1.1
* to offer multiple easing options
*
* TERMS OF USE - jQuery Easing
*
* Open source under the BSD License.
*
* Copyright 2008 <NAME>
* All rights reserved.
*
* Redistribution and... |
/* global configDialog hotkeys msg
getActiveTab CHROME FIREFOX URLS API onDOMready $ $$ prefs
setupLivePrefs template t $create animateElement
tryJSONparse CHROME_HAS_BORDER_BUG */
'use strict';
/** @type Element */
let installed;
/** @type string */
let tabURL;
const handleEvent = {};
const ABOUT_BLANK = 'abo... |
/*
* Copyright 2018 Nextworks s.r.l.
*
* 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 w... |
//Javascript name: My Date Time Picker
//Date created: 16-Nov-2003 23:19
//Scripter: <NAME>
//Website: http://www.rainforestnet.com
//Copyright (c) 2003 <NAME>
//FileName: DateTimePicker.js
//Version: 0.8
//Contact: <EMAIL>
// Note: Permission given to use this script in ANY kind of applications if
// header line... |
var uuid = getUuid();
var aiteToUser = [];
var fmsearch = false;//是否有搜索
var clientId = uuid;
var topic = ['pyjy/' + room_id + '/chat', 'pyjy/allroom/chat'];
var host = useSSL ? 'wss://' + mqttOpt.host + ':8084/mqtt' : 'ws://' + mqttOpt.host + ':8083/mqtt';
var chatType = 0;
var client = null;
var ... |
/* ========================================================================
* gaCookie by <NAME> (@spanishgringo) & <NAME> (@retlehs)
* https://github.com/spanishgringo/ga-campaign-tracking
* ========================================================================
*/
var gaCookie = gaCookie || {};
// This helps di... |
import { SFRPG } from "../config.js";
import { RPC } from "../rpc.js";
import { value_equals } from "../utils/value_equals.js";
export function initializeRemoteInventory() {
RPC.registerCallback("createItemCollection", "gm", onCreateItemCollection);
RPC.registerCallback("dragItemToCollection", "gm", onItemDra... |
"use strict";
class Voxsculpt {
// support for up to Voxsculpt.RT_TEX_SIZE * Voxsculpt.RT_TEX_SIZE number of voxels
// 512x512 = 64x64x64 = 262,114 voxels
static get RT_TEX_SIZE()
{
return 512;
}
static get SCULPT_SIZE()
{
return 64;
}
static get SCULPT_LAYERS()
... |
'use strict'
// =====================
// 日期格式化
// @param O {date} 日期
// @param T {string} 格式字符串
// =====================
// liuyp 2019年9月20日11:25:25
export const dateFormater = (O, T) => {
// 略过时 但经典可用
let D = typeof O === 'string' ? new Date(O.replace(/-/g, '/')) : new Date(O)
T = T || 'yyyy-MM-dd' // 专门为... |
var requestAnimationFrame = window.requestAnimationFrame ||
window.mozRequestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.msRequestAnimationFrame;
const obstaclesPossiblePos = [
[1, 1, 1, 0, 1, 1],
[1, 0, 1, 0, 0, 1],
[1, 0, 1, 1, 1, 1],
[1, 0, 0, 0, 1, 0],
[1, 1, 1, 0, 1, 1],
[1, 0... |
/**
* Copyright 2014 <NAME>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... |
//add Jonathan start
var prefix = "PREFIX acm: <http://acm.rkbexplorer.com/id/>\n"+
"PREFIX ieee: <http://ieee.rkbexplorer.com/id/>\n"+
"PREFIX dblp: <http://dblp.rkbexplorer.com/id/>\n"+
"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\n" +
"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\n" +... |
'use strict';
const DEFAULT_BITSTREAM = "/demo/RA_Meridian_1080p59_BR1000000.mp4";
const DEFAULT_FPS = 24;
let decoderWorker; // WebWorker that loads WASM, instantiates, and runs the decoder
let playingStatus = "stop"; // playback status "play"/"pause"/"stop"
let playingIndex; ... |
'use strict'
const Nightmare = require('eramthgin');//require('nightmare');
var nightmare = null;
const {ipcMain} = require('electron')
const {ipcRenderer} = require('electron')
const EventEmitter = require('events');
const WHATSAPP_REQUEST_START = "whatsapp-request-start";
const WHATSAPP_REQUEST_STOP = "whatsapp-r... |
var Person = function (gender = "") {
this.lastName = generateLastName();
this.firstName = "";
if (gender != "") { this.sex = gender; }
else { this.sex = getRandomSex(); }
this.firstName = generateFirstName(this.sex);
this.age = -1;
this.ageAtDeath = 0;
this.birthYear = 0;
this.spouse = "";
this.... |
export const refbook = [
{ value: '00020', label: '<NAME>' },
{ value: '00030', label: '<NAME>' },
{ value: '00050', label: '<NAME>' },
{ value: '00070', label: 'Tachybaptus ruficollis' },
{ value: '00090', label: 'Podiceps cristatus' },
{ value: '00100', label: 'Podiceps grisegena' },
{ val... |
/*!
* TruckLoadCreator (https://github.com/morrisapps/TruckLoadCreator)
* Copyright 2021 (c) <NAME>
* Licensed under MIT (https://github.com/morrisapps/TruckLoadCreator/blob/master/LICENSE.md)
*/
let canvas;
var grid = 24;
var rackCanvas;
var midGroup;
var vLine1;
var vLine2;
var vLine3;
var vLine4;
var vLine5;
va... |
/* global $ */
import React from 'react';
import PropTypes from 'prop-types';
import Link from '../../components/Link';
import Layout from '../../components/Layout';
import BlueprintContents from '../../components/ListView/BlueprintContents';
import ComponentInputs from '../../components/ListView/ComponentInputs';
imp... |
'use strict';
const bail = require('bail')
, fs = require('fs')
, after = require('after')
, semver = require('semver')
, spawn = require('cross-spawn')
, once = require('once')
, xtend = require('xtend')
, rimraf = require('rimraf')
, path = require('path')
, each = require('async-... |
var _panel = $("#segment_0161207");
var d3cloudText = ''
var _segment_0161207 = function () {
var _panel = $("#segment_0161207");
_segment_0161207_start();
var _input = _panel.find(".text-input").val().trim();
var _original_input = _input;
//console.log("before _count_sentence");
_count_sentence(_... |
/**
* Copyright (c) Xerox Corporation, Codendi Team, 2001-2009. All rights reserved
*
* Originally written by <NAME>, 2009
*
* This file is a part of Codendi.
*
* Codendi 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 So... |
NEWSCHEMA('Notices', function(schema) {
schema.define('id', UID);
schema.define('category', 'String(50)', true);
schema.define('name', String, true);
schema.define('author', 'String(30)', true);
schema.define('language', String);
schema.define('summary', String);
schema.define('body', String, true);
schema.def... |
import { states_struct, status_clearall, status_iscomplete } from './basics.js';
import { cfg_parameters_states, init_parameters } from './config_params.js';
import { controls_states, display_mode, display_mode_list, display_node_index_list, init_controls } from './controls.js';
import { request_initial_config } from '... |
var upbringings = {
'Plebian': {
'attribute points': 15,
'skill points': 8,
'reputation': 2,
'birr': 500,
},
'Stationary': {
'attribute points': 14,
'skill points': 10,
'reputation': 4,
'birr': 1000,
},
'Privileged': {
'attribut... |
import {Octokit} from "@octokit/rest"
import {Image, Link} from "blitz"
import {useEffect, useState} from "react"
import {ButtonLink} from "@/components/ButtonLink"
import {Header} from "@/components/Header"
import {Feature} from "@/components/home/Feature"
import {FeatureIcon} from "@/components/home/FeatureIcon"
imp... |
const sqlite3 = require('sqlite3');
const config = require('../../../bin/config/config');
const filesystem = require('../../../lib/filesystem/filesystem');
const cache = require('../../../lib/cache/cache');
const lock = require('../../../lib/lock/redisLock');
const tools = require('../../../lib/tools/tools').tools;
con... |
"use strict";
const global_String = global.String;
const global_Object_assign = global.Object.assign;
const ArrayLite = require("array-lite");
const Throw = require("../../throw.js");
const Variable = require("../../variable.js");
const Label = require("../../label.js");
const Tree = require("../tree.js");
const Scop... |
const
Discord = require('discord.js'),
fs = require('fs'),
exec = require('child_process').exec,
Permission = require('./Permission'),
util = require('../shared-utils'),
channelNames = require('../channel-names'),
Command = require('./Command'),
unirest = require('unirest'),
shellescape = require('she... |
var insertMode, commandMode, settings;
var KeyListener;
var HAS_EVENT_KEY_SUPPORT = KeyboardEvent.prototype.hasOwnProperty('key');
// Use when KeyboardEvent.prototype.key becomes standard in most
// versions of Chrome (52+)
if (HAS_EVENT_KEY_SUPPORT) {
KeyListener = function(onKeyDown, onKeyUp) {
this.eventCal... |
;(function(win,doc,$,undefined){
var conf = {
'name': 'apiTool',
'maxInput': 5,
'data': {},
'selectedApi': 0,
'canSubmit': true
};
conf.tags = {
'container': '.params-detail',
'inputObj': '.param',
'apiToolObj': '.apiTool-Name',
'notic... |
'use strict';
// Copyright 2015-2016 Chen, Yi-Cyuan
// 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, m... |
import { timeDay, timeSunday, timeMonday, timeThursday, timeYear, utcDay, utcSunday, utcMonday, utcThursday, utcYear } from "d3-time";
function localDate(d) {
if (0 <= d.y && d.y < 100) {
var date = new Date(-1, d.m, d.d, d.H, d.M, d.S, d.L);
return date.setFullYear(d.y), date;
}
return new ... |
/*
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... |
(function(){
initAlteracaoMorada();
$('.radio-choose-morada').on("click",function() {
$('.radio-choose-morada').closest(".caixa").removeClass("caixa-selected");
$('.radio-choose-morada:checked').closest(".caixa").addClass("caixa-selected");
});
function initAlteracaoMorada(){
$('.radio-choose-morada:ch... |
/**
* Not written as a NodeJs module, because this would require to use browserify
* to make it available in the browser, while it is onlly useful in the browser anyway.
*
* @copyright <NAME> 2016, <EMAIL>
* @author <NAME> / http://spaceweb.nl/
*/
import {Object3D} from "../node_modules/three/src/core/Object3D.js... |
/*************************************************************************
* Copyright 2008-2012 Janssen Research & Development, LLC.
*
* 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
*
* ... |
"use strict";
require("core-js/modules/es.array.flat");
require("core-js/modules/es.array.unscopables.flat");
Object.defineProperty(exports, "__esModule", {
value: true
});
const lib_1 = require("./lib");
const strings_1 = require("./strings");
const settings_1 = require("./settings"); // $lab:coverage:off$
// ... |
import React from "react";
import axios from "axios";
import Button from "react-bootstrap/Button";
import Modal from "react-bootstrap/Modal";
import Spinner from "react-bootstrap/Spinner";
import { Redirect } from "react-router-dom";
import { API_URL } from "../../settings";
import "./index.css";
import Grid from "..... |
/**
* Represents a compiled protobuf message
* Messages are introspective so you can discover the field definitions at runtime
* @module protob/message
*/
var _ = require('underscore'),
MESSAGE = "MESSAGE",
goog = require('./compiler/google-protos-defn'),
registry = require('./registry'),
coorcers =... |
const CHAT_MSG_ROW_PAD = 4;
const CHAT_MSG_NAME_PAD = 20;
const MAX_CHAT = 6;
class UIHandler {
constructor(players, isOnline) {
this.players = players // [0], [0,1] eller [1] , eller [] för spectate
this.isOnline = ((isOnline) ? true : false);
this.timeSinceGold = Date.now()
th... |
var app = angular.module('acrt', ["ngSanitize"]);
function expandCollapse1() {
var x = document.getElementById("expandCollapse1");
if (x.innerHTML === "<i class=\"down\"></i> Hide Product section") {
x.innerHTML = "<i class=\"up\"></i> Show Product section";
} else {
x.innerHTML = "<i class... |
/**
* @package mod_bigbluebuttonbn
* @author <NAME> (jesus [at] blindsidenetworks [dt] com)
* @copyright 2012-2015 Blindside Networks Inc.
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v2 or later
*/
M.mod_bigbluebuttonbn = M.mod_bigbluebuttonbn || {};
/**
* This function is initialized from PH... |
/** public/js/event-email.js */
/* global $, fail, moment */
const default_autocomplete_placeholder = "start typing last name...";
/* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/email#Validation */
const pattern = "^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?... |
const utils = require('./utils');
const adapterData = require('./../dataSingleton');
exports.processLight = function (id, control, name, room, func, _obj, objects, forcedEntityId) {
const entity = utils.processCommon(name, room, func, _obj, 'light', forcedEntityId);
let state = control.states.find(s => ... |
$(document).ready(inicializo);
/*-------------- Variables y Arrays GLOBALES -------------*/
var listadoProductos = [];
var listadoUsuarios = [];
var listadoPedidos = [];
var carrito = [];
var usuarioActivo = "";
listadoProductos = [
{
codigo: 1,
nombre:... |
import 'angular/core/services';
import 'angular/rest/cluster.rest.service';
const modules = [
'ui.bootstrap',
'graphdb.framework.core.services.repositories',
'graphdb.framework.rest.repositories.service',
'graphdb.framework.rest.cluster.service',
'toastr'
];
angular
.module('graphdb.framework.... |
const util = require('util')
const async = require('async')
const request = require('request')
const Mustache = require('mustache')
const jp = require('jsonpath')
const mime = require('mime-types')
const { v4: uuidv4 } = require('uuid')
const Redis = require('ioredis')
const _ = require('lodash')
const debug = require(... |
import logger from "../../logger.js";
import utils from "../../utils.js";
import { DirectoryPicker } from "../../lib/DirectoryPicker.js";
import { checkMonsterCompendium } from "../importMonster.js";
import { parseCritters } from "../monsters.js";
import { parseSpells } from "../spells.js";
import { parseItems } from "... |
// Unify messaging method - And eliminate callbacks (a message is replied with another message instead)
function messaging(message, tab, callback) {
if (background_debug_msg > 5) mpDebug.log('%c Sending message to content:', 'background-color: #0000FF; color: #FFF; padding: 3px; ', message, tab);
else if (back... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = exports.outlineGlyphMap = void 0;
var React = _interopRequireWildcard(require("react"));
var _reactNative = require("react-native");
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return nul... |
/* global Promise */
/* eslint-disable no-console */
import Ember from 'ember';
import layout from '../templates/components/aw-datatable';
const {
Component,
computed,
get,
set
} = Ember,
cptlzFL = function(string) {
return string.charAt(0).toUpperCase() + string.slice(1);
}, _clone = function(obj... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.