text stringlengths 8.5k 48.7k |
|---|
var attregexg2=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g;
var attregex2=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;
var _chr = function(c) { return String.fromCharCode(c); };
function xlml_parsexmltag(tag, skip_root) {
var words = tag.split(/\s+/);
var z = []; if(!skip_root) z[0] = words[0];
if(wor... |
import {Mesh} from "../../viewer/scene/mesh/Mesh.js";
import {ReadableGeometry} from "../../viewer/scene/geometry/ReadableGeometry.js";
import {PhongMaterial} from "../../viewer/scene/materials/PhongMaterial.js";
import {Texture} from "../../viewer/scene/materials/Texture.js";
import {core} from "../../viewer/scene/cor... |
'use strict';
const fs = require('fs');
const os = require('os');
const path = require('path');
const vscode = require('vscode');
const downloader = require('@microsoft/vscode-file-downloader-api');
const mkdirp = require('mkdirp');
const yauzl = require('yauzl');
const { exec } = require('child_process');
let channe... |
/**
* (c) 2009-2014 Demandware Inc.
* Subject to standard usage terms and conditions
* For all details and documentation:
* https://bitbucket.com/demandware/sitegenesis
*/
'use strict';
var countries = require('./countries'),
dialog = require('./dialog'),
minicart = require('./minicart'),
... |
function commit(formId, commitUrl, jumpUrl) {
//组装表单数据
var index;
var data = $("#" + formId).serialize();
if (undefined != $("#pageNum").val()) {//编辑
jumpUrl = jumpUrl + '?id='+ $("#quotationSheetId").val()+'&page=' + $("#pageNum").val() + '&rows=' + $("#... |
var wrapper;
var logo;
var detail;
var news_detail;
var contents;
var members;
var only_first = true;
var isAnimating = false;
var isAbout = false;
var isBack = false;
var content_logo_diff;
var detail_logo_diff;
var logo_set_height; //logoの現在の高さ
var logo_top_set_height; //logoの高さ上限
var logo_bottom_set_height; //log... |
import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import classnames from 'classnames';
import isEqual from 'lodash/isEqual';
import Icon from '../Icon';
import EmptyMessage from '../EmptyMessage';
import Layout from '../Layout';
import { HotKeys } from '../Ho... |
// FIXME move following functions in utility file
// FIXME there should be a better method to do this
/* reduce argument to range +/- PI */
function adjlon(lon) {
var SPI = 3.14159265359, TWOPI = 2 * Math.PI;
if (Math.abs(lon) <= SPI) {
return lon;
}
// adjust to 0..2pi rad
lon += Math.PI;... |
"use strict";
var myHostname = window.location.hostname;
var myPort = window.location.port;
console.log("Hostname: " + myHostname);
//using websockets
var connection = null;
var mediaConstraints = {
audio: true, // We want an audio track
video: { frameRate: { min: 10, ideal: 15, max: 30 }, width: {ex... |
/**
* Created by Tvegiraju on 12/27/2019.
*/
const PREFERRED_ATTRIBUTES = [
'id',
'data-id',
'name'
];
const dataColumnAttr = 'data-column-attr';
const contentElSelector = '[id$=-content]';
export default function locatorBuilder_BOB() {
}
locatorBuilder_BOB.updateAppSpecificOrder = function () {
... |
let colors = new Array();
let colors2 = new Array(20);
let colors3 = new Array('red', 'blue', 'green');
let colors4 = Array(3);
let names = Array('Greg');
let colors5 = ['red', 'blue', 'green'];
let names2 = [];
let values = [1, 2,];
// Array.from() 用于将类数组结构转换为数组实例
console.log(Array.from('Matt')); // [ 'M', 'a', 't... |
// Functions to save and load the map
"use strict";
// download map as SVG or PNG file
function saveAsImage(type) {
console.time("saveAsImage");
// clone svg
const cloneEl = document.getElementById("map").cloneNode(true);
cloneEl.id = "fantasyMap";
document.getElementsByTagName("body")[0].appendChild(cloneE... |
'use strict';
// join assembles streams of points on its inputs into groups,
// then performs a relational join between these groups to produce
// new output points.
//
// Input Groups:
// An input group is a set of points arriving on an input and having
// the same timestamp (if not batched) or all points between two... |
var v3d = {
options: {
width: 400,
height: 400,
radius: 5,
red_intensity: 0.3,
red_mod: 0.3,
thetas: [-80, -65, -55, -45, -40, -35, -30, -25, -20, -15, -10, -5, 0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 55, 65, 80]
},
callbacks: {},
objects: {},
loadBody: ... |
// spread: 1-7
// offset: 0-7
function computeWalls(spread, offset) {
let walls = [];
let error = 0;
for (let i = 0; i < 8; i++) {
let j = (i * spread + error) % 8;
if (walls[j] !== undefined) {
error++;
j = (i * spread + error) % 8;
}
walls[j] = i;
}
if (offset) {
walls =... |
const html_head = require('./html_head'),
html_nav_menu = require('./html_nav_menu'),
html_admin_nav_menu = require('./html_admin_nav_menu.js'),
html_footer = require('./html_footer');
const moment = require('moment');
const {get_banner, get_banner_podval} = require('./reklama_s');
const {AFTER_REGIST... |
/* global toString: false */
'use strict';
var ASSERT = require('assert'),
Q = require('q'),
QFS = require('q-io/fs'),
PATH = require('./path'),
FS = require('fs'),
VM = require('vm'),
UTIL = require('util'),
ENV = require('./env'),
MKDIRP = require('mkdirp'),
_ = require('lodash/di... |
'use babel';
import { ipcRenderer as Ipc } from 'electron';
import React, { Component, StyleSheet } from 'react';
import ReactDOM from 'react-dom';
import ReactDataGrid from 'react-data-grid';
import Dropdown from 'react-dropdown';
import DatePicker from 'react-datepicker';
import moment from 'moment';
import Tog... |
const {SVG_NS, pegmanElements} = require('./constants');
const drawMap = require('./drawMap');
const displayPegman = drawMap.displayPegman;
const getPegmanYForRow = drawMap.getPegmanYForRow;
const addNewPegman = drawMap.addNewPegman;
const timeoutList = require('./timeoutList');
const utils = require('./utils');
const ... |
var port = chrome.runtime.connect({ name: "main" }),
model = new Model(),
EWrap,
ENav,
ENavConnect,
ENavSelect,
ENavOptions,
ENavDelete,
EAlbums,
CurrentAlbum,
ECurrentAlbum,
EStatusBar,
EStatusBarLink,
NoImagesMessage = "You have no images in this album. You can drag and d... |
const express = require('express')
const app = express()
const port = parseInt(process.env.CHECK_PORT)
const axios = require('axios')
const { getTestMessageUrl } = require('nodemailer');
const log = require('./lib/log');
const db = require('./lib/sqlite_db');
const { web3, sleep, chainIds } = require('./lib/utils');... |
const {StringDecoder} = require('string_decoder');
const fs = require('fs');
const {Transform} = require('stream');
const {DOMParser} = require('@xmldom/xmldom');
const Archiver = require('archiver');
const unzip = require('unzipper');
const streamifier = require('streamifier');
const tmp = require('tmp');
const Stream... |
/* eslint-env mocha */
/* eslint-disable no-await-in-loop */
const Ganache = require('ganache-cli');
const { assert } = require('chai');
const { LPPCappedMilestone, LPPCappedMilestoneFactory } = require('../index');
const {
Kernel,
ACL,
LPVault,
LPFactory,
test,
LiquidPledgingState,
} = require('giveth-liqu... |
// wink-ner
// Language agnostic named entity recognizer
//
// Copyright (C) 2017-19 GRAYPE Systems Private Limited
//
// This file is part of “wink-ner”.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (t... |
//#include ../items/include/events.js
/* Shared instance manager objects are created to manage multiplayer games or any other activities which are:
* - Multiplayer
* - Repeatable
* - Globally shared
*
* Shared instance games differ from races in that they are repeatable and not mediated via a single player.
*... |
/*! LPS4.0 2016-12-19
*/
function checkPosition(e) {
var s = $(document.documentElement).scrollTop() || $(document.body).scrollTop();
s > e ? $(".toolbar-item-gotop").fadeIn() : $(".toolbar-item-gotop").fadeOut()
}
function Tips(e, s) {
e.wrap('<div class="tips-box"></div>').after('<span class="ti... |
'use strict';
// Plugins
const PeerConnectionStats = require('./plugins/PeerConnectionStats');
const log = require('loglevel');
log.setDefaultLevel('debug');
/**
* Genymotion player instance.
* Initialize a player for a specific instance
*/
module.exports = class GenymotionInstance {
/**
* Player instanc... |
/*This program based on the project: Memory Game
In this version has added next updates:
- was add a changes tile background color when mouse is hovered on the tile - done
- was add timer to the game - done
- was add buttons which change time left - done
- was add the possibility to chosen game mode single or ... |
var deviceReadyDeferred = $.Deferred();
var jqmReadyDeferred = $.Deferred();
var hours = {Sunday: "CLOSED", Monday: "CLOSED", Tuesday: "CLOSED", Wednesday: "9:00am - 6:00pm", Thursday: "9:00am - 6:00pm", Friday: "9:00am - 6:00pm", Saturday: '9:00am - 4:00pm'};
var fallbackhours = {Sunday: "CLOSED", Monday: "CLOSED", T... |
/**
* 工单详情
* Created by sufei on 2017/6/19.
*/
import React from 'react'
import './OrderDetail.scss'
import {
ButtonArea,
Button,
Input,
Cells,
Cell,
CellHeader,
CellBody,
CellFooter,
CellsTitle,
TextArea,
ActionSheet,
Dialog,
Tab,
NavBarItem,
Article,
... |
/**
* Copyright (c) 2014-2015 <NAME> <<EMAIL>>
*
* 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, mer... |
var itemMasterTable;
function populateGroup(currentVal) {
var groupDropdown = $("#input_item_group");
groupDropdown.empty();
var onResponse = function(response) {
for (var i = 0; i < response.data.groups.data.length; i++) {
const group = response.data.groups.d... |
let scene,
camera,
renderer,
orbitControls,
planeMesh,
canvasTexture,
isAutoLaunch = true;
const gravity = new THREE.Vector3(0, -0.005, 0);
const friction = 0.998;
const noise = new SimplexNoise();
const textureSize = 128.0;
const fireworksInstances = [];
let outputDom;
const getOffsetXYZ = i => {
const offse... |
var $graphic = $('#graphic');
var graphic_aspect_width = 3;
var graphic_aspect_height = 3.1;
var graphic_data_url = 'check2.csv';
var graphic_data;
var mobile_threshold = 540;
var pymChild = null;
var typeahead_init = false;
var is_mobile = false;
// svg objects
var area;
va... |
import Feels from 'feels'
import moment from 'moment-timezone'
import { i18n as $t } from '../translations/i18n'
import { scaleQuantize } from 'd3-scale'
import { getTimes, getPosition, getMoonPosition, getMoonIllumination } from 'suncalc'
import * as tzlookup from 'tz-lookup'
const celsiusToFahrenheit = (temp) => {
... |
/* 日志对话框模块 */
'use strict';
import * as Util from './Util';
import * as Dialog from './Dialog';
import {
read as readConfig,
write as writeConfig,
} from './Config';
import * as Log from './Log';
import * as Item from './Item';
import * as Read from './Read';
import * as Script from './Script';
/**
* 显示日志对话框
... |
// Wonders Tab
function refreshWonderBars(){
if(contains(resourcesUnlocked, "preciousWonderNav") === false){
if(gem >= 10000){
var preciousGem = 10000;
}
else{preciousGem = gem;}
if(silver >= 7500){
var preciousSilver = 7500;
}
else{preciousSilver = silver;}
if(gold >= 5000){
var preciousGold =... |
// ==UserScript==
// @name Tweak New Twitter
// @description Stay on the Latest Tweets timeline, reduce "engagement" and tone down some of Twitter's UI
// @namespace https://github.com/insin/tweak-new-twitter/
// @match https://twitter.com/*
// @match https://mobile.twitter.com/*
// @version 27... |
/*!
* ristretto.js - ristretto encoding for bcrypto
* Copyright (c) 2019, <NAME> (MIT License).
* https://github.com/bcoin-org/bcrypto
*
* Resources:
* https://ristretto.group
* https://datatracker.ietf.org/doc/draft-hdevalence-cfrg-ristretto
* https://git.zx2c4.com/goldilocks
* https://github.com/dale... |
import * as utils from "base/utils";
import Class from "base/class";
function _getQueryId(query, path, lastModified, readerName) {
return utils.hashCode([
query.select.key,
query.where,
query.from,
query.join,
query.dataset,
query.version,
query.language,
path,
lastModified,
... |
var marginScatter = { top: 50, right: 200, bottom: 50, left: 150 },
outerWidth = 1000,
outerHeight = 600,
width = outerWidth - marginScatter.left - marginScatter.right,
height = outerHeight - marginScatter.top - marginScatter.bottom;
var x = d3.scale.linear()
.range([0, width]).nice();
var y = d3.... |
'use strict';
const weekdays = ['mon', 'tue', 'wed', 'thu', 'fri', 'sat', 'sun'];
const openingHours = {
[weekdays[3]]: {
open: 12,
close: 22,
},
[weekdays[4]]: {
open: 11,
close: 23,
},
[weekdays[5]]: {
open: 0, // Open 24 hours
close: 24,
},
};
const restaurant = {
name: '<NAME... |
/* eslint-disable */
/**
* Created by hulingfangzi on 2018/7/3.
*/
import React, { Fragment, Component } from 'react';
import { inject, observer } from 'mobx-react';
import { Button, Tooltip, Tree, Input, Icon, Form, Row, Col, Select, Table, Spin, Modal } from 'choerodon-ui';
import { injectIntl, FormattedMessage } ... |
const fs = require("fs");
const Discord = require("discord.js");
const Decimal = require("decimal.js");
const microtime = require('microtime');
const D = Decimal;
const pickaxeEnum = require("./enums/pickaxe.js");
const displayModeEnum = require("./enums/displayMode.js");
const emojiList = require("./data/emojiList.j... |
/*
* Copyright (C) 2011 Atlas of Living Australia
* All Rights Reserved.
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (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.mozilla.org/MPL/
... |
const suncalc = require('suncalc'),
moment = require('moment'),
packageJSON = require("../package.json"),
path = require('path'),
holidays = require('date-holidays'), //https://www.npmjs.com/package/date-holidays#supported-countries-states-regions
ical = require('./iCal.js'),
w... |
queue() //asynchronous call back, when all data loaded , continue to call make graphs
.defer(d3.json, "/first1/projects")
.defer(d3.json, "/static/geojson/us-states.json")
.await(makeGraphs);
function makeGraphs(error, projectsJson, statesJson) { //pass db.proejcts and us-states to function
var... |
var jsgui = require('lang-mini');
//var Evented_Class = require('./_evented-class');
//var Data_Structures = require('./jsgui-data-structures');
var Data_Value = require('./data-value');
//var Constraint = require('./constraint');
//var Fields_Collection = require('./fields-collection');
//var Collection = re... |
/*!
* Contentstack Import
* Copyright (c) 2019 Contentstack LLC
* MIT Licensed
*/
var Promise = require('bluebird');
var fs = require('fs');
var path = require('path');
var _ = require('lodash');
var mkdirp = require('mkdirp');
var chalk = require('chalk');
var request = require('../util/request');
var helper = re... |
import { useState, useCallback, useEffect, useMemo } from 'react';
import { InputGroup, InputGroupAddon, Button } from 'reactstrap';
import { FontAwesomeIcon as Icon } from '@fortawesome/react-fontawesome';
import { faClipboard, faLink, faAtom } from '@fortawesome/free-solid-svg-icons';
import ConditionalWrapper from '... |
'use strict';
'require view';
'require poll';
'require fs';
'require ui';
'require dom';
'require tools.firewall as fwtool';
var expr_translations = {
'meta.iifname': _('Ingress device name', 'nft meta iifname'),
'meta.oifname': _('Egress device name', 'nft meta oifname'),
'meta.iif': _('Ingress device id', 'nft me... |
/* eslint
jsx-a11y/mouse-events-have-key-events: 0,
jsx-a11y/no-noninteractive-element-interactions: 0,
jsx-a11y/click-events-have-key-events: 0 */
import React, { Component, Children, cloneElement } from 'react';
import PropTypes from 'prop-types';
import nth from 'lodash.nth';
import merge from 'lodash.merge';
... |
// SET RESPONSIVE FIGURE
function onGetRatio(val, width, height){
if (width) {
return val / width;
} else {
return val / height;
}
}
var _canvasWidth = window.innerWidth < 1920 ? Math.floor(window.innerWidth): 1920;
var _canvasHeight = window.innerWidth < 1920 ? Math.floor(window.innerWidth / 2.14) : 900... |
var d = document;
var l = window.location.href;
var f = l.substring(l.lastIndexOf('/') + 1);
var timer = false;
var flash_params = {
wmode: 'opaque',
menu: false,
allowFullscreen: "true",
scale: 'Scale'
};
var flashvars = {};
var lang = window.location.href.match(/\.com\/([a-z]{2})\//);
if (lang && la... |
import _ from 'lodash';
import $ from 'jquery';
import {MetricsPanelCtrl} from 'app/plugins/sdk';
import config from 'app/core/config';
import {transformDataToTable} from './transformers';
import {tablePanelEditor} from './editor';
import {columnOptionsTab} from './column_options';
import {TableRenderer} from './render... |
import { classes, keySignatures } from './chordConsts'
import addKeystrokes from './keystrokes'
import './utility.js'
import { randomArrayElement, randomObjectElement, randomSetElement, shuffle } from './utility'
import { LetterName, letterNamePosition } from './LetterName'
import { Clef } from './Clef'
import { Accide... |
const EventEmitter = require('events');
const crypto = require('crypto');
const needle = require('needle');
const uuid = require('uuid/v4');
const Cache = require('../cache');
const DebugLog = require('../debugPrint.js');
const sCache = Symbol('Cache');
const sBaseURL = Symbol('Base Couchbase URL');
const sChannel =... |
var table;
var delegadoYaExiste = false;
var GeneralTable = function () {
var initClientsSelection = function () {
// var table = $('#general_table');
table = $('#general_table');
// var delegadoYaExiste = false;
$.extend(true, $.fn.DataTable.TableTools.classes, {
"container": "btn... |
var _ = require('underscore');
var async = require('async');
var extend = require('extend');
var jsDiff = require('diff');
var wordwrap = require('wordwrap');
/**
* pages
* @augments Augments the apos object with methods which store and
* retrieve pages. A page is a MongoDB document
* with a title, a slug, and an ... |
$(function () {
var protocol = location.protocol;
var host = protocol + "//" + window.location.host;
var lastSegment = window.location.href.split("/").pop().replace("-", " ");
var url = window.location.href;
var uri = host;
uri = "http://localhost:9000";
// page is now ready, initialize the ... |
import React, {
useState,
useEffect,
useRef,
forwardRef,
useImperativeHandle,
} from "react";
import { Button, ButtonGroup } from "react-bootstrap";
import PropTypes from "prop-types";
import MDEditor from "@uiw/react-md-editor";
import rehypeSanitize from "rehype-sanitize";
import { selectNodeService } from... |
var isWhite ="";
if (window.location.href.indexOf("white")>0) isWhite = "white&";
var justclick = 0;
var getUrlParameter = function getUrlParameter(sParam) {
var sPageURL = decodeURIComponent(window.location.search.substring(1)),
sURLVariables = sPageURL.split('&'),
sParameterName,
i;
for (i = 0; i < sURLVaria... |
var React = require('react');
var createReactClass = require('create-react-class');
var ReactDOM = require('react-dom');
var Popover = require('react-awesome-popover');
var ClipboardJS = require('clipboard/dist/clipboard.min');
var TaskStateReadViewHtml = require('./TaskStateReadViewHtml.react');
var TaskColla... |
// (c) 2018, The Awesome Engineering Company, https://awesomeneg.com
"use strict";
const OS = require("os");
const Process = require("process");
const ChildProcess = require("child_process");
const AwesomeUtils = require("@awesomeeng/awesome-utils");
const LogLevel = require("./LogLevel");
const LogExtensions = requ... |
/*
Copyright 2017 Esri
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
d... |
var SceneService = (function () {
function SceneService() {
this.observerList = [];
this.list = new CommandList();
SceneService.count++;
if (SceneService.count > 1) {
throw "singleton!!!";
}
}
SceneService.getInstance = function () {
if (SceneServi... |
import Settings, {
AVAILABLE_THEMES,
DEFAULT_SETTINGS,
DOMAINS,
FALLBACK_UPLOADER,
METABAR_DISAPPEAR_TIMEOUT,
METABAR_OPAQUE_CLASS,
METADATA_SETTINGS_KEYS,
QUERY_CONTROL,
RATING_TAGS,
RESOLUTION_CAP,
SEARCH_SETTINGS_KEYS,
SIDEBAR_OPEN_CLASS,
} from './settings.js';
import csrfToken from './csrf-... |
'use strict'
import {
createDoubleFBO,
createFBO,
downloadURI,
framebufferToTexture,
generateColor,
getResolution,
getWebGLContext,
isMobile,
normalizeColor,
normalizeTexture,
resizeCanvas,
scaleByPixelRatio,
textureToCanvas,
updatePointerDownData,
updatePoint... |
/*
Sometimes some of the data loaded is an xml file.
We may want to extract data from the xml file and display it in the tree.
This function allows us to do so.
It is called when any input file changes. Use case is when geometry file is
loaded in Nektar++, want to display the boundary conditions.
Mark... |
/*-
* Copyright (c) 2018, 2022 Oracle and/or its affiliates. All rights reserved.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* https://oss.oracle.com/licenses/upl/
*/
'use strict';
const expect = require('chai').expect;
const assert = require('chai').assert;
const util = require('util... |
// NOAA HRRR
// https://rapidrefresh.noaa.gov/hrrr/
// TODO: calculate CRF
// https://www.cnblogs.com/lakeone/p/5436481.html
const axios = require('axios');
const path = require('path');
const { spawnSync, execFile } = require('child_process');
const moment = require('moment');
const cron = require('node-cron');
cons... |
var debug = true;
var cvt = {
o: ['', 'Arcane', 'Brute', 'Construct', 'Elder', 'Human', 'Stout'],
a: ['', 'Swords', 'Sorcery', 'Stealth']
};
var page = this;
var fPtrs = {
AP: null,
AC: null,
AS: null,
AI: null,
AA: null,
AW: null,
Using: null,
Mod: null,
get: function(hat){
var h = (hat === '... |
/*
Specify Dexie database
*/
var db = new Dexie("Freebike.SAGame");
db.version(5).stores({
answers: "++id, player_id, src, src_stop_time, query_id, box_id, query_started_realt, answer_latency, answer, target_id, target_type, target_x, target_y",
markers: "++id,real_t,marker_id,top,left,width,height,... |
var dateFormat = require('dateformat');
// Vue imports
var Vue = require('vue');
var SendBird = require("sendbird");
var Spinner = require("spin");
var Dropzone = require("dropzone");
var swal = require("sweetalert");
var bootstrapToggle = require("bootstrap-toggle");
var locationPicker = re... |
import JSZip from 'jszip';
import FileSaver from 'file-saver';
import moment from 'moment';
import { legacyGetMapFromParams, ApiType } from '@sentinel-hub/sentinelhub-js';
import { t } from 'ttag';
import copernicus from '../../EOBCommon/assets/copernicus.png';
import SHlogo from '../../EOBCommon/assets/shLogo.png';
i... |
var sessions = [];
var messageFormat = "utf8";
function Player(video) {
let instance;
let _settings;
let _video = video;
_video.onerror = function (error) {
console.error("Error " + JSON.stringify(error));
};
_video.addEventListener("timeupdate", handleTimeUpdate);
let _duration;
let _mediaSource;
... |
import Swup from "swup";
import SwupScrollPlugin from "@swup/scroll-plugin";
import SwupGtmPlugin from "@swup/gtm-plugin";
import SwupBodyClassPlugin from "@swup/body-class-plugin";
import SwupScriptsPlugin from "@swup/scripts-plugin";
import lazySizes from "lazysizes";
import "lazysizes/plugins/parent-fit/ls.parent-fi... |
/* jshint esversion: 6 */
/**
* a canvas inside a div, fitting the leftover space of the guis
* @namespace output
*/
import {
guiUtils,
CoordinateTransform,
MouseEvents,
keyboard,
ParamGui
}
from "./modules.js";
export const output = {};
// doing both canvas and div together simplifies things... |
// let NumberClass = require('bignumber.js')
// NumberClass.config({ DECIMAL_PLACES: 15, ROUNDING_MODE: BigNumber.ROUND_DOWN })
// let NumberClass = require('decimal.js')
/*
Base -illion (short scale)
Base -illion (long scale)
Value US, Canada and modern British (short scale)
Traditional British (long scale)
Traditiona... |
var sys = require('sys');
const VERSION = "1.15";
// Thrown by Parser in the event of a commandline error.
var CommandLineError = new Error('Command line error');
// Thrown by Parser if the user passes in '-h' or '--help'
var HelpNeeded = new Error('Help Needed');
// Thrown by Parser if the user passes in '-v' or... |
export const mockProduct1 = {
addon_items: [
{
category: 'bedroom',
delivery_type: 'K',
list_price: 49.99,
price: 49.99,
quantity: 2,
sku: '50222606',
title: 'Twin Bunkie Boards',
addon_required: true,
},
],
free_shipping: true,
variation_keys: [],
type:... |
import React, { Component } from 'react';
import { observer } from 'mobx-react';
import * as Tone from "tone";
import { store } from '../../../data/store.js';
import { randomId } from '../../../models/models.js';
import { audioBufferToWav, exportSong, renderSong, saveSong, toggleFullScreen } from '../../utils.js';
impo... |
"use strict";
/*
* Copyright (c) "Neo4j"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
*
* 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.apac... |
if(!"WebSocket" in window){
alert("WebSockets is not supported in this browser");
}
var cid = getCIDArg();
var roomAssignment = -1;
var canvas = document.getElementById("canvas");
var context = canvas.getContext("2d");
//Define the default tool to be a black pen, normal sized
var tool = {
type : "pen",
colo... |
const SerialPort = require('serialport')
const moment = require('moment')
const pjson = require('../package.json')
const cryptoNw = require('crypto')
const integracionesPinpad = require(`./lib/pinpad`).integraciones
const fs = require('fs-extra')
let openedPorts = {};
exports.cantidadLetra = (num, moneda) => {
nu... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
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.v... |
// Licensed Materials - Property of IBM
// (C) Copyright IBM Corp. 2018, 2018 All Rights Reserved
// IBM-Review-Requirement: Art30.3 marking
// Developed by <NAME> at Haifa Research Lab
const fs = require('fs');
const esprima = require('esprima');
const estraverse = require('estraverse');
const Function = require('../... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.DateTimeRangePicker = exports.momentFormat = exports.ModeEnum = void 0;
var _react = _interopRequireDefault(require("react"));
var _reactDotFragment = _interopRequireDefault(require("react-dot-fragment"));
var _moment = _interopR... |
/*
* Gruescript utilities
* by <NAME>
* http://versificator.itch.io/gruescript
*
* This is for utilites of the online editor that do not go in the
* exported game files (including the export function itself).
*
* released under the MIT Licence:
Copyright 2021 <NAME>
Permission is hereby granted, free of char... |
var $pagination = $('#activity_pagination'),
totalRecords = 0,
records = [],
displayRecords = [],
recPerPage = 10,
page = 1,
totalPages = 0;
$(document).ready(function() {
// active_pagination();
$('.table_activity, .footable').dataTable({
"paging": true,
"lengthChange"... |
console.log("script loaded");
let canvas = document.querySelector("#game-canvas");
/* Global Variables */
let context = canvas.getContext("2d");
let spriteSheet = "Images/invaders.gif";
let ded = " _____" + "\n" +
" / \\" + "\n" +
"| () () |" + "\n" +
" \\ ^ /" + "\n" +
" |||||" + "\n" +
" |||||" + "\n";
... |
var err_franchi = 0;
$(document).ready(function(){
var $editFrm = $('#access_edit');
var franchi_type = $("#franchi_type",$editFrm).val();
var franchi_name = $("#franchi_type option:selected",$editFrm).text();
var relation_id = '';
switch(franchi_type){
case '1':
relation_id = $("#country option:se... |
import React, {PureComponent} from 'react';
import {
StyleSheet,
RefreshControl,
ActivityIndicator,
TouchableWithoutFeedback,
View,
Image,
Text,
} from 'react-native';
import vStore from 'react-native-video-store';
import PureVideo from 'react-native-pure-video';
import {ViewPagerList} from 'react-native-... |
var API_URL = "http://logintolife.at/hlc-crapi.php?area=";
$.fn.preload = function() {
this.each(function(){
$('<img/>')[0].src = this;
});
}
function capitalizeFirstLetter(string) {
return string.charAt(0).toUpperCase() + string.slice(1);
}
String.prototype.parseURL = function() {
return this.replace... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
import React, { Component } from 'react'
import { Tab, Tabs, TabList, TabPanel } from 'react-tabs';
import "react-tabs/style/react-tabs.css";
import Overview from '../Overview/Overview';
import Hotspots from '../Hotspots/Hotspots';
import Complexity from '../Complexity/Complexity';
import Coupling from '../Coupling/Cou... |
var DaftarObj = function(
url_, formName_, cntdaftar_, cntsum_, cnthal_, elCurrPage_,
AfterHapus_, elJmlCek_)
{
this.elCurrPage = elCurrPage_;//'HalDefault'
this.formName = formName_; //'adminForm'
this.url = url_; //'index.php?Op='+KodeI+'&Pg=2',
this.load_que = { idprs: 0, daftarProses: new Array('l... |
/**
* requestAnimationFrame polyfill
*
* http://paulirish.com/2011/requestanimationframe-for-smart-animating/
* http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
* requestAnimationFrame polyfill by <NAME>. fixes from <NAME> and <NAME>
* requestAnimationFrame polyfill under M... |
let PgQuery = require('pg-query-parser');
// =========================================================
// =========================================================
// == DDL statements
// =========================================================
// =========================================================
//ideall... |
/* globals Stats, dat*/
import CamerasOrthographic from '../../src/cameras/cameras.orthographic';
import ControlsOrthographic from '../../src/controls/controls.trackballortho';
import HelpersLut from '../../src/helpers/helpers.lut';
import HelpersStack from '../../src/helpers/helpers.stack';
import LoadersVolume from ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.