text stringlengths 5.97k 41.2k |
|---|
#!/usr/bin/env node
'use strict';
/* eslint-disable */ /* messy messy @lerouxb */
var fs = require('fs');
var _ = require('lodash');
var Promise = require('bluebird');
var shutdown = require('shutdown');
var mongoose = require('mongoose');
var persistence = require('gitter-web-persistence');
var installMigrationSchem... |
// # DOM event listeners
//
// Each scrawl-canvas stack and canvas can have __bespoke Scrawl-canvas listeners__ attached to them, to track user mouse and touch interactions with that element. Scrawl-canvas defines five bespoke listeners:
// + __move__ - track mouse cursor and touch movements across the DOM element
// +... |
const createREGL = require('regl'); const State = require('controls-state');
const GUI = require('controls-gui');
const createCamera = require('./regl-turntable-camera');
const meshSurface = require('./mesh-surface-2d');
const mat4create = require('gl-mat4/create');
const mat4multiply = require('gl-mat4/multiply');
con... |
var idMap = {};
var userDevices = {};
var userData = {};
var sevenDay = 7 * 24 * 60 * 60;
var oneDay = 1 * 24 * 60 * 60;
var last7Total = 0;
var nowReceived = false;
var balUSD;
var balRealtime
var sidebarWidth = 0;
var last7initial = {};
var deviceBalance = {};
var deviceOverviewInitial;
var startDateVal;
var endDateV... |
'use strict';
// # can/util/attr.js
// Central location for attribute changing to occur, used to trigger an
// `attributes` event on elements. This enables the user to do (jQuery example): `$(el).bind("attributes", function(ev) { ... })` where `ev` contains `attributeName` and `oldValue`.
var namespace = require("can-... |
/**
* Slideshow - a slideshow <http://www.electricprism.com/aeron/slideshow/> and
* smoothslideshow <http://smoothslideshow.jondesign.net/> fusion.
*
* Copyright (c) 2007 <NAME>
*
* From version 3.0.3, fixes and enanchements from Djamil Legato
*/
var Slideshow = new Class({
version: '3.0.3',
... |
const access_reducer = require('../reducers/access-reducer')
const { updateexpr_eval, compexpr_eval } = require('../helpers/expr-eval');
const { Script, ExpressionStatement, AssignmentExpression, AssignmentTargetIdentifier, LiteralStringExpression, VariableDeclarationStatement, VariableDeclaration, VariableDeclarator, ... |
import Vue from 'vue'
import { shallowMount } from '@vue/test-utils'
import { __createMocks as createStoreMocks } from './../__mocks__/vuex'
import Dashboard from '@/components/pages/Dashboard'
import moment from 'moment'
console.warn = jest.genMockFunction()
console.error = jest.genMockFunction()
Vue.config.silent =... |
'use strict'
var rootPath;
var HasAutoNumber = false;
var CanInsert = false;
var CanUpdate = false;
var CanDelete = false;
var template = '';
var activeMenu = false;
var reportId, hasExternalReport, buyerId;
var columnValues = [];
var columnValueOptions = [];
var shownColumnValues = [];
var params = "";
var currentRo... |
import { startsWith } from 'lodash';
import CodeMirror from 'codemirror';
import 'codemirror/mode/yaml/yaml';
import './glsl-tangram';
// This was chosen by Tangram to delimit a key stack of keys into a single
// string address. Note that keys in YAML may contain colons legally, and they
// are differentiated from by ... |
const moment = require('moment');
const needle = require('needle');
const Canvas = require('canvas');
const { WebhookClient } = require('discord.js');
const { errorLog } = require('../../functions/eventLoader');
const { getSubredditMeme } = require('../fun/meme');
const findMember = require('../../functions/findMember... |
/*
* Copyright 2021 <NAME>. All rights reserved.
* This file is licensed to you 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 appl... |
exports.parseRadar = (data) => {
// added : 레이더 센서 데이터 체크
// 받은 데이터
// aa55 | 10 | 01020020c500003e | 2c050000 | 00000000 | 0300 | 010000 | cb63 | 55aa
// 시작 | CMD | Serial | Sequence | Reserved | length | Message | CRC | End
let dataJson = {
cmd: '',
... |
// Copyright 2018-2021, University of Colorado Boulder
/**
* A singleton object that registers sound generators, connects them to the audio output, and provides a number of
* related services, such as:
* - master enable/disable
* - master gain control
* - enable/disable of sounds based on visibility of an asso... |
'use strict';
const CIPRequest = require('../../core/request');
const { InvertKeyValues } = require('../../../../utils');
const { GeneralStatusCodes, ClassCodes } = require('../../core/constants');
const { DataType } = require('../../core/datatypes');
const Layer = require('../../../Layer');
const ConnectionManager = ... |
/* globals YourNickname, JSLang, ErrorMsg, JSLang_Errors, LastSeenID, ServerStamp, UserAuth, RoomID */
// Initialize
var AjaxGet = false;
var GetTimeout = false;
var MsgBox = false;
var OnlineUsers = false;
var OnlineCount = false;
var LeftMenu_Messages = false;
var OldOnlineArray = [];
var OriginalTitle = "";
var Tab... |
const colors = {
GENERAL: "#FFAE03", // General calls
WARNING: "#E67F0D", // Warning; may affect you if you are there
HAZARD: "#FE4E00", // Hazardous if you are there or nearby
DANGER: "#E9190F", // Danger to you or others
LETHAL: "#FF0F80", // Lethal danger
DEATH: "#000000", // Certain de... |
import React, { Component } from 'react';
import { Redirect } from 'react-router-dom';
import 'antd/dist/antd.css';
import { message, Select, Dropdown, Menu, Divider } from 'antd';
import { stringToDate, stringToDateB, dateToString, hourToString, convertDmyToYmd, convertYmdToDmy } from '../../utils/toolsDate';
impor... |
// iNav options
jQuery(document).iNav({
/**
* TODO Codeur Start:
* - Optional settings here, see defaults in '/js/jquery.inav.js'
* - For example, to push extra elements in the responsive navigation:
* navContainers: [jQuery('#js-mainmenu'), jQuery('#js-topmenu')]
* - Always push jQuery objects wit... |
const novoSong = document.getElementById('novo')
const novoSong1 = document.getElementById('novo1')
const novoSong2 = document.getElementById('novo2')
const novoSong3 = document.getElementById('novo3')
const novoSong4 = document.getElementById('novo4')
const novoSong5 = document.getElementById('novo5')
const novoSong6... |
MYAPP.ready(function(){
var key = getLocalStorage('key');
if(key==''){
gotoLoginPage();
return false;
}
var order_id = GetQueryString("order_id");
var goods_id = GetQueryString("goods_id");
//初始化列表
function initPage(){
$.ajax({
type:'post',
url:ApiUrl+"/index.php?act=refun... |
import React from "react";
import { makeStyles } from "@material-ui/core/styles";
import { connect } from "react-redux";
import * as actions from "../../store/actions";
import ReactPlayer from "react-player";
import NoteIcon from "@material-ui/icons/NoteOutlined";
import Tooltip from "@material-ui/core/Tooltip";
import... |
"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 { Fragment, useEffect, useRef, useState } from 'react'
import { IconContainer, Caption, BigText, Paragraph, Link, Widont } from '@/components/home/common'
import { GradientLockup } from '@/components/GradientLockup'
import { Tabs } from '@/components/Tabs'
import { CodeWindow, getClassNameForToken } from '@/comp... |
var maxImageFileNames = 3;
var maxImageFileTakeways = 3;
var acceptFileTypes = /^image\/(gif|jpe?g|png)$/i;
var maxImageFileSize = (1024 * 1024 * 10); // 10MB
var inputImageFileNames = 0;
var inputImageFileTakeways = 0;
function form_init(self) {
// 店の画像
$('#fileupload_cancel_name').on('click touchstart', ... |
import _ from 'lodash';
import log from './logger';
import { getBuildInfo, updateBuildInfo, APPIUM_VER } from './config';
import { BaseDriver, errors, isSessionCommand } from 'appium-base-driver';
import B from 'bluebird';
import AsyncLock from 'async-lock';
import {
inspectObject, parseCapsForInnerDriver, getPackage... |
import template from './sw-order-list.html.twig';
import './sw-order-list.scss';
const { Component, Mixin } = Shopware;
const { Criteria } = Shopware.Data;
Component.register('sw-order-list', {
template,
inject: [
'repositoryFactory',
'stateStyleDataProviderService',
'acl',
'f... |
var VectorTile = require('vector-tile').VectorTile;
var Protobuf = require('pbf');
var Point = require('point-geometry');
var Util = require('./MVTUtil');
var MVTLayer = require('./MVTLayer');
var DefaultTileSource = require('./TileSource/DefaultTileSource');
var IE9TileSource = require('./TileSource/IE9TileSource');
... |
/**
*
* AudioPlayer
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import Router from 'next/router';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import { compose } from 'redux';
import { FormattedMessage } from 'react-intl';
import isEqual from '... |
import { Component } from 'react';
import { connect } from 'react-redux';
import * as sock from '../sock.js';
import Cards from '../Cards.js';
import { parseInput, randint } from '../util.js';
import CreateGame from '../Game.js';
import * as etgutil from '../etgutil.js';
import * as Components from '../Components/inde... |
const P_TOL = 1e6;
const D_TOL = 1e9;
const QUAD_TRIS = [
[0, 0],
[0, 1],
[1, 0],
[1, 0],
[0, 1],
[1, 1],
];
function dot3(values, weights) {
const r = [0, 0, 0];
for (let i = 0; i < values.length; ++i) {
const v = values[i];
const w = weights[i];
for (let j = 0; j < 3; ++j) {
r[j] +... |
/** @file This file contains the scripts used when LabelMe starts up. */
/** Main entry point for the annotation tool. */
function StartupLabelMe() {
console.time('startup');
// Check browser:
GetBrowserInfo();
if(IsNetscape() || (IsMicrosoft() && (bversion>=4.5)) || IsSafari() || IsChrome()) {
if (IsNe... |
function totalSesiones(){
var total = $( "[id^=dvFilaSesion]" ).length*1;
$( "#semillerosticcondicionesinstitucionalesestudiantes-total_sesiones" ).val( total );
}
function promedioEstudiantes(){
var total = 0;
var estudiantes = $( "#semillerosticcondicionesinstitucionalesestudiantes-particip... |
import React, { Component } from 'react';
import { func, object, string } from 'prop-types';
import classNames from 'classnames';
import { intlShape } from '../../util/reactIntl';
import {
getStartHours,
getEndHours,
isInRange,
isSameDate,
isDayMomentInsideRange,
resetToStartOfDay,
timeOfDayFromLocalToTim... |
/** @module utils/CryptoHelpers */
import KeyPair from './KeyPair';
import convert from './convert';
import Address from './Address';
import BIP32Provider from './bip32';
import nacl from './nacl-fast';
import Network from './Network';
/**
* Encrypt a private key for mobile apps
*
* @param {string} password - A wa... |
'use strict';
var EventEmitter = require('events').EventEmitter;
var fs = require('fs');
var os = require('os');
var sysPath = require('path');
var fsevents, recursiveReaddir;
try {
fsevents = require('fsevents');
recursiveReaddir = require('recursive-readdir');
} catch (error) {}
var __slice = [].slice;
var creat... |
import fs from "fs";
import path from "path";
import ad from "./activedirectory.service";
import asyncFilter from "../utils/asyncFilter";
import log4js from "log4js";
const logger = log4js.getLogger("service.config");
class ConfigService {
constructor() {
// TODO: As reading files is expansive, we can read all
... |
"use strict";
/*
* Created with @iobroker/create-adapter v1.16.0
*/
const utils = require("@iobroker/adapter-core");
const request = require("request");
const traverse = require("traverse");
const agsNames = require("./ags");
class Nina extends utils.Adapter {
/**
* @param {Partial<ioBroker.AdapterOptions... |
/**
# Color Utilities
```
<style>
.color-test {
border-collapse: collapse;
}
.color-test td {
padding: 2px 4px;
min-width: 30px;
}
</style>
<table class="color-test">
<thead>
<tr>
<th>test color</th>
<th>hsv</th>
<th>hue +15°</th>
<th>hue -60°</th>
<th>sat +25%</... |
#!/usr/bin/env node
//
// Copyright (c) Microsoft Corporation
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree.
//
// @ts-check
const fs = require("fs");
const os = require("os");
const path = require("path");
const uuidv5 = (() => {
try ... |
/*
------------ TODOS -----------
- Human factor
*/
const { forEach } = require('p-iteration');
const format = require('number-format.js');
const fs = require('fs');
var Twit = require('twit');
var fetch = require('node-fetch');
var humanFactorFunctions = require('./humanFactor');
var bitcoinData = {
results: '... |
function uniq_colors () {
var colors = [
'#ff0066',
'#ffcc00',
'#3d9df2',
'#e673cf',
'#8800cc',
'#005fb3',
'#8c3f23',
'#397358',
'#ffbffb',
'#ffd580',
'#00e2f2',
'#9173e6',
'#a099cc',
'#5995b3',
'#9... |
/*
* ridemap.js -- Copyright 2012 by <NAME>
* Distributed under the BSD-3 license
* (see LICENSE file for details)
*/
var timeThreshold = 0.6;
// var cellColor = "#FF0000";
var grid = null
var rider = null;
function init(datadir){
map = new OpenLayers.Map('map');
//var wmsLayer = new OpenLayers.Layer.WMS... |
var through = require('through');
var resumer = require('resumer');
var duplexer = require('duplexer');
var shellQuote = require('shell-quote');
var decodePrompt = require('decode-prompt');
var path = require('path');
var EventEmitter = require('events').EventEmitter;
var inherits = require('inherits');
var nextTick =... |
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
if (ar || !(i in from)) {
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
ar[i] = from[i];
}
}
... |
// ==UserScript==
// @name jews
// @namespace http://0xABCDEF.com/jews
// @description just news
// @include http://news.kbs.co.kr/news/NewsView.do*
// @include http://world.kbs.co.kr/*/news/news_*_detail.htm*
// @include http://imnews.imbc.com/*
// @include http://mbn.mk.co.kr/pages/news/newsView.php*
// @include http... |
var shouldUpdate = 0;
var data = undefined;
var wdata = undefined;
var airport_names=undefined;
var renderAtOnce = 50;
var renderNewAtOnce = 20;
var currRow = undefined;
var st = undefined;
var lockScrolling = false;
var currStatus = 'All';
var nextTO = 120;
var timeOutId = undefined
var getServerTime = function() {
... |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... |
'use strict'
const express = require('express')
const Slapp = require('slapp')
const ConvoStore = require('slapp-convo-beepboop')
const Context = require('slapp-context-beepboop')
const http = require('http');
// use `PORT` env var on Beep Boop - default to 3000 locally
var port = process.env.PORT || 3000
var slapp ... |
class LongShort {
constructor(API_KEY,API_SECRET){
this.alpaca = new Alpaca({
keyId: API_KEY,
secretKey: API_SECRET,
paper: true
});
this.allStocks = ['DOMO', 'TLRY', 'SQ', 'MRO', 'AAPL', 'GM', 'SNAP', 'SHOP', 'SPLK', 'BA', 'AMZN', 'SUI', 'SUN', 'TSLA', 'CGC', 'SPWR', 'NIO', 'CAT', 'MSF... |
import ML from './ml.js';
class BaseApp extends Threelet {
// override
onCreate(params) {
const controls = this.setup('mod-controls', THREE.OrbitControls);
controls.enableRotate = false;
// controls.enablePan = false;
this.setup('mod-stats', window.Stats, {panelType: 0}); // 0:... |
'use strict';
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = ... |
// ----- ----- ----- ----- ----- ----- ----- ----- -----
// FIGURE
var dataEnvelope = [
{ x: 17.5, y: 385 }, { x: 17.7, y: 490 },
{ x: 22.9, y: 600 }, { x: 31.5, y: 600 },
{ x: 31.5, y: 487 }, { x: 27.7, y: 425 },
{ x: 17.5, y: 385 }
];
var dataEnvelopeULM = [
{ x: 16.5, y: 385 },
{ x: 16.7, ... |
// era-staccato-lib-gensym.js
// Copyright 2015 <NAME>. Released under the MIT License.
//
// These are utilities written in Staccato. For now, I'm porting the
// utilities from era-avl.js.
//
// See era-staccato.js for more information about what Staccato is.
var stcNextGensymI = 0;
function stcGensym() {
return ... |
if ( ! Detector.webgl ) Detector.addGetWebGLMessage();
var renderer, scene, camera, stats, raycaster, clock;
var mouse2D = new THREE.Vector2();
var intersection = null;
var mouseDown;
var highlightMode = false;
var threshold = 0.5, pointSize = 1;
// data structures
var boundingBoxes = [], hoverBoxes = [];
var image_l... |
var util = require('./util');
var type = require('./import/type');
var gen = require('./generate');
var stats = {};
// Collect unique values.
// Output: an array of unique values, in first-observed order
stats.unique = function(values, f, results) {
f = util.$(f);
results = results || [];
var u = {}, v, i, n;
... |
var SHA1 = require('sha1').SHA1;
var Utils = require('utils');
var events = require('events');
var debug = function(str) {
Ti.API.debug(str);
};
var CONNECTING = 0;
var OPEN = 1;
var CLOSING = 2;
var CLOSED = 3;
var BUFFER_SIZE = 65536;
var CLOSING_TIMEOUT = 1000;
var WebSocket = function(url, protocols, origin, e... |
/*
* Logic for sonoff-basic-openhab
* Author: <NAME> <hkuser2001 at the gmail service>
*/
// Load Mongoose OS API
load('api_timer.js');
load('api_gpio.js');
load('api_sys.js');
load('api_mqtt.js');
load('api_config.js');
load('api_log.js');
load('api_math.js');
load('api_file.js');
load('api_rpc.js');
load('api_even... |
/*
* Copyright 2020 Adobe. All rights reserved.
* This file is licensed to you 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 appli... |
let Card = require('./../shared/deck/card');
// Farbenreihenfolge
var Colors = [
'HEARTS',
'DIAMONDS',
'CLUBS',
'SPADES'
];
var ChanceCalc = {
cardsInGame: [], // cardsInGame[color][number]
cardsOfColorPlayed: [], // cardsOfColorPlayer[color]
chanceToHaveCard: [], // chanceToHaveCard[playerId][color][number]
... |
/************************************************************************
Version 1.1.0
by <NAME>, 2018-2021
This vanilla javascript generates a dynamic menu for content of a hosting html file when it is open in web browser.
Only this script with no dependency is required.
It can work either online or locally.
Tested ... |
/*
Uses Eliptic Curve encryption to encrypt a file with the public key associated
with a Bitcoin Cash address. It then uploads the encrypted file to an IPFS
host and signals that BCH address that it has a message waiting for it.
*/
"use strict"
const config = require("../../config")
const eccrypto = require("e... |
'use strict';
/*eslint-env node*/
//------------------------------------------------------------------------------
// node.js starter application for Bluemix
//------------------------------------------------------------------------------
// This application uses express as its web server
// for more info, see: http:... |
var glsl = require('./glsl').parser;
// Throws errors with line number info
function error() {
throw new SyntaxError(
[].slice.call(arguments).join(' ') +
" on line " + (glsl.lexer.yylineno + 1) + "\n" +
glsl.lexer.showPosition()
);
}
exports.error = error;
/*
* A complete program ... |
function selectByTabs(ruta_input,idSelect,token_prueba,url,idSelectDestino){
//idTab: Selector padre(ej:div)- idSelect: Elemento en cuestion(Ej: pais)
var idTab = $(ruta_input);
var idSelect = idSelect;
//var idSelectDestino = '#'+idSelectDestino;
//Ruta: es esa mierda que hay que buscar entre los sel... |
var texto = '';
var instrumentos = '';
var lenguajeSeleccionado = '';
var textoTrabajo = '';
var cerroSidebar = false;
var isopen = false;
var toAdd = document.createDocumentFragment();
////////////////////DATOS////////////////////
imagenes = [
{
imagen: "./img/js.webp",
abrev: 'js',
texto... |
import {Psbt, Transaction} from "bitcoinjs-lib";
import { reverseBuffer } from 'bitcoinjs-lib/src/bufferutils';
import {toHexString} from './utils';
import {
generateMultisigFromHex,
multisigAddressType,
multisigBraidDetails,
multisigRedeemScript,
multisigWitnessScript,
} from './multisig';
import {bip32PathT... |
const {MessageEmbed} = require('discord.js');
const {DateTime} = require('luxon');
const Player = require('./player.js');
function shuffle(a) {
for (let i = a.length - 1; i > 0; i--) {
const j = Math.floor(Math.random() * (i + 1));
[a[i], a[j]] = [a[j], a[i]];
}
return a;
}
function getDist(start, end) {
//co... |
const http = require('http');
const socketio = require('socket.io');
const xxh = require('xxhashjs');
const path = require('path');
const express = require('express');
const compression = require('compression');
const expressHandlebars = require('express-handlebars');
const bodyParser = require('body-parser');
const ... |
"use strict";
import GetOpt from "./GetOpt.js";
import TransferObject from "./TransferObject.js";
import Util from "./Util.js";
import WrappErr from "./wrapperr-esm.js";
class Fcommand
{
/**
* @class Fcommand Represents a single Fcommand.
* Note that this constructor is NOT called when Dexie instantiates an
* Fco... |
var Q = require('q');
var Economy = require('../economy');
var User = require('../mongo').userModel;
var fs = require('fs');
var shop = [
['Symbol', 'Buys a custom symbol to go infront of name and puts you at top of userlist. (Temporary until restart, certain symbols are blocked)', 5],
['Fix', 'Buys the abilit... |
import { Graph } from '../../graph/core/Graph.js';
import { AStar } from '../../graph/search/AStar.js';
import { NavNode } from '../core/NavNode.js';
import { NavEdge } from '../core/NavEdge.js';
import { Vector3 } from '../../math/Vector3.js';
import { LineSegment } from '../../math/LineSegment.js';
import { Corridor ... |
var Minigame_Alchemy = function(game) {};
Minigame_Alchemy.prototype =
{
init: function(x,y)
{
row=x;
col=y;
},
preload: function()
{
// Define colors
AlchemyColor = Object.freeze(new AlchemyColors());
},
create: function()
{
// Launch Physics
this.game.physics.startSystem(Phaser.Physics.ARCADE);... |
/*
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 this f... |
import React from 'react';
import Dropzone from 'react-dropzone';
import { connect } from 'react-redux';
import { Container, Grid, Header, Segment, Button, Message, Divider, Breadcrumb, Form, Input, Dimmer, Loader, Dropdown, Icon, Image, Checkbox } from 'semantic-ui-react';
import SkillsInput from '../../components/Ski... |
import React, {Component} from 'react';
import {ajax_post} from '../ajax-utils/ajax-method';
import {HTMLTable} from '@blueprintjs/core';
import { Menu, Icon, Layout, Breadcrumb, Table, Button, message, Modal } from 'antd';
import {api_list} from "../ajax-utils/api-manager";
const { Sider, Content } = Layout;
class Ad... |
// INIT-POST stuff todo when the dom finishes
$( document ).ready(function() {
//add enter key signal to the search input
$("#search-input").keyup(function( e ){
if( e.keyCode == 13 ) {
newSearch();
}
});
// Set phrase/word completetion fot the search input
$( "#search-input" ).autoco... |
import fs from 'fs';
import CommonUtils from './../commonUtils';
import shelljs from 'shelljs';
const ReportCreator = class {
constructor() {
this.absolutePath = shelljs.exec('pwd', {silent: true}).stdout.trim();
this.deviceId = null;
}
createReport({ items, map, oryginalMap = {}, beginDat... |
// this file provides functions for various action codes
// it is assumed every function recieves a "context" object
// Context:
// Patient: patient whose data triggered the workflow
// records: list of records
// Encounter: encounter where some data triggered the workflow
// Organization: Organization that is doin... |
// to prevent XSS :(
$(document).ready(function () {
$('#refreshAll').click(function () {
bgPage.CheckForUnreadStart();
});
$('#markAllRead').click(function () {
MarkAllFeedsRead();
});
$('#refreshButton').click(function () {
bgPage.CheckForUnreadStart(selectedFeedKey);
}... |
/**
* Created by inspoy on 2017/4/7.
*/
"use strict";
const events = require("events");
const commonConf = require("./../Conf/SFCommonConf");
const userData = require("./../Data/SFUserData");
const battleData = require("./../Data/SFBattleData");
const utils = require("./../Conf/SFUtils");
const errCode = require(".... |
const makerColorInput = document.querySelector("#makerColorInput")
const tileList = document.querySelector("#tileList")
const addTileBtn = document.querySelector("#addTileBtn")
const tileKeyInput = document.querySelector("#tileKeyInput")
const tileTimeInput = document.querySelector("#tileTimeInput")
const tileCount = d... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Account_1 = require("./Account");
exports.Account = Account_1.default;
var AddAlerts_1 = require("./AddAlerts");
exports.AddAlerts = AddAlerts_1.default;
var AlignCenter_1 = require("./AlignCenter");
exports.AlignCenter = AlignCenter_1.def... |
/*
* Copyright 2017-18 IBM Corporation
*
* 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 ... |
import React from 'react';
import PropTypes from 'prop-types';
import { Link, navigate } from 'gatsby';
import { InView } from 'react-intersection-observer';
import anime from 'animejs';
import ProjectPreviewStyled from './styles/ProjectPreviewStyled';
import ProjectMainStyled from './styles/ProjectMainStyled';
import ... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b)... |
/*//*//*//*//*//*//*//*//*//*//*//*/
/*/ Made by Lunnos and <NAME> /*/
/*//*//*//*//*//*//*//*//*//*//*//*/
const mineflayer = require('mineflayer')
const {vec3} = require('vec3')
const { pathfinder, Movements, goals } = require('mineflayer-pathfinder')
const mineflayerViewer = require('prismarine-viewer').mineflayer
... |
// import libraries
// three.js
import * as THREE from "three";
// GLTFLoader from three.js examples, to be able to load GLTF files
import {GLTFLoader} from "../node_modules/three/examples/jsm/loaders/GLTFLoader.js";
// our local version of VRButton (a button to enter/exit VR)
import {VRButton} from './VRButton.js';... |
var Customers = 0;
var TotalCustomers = 0;
var SDGEOuttages = 0;
var PSPSOuttages = 0;
var Outtages = 0;
var FireNumber = 0;
var FireAcreage = [];
var CustArray = [];
var FireGeometries = [];
var view;
require([
"esri/Map",
"esri/views/MapView",
"esri/layers/GraphicsLayer",
"esri/task... |
import React from 'react'
import RaViewComponent from "./../../artifacts/ra-view-component";
import {
DateAndTimePickers, Badge,
TableRow, TableCell, TableBody, Paper, Table, Typography,Button,TextField
} from '@material-ui/core';
import {withStyles} from '@material-ui/core/styles';
import RaTableHeader, {RaTab... |
import Ember from 'ember';
import Struct from './struct';
import GeoDef from './geo-def';
import {matcher as geoMatcher, GeoMatch} from 'khartis/utils/geo-matcher';
import deg2dec from 'khartis/utils/deg2dec';
import d3 from 'npm:d3';
let RowStruct = Struct.extend({
header: null,
cells: null,
layout: null,... |
/*
* Copyright 2018 - 2021 Swiss Federal Institute of Technology Lausanne (EPFL)
*
* 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.
*
* U... |
var _projs = {},
_projDirname = {},
_disableProjs = {},
path = require('path'),
fs = require('fs'),
mod = require('../../mod.js'),
util = mod.util,
notice = mod.notice,
_conf = mod.conf,
DRS = mod.load('DRS'),
reloadProjConfig = require('./reloadProjConfig.js'),
watchFileCh = mod.load('watchFileCh'),
dataAP... |
var DESCRIPTIONS = Clubber.prototype.descriptions;
var descriptions = [];
var descriptionEl = document.querySelector("#descriptions");
function initDescriptions () {
var el = descriptionEl;
for(var i=0; i < 20; i++){
var el2 = document.createElement("div");
el2.setAttribute("title", "");
el2.style.lef... |
/*
* Variables used by the loader to hold states and information.
* - "queueList" contains the requests made to the loader.
* Once a request is delivered, it is deleted from this array.
* - "queuedScripts" keeps track of which scripts were started to load,
* so as not to insert them twice in the page if the... |
const assert = require("assert");
const moment = require("moment");
const nbd = require("../main");
const holidays = [
"2020-01-13", "2020-01-15", "2020-02-02", "2020-02-10", "2020-02-13", "2020-02-28",
"2020-03-03", "2020-03-12", "2020-03-18", "2020-03-21", "2020-04-01", "2020-04-11",
"2020-04-14", "2020-04-20"... |
import { mobileScoket } from '@/libs/socket';
import { userRecord, serviceUpload, serviceAdv } from '@/api/kefu';
import { setLoc, getLoc } from '@/libs/util'
import Cookies from "js-cookie";
var mp3 = require('@/assets/video/notice.wav');
export default {
data() {
return {
mp3: new Audio(mp3),
input... |
let prefs = {};
let generated_css = "";
// Flags
// link is bookmarked:
const BOOKMARKED = 0x01;
// link has been visited:
const VISITED = 0x02;
// latest visit time is below limit:
const RECENTLY_VISITED = 0x04;
// latest visit time below limit AND there exists a visit time above
// limit (and it is s... |
require('dotenv').config()
const DB = require("better-sqlite3")
const fs = require("fs")
const fastify = require('fastify')
const tiletype = require('@mapbox/tiletype')
const path = require('path')
const mercator = require("global-mercator")
const wmts = require('wmts')
//TODO have argv[] be able to override the env v... |
'use strict';
/**
* Module dependencies.
*/
var _ = require('lodash'),
fs = require('fs'),
path = require('path'),
globals = require(path.resolve('.','./config/globals')),
errorHandler = require(path.resolve('./modules/core/server/controllers/errors.server.controller')),
multer = require('multer'),
confi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.