text stringlengths 8.5k 48.7k |
|---|
/*
This module has the aim to apply the original actions, behaviours and styles contained in the
rash.js script.
*/
var jsdom = require('jsdom');
const fs = require('fs');
/*
This function prepares the acticle for reading. It is elaborated using rash.js
Starting from the html file this function creates a dom r... |
var CONFIG = require('app/common/config');
var SDK = require('app/sdk');
var UtilsEngine = require('app/common/utils/utils_engine');
var BaseSprite = require('app/view/nodes/BaseSprite');
var BaseLayer = require('app/view/layers/BaseLayer');
var Light = require('./Light');
var NodeFactory = require('app/view/helpers/N... |
//ke window resize
(function () {
paymentPadding();
$(window).resize(function () {
fnDelay(function () {
paymentPadding();
$(".calcCounter").remove();
var arr = (ke.rate == 0.65) ? [50000, 125000, 225000, 300000] : [50000, 400000, 700000, 1000000];
var padding = (ke.rate == 0.65) ? -1 : -2;
calcCount... |
import Vue from 'vue';
import Vuex from 'vuex';
import { retryOnErr } from './util';
import PromiseThrottle from 'promise-throttle';
import { del, set, get } from 'idb-keyval';
import { auth } from '../firebaseConfig';
Vue.use(Vuex);
// Throttle api requests to prevent rate-limiting
const promiseThrottle = new Promis... |
function showgoodsinfo(objid){
$('showdetail').style.display = 'none';
$('othermessage').style.display = 'none';
$('pricelist').style.display = 'none';
$('messagebox').style.display = 'none';
$('li_showdetail').className = '';
$('li_othermessage').className = '';
$('li_... |
/*
* Copyright (c) 2016, Two Sigma Open Source
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of... |
import React from 'react';
import _ from 'lodash';
import { shouldComponentUpdate } from 'react-immutable-render-mixin';
import { is, Map, List } from 'immutable';
import isUrl from 'is-url';
import editorConnectHelper from './connect';
import { connect, createProvider } from 'react-redux';
import { Block, KeyUtils }... |
const request = require('request');
const async = require('async');
// var placeInfoList = {};
function placeNameRecognition(inputSearchText, user_lat, user_lon, fk_place) {
var dbpediaSpotlightURL = `https://api.dbpedia-spotlight.org/en/annotate?text=${inputSearchText}`;
request({
method: "GET",
url: dbpediaSp... |
/* Copyright (C) Datar Cancer Genetics Limited - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* Written by <NAME>, November 2018
*/
$(document).ready(function(){
$('.select2').select2();
$('#supplier_list_pop_up').DataTable(... |
function wp_navbar_menub_stack(m_root)
{
this.element = [];
this.m_root = m_root;
}
function wp_navbar_menub(menubarid, navtree, options, styleOptions)
{
var me = this;
me.m_timeout = null;
me.showItem = function(e,bShow)
{
function doslowfadein()
{
e.m_opacity += bShow ? 10 : -10;
if( ( bShow && e.m... |
// a part has a namem, position x,y,z and rotation vector coordinates rx,ry,rz
class BasePart {
// construct me from the given parameters
constructor(name, x, y, z, rx, ry, rz, debug = false) {
this.name = name;
this.x = x;
this.y = y;
this.z = z;
this.rx = rx;
this.ry = ry;
this.rz = rz... |
/* Main interface logic for Multi Duet Web Monitoring and Control
*
* written by <NAME> (c) 2018
* inspired by <NAME>'s DWC
*
* licensed under the terms of the GPL v3
* see http://www.gnu.org/licenses/gpl-3.0.html
*/
// Truly Global Variables
printers = [];
printers[0] = {name: 'Example Printer'... |
/*
This script is usable in https://www.haxball.com/headless
Steps:
1) Copy this script
2) Go to the link, then press F12
3) Go to console if it's not already set, then paste
4) Enter
5) IF THIS TAB IS CLOSED THE ROOM WILL BE CLOSED TOO
*/
geo = {
"code": "eu",
"lat": 52.5192,
"lon": 13.4061
}
v... |
'use scrict';
var win = nw.Window.get();
setTimeout(function(){win.show();},300);
$(".WindowMinimize").click(function(){
win.minimize();
})
$(".WindowMaximize").click(function(){
win.maximize();
$(".WindowMaximize").css('display','none');
$(".WindowRestore").css('display','inline-block');
})
$(".WindowRestore").cli... |
const isArray = Array.isArray;
const extend = Object.assign;
const ConstantTypes = {
NOT_CONSTANT: 'NOT_CONSTANT',
CAN_SKIP_PATCH: 'CAN_SKIP_PATCH',
CAN_HOIST: 'CAN_HOIST',
CAN_STRINGIFY: 'CAN_STRINGIFY',
};
const ErrorCodes = {
ABRUPT_CLOSING_OF_EMPTY_COMMENT: 'ABRUPT_CLOSING_OF_EMPTY_COMMENT',
CDATA_IN_... |
/* --------------------
* livepack module
* serialize methods
* ------------------*/
'use strict';
// Imports
const {splitPoints} = require('../shared/internal.js'),
{createRecord} = require('./records.js'),
{
ENTRY_POINT, SYNC_SPLIT_POINT, ASYNC_SPLIT_POINT, COMMON_POINT, COMMON_SPLIT_POINT,
SPLIT_POINT_MAS... |
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
$(document).ready(function() {
loadConfirm();
if($('.js-single-select').length > 0 )
{
$('.js-single-select').select2();
}
if($('.js-multiple-select').length > 0 )
{
... |
// check these
// https://github.com/photonstorm/phaser3-examples/blob/master/public/assets/shaders/bundle.glsl.js
// https://labs.phaser.io/edit.html?src=src/display/shaders/shader%20test%206.js&v=3.23.0
// http://glslsandbox.com/
export const blur = `
#ifdef GL_ES
precision mediump float;
#endif
const float pi = at... |
#!/usr/bin/env node
const fs = require('fs')
const path = require('path')
const http = require('http')
const https = require('https')
const express = require('express')
const cookie_parser = require('cookie-parser')
const cookie_session = require('cookie-session')
const { Request, Response, NextFunction } = require('e... |
let animations = [];
let visualize_everything = function(data_json, canvas_id) {
String.prototype.format = function () {
let args = arguments;
return this.replace(/{(\d+)}/g, function (match, number) {
return typeof args[number] !== 'undefined'
? args[number]
... |
/*Functions need refactoring.
On drop, regenerate sections, rows, columns, elements so that indicators display
When dynamically generating content in the sidebar, make sure the current HTML in each variable is correct. This can be fixed by seperating functions
- There's an issue where the variable for the dynamic conte... |
/**
* Created with JetBrains WebStorm.
* User: grahamclapham
* Date: 04/04/2013
* Time: 15:07
* To change this template use File | Settings | File Templates.
*/
function LineFillChart(targ, dataArray, config){
var scope = {
model:{
dataArray:dataArray,
d:null,
w:753... |
// Start enchant.js
enchant();
var moveSpeed = 5;
var scene ;
var playerSheetPath = 'res/playerSheet.png';
var enemy1SheetPath = 'res/enemy1Sheet.png';
var enemy2SheetPath = 'res/enemy2Sheet.png';
var enemy3SheetPath = 'res/enemy3Sheet.png';
var enemy4SheetPath = 'res/enemy4Sheet.png';
var projectileSheetPath = 're... |
var page_current = 1;
var page_total;
var move_nxt;
jQuery.fn.extend({
loadProducts: function (options){
options = (options !== undefined) ? options : {};
var _this = this;
_this.xhr = false;
_this.searchTerm = '';
_this.currentPage = 1;
_this.totalPages = 0;... |
const { Base: MatterBase } = require('../base')
const { getDeepValue } = require('../../../tms/utilities')
// const GroupRecord = require('../../../models/matter/group/record')()
// const Groupteam = require('../../../models/matter/group/team')
class Record extends MatterBase {
constructor({ db, debug = false } = {}... |
import {Pool} from './pool.js'
import {Undo} from './undo.js'
import {INTERSECTED, CONTAINED, NOT_INTERSECTED} from './framework/three-mesh-bvh.js'
const Color = require('color')
export const MAP_FROM_FILENAME = {
'aoMap': [/AmbientOcclusion(Map)?/i, /(\b|_)AO(map)?(\b|_)/i],
'displacementMap': [/(\b|_)Disp(laceme... |
let first_load = true
let mobile = window.outerWidth < 1000
let sidebar = document.querySelector(".cloud-sidebar")
let cloud_main = document.querySelector(".cloud-main")
let path_view = document.querySelector(".path-view")
let load_progress = path_view.querySelector(".progress .progress-bar")
let path_view_list = docu... |
/*
* Copyright (c) 2011 <NAME> <<EMAIL>>
* MIT Licensed
*/
var Buffer = require('buffer').Buffer
, Stream = require('stream');
var expat = require('node-expat'),
inherits = require('util').inherits,
http = require('./http'),
fs = require('fs'),
url = require('url'),
assert = require('assert'... |
'use strict';
const AWS = require('aws-sdk');
const db = new AWS.DynamoDB.DocumentClient({region: "eu-central-1"});
const PNF = require('google-libphonenumber').PhoneNumberFormat;
const phoneUtil = require('google-libphonenumber').PhoneNumberUtil.getInstance();
const Mpesa = require('mpesa-node');
const mpesaApi = new... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _isFunction2 = _interopRequireDefault(require("lodash/isFunction"));
var _react = _interopRequireWildcard(require("react"));
var _classnames = _interopRequireDefault(require("classnames"));
var _ShallowE... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Tree = undefined;
var _defineProperty2 = require('babel-runtime/helpers/defineProperty');
var _defineProperty3 = _interopRequireDefault(_defineProperty2);
var _toConsumableArray2 = require('babel-runtime/helpers/toConsumableArray... |
/* eslint-disable no-console, react/sort-comp */
import React, { Component } from 'react';
import stringSimilarity from 'string-similarity';
import whatkey from 'whatkey';
import isEqual from 'lodash.isequal';
import { ThemeProvider } from 'styled-components';
import { handleLogging } from '../../utils';
import {
Ter... |
var express = require('express');
var router = express.Router();
var cheerio = require('cheerio');
var superagent = require('superagent');
// for test
var topics_data =
[
{
"id": "581026cceae2a24f34e67f0a",
"author_id": "3118295?v=3&s=120",
"author_name": "i5ting",
"author_avatar_... |
/*! Datatables altEditor 1.0
*/
/**
* @summary altEditor
* @description Lightweight editor for DataTables
* @version 1.0
* @file dataTables.editor.lite.js
* @author kingkode (www.kingkode.com)
* @contact www.kingkode.com/contact
* @copyright Copyright 2016 Kingkode
*
* This source fi... |
"use strict";
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 ("value" in descriptor) descriptor.writable = true; Object.defineProp... |
window.dqdt = window.dqdt || {};
dqdt.init = function () {
dqdt.showPopup();
dqdt.hidePopup();
};
/********************************************************
# Quickview
********************************************************/
initQuickView();
var product = {};
var currentLinkQuickVi... |
function setStatus(msg) {
let status = document.getElementById('status');
status.innerText = msg;
}
function date(s) {
const d = Date.parse(s);
if (isNaN(d)) {
return 0;
}
return d;
}
function stateString(issue) {
let str;
if (issue.pr) {
switch (issue.state) {
case 'MERGED':
str =... |
/* Decimal Scores for MyAnimeList
Copyright (C) 2014 <NAME> <<EMAIL>>
Distributed under the terms of the MIT License. See the LICENSE file for
details.
*/
/* -------------------------------- Globals -------------------------------- */
var MAX_BUCKETS = 256;
var LOADING_IMG = '<img src="http://cdn.myanimelis... |
/**
* LMS-Material
*
* Copyright (c) 2018-2020 <NAME> <<EMAIL>>
* MIT license.
*/
'use strict';
const FULLSCREEN_DIALOGS = new Set(["uisettings", "playersettings", "info", "iframe", "manage"]);
var lmsNumVisibleMenus = 0;
function copyPlayer(p){
return {id:p.id, name:p.name, isgroup:p.isgroup, model:p.model... |
/**
* Class Finder
* - Obrigatório a instância Table.
*
* @author <NAME>
* @package app.Core.Orm.Behavior
*/
'use strict'
/**
* Mantém as funções de pesquisa de uma table.
*/
const Behavior = require (CORE + '/orm/behavior/behavior')
class Finder extends Behavior {
/**
* Função para testar o behavi... |
/**
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/2815083
* @preserve
**/
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
function _nonIterabl... |
/**
* DEXXED java script functions!
*/
//Some Global variables..
var currentToken = {};
var dexcontract = "LET owner = PREVSTATE ( 0 ) IF SIGNEDBY ( owner ) THEN RETURN TRUE ENDIF LET address = PREVSTATE ( 1 ) LET token = PREVSTATE ( 2 ) LET amount = PREVSTATE ( 3 ) RETURN VERIFYOUT ( @INPUT address amount token )"... |
// -*- Mode: js2; tab-width: 2; indent-tabs-mode: nil; js2-basic-offset: 2; js2-skip-preprocessor-directives: t; -*-
/* 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 http://mozilla.org/MPL/2.0/. *... |
/*
* eGov suite of products aim to improve the internal efficiency,transparency,
* accountability and the service delivery of the government organizations.
*
* Copyright (C) <2017> eGovernments Foundation
*
* The updated version of eGov suite of products as by eGovernments Foundation
* is... |
$(document).on("ready", inicio);
function evento(e) {
e.preventDefault();
}
function scrollToBottom() {
$('html, body').animate({
scrollTop: $(document).height()
}, 'slow');
}
function scrollToTop() {
$('html, body').animate({
scrollTop: 0
}, 'slow');
}
$(function() {
$('#main... |
const mustache = require('mustache');
const i18n = require('./lib/i18n.js');
const botmgr = require('node-red-viseo-bot-manager');
const helper = require('node-red-viseo-helper');
const inputFactory = require('./input-factory.js');
const CARD_CONST = require('./constants.js');
require('./lib/i18n.js').init();
... |
var mongoose = require('mongoose');
const axios = require("axios");
const WebSocket = require("ws");
let price = require('../tools/price')
let Market = mongoose.model('Market');
var Block = mongoose.model('Block');
var Transaction = mongoose.model('Transaction');
var Account = mongoose.model('Account');
let ActiveAddre... |
/**
* Configuration show functions to be exported from the design doc.
*/
var _ = require('underscore'),
_s = require('underscore-string'),
showdown = require('showdown'),
sd = new showdown.converter(),
events = require('duality/events'),
templates = require('duality/templates'),
utils = requi... |
/*
Copyright 2011 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distri... |
class GroupStackBar {
constructor(obj){
// console.clear();
//console.log('hereffff');
this.d = obj.d; // the data
this.e = obj.e; // selector element
this.k = obj.k; // key
//console.log(typeof this.k);
this.ks = obj.ks;
this.xV = obj.xV; // x value
... |
const axios = require('axios').default;
const { response } = require('express');
const Webhook = require("../data/repositories/webhookRepository");
const Config = require("../data/repositories/configRepository");
module.exports = app => {
const controller = {};
controller.home = async (req, res) => {
console.... |
// Modified Date: 11/30/1999
// Modified By: <NAME>
// Notes: Added frameset support (changed reference for "newWin" to "top.newWin")
// Also changed Spanish "March" from "Marcha" to "Marzo"
// Fixed JavaScript Date Anomaly affecting days > 28
//
// Modified by Crystal Decisions
// Removed large amou... |
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import * as React from 'react';
import clsx from 'clsx';
import PropTypes from 'prop-types';
import... |
//for more info please refer to docs >> changes >> fontawesome
var ace_icon = 'ace-icon ';
//the icon class to be used. For more info please refer to docs, "icons" section
var old_icons_1 = [
"icons-ul",
"icon-large",
"icon-fixed-width",
"icon-li",
"icon-muted",
"icon-light",
"icon-dark",
"icon-border",
"ico... |
/**
* The test runner for trading on Dexalot exchange
*/
const { expect, assert } = require("chai");
const { ethers, upgrades } = require("hardhat");
require("@nomiclabs/hardhat-ethers");
const BigNumber = require('bignumber.js');
const Utils = require('./utils.js');
const MockTokenAbi = require('../artifacts/c... |
/**
* Created by acastillo on 8/5/15.
*/
var Matrix = require("ml-matrix");
var math = require("./algebra");
var DEBUG = false;
/** <NAME> curve-fitting: minimize sum of weighted squared residuals
---------- INPUT VARIABLES -----------
func = function of n independent variables, 't', and m parameters, 'p',
r... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var React = require('react');
var React__default = _interopDefault(React);
var spacer = (function (times, tabStop) {
if (t... |
/*
* Copyright (c) 2020-present unTill Pro, Ltd.
*/
export const LANGUAGES = {
'0000': {
culture: '',
name: 'English (Default)',
id: '0000',
iso_code: ''
},
'0436': {
culture: 'af-ZA',
name: 'Afrikaans',
id: '0436',
iso_code: 'AFK'
},
... |
/*
* Copyright (C) 2011 Google Inc. All rights reserved.
* Copyright (C) 2016 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retai... |
/*jslint browser: true, devel: true */
/**
=head1 Accessions.js
Dialogs for managing accessions
=head1 AUTHOR
<NAME> <<EMAIL>>
=cut
*/
var $j = jQuery.noConflict();
var list = new CXGN.List();
var accessionList;
var accession_list_id;
var validSpecies;
var fuzzyResponse;
var fullParsedData;
var infoToAdd;
var a... |
/* eslint no-console:0 */
import React from 'react';
import classNames from 'classnames';
import {
loopAllChildren,
isInclude,
getOffset,
filterParentPosition,
handleCheckState,
getCheck,
getStrictlyValue,
arraysEqual,
closest
} from './util';
import PropTypes from 'prop-types';
import { KeyCode } fr... |
'use strict';
const path = require('path');
const _ = require('lodash');
const Pattern = require('./object_factory').Pattern;
const logger = require('./log');
const uikitExcludePattern = require('./uikitExcludePattern');
// these are mocked in unit tests, so let them be overridden
let render = require('./render'); /... |
"use strict";
var clientcommands = require('./clientcommands.js');
var errno = require('errno');
var logger = require('./logger.js');
var mode = require('./mode.js');
var moment = require('moment');
var net = require('net');
var tls = require('tls');
var users = require('./users.js');
var utils = require('./utils.js')... |
let rankerTemplate = {
accountId: 0,
username: "",
rank: 0,
points: new Decimal(0),
power: new Decimal(0),
bias: 0,
multiplier: 0,
you: false,
growing: true,
timesAsshole: 0,
grapes: new Decimal(0), // only shows the actual Number on yourRanker
vinegar: new Decim... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RegisterServerManager = exports.RegisterServerManagerStatus = void 0;
/**
* @module node-opcua-server
*/
// tslint:disable:no-console
const events_1 = require("events");
const async = require("async");
const chalk = require("chalk");... |
/*********************************************************************************
* The MIT License (MIT) *
* *
* Copyright (c) 2017 KMi, The Open University UK ... |
// Copyright 2020 The Google Research Authors.
//
// 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... |
/**** SELECTION OF "ALL" THE HTML ELEMENTS******/
let titelFilter = document.querySelector(".titel-filter");
let gridContainer = document.querySelector(".grid-container");
let closeX = document.querySelector(".close-div");
let modalContainer = document.querySelector(".modal-container");
let modalBody ... |
var common={
slowAds:[],
init:function(){
var banTouchmove=function(e){
e.preventDefault();
return false;
}
//$('#myContainer')[0].addEventListener('touchmove', banTouchmove, false);
document.addEventListener('touchmove', banTouchmove, false);
//$('#myMain')[0].addEventListener('touchmove', banTouchmo... |
// Copyright 2021 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, softwar... |
"use strict";
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enu... |
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 _createClass = function () { function defineProperties (t... |
function noop() { }
function run(fn) {
return fn();
}
function blank_object() {
return Object.create(null);
}
function run_all(fns) {
fns.forEach(run);
}
function is_function(thing) {
return typeof thing === 'function';
}
function safe_not_equal(a, b) {
return a != a ? b == b : a !== b || ((a && typ... |
///////////// MCIS Handling //////////////
// 등록 form으로 이동
function createNewMcis(){// Manage_MCIS_Life_Cycle_popup.html
var targetUrl = "/operation/manage" + "/mcis/regform"
// location.href = "/Manage/MCIS/reg"
// $('#loadingContainer').show();
// location.href = url;
changePage(targetUrl)
}
// ... |
$('.repeater-default').repeater({
show: function () {
$(this).slideDown();
},
});
$(document).ready(function() {
$.ajaxSetup({
headers : {
'X-CSRF-TOKEN' : $('meta[name="csrf-token"]').attr('content')
}
});
var table =$('#dt-Etapas').DataTable({
dom : "<'row'<'col-sm-3'l><'col-sm-6'f>>" +
"<'row'<'... |
const vscode = require('vscode')
const quickPick = vscode.window.createQuickPick()
quickPick.canSelectMany = false
quickPick.matchOnDescription = true
quickPick.matchOnDetail = true
quickPick.onDidAccept(() => {
let item = quickPick.selectedItems[0]
if (typeof item.action === 'function' && !quickPick.busy) {
quic... |
// GLOBAL FUNCTIONS SECTION BEGIN *******************************************************************************************************
function converToMinutes(s) {
var c = s.split(':');
return parseInt(c[0]) * 60 + parseInt(c[1]);
}
// when hour is in format like this
// 12:3 it converts this time to 12:3... |
import React from 'react';
import {
StyleSheet,
View,
Image,
Dimensions,
TouchableOpacity,
Text,
Platform,
Modal,
TouchableWithoutFeedback,
StatusBar,
Linking,
} from 'react-native';
import { Icon, Button, Header } from 'react-native-elements';
import Polyline from '@mapbo... |
/* ----------------------------------------------
Items page
---------------------------------------------- */
const ITEM_WIDTH = 100, ITEM_HEIGHT = 150;
var gItemsList;
///////////////////////////////////////////////////////////////////////////////////////////////////
async function getOneItemData(elItem) {
return ... |
// <NAME> <<EMAIL>>
"use strict";
// modules
const assert = require('../../assert.js');
const PackedArray = require('../../ds/packedarray.js');
const { F32, U16, U32 } = PackedArray;
// constants -----------------------------------------------------------------
// orientations
const CCW = 1;
const CW = -1;
const... |
import React, {Component, PropTypes} from 'react';
import ReactDOM from 'react-dom';
import {
Icon,
Row,
Col,
Button,
Table,
FormControl,
FormGroup,
Label,
Message,
Select,
Popconfirm
} from 'tinper-bee';
import Checkbox from 'rc-checkbox';
import {success, warn,err} from 'components/message-uti... |
import * as R from '../ts/render.ts';
import * as ROOM from '../ts/room.ts';
import { Camera } from '../ts/camera.ts';
import * as INPUT from '../ts/input.ts';
import { lerp, interlace_n, gaussian_kernel_1d, EPSILON } from '../ts/utils.ts';
import * as S from '../ts/settings.ts';
import * as M from './gl-matrix.js';
im... |
/**
* @Dialog.js
* @author zhangxinxu
* @version
* @created 15-06-18
* @edited 19-11-01
* @edited 20-06-26 @ziven27
* @edited 20-12-01 by zhangxinxu method extends from <dialog>
*/
const Dialog = (() => {
// 类名前缀
const DIALOG = 'dialog';
// 处理类名
const CL = {
add: (...arg) => `ui-$... |
// Old Countdown.js code before refactoring, simplification, and clean up.
function Countdown(seedDate, loopTime, loopUnit, loopLimit, delayTime, delayUnit, dateFormat, dateLabels, separators) {
const oneYear = 31536000000,
oneMonth = oneYear / 12,
oneDay = oneYear / 365;
const oneHour = 360000... |
/*
* Copyright 2016 Palantir Technologies, Inc. All rights reserved.
*
* 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 req... |
// Copyright (c) 2017 The Magnet developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
String.prototype.replaceAll = function (search, replacement) {
var target = this;
return target.split(search).join(replacement)... |
/*
* The test participant class.
*
* @author <NAME> <@frozeman>, <NAME> <<EMAIL>>
*/
const helpers = setup.helpers;
const BN = helpers.BN;
const MAX_UINT256 = helpers.MAX_UINT256;
const expect = helpers.expect
const Actor = require("./actorBase.js");
class Participant extends Actor {
// set the defaults
... |
import React, { Component } from "react"; //'preact-compat';
import { connect } from "react-redux"; //'preact-redux';
import { doneLoadingJson } from "../../actions/actions.js"; // action creators
import L from "leaflet";
import "leaflet-dvf";
import { basemapLayer } from "esri-leaflet"; // old: , tiledMapLayer
import ... |
import React from 'react';
import loadScript from 'load-script';
import { kebabCase, isEmpty, isFunction } from 'lodash';
import qs from 'querystring';
import { Modal, Upload, Button, Icon, Spin } from 'hzero-ui';
import { Bind } from 'lodash-decorators';
import isAbsoluteUrl from 'is-absolute-url';
import intl from 'u... |
"use strict";
var Monitor = function () {
this.init();
};
Monitor.prototype = {
collectorEndpoint: bhw_ajax_endpoint,
isOpera: !! window.opera || navigator.userAgent.indexOf(" OPR/")>= 0,
isFirefox: typeof InstallTrigger !== "undefined", // Firefox 1.0+
isSafari: Object.prototype.toString.call(window.HTMLE... |
/**
* Simple Javascript Image Viewer
Copyright (C) 2010 <NAME>
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 l... |
const BrowserWindow = require('electron').BrowserWindow;
// use 'extend' because 'Object.assign' doesn't work for deep copy
const extend = require('extend');
const templateData = {
schedulerScript : `
// 调度器
let progressScheduler = {
ANIMATION_FRAME_TIMEOUT: 100,
rAFID: -1,
rAFTimeoutID: -1,
requestAnimatio... |
// 0x070210E0 - 0x070210F8
import {
gdSPDefLights1, gsDPSetTextureImage, gsDPLoadSync, gsDPLoadBlock, gsSPLight, gsSPVertex,
gsSP2Triangles, gsSPEndDisplayList, gsSP1Triangle, gsDPPipeSync, gsDPSetCycleType,
gsDPSetRenderMode, gsDPSetDepthSource, gsDPSetFogColor, gsSPFogPosition, gsSPSetGeometryMode,
g... |
//chamar pela proxima senha em espera
function chamar_senha(ws){
var strURL = '/chamar';
$.ajax({type: 'POST', url: strURL, data: $('#erpForm').serialize()
}).done(function(r) {
get_servicoAtendimento(ws, r);
}).fail(function(r){
showMSG('warning', "Actualmente não te... |
// TODO move to separate file
// ------------------------ Imported Third-Party Scripts ----------------------------
/*! sprintf-js v1.1.2 | Copyright (c) 2007-present, <NAME> <<EMAIL>> | BSD-3-Clause */
!function () {
"use strict";
var g = {
not_string: /[^s]/,
not_bool: /[^t]/,
not_typ... |
// Formatting like it's 1998....
// javascript is not our strength. If you'd like to help or have any suggestions how to improve the code, we want to hear from you. Please contact us on facebook.
var unique = 1;
function icoUrl(ico) {
return "http://www.finstat.sk/" + ico;
}
function openTabLink(is_map_view, url, ... |
//从http://www.okooo.com/soccer/match/610101/history/ 开始获取数据,最小id 为 610101 开始,
var g_cache,
g_team,
g_layer_load_idx,
g_odds_time_flag,
g_id_start = {},
g_id_finish = {};
// const apiDomain = "http://172.16.17.32/api";
const apiDomain = "http://127.0.0.1:8080/api";
function safeHtml(d) {
retu... |
/**
* This file customer.js contains utility functions for Learning Pass.
*
* Copyright 2021 <NAME>, Edmonton Public Library
*
* 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
*
* ... |
import '@babel/polyfill';
import React from 'react';
import edgehandles from 'cytoscape-edgehandles';
import popper from 'cytoscape-popper';
import contextMenus from 'cytoscape-context-menus';
import 'cytoscape-context-menus/cytoscape-context-menus.css';
import compoundDragAndDrop from 'cytoscape-compound-drag-and-drop... |
import {
monitorHistoryData
} from '../../lib/api';
import {
formatTime,
formatNumber,
timestampToTime,
pointDistance,
getReverseGeocoder
} from '../../utils/util.js';
import {
ungzip
} from '../../utils/unzip.js';
import log from '../../utils/log';
const App = getApp();
let timer = null,
markerTimes =... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.