text stringlengths 5.97k 41.2k |
|---|
/**
* Created by jams on 2016/5/13.
*/
var { min, max, sin, cos, round, sqrt, random, PI, abs = a => a < 0 ? -a : a } = Math;
var [v_r, v_g, v_b] = [.299, .587, .114];
var rgb4v = function (r, g, b, v) {
var d = v - rgb2v(r, g, b);
return [r + d, g + d, b + d];
};
var rgb4h = function (r, g, b, h) {
var [p, q... |
const _ = require('lodash');
const Bodybuilder = require('bodybuilder');
const { getConfig } = require('./config');
const moment = require('moment');
const DATE_FORMAT = 'YYYY-MM-DD';
const REPO_RESULT_SIZE_MAX = 1000;
const REPO_RESULT_SIZE_DEFAULT = 10;
const TERM_RESULT_SIZE_MAX = 100;
const TERM_RESULT_SIZE_DEFAULT... |
var USING_NODEJS = (typeof window == 'undefined');
if (USING_NODEJS) {
var d3 = require('d3');
var exports = module.exports = {};
}
var BASE_W = 15;
var BASE_H = 20;
var BASE_FONT = 16;
var REFCOLOR = "black";
function IsNuc(x) {
return (x=="A" || x=="C" || x=="G" || x=="T");
}
function numberWithCommas(x... |
/*
* _bookmark/list.js
*
* Manaage bookmark display modal dialog.
*
* Query bookmarks by sourceId and format data for display in
* sorted order by book, chapter, and paragraph.
*
* Bookmarks are stored in local storage to avoid having to query
* each time list is displayed unless bookmarks have been added,
* ... |
// © 2013 - 2016 <NAME> <<EMAIL>>
// Released under the MIT license
'use strict';
var httpProxy = require('http-proxy');
var net = require('net');
var url = require('url');
var regexp_tld = require('./regexp-top-level-domain');
var getProxyForUrl = require('proxy-from-env').getProxyForUrl;
var help_text = {};
funct... |
/**********************************************/
/* Globals, Constants, and Enums */
/**********************************************/
let NXBT_CONTROLLER_INDEX = false;
let CONTROLLER_INDEX = false;
let CONTROLLER_CONNECTED = false;
let STATE = false;
// HTML SECTIONS
let HTML_CONTROLLER_SELECTION = document.getEleme... |
/* * * * * * * * * *
Contains all code for static page tiny.html which customizes CRT data for KiOS or other really small screen.
* * * * * * * * * *
-- Begin class definitions --
*/
//LiveScanModel holds view data
function LiveScanModel() {
let self = this;
//Config value... |
import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import Controls from './controls.js';
import Grid from './grid.js';
import { DebugTab } from './debugTab.js';
import Debugger from './debugger.js';
import interpret from './interpreter.js';
import { commands } from './orderedComman... |
let mainDiv = document.querySelector(".main");
const loadIcon = document.querySelector(".load");
const sourceDiv = document.querySelector("#source");
const copyBtn = document.querySelector(".copy");
const createBtn = document.querySelector(".create");
const rightAreaDiv = document.querySelector(".right-area");
const ME... |
import { createSelector } from "reselect";
import { includes, filter, map, orderBy, reduce, uniq } from "lodash";
import { getAllResearchers } from "../researchers/selectors";
import moment from "moment-timezone";
import {
LIVE_EVENTS_TAB,
PENDING_EVENTS_TAB,
STATES_LEGS,
FEDERAL_RADIO_BUTTON,
DATE_TIMESTAMP,... |
import { exec, spawn } from "child_process";
import { readdir, readFile as fsReadFile } from "fs/promises";
import { join } from "path";
import { inspect, promisify } from "util";
import { packageVersions } from "./package-versions.js";
import { updateCss, updateFile, updateJavaScript, updateJson, updateSvelte } from "... |
import { GPUTextureFormat, GPUAddressMode, GPUFilterMode, GPUTextureDimension } from './constants.js';
import { CubeTexture, Texture, NearestFilter, NearestMipmapNearestFilter, NearestMipmapLinearFilter, LinearFilter, RepeatWrapping, MirroredRepeatWrapping,
RGBFormat, RGBAFormat, RedFormat, RGFormat, RGBA_S3TC_DXT1_Fo... |
// ***********************************************************
// SNPTips(tm) by 5AM Solutions, Inc.
//
// This work is licensed under the Creative Commons
// Attribution-ShareAlike 3.0 Unported License. To view a copy of
// this license, visit http://creativecommons.org/licenses/by-sa/3.0/
// or send a letter to Creat... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _bluebirdLstC;
function _load_bluebirdLstC() {
return _bluebirdLstC = require("bluebird-lst-c");
}
var _bluebirdLstC2;
function _load_bluebirdLstC2() {
return _bluebirdLstC2 = _interopRequireDefault(require("bluebird-lst-c... |
import { canUseWorker, baseURLBin, baseURLWasm, urlFromVersion, pathToURL, promisedMiniXhr } from '../../compiler/compiler-utils'
const yo = require('yo-yo')
const helper = require('../../../lib/helper')
const addTooltip = require('../../ui/tooltip')
const semver = require('semver')
const modalDialogCustom = require('... |
/*! @license Firebase v4.3.0
Build: rev-bd8265e
Terms: https://firebase.google.com/terms/ */
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Connection = undefined;
var _util = require('../core/util/util');
var _storage = require('../core/storage/storage');
var _Constants =... |
var Constants = require('Constants');
var AssetLoader = require('assets/AssetLoader');
var Materials = require('materials/Materials');
var Object3DUtil = require('geo/Object3DUtil');
var PartNetOBJPartLoader = require('loaders/OBJPartLoader');
var Shape2MotionOBJPartLoader = require('loaders/Shape2MotionOBJPartLoader')... |
// Shadow_highp.js (c) matsuda and tanaka
// Vertex shader program for generating a shadow map
var SHADOW_VSHADER_SOURCE =
'attribute vec4 a_Position;\n' +
'uniform mat4 u_MvpMatrix;\n' +
'void main() {\n' +
' gl_Position = u_MvpMatrix * a_Position;\n' +
'}\n';
// Fragment shader program for genera... |
const PIXI = require("pixi.js");
const $ = require("jquery");
const extraFilters = require("pixi-extra-filters");
const GlowFilter = extraFilters.GlowFilter;
const pako = require("pako");
import {Ship} from "./ship";
import {Planet, holidaySprite} from "./planet";
import * as statistics from "./statistics";
import * a... |
/**
* Module : neoui-layout-nav
* Author : Kvkens(<EMAIL>)
* Date : 2016-08-02 15:56:32
*/
import { addClass, hasClass, removeClass, toggleClass, closest } from 'tinper-sparrow/src/dom';
import { on } from 'tinper-sparrow/src/event';
import { Ripple, URipple } from 'tinper-sparrow/src/util/ripple';
import { env ... |
$(document).ready(function(){
const startOfMonth = moment().startOf('month').format('YYYY/MM/DD');
//const endOfMonth = moment().endOf('month').format('DD/MM/YYYY');
$('#start').val(startOfMonth);
//$('#end').val(endOfMonth);
$("#start").datepicker({
language: 'es',
//rtl: isRtl,
format: 'yyyy... |
var cubeStrip = [
1, 1, 0,
0, 1, 0,
1, 1, 1,
0, 1, 1,
0, 0, 1,
0, 1, 0,
0, 0, 0,
1, 1, 0,
1, 0, 0,
1, 1, 1,
1, 0, 1,
0, 0, 1,
1, 0, 0,
0, 0, 0
];
// var cubeStrip = [
// 0, 0, 0,
// 1, 0, 0,
// 0, 0, 1,
// 1, 0, 1,
// 1, 1, 1,
// 1, 0, 0,
// 1, 1, 0,
// 0, 0, 0,
// 0, 1, 0,
// 0, 0, 1,
// 0, 1... |
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('v... |
$(function(){
search();//jquery 模板demo
//商品排序查询
$("#userSort>td").click(function(){
userSortQuery($(this));
});
});
function search(){
DMGold.ajax({"formId":"dataForm","serialize":true,"url":"/index.php/Manage_admin/adminajax","success":pageTagCallBack});
}
function sear... |
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be use... |
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
f... |
"use strict";
let FF_IME_node_origin = null;
let FF_IME_offset = 0;
let FF_IME_length = 0;
let FF_IME_original_text = null;
let FF_IME_br_origin = null;
let FF_IME_parent = null;
let FF_IME_offset_in_parent = 0;
//let FF_IME_not_by_Henkan = false;
let FF_IME_update_count = 0;
let FF_IME_in_action = false;
let FF_IM... |
'use strict';
const express = require('express');
const puppeteer = require('puppeteer');
const { createLogger, transports } = require('winston');
const http = require('http');
const https = require('https');
const assert = require('assert');
const path = require('path');
const keyCert = require('key-cert');
const Prom... |
'use strict';
var app = require('express')();
var http = require('http').Server(app);
var io = require('socket.io')(http);
var mysql = require("mysql"); // Sorry I don't just fancy the whole mongo stuff
var moment = require('... |
'use strict'
var $ = require('jquery')
var csjs = require('csjs-inject')
var yo = require('yo-yo')
var async = require('async')
var request = require('request')
var remixLib = require('remix-lib')
var EventManager = require('./lib/events')
var registry = require('./global/registry')
var UniversalDApp = require('./univ... |
function searchJson(that, data, sResultsDropdown) {
var sSearchString = that.val();
var aItems = [];
// console.log(typeof sSearchString);
var title = '';
var mainActivety = "";
var tripDescription = "";
var season = "";
var allActiveties = [];
var trips = data.trips;
var allActivToLowerCase = "";
... |
////////////////////////////////////////////////////////////////////////////////
//
// Author: <NAME>
// Keywords: Main
// Filename: main.js
// Date: 6/5/2019
// Description: Main script dependant module to be included towards the end
// of the html file. Contains ... |
import {Section as $6555104ff085bef4$re_export$Section, useCollection as $1BfjW$useCollection} from "@react-stately/collections";
import {useGridState as $1BfjW$useGridState, GridCollection as $1BfjW$GridCollection} from "@react-stately/grid";
import $1BfjW$react, {useMemo as $1BfjW$useMemo} from "react";
function $pa... |
const timeStamp = '1622574706';
const publicKey = 'a84ccf136a54436ed0babf6a4d8a5433';
const privateKey = '00fa707a16290895dbe94503f543454a755830a9';
const hash = '2e4f386b0fd325fcc7db20af85ed7759';
function character() {
let urlQueryParameters = new URLSearchParams(window.location.search),
queryParameterName = urlQ... |
/* exported sendEmail */
/* global mapboxgl, MapboxGeocoder */
var map_loc;
var selectize;
var mapboxMap;
var mapboxGeocoder;
var mapboxStores;
var firstRetrievalDone = false;
// This is for older browsers that don't support remove.
if (!("remove" in Element.prototype)) {
Element.prototype.remove = function() {
... |
/**
ChipChat - ChatShipper SDK Main module
@module ChipChat
@author Chatshipper
*/
'use strict';
const debug = require('debug')('chipchat:core');
const EventEmitter2 = require('eventemitter2');
const mware = require('mware').default;
const jwt = require('jsonwebtoken');
const RestAP... |
// #########################
// ### dndselectr events ###
// ### R <-> JS ###
// #########################
// #####################
// ### dropZoneInput ###
// #####################
var dropZoneBinding = new Shiny.InputBinding();
$.extend(dropZoneBinding, {
find: function(scope) {
return $(scope).find(... |
var Alloy = require('/alloy'),
Backbone = Alloy.Backbone,
_ = Alloy._;
function __processArg(obj, key) {
var arg = null;
if (obj) {
arg = obj[key] || null;
}
return arg;
}
function Controller() {
require('/alloy/controllers/' + 'BaseController').apply(this, Array.prototype.slice.call(arguments));
... |
/* eslint-disable camelcase */
import {parse} from '@loaders.gl/core';
// eslint-disable-next-line import/no-unresolved
import {GLTFLoader} from '@loaders.gl/gltf';
import '@loaders.gl/polyfills'; // text-encoding polyfill for older MS browsers
import GL from '@luma.gl/constants';
import {AnimationLoop, Timeline} from ... |
"use strict";
let _ = require("lodash");
let Table = require("easy-table");
// let $fs = require("mz/fs");
// let $gstd = require("get-stdin");
const { latexArtifact, saveArtifacts } = require("../artifacts");
let r2 = x => Math.round(x * 100) / 100;
let eventLoop = (options, schedule) => {
let state = {
sche... |
import React, {
useCallback,
useEffect,
useState,
useReducer,
useRef,
} from 'react';
import axios from 'axios';
import PropTypes from 'prop-types';
import { isEqual, isEmpty, get, set } from 'lodash';
import {
Modal,
ModalFooter,
PopUpWarning,
useGlobalContext,
request,
} from 'strapi-helper-plugin... |
//StretchyTreeMatcher.prototype = new NodeVisitor();
//ASTMap.prototype = new Object();
//CT_Map.prototype = new Object();
function CT_Map(){
this.keys = [];
this.values = [];
this.cacheKey = null;
this.cacheIndex = -1;
}
CT_Map.prototype.updateCache = function(key){
if(this.cacheIndex == -1 || !(this.cacheKey ===... |
import { compositions, particles } from "data";
import ParticleEmitter from "src/components/ParticleEmitter";
import PausableMotion from "src/components/PausableMotion";
import Composable from "src/components/Composable";
import AngleMotion from "src/components/AngleMotion";
import Beam from "src/components/Beam";
impo... |
import { __extends, __awaiter, __generator, __read, __assign, __values } from 'tslib';
import { print, parse, buildASTSchema, Kind } from 'graphql';
import { isAsyncIterable, observableToAsyncIterable } from '@graphql-tools/utils/es5';
import { isWebUri } from 'valid-url';
import { fetch } from 'cross-fetch';
import { ... |
'use strict';
var ui = require('./ui')
var settings = { lineLength: 72 };
var re = RegExp;
function CommandManager (getString) {
this.getString = getString;
}
var $ = CommandManager.prototype;
$.prefixes = '(?:\\s{4,}|\\s*>|\\s*-\\s+|\\s*\\d+\\.|=|\\+|-|_|\\*|#|\\s*\\[[^\n]]+\\]:)';
$.unwrap = function (chunk) {... |
const source = "https://github.com/theo-armour/2020/tree/master/sandbox/us-county-votes/";
const version = "2020-12-15";
//const description = document.head.querySelector( "[ name=description ]" ).content;
let indexDem = [];
let indexRep = [];
let indexOther = [];
let votesAll;
let votesYear;
let flipSticks;
funct... |
'use strict';
exports.__esModule = true;
exports.default = undefined;
var _preact = require('preact');
var _styledComponents = require('styled-components');
var _styledComponents2 = _interopRequireDefault(_styledComponents);
var _scMixins = require('../../../components/common/scMixins');
var _Button = require('..... |
var node_size=10;
var target_node_id=1;
var targetRevertLevel=0;
var initLevelNumber=4;
var hlsf = 2;
var bdr_ratio =0.5;
var should_draw = true;
var focus_levels = ["UNIT","SUBJECT","SCHOOL","FACULTY"];
var focus_level = "UNIT";
var unit_zoom = 0;
var cluster_factor = 0.6;
var unit_zoom_level,subject_zoom_level,sch... |
// Copyright (c) 2020 The Blocknet developers
// Distributed under the MIT software license, see the accompanying
// file LICENSE or http://www.opensource.org/licenses/mit-license.php.
import * as appActions from '../../actions/app-actions';
import { AddressInput, CurrencyInput, Textarea } from './inputs';
import Alert... |
import { gql } from "@apollo/client"
import { Icon, IconSize, Intent } from "@blueprintjs/core"
import { IconNames } from "@blueprintjs/icons"
import API from "api"
import AppContext from "components/AppContext"
import AvatarDisplayComponent from "components/AvatarDisplayComponent"
import AvatarEditModal from "componen... |
/**
* ## Configs ##
* ux.datagrid is a highly performant scrolling list for desktop and mobile devices that leverages
* the browsers ability to gpu cache the dom structure with fast startup times and optimized rendering
* that allows the gpu to maintain its snapshots as long as possible.
*
* Create the default mo... |
import { propertiesRestricted } from 'utils/properties-restricted'
import { castArray } from 'utils/cast-array'
import { obj2dot } from 'utils/obj-2-dot'
import { ValidationError } from './validation-error.js'
import { MethodError } from './method-error.js'
import { forEach } from 'utils/for-each.js'
import { castThrow... |
// Title : Simple AI Agent Demo - using neural nets
// Author : <NAME>
// Date : April 2017
// Contact : @smallfatcat
// Repo : https://github.com/smallfatcat/nettestv1
// version : Alpha 0.1
//
// Neural Nets Powered by : http://cs.stanford.edu/people/karpathy/convnetjs/
// : https://g... |
let chat;
// Create the ChatEngine Instance
ChatEngine = ChatEngineCore.create({
publishKey: 'pub-c-d5ff1d1c-58a0-4d35-9316-5fc427aec439',
subscribeKey: 'sub-c-032a4f30-2e9e-11e9-929a-9a812f696210'
});
// Global Variable Declaration
var $username = $('#username');
var $color = $('#color');
var $temp = $("#tem... |
/*
* Display calendar UI for datepicker.
* Sync the cursor to the selected date or default to today.
* Month is rendered based on cursor date.
* Handles date math via moment.
*/
import React from 'react';
import { FormattedMessage, injectIntl } from 'react-intl';
import PropTypes from 'prop-types';
import Moment from ... |
// Examples of requests and how they are handle:
// thumbs/ requests!!!
// * Requests made by the web page without knowledge of zip file:
// --------------------------------------------------------------
//
// GET /f8c71567-4d70-45fb-aa95-6554c48f90fa/geometry/geometry_0.bin
//
// Actually fetched from /f8c71567-4d70... |
'use strict';
exports.__esModule = true;
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var _react = requi... |
//The view
var viewSettings = Ti.UI.createView({
backgroundImage:IMAGE_PATH+'signin/background.jpg',
opacity:0,
top:0,
bottom:0,
left:0,
right:0
});
//Back button
var backHomeSettingsButton = Titanium.UI.createButton({
backgroundImage:IMAGE_PATH+'categories/back.png',
left:30,
top:25,
width:55,
height:55
})... |
var VIZ = {
uri: "ws://10.1.160.200:9090",//
handles: {},
canvas: null,
buffer: null,
loop: false,
currentGoal: -1,
home: -1,
resolution: 0.05,
robotradius: 0.25,
origin: { x: 0, y: 0 },
msgcount: 10,
changed: false,
rate: 500, // ms
lock: false,
msgs: {},
... |
// Onload functions
var apiWorker = new Worker('worker.js');
// Declare Variables
var array = [];
// Load Stored Variables
$('#ucp-account').val(localStorage.getItem('account'));
$('#ucp-dataset').val(localStorage.getItem('dataset'));
///////////////////////////////////////////////////////
///////////// STEP 1 FU... |
var instance_skel = require('../../instance_skel');
var debug;
var log;
function instance(system, id, config) {
var self = this;
// super-constructor
instance_skel.apply(this, arguments);
self.actions(); // export actions
self.init_presets(); // init presets
return self;
}
instance.prototype.updateConfig ... |
/*
* Manage wall posts
*/
var WallDisplay = window.WallDisplay || {};
var hoverApprove=false;
var hoverDecline=false;
WallDisplay.Server = {
containerNew : "#newposts",
containerApproved : "#approvedposts",
containerDeclined : "#declinedposts",
// hoverApprove:false,
hoverDecline:false,
newP... |
// вводим понятие "ссылка" в духе <NAME>
// idea: if object which some link references gets deleted, and then other object is created, try to reconnect to it.
// probably it is already the case, and then we have to write it as a requirement (fine feature).
// idea: move link resolution logic to addParamRef method
// ... |
$(document).ready(function () {
cargaModulos();
date_time('date_time');
/* if(!idSeteado){
UIkit.offcanvas("#offcanvas-push").show();
} */
$('#doorbell-modal').on('hidden.bs.modal', function (e) {
$("#citofonoCamera1").removeAttr("hidden");
$("#citofonoCamera1").removeClass(... |
'use strict';
const { spawn, execSync } = require('child_process');
const os = require('os');
const { format } = require('date-fns');
const blessed = require('blessed');
const contrib = require('blessed-contrib');
const allSettled = require('promise-all-settled');
const LOG_MAX_LIMIT = 200;
const ITEM_ACTIVITY_TRANSI... |
const pathLib = require('path');
const _ = require('underscore');
const Promise = require('bluebird');
const yaml = require('js-yaml');
const fs = require('fs');
const Err = require('@kartotherian/err');
const checkType = require('@kartotherian/input-validator');
const core = require('./core');
const { XmlLoader, Yam... |
/*************************************************
* Abstract classes of math blocks and commands.
************************************************/
/**
* Math tree node base class.
* Some math-tree-specific extensions to Node.
* Both MathBlock's and MathCommand's descend from it.
*/
var MathElement = P(Node, fu... |
/* Copyright (c) Facebook, Inc. and its affiliates.
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
"use strict";
const DEBUG = false;
// TODO add some testing to launch this server and communicate with it
const bodyParser = require("b... |
import {
BufferGeometry,
BufferAttribute,
Vector3,
Matrix4,
Euler,
Mesh,
} from "https://unpkg.com/three@0.125.1/build/three.module.js";
import { requestPickBufferRange, pickIndToVector } from "./pick.js";
import {
createMatCapMaterial,
createSurfaceMeshPickMaterial,
} from "./shaders.js";
import { ge... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
/**
* 数据类型判断
* @param subject 待判断的数据
* @param type 数据类型名字
* @return 判断结果
*/
function is(subject, type) {
return Object.prototype.toString.call(subject).substr(8, type.length).toLowerCase() === type;
}
/**
* 是... |
import React, { Component } from 'react';
import { Checkbox} from 'tinper-bee';
import ApproveListItem from './ApproveListItem';
import './index.less';
import ajax from '../../../api/ajax';
// import { toast } from 'utils/utils.js';
import nodataPic from '../../../static/images/nodata.png';
import NCBreadcrumb from '.... |
/*
* FCKeditor - The text editor for internet
* Copyright (C) 2003-2005 <NAME>
*
* Licensed under the terms of the GNU Lesser General Public License:
* http://www.opensource.org/licenses/lgpl-license.php
*
* For further information visit:
* http://www.fckeditor.net/
*
* "Support Open Sourc... |
'use strict'
/**************
* CONSTANTES *
**************/
const OM_API_URL = 'https://api.open-meteo.com/v1/forecast';
const OSM_API_URL = 'https://nominatim.openstreetmaps.org/';
const TIMEZONE = 'Europe/Madrid';
// Iconos relacionados al tiempo
const weatherIcons = {
soleadoBajo: 'bi bi-brightn... |
const elliptic = require("elliptic").ec;
const ec = new elliptic("secp256k1");
const BN = require('bn.js');
const bigInt = require('big-integer');
const assert = require('assert');
const randomBytes = require('randombytes');
const sha256 = require("js-sha256");
const order = bigInt(ec.n.toString());
/////////////... |
var hljs = require('highlight.js');
var md = require('markdown-it')({
highlight: function (str, lang) {
if (lang && hljs.getLanguage(lang)) {
try {
return '<pre class="hljs"><code>' +
hljs.highlight(lang, str, true).value +
'</code></pre>';... |
import _pt from "prop-types";
var _images;
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && o... |
// <astar.js>
// javascript-astar 0.4.1
// http://github.com/bgrins/javascript-astar
// Freely distributable under the MIT License.
// Implements the astar search algorithm in javascript using a Binary Heap.
// Includes Binary Heap (with modifications) from <NAME>.
// http://eloquentjavascript.net/appendix2.html
(funct... |
var resultado = document.getElementById("resultado");
var resultado2 = document.getElementById("resultado2");
var resultado3 = document.getElementById("resultado3");
var resultado4 = document.getElementById("resultado4");
function imprimir(resultados) {
resultado.innerHTML = resultados;
resultado2.innerHTML = "... |
import { createSelector } from 'reselect';
import cloneDeep from 'lodash.clonedeep';
import utils from '@quantumblack/kedro-ui/lib/utils';
import { sidebarGroups, sidebarElementTypes } from '../../config';
import IndicatorIcon from '../icons/indicator';
import IndicatorOffIcon from '../icons/indicator-off';
import Indi... |
function myTime() {
// const currentDate = document.getElementById("dateDisplay");
// const currentTime = document.getElementById("timeDisplay");
const h3Date = document.getElementById("h3Date");
const h3Time = document.getElementById("h3Time");
let today = new Date();
let unixDay = today.... |
/* eslint-disable no-prototype-builtins */
import React from 'react';
import { SliderPicker } from 'react-color';
import Tree from 'geppetto-client/js/components/interface/tree/Tree';
import CircularProgress from '@material-ui/core/CircularProgress';
import Tooltip from '@material-ui/core/Tooltip';
import {
createMui... |
/**
* Created by <NAME> on 11/18/2017.
*/
// document.getElementById('idFotoAluno').src = '{{asset('img/upload/')}}'.concat('/' + rs.foto);
$('.mes').remove();
$('#actual').remove();
$('.ms').remove();
/*Inicio de raking de pagamento*/
var mesAdiantado ='';
var valorTodosMeses =0;
var dividasTodosMeses =0;
if(rs.men... |
/*
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... |
/* eslint-disable */
import React, { useEffect, useState } from 'react';
import { useNavigate, useLocation } from 'react-router-dom';
import {
CircularProgress,
Box,
Card,
CardContent,
CardHeader,
Divider,
Container,
Alert,
AlertTitle,
} from '@material-ui/core';
import DraftsTwoTon... |
import PropTypes from 'prop-types';
import React from 'react';
import Loader from '../Loader/Loader';
import InfiniteScroll from '../utils/InfiniteScroll';
import scrollIntoView from '../utils/scrollIntoView';
import {
DATA_HOOKS,
DATA_OPTION,
DATA_SHOWN,
DATA_DIRECTION,
DROPDOWN_LAYOUT_DIRECTIONS,
OPTION_D... |
"use strict";
var ObjectId = require("mongodb").ObjectId;
require("mongodb-toolkit");
var assert = require('assert');
var generateCode = require("../../../utils/code-generator");
var ProductionOrderManager = require('../../sales/production-order-manager');
var KanbanManager = require('./kanban-manager');
var UomMana... |
'use strict';
var XMLUtils = require('../src/xmlutils.js');
var xsd = require('libxml-xsd');
const wsdlDefinition = {
"definitions": {
"types": {
"schema$type": [],
"schema": {
"element$type": [],
"simpleType$type": [],
"complexType$type": [... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
const doorsInfo = [
// Barber
{ model: jhash("v_ilev_hd_door_l"), position: new alt.Vector3(-823.2001, -187.0831, 37.819), locked: false },
{ model: jhash("v_ilev_hd_door_r"), position: new alt.Vector3(-822.4442, -188.3924, 37.819), locked: false },
// Barber
{ model: jhash("v_ilev_bs_door"), position: new alt.Vec... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; ... |
/**
* 8/8/15 04:00 - 08:40 Load data, layout, basic functionality, display lat long
* 8/9/15 23:45 - 1:15 Clean up how we get the nextDeparture
* 8/10/15 1:15 - 2:00 Try to get the app to build on a phone (prov issues)
* 8/10/15 2:00 - 2:00 Time issue #1
*/
/**
* Time issues
* ID Current D... |
import React from 'react';
import ReactDOM from 'react-dom'
const hexRgb = require('hex-rgb');
const BigNumber = require('bignumber.js');
function addHelpers(obj){
if(!obj.prototype.title_font) obj.prototype.title_font = "bold 18px 'Rubik Mono One', sans-serif"
obj.prototype.sayHello = function() {
console.l... |
import React, { useEffect, useState, useRef, useContext } from 'react';
import { View, Dimensions, StyleSheet, Text, Pressable, ScrollView } from 'react-native';
import { SafeAreaView } from 'react-native-safe-area-context';
import { HeaderWithCustomButtons, StyleConstant, HeaderWithBack } from '@assets/MyStyle';
impor... |
"use strict";
require("core-js/modules/es.reflect.get.js");
require("core-js/modules/es.object.get-own-property-descriptor.js");
require("core-js/modules/es.reflect.construct.js");
require("core-js/modules/es.object.keys.js");
require("core-js/modules/es.symbol.js");
require("core-js/modules/es.array.filter.js");... |
// Setup Imports
const fs = require('fs');
const Discord = require("discord.js");
const config = require("./config.json");
const client = new Discord.Client();
// Setup runtime constants
const botPrefix = "!"
const respondBots = false;
const requirePrefix = true;
const typeInChannels = ["bot_commands","gambling"];
co... |
/******************************************************************************
Copyright:: 2020- IBM, 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... |
require("babel-polyfill");
const QR = require('qrcode-generator');
const bwWidget = require('./badger/widget.js');
const browser = chrome || browser;
// qr params
const typeNumber = 4;
const errorCorrectionLevel = 'L';
const ignoreNodeList = ['SCRIPT', 'COMMENT', 'STYLE']; // ignore these textNodes Parents
//const... |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
import {getStringValue} from './tag-names-utils.js';
export default {
'iptc': {
0x0100: {
... |
class Player {
constructor(posX = 0, posY = 0) {
this.maxHp = 3;
this.hp = this.maxHp;
this.invsFrames = 0;
this.posX = posX;
this.posY = posY;
this.velX = 0.00;
this.velY = 0;
this.hitbox = {
paddingX: 16,
paddingY: 16,
... |
function go(url){
window.location = url;
}
/**
* 格式化数字
* @param num 数字
* @param ext 保留多少位小数
* @returns {*}
*/
function number_format(num, ext){
if(ext < 0){
return num;
}
num = Number(num);
if(isNaN(num)){
num = 0;
}
var _str = num.toString();
var _arr = _str.split(... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.