text stringlengths 8.5k 48.7k |
|---|
'use strict';
// Lisk v2, where I prematurely optimize literally everything.
const stack = Symbol('stack'), base = Symbol('base'), has = Symbol('has'), get = Symbol('get'), set = Symbol('set'),
// reason for using symbols is that the entire string namespace is reserved for environment variables.
// You can't save a... |
/*
CPEA-040-395
FLAB-075-236
FLAB076-SIP
RJOA-604
RJOA-600
RJOA-601
422
134
136
*/
//if(lista[i].innerHTML.match(/P/g)){
//armario : td3 / 4
//var res = str.substr(1, 4);
//td[6].innerHTML.replace(/^\s+|\s+$/g,"");
//td[4].innerHTML.indexOf('1A');
//ARMARIO: var teste2 = td[4].innerHTML.substr(54,55).replace(/^\s+... |
var developerKey = '<KEY>';
var CLIENT_ID = '786228898617.apps.googleusercontent.com';
var SCOPES = [
// 'https://www.googleapis.com/auth/photos',
'https://www.googleapis.com/auth/drive'];
var pickerApiLoaded = false;
var USER_ID = "";
var oauthToken;
var currentIsBackgroundEditorMode = false;
var host = 'http://me... |
import EventDispatcher from '../classes/eventDispatcher.js'
import Soldier from '../classes/soldier.js'
import SoldierFactory from '../classes/soldierFactory.js'
import ShipMaps from '../classes/shipMaps.js'
import Pathfinder from '../classes/pathfinder.js'
import FovShadow from '../classes/fovShadow.js'
import S... |
/*
* Copyright 2020, Yahoo Inc.
* Licensed under the terms of the Apache License, Version 2.0.
* See the LICENSE file associated with the project for terms.
*/
import { A } from '@ember/array';
import EmberObject from '@ember/object';
import { isNone, isEqual } from '@ember/utils';
import isEmpty from 'bullet-ui... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var chronoshift_1 = require("chronoshift");
var immutable_1 = require("immutable");
var immutable_class_1 = require("immutable-class");
var plywood_1 = require("plywood");
var array_1 = require("../../utils/array/array");
var general_1 = requi... |
import { MaxBlock } from "babylonjs"
import { fudu} from './mesher'
import { makeairjelly} from './blockdef/airjelly'
import { makeflowerpot} from './blockdef/flowerpot'
import { makebed} from './blockdef/bed'
import { watertop} from './blockdef/watertop'
import { watersource} from './blockdef/watersource'
import { wa... |
const TestToken = artifacts.require("TestToken.sol");
const NetworkProxy = artifacts.require("KyberNetworkProxy.sol");
const KyberNetwork = artifacts.require("KyberNetwork.sol");
const FeeBurner = artifacts.require("FeeBurner.sol");
const ExpectedRate = artifacts.require("ExpectedRate.sol");
const OrderList = artifacts... |
/*
* Appcelerator Titanium Mobile
* Copyright (c) 2011-Present by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
/* eslint-env mocha */
/* globals OS_ANDROID, OS_IOS, OS_VERSION_MAJOR */
/* esl... |
const {EventEmitter} = require('events');
const {parentPort} = require('worker_threads');
const {Event} = require('./Event');
const symbols = require('./symbols');
const THREE = require('../lib/three-min.js');
const {
nativeWindow,
nativeOculusVR,
nativeOpenVR,
nativeOculusMobileVr,
nativeMl,
} = require('.... |
var page = 2;
var isTouch = "ontouchend" in document ? true : false;
var cwith = 480;
var rest = false;
var ismenuopen = false;
var isgameloaded = false;
var isplaying = false;
var reline = 0;
$.loadImages = function (imageArray, callback) {
var loadElements = new Array();
"string" == typeof imageArray && (ima... |
/*!
Parts of this algorithm are derived from Node.js (https://github.com/nodejs/node/blob/053aa6d213ea828fac89864df03890228831db7e/lib/internal/modules/esm/resolve.js)
License notice for Node.js
--------------------------
Copyright Node.js contributors. All rights reserved.
Permission is hereby ... |
$.fn.safekeypress = function (func, cfg) {
cfg = $.extend({
stopKeys: {
37: 1,
38: 1,
39: 1,
40: 1
}
}, cfg);
function isStopKey(evt) {
var isStop = (cfg.stopKeys[evt.keyCode] || (cfg.moreStopKeys && cfg.moreStopKeys[evt.k... |
"use strict"
const crypto = require("crypto");
const ed25519_1 = require("@stablelib/ed25519")
const sha512_1 = require("@stablelib/sha512");
const sha3_256 = require('js-sha3').sha3_256;
const base32 = require('rfc-3548-b32');
const {checkHashProof,doHashProof} = require("./hashWork.js");
const chekcsumstr = Buffer.... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const events_1 = require("events");
const worker_threads_1 = require("worker_threads");
const path_1 = r... |
var def_ncbs_iisc_week = ["07:15", "08:50", "11:30", "14:00", "16:15", "18:00", "18:30", "20:30", "22:00", "23:00"];
var def_ncbs_iisc_sunday = ["08:00", "10:00", "12:00", "14:00", "16:15", "17:45", "19:00", "19:30", "22:00", "23:30"];
var def_iisc_ncbs_week = ["08:15", "09:30", "12:30", "15:15", "17:00", "18:30", "19:... |
/**********************************************************************************
* shoutbox.js *
***********************************************************************************
* ... |
"use strict";
var TAU = Math.PI * 2;
// Compatibility for older Firefox and Opera versions.
if (window.requestAnimationFrame === undefined) {
window.requestAnimationFrame = function (handler) {
return setTimeout(handler, 1000 / 60);
}
window.cancleAnimationFrame = function (requestId) {
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Director = exports.MenuItemBuilder = void 0;
const core_1 = require("../../../core");
const react_1 = require("@fluentui/react");
const common_1 = require("./common");
const scale_editor_1 = require("../panels/scale_editor");
const flu... |
//二级页面分类的导航条效果
$(".two-level-page-category li").hover(function(){$(this).addClass("li_hover");
},function(){
$(this).removeClass("li_hover");
});
//二级页面分类图标的效果
function scroll_line(num){
$(".scroll_line").stop().animate({left:num*89+"px"},'fast');
};
function scroll_line_default(){
var index=getLineLeft(... |
'use strict';
/*
* Created with @ioBroker/create-adapter v1.34.1
*/
// The adapter-core module gives you access to the core ioBroker functions
// you need to create an adapter
const utils = require('@iobroker/adapter-core');
const stateAttr = require(`${__dirname}/lib/state_attr.js`); // Load attribute library
cons... |
// glasgow.js
// (c) <NAME>
// MIT license
const EMPTY_ARRAY = [];
const NON_TOP_EMPTY_CHILDREN = [];
const NON_TOP_EMPTY_NODE = {_c: NON_TOP_EMPTY_CHILDREN};
const NOT_HANDLED = {}; // constant that can be returned by event handlers
let instances = [];
let fetch = window.fetch ? window.fetch.bind(window) : null;
... |
import { parser, operationName, DocumentType, getApolloContext } from '@apollo/react-common';
export { ApolloConsumer, ApolloProvider, getApolloContext, resetApolloContext } from '@apollo/react-common';
import { __extends, __assign } from 'tslib';
import React, { useRef, useContext, useReducer, useEffect, useState } fr... |
var canvas;
var gl;
var NumVertices = 36;
var pointsArray = [];
var colorsArray = [];
var vertices = [
vec4( -0.2, -0.2, 0.2, 1.0 ),
vec4( -0.2, 0.2, 0.2, 1.0 ),
vec4( 0.2, 0.2, 0.2, 1.0 ),
vec4( 0.2, -0.2, 0.2, 1.0 ),
vec4( -0.2, -0.2, -0.2, 1.0 ),
vec4( -0.2, 0.2, -0.2, 1.0 ),
vec4( 0.2, 0.2, ... |
function parseRichText(a) {
var a=a
//Inline
.replace(/\*\*([^]*?)\*\*(?!\*)/g , '<span>**</span><b>$1</b><span>**</span>')
.replace(/__([^]*?)__(?!_)/g , '<span>__</span><u>$1</u><span>__</span>')
.replace(/--([^]*?)--/g , '<span>--</span><s>$1</s><span>--</spa... |
'use strict';
function formatLocal(utc) {
let dt = new Date(utc.getTime());
dt.setMinutes(dt.getMinutes() - dt.getTimezoneOffset());
let iso = dt.toISOString();
return iso.slice(0, 10) + ' ' + iso.slice(11, 19);
}
process.env.NODE_ENV = 'development'; // development production
const
path = require('path')... |
// Copyright (c) Microsoft. All rights reserved.
import "rxjs";
import { EMPTY, of, interval, scheduled } from "rxjs";
import dot from "dot-object";
import moment from "moment";
import { schema, normalize } from "normalizr";
import { createSelector } from "reselect";
import update from "immutability-helper";
import { ... |
// //load
$(document).ready(function()
{
// addSantri("TMI");
setTable();
$('.datepicker').datepicker(
{
rtl: App.isRTL(),
orientation: "left",
autoclose: true,
format: 'dd-mm-yyyy'
});
// $(".select2").select2({
// dropdownParent:$('#Modal_add_jadwal_pelajaran')
// });
$(".select2").select2();
$(... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _react = _interopRequireDefault(require("react"));
var _mssql = _interopRequireDefault(require("mssql"));
var _ErrorMessage = _interopRequireDefault(require("../ErrorMessage.js"));
var _MessageModal = _i... |
import clone from "lodash.clonedeep";
import objectPath from "object-path";
import { mixer } from "test-mixer";
import { det as det1, opts as defaults } from "../dist/detergent.esm.js";
const leftSingleQuote = "\u2018";
const rightSingleQuote = "\u2019";
const leftDoubleQuote = "\u201C";
const rightDoubleQuote = "\u20... |
const ORIGINAL_TITLE = document.title;
const MATH_JAX_CONFIG = {
tex2jax: {
inlineMath: [['${', '}']],
displayMath: [['\\[', '\\]'], ['[[[[[', ']]]]]']],
},
jax: ['input/TeX', 'output/CommonHTML'],
extensions: ['tex2jax.js', 'MathMenu.js', 'MathZoom.js', 'AssistiveMML.js', 'a11y/accessi... |
"use strict";
// https://tc39.github.io/ecma262/#sec-array.prototype.find
if (!Array.prototype.find) {
Object.defineProperty(Array.prototype, 'find', {
value: function(predicate) {
// 1. Let O be ? ToObject(this value).
if (this == null) {
throw new TypeError('"this" is null or not defined');
... |
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//
// Code for adventure game
//
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
window.LOOP_INTERVAL = 300;
const SCALE_FACTOR = 7;
const RM_SIZE = 10*SCALE_FACTOR;
const OCC_SIZE = 1*SCALE_FACTOR;
const O... |
import qcfeatures from "./qcfeatures.js"
import qcprograms from "./qcprograms.js"
import qcshare from "./qcshare.js"
import UTOOLS from "./utools.js"
import qctemplates from "./qctemplates.js"
import iconpicker from "./iconpicker.js"
// **************************************************
// *********************新建命令***... |
function UpdateTableHeaders() {
$(".sticky-header").each(function() {
var scrollTop = $(window).scrollTop();
var offset = $(this).offset();
var id = $(this).attr("id");
var clone = $("#"+id+"_clone");
var state = clone.css("display");
var coverHeight = $("#"+id... |
/*
Copyright (C) <NAME> 2021
Github: @ipaulpro/bitcloutplus
Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT).
*/
const DESO_PUBLIC_KEY_PREFIX = 'BC1YL'
let isRequestingNftEntries = false,
transferNftUnlockableText = null,
transferNftPostEntry = null,
transferNftOwn... |
// set up basic variables for app
var record = document.querySelector('.record');
var stop = document.querySelector('.stop');
var enableMic = document.querySelector('.enableMic');
var enableSynth = document.querySelector('.enableSynth');
var soundClips = document.querySelector('.sound-clips');
var canvas = document.que... |
import Immutable from 'immutable';
import {expandTreePath, expandTreeSubpath, getItemByPath, fixPathsInTree} from '../utils/treeUtils';
import {defaultRuleProperties, defaultGroupProperties, defaultOperator, defaultOperatorOptions, defaultRoot} from '../utils/defaultUtils';
import * as constants from '../constants';... |
// Node.js API.
const assert = require('assert')
// Exceptions that you can catch by type.
const Interrupt = require('interrupt')
// A helper class that will create a destructor object that will gather items
// that require destruction during an operation, but clear the items if the
// operation successfully complete... |
import React, { Component } from 'react'
import { Form, Input, Row, Col, Radio, Divider, Tooltip, Select, Modal, Button, InputNumber, message, Card, notification } from 'antd'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import moment from 'moment'
import { runnerType, shirtSize } f... |
var db = firebase
.initializeApp({
databaseURL: "https://space-czar.firebaseio.com/"
})
.database();
var realtimeRef = db.ref("realtime");
var forecastRef = db.ref("forecast");
var bookingsRef = db.ref("bookings");
var rtDiscRef = db.ref("realtimeDiscussion");
var userRef = db.ref("user");
var interval;
var... |
'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
exports.deactivate = exports.activate = void 0;
const vscode = require("vscode");
const ts = require("typescript");
const throttle = require("lodash.throttle");
// TODO Clean up defensive development guards (DEBUG, most try-catches, etc), as t... |
#!/usr/bin/env node
/**
* Spaceify language file, 2013 Spaceify Inc.
*
* Language: EN_US
*/
var SpaceifyError = require("./spaceifyerror");
var language =
{
/* ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ... |
/* ----------------------------------------------------------------
* AUTHOR: <NAME>
* FILE: localization.js
* DATE: 15/06/2020
* STATE: WIP
* ---------------------------------------------------------------- */
var arrLang = {
'en' : {
// Pages titles
... |
export const categories = [
{ label: "Abstracts", value: "abstracts", id: 0 },
{ label: "Accessories", value: "accessories", id: 1 },
{ label: "Acting", value: "acting", id: 2 },
{ label: "Activewear", value: "activewear", id: 3 },
{ label: "Actors", value: "actors", id: 4 },
{ label: "Adventure", value: "adventu... |
// const puppeteer = require('puppeteer');
const puppeteer = require('puppeteer-core');
const fs = require('fs');
const Store = require('electron-store');
const { ipcRenderer } = require('electron')
const schedule = require('node-schedule');
const XLSX = require('xlsx');
const moment = require('moment')
require('events... |
///<reference path="./Library/jquery.d.ts"/>
///<reference path="./Library/bootstrap.d.ts"/>
///<reference path="./Library/bootpag.d.ts"/>
/*
Author : <NAME>
Website : http://www.ashutoshnigam.com
Email : <EMAIL>
*/
var SortDirection;
(function (SortDirection) {
SortDirection[SortDirection["asc"] = 0... |
/**
* @license
* Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be f... |
'use strict';
/* eslint-disable
no-shadow,
no-undefined,
func-names
*/
const fs = require('fs');
const path = require('path');
const tls = require('tls');
const url = require('url');
const http = require('http');
const https = require('https');
const ip = require('ip');
const semver = require('semver');
const ki... |
"use strict";
var throughHamBurger = false;
(function ($, window, document, undefined) {
var pluginName = "metisMenu",
defaults = {
toggle: true,
doubleTapToGo: false
};
function Plugin(element, options) {
this.element = element;
this.settings = $.exte... |
//
// 3D frustum culling engine
//
// @author xeolabs / http://xeolabs.com
//
// Has a view matrix, projection matrix, viewport and
//
// This file is supposed to be loaded into a Web Worker, so everything's global
// and we're not bothering with name spaces etc.
//
var OUTSIDE_FRUSTUM = 0;
var INTERSECT_FRUSTUM = 1;... |
//Observable Functions
//Presented in order of call
import dayjs from "dayjs";
import { getWepTables } from "./wep-tables";
///////////////////
// Calculate PIA //
///////////////////
// PIA Main
async function getPIA(aime, dob, yearsSubstantialEarnings=null, isWEP=true) {
if (findBendPoints(dob) === undefined) {... |
//Live results
var path = 'http://code.boxfishbg.info/liveparser_hill/files/'; //basepath for result files
var assetspath = 'http://code.boxfishbg.info/assets/'; //basepath for assets
var stage = 1; //initial current stage value
var champ = 'all'; //initial championship
var group = ''; //initial class/group
var time ... |
// file: blclass_utf-8.js
// by littleflute
// 2017/11/17 3:31m bjt
function blClass ()
{
this.name = "blClass";
this.v = "v1.0.102";
function _uiDivMovable(id,x,y){
var idBody = id;
var idHead = id + "Header";
var main = _blDiv(document.body,idBody,"_"+id); ... |
/**
*
* KARS
* ----
* Survival driving game, created by <NAME> (<EMAIL>)
*/
var Colors = {
red:0xf25346,
white:0xd8d0d1,
brown:0x59332e,
pink:0xF5986E,
brownDark:0x23190f,
blue:0x68c3c0,
green:0x669900,
greenDark:0x496d01,
golden:0xff9900
};
/**
*
* STEP 0
* ------
* Copy car customization.... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = tslib_1.__importStar(require("react"));
var ReactDOM = tslib_1.__importStar(require("react-dom"));
var react_intl_1 = require("react-intl");
var add_1 = tslib_1.__importDefault(require("@atlaskit/ico... |
/*
** Sonnarr Extention
** Shows upcoming and missed episodes.
*/
var sonarr = {
settings : {
wanted : "api/wanted/missing?page=1&pageSize={wantedItems}&sortKey=airDateUtc&sortDir=desc&apikey={apikey}",
calendar : "api/calendar?page=1&sortKey=airDateUtc&sortDir=desc&start={calendarStartDate}&end={calendarE... |
var curPageUrl = document.URL;
var paramId = curPageUrl.split("#");
var includeInfant = false;
if (paramId[1] == "success") {
$(".notification-bar").addClass("notify-success");
setTimeout(function() {
$(".notification-bar").removeClass("notify-success")
}, 5000);
}
$(".close-not... |
'use strict';
/**
* Module dependencies
*/
// Core
const path = require('path');
// Public node modules.
const _ = require('lodash');
const bookshelf = require('bookshelf');
const pluralize = require('pluralize');
// Local helpers.
const utils = require('./utils/');
// Strapi helpers for models.
const utilsModel... |
/**
* @license
* Copyright 2016 Google Inc.
*
* 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, merge... |
import React, { useState, useEffect } from "react"
import { Row, Col, Button, ButtonToolbar, ButtonGroup, Tabs, Tab } from "react-bootstrap"
import Moment from "moment"
import { calculate, deleteFutureAllTransactions, trim, archiveRebalance } from "../libs/calculate"
import { Storage } from "aws-amplify"
import { AgGri... |
var spdy = require('../spdy');
var zlib = require('zlib');
var utils = spdy.utils;
var assert = require('assert');
var util = require('util');
var stream = require('stream');
var Buffer = require('buffer').Buffer;
var constants = spdy.protocol.constants;
if (!/^v(0\.10|0\.8|0\.9)\./.test(process.version))
var httpCo... |
/*
* @license
* Copyright 2018 <NAME> University
*
* 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... |
window.onload = init;
const fs = require('fs');
const path = require('path');
const mainPath = path.join(__dirname, '..', '..', 'Stream Tool', 'Resources', 'Texts');
const charPath = path.join(__dirname, '..', '..', 'Stream Tool', 'Resources', 'Characters');
//yes we all like global variables
let charP1 = "Random";
... |
// Copyright 2012 <NAME>, Inc. All rights reserved.
'use strict';
var http = require('http');
var sprintf = require('util').format;
var url = require('url');
var util = require('util');
var assert = require('assert-plus');
var mime = require('mime');
var errors = require('restify-errors');
var httpDate = require('... |
const dataTools = {
/**
* Merges two objects and returns the new one.
*
* var obj1 = {
* a: 1,
* conflicted: 10,
* obj: {
* c: 1
* }
* },
* obj2 = {
* b: 2,
* conflicted: 20,
* obj: {
* d: 2
* }
* ... |
var lix=2; // layer id of layer we'd like to draw outputs of
var prior_var_in // need to declare this globally
var noise_var_in
var reg_type_in
var lambda_w1, lambda_b1, lambda_w2, lambda_b2 // l2 regularisation coefficients
var tau_inv = 0.01; // = sigma^2
var N = 6; // orginally 20
var p = 0.; // turn off dropout
v... |
// set up calculator type
let calculatorType = "color";
// maximum lengths allowed because of screen size limitation
let
lineLength, rowLength, menuTitleLength, menuItemLength;
// minimum length required, no empty string
const minMenuItemLength = 1;
const newFolderBtn = document.getElementById("newFolderBtn");
cons... |
/* global module */
// load methods defined in mafia
const {
adv1,
autosell,
availableAmount,
cliExecute,
setProperty,
getProperty,
handlingChoice,
item,
location,
visitUrl,
runChoice,
print,
printHtml,
userConfirm,
wait
} = require('kolmafia');
const steps = {
/*
-------------------------------
... |
"use strict";
/// <reference path="./definitions/DefinitelyTyped/mongodb/mongodb.d.ts"/>
/// <reference path="./definitions/DefinitelyTyped/underscore/underscore.d.ts"/>
/// <reference path="./definitions/dummy-definitions/lastfm.d.ts"/>
/// <reference path="./definitions/typescript-node-definitions/winston.d.ts"/>
exp... |
// Initialization of html symbols
var symbols = new Array(255);
var symbols2 = new Array(255);
//========================================================
/* this table is based on the test/symbols.html file of MathML*/
symbols[0] = ' '
symbols[1] = ' '
symbols[2] = ' '
symbols[3] = ' '
symb... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _default;
var _deleteNearSelection = require("./deleteNearSelection.js");
var _commands = require("./commands.js");
var _document_data = require("../model/document_data.js");
var _dom = require("../util/dom.js");
var ... |
"use strict";
function _typeof(obj) { "@babel/helpers - typeof"; 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 && obj ... |
//=======================================================
// LICENCE
//=======================================================
/*
Copyright 2015 EMBL-EBI
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 Li... |
$(document).ready(function(){
$('[data-toggle-tooltip="tooltip"]').tooltip();
jQuery("#layout_skin_info").submit(function(e){
/*Form Submit*/
e.preventDefault();
var obj = jQuery(this), action = obj.attr('name');
jQuery('.save').prop('disabled', true);
jQuery.ajax({
type: "POST",
url: e.target.actio... |
// import { h, render, Component } from 'preact'
import React, { Component } from 'react'
// import CommandPalette from '../../sublime-command-palette/dist/index'
import CommandPalette from '@code-sketch/sublime-command-palette'
import '@code-sketch/sublime-command-palette/dist/index.css'
import CodeMirror from 'code... |
/**
* Created by chenrui on 2017/7/10.
*/
var e={'羊驼':'emo_01','神马':'emo_02','浮云':'emo_03','给力':'emo_04','围观':'emo_05','威武':'emo_06','熊猫':'emo_07','兔子':'emo_08','奥特曼':'emo_09','囧':'emo_10','互粉':'emo_11','礼物':'emo_12','微笑':'emo_13','嘻嘻':'emo_14','哈哈':'emo_15','可爱':'emo_16','可怜':'emo_17','抠鼻':'emo_18','吃惊':'emo_19',... |
/**
* Helpers and tools to ease your JavaScript day.
*
* @author <NAME>
*/
window.Cos = (function(window, document, undefined ) {
var Cos = {};
Cos.createCookie = function(name,value,days) {
if (days) {
var date = new Date();
date.setTime(date.getTime() + (days*24*60*60*1000));
var ... |
const cheerio = require('cheerio')
const axios = require('axios')
const request = require('request')
const fetch = require('node-fetch')
const qs = require("qs")
exports.xnxxdl = async (URL) => {
return new Promise((resolve, reject) => {
fetch(`${URL}`, {method: 'get'})
.then(res => res.text())
.then(res => ... |
$(document).ready(iniciar);
var codigoPed;
var foco;
var data;
var actualPed;
var actual;
var estado;
var pedido;
var actual;
var tabla;
var tb_pedido;
var tb_detalle;
function iniciar(){
tabla=$("#tb_pedidos").DataTable();
traducir();
tb_pedido=$("#tb_detallePed").DataTable();
tb_detalle=$("#tb_editarPed").DataTa... |
/* jshint esversion: 6 */
console.log('Bot starting...')
const appRoot = require("app-root-path");
const logDir = appRoot + "/log";
const myConfig = require("./config.json");
const express = require("express");
const http = require("http");
const jwt = require("jsonwebtoken");
const request = require("request");
cons... |
var bDebugging = true;
var bQuizCompleted = false;
var iCurrentQuestion = 0;
var iCorrectAnswers = 0;
var sAnswerChoiceList;
var iAllottedTime = 0;
var iSecondsLeft = 0;
var iPenaltySeconds = 5;
// Used to let the user know how much time remains:
var timeEl = document.querySelector("#timer-display");
var startBtn ... |
var disable_subaxis_hover;
var fixed_subaxis_pt;
var prev_x, prev_y, prev_z, prev_axes, prev_input;
var level_function;
var use_physical_resolution;
var axes = ["", ""], plot_axis;
var possible_parameters = ["redshift", "resolution", "area", "time", "nhi"];
var possible_plot_parameters = ["redshift", "resolution", "are... |
import pinyin from 'pinyin';
import unicode_symbols from 'unicode/category/So.js';
//import unorm from 'unorm';
import { unemojify, uslug_mode_transform } from './lib/uslug.js';
const removelist = [ 'sign', 'cross', 'of', 'symbol', 'staff', 'hand', 'black', 'white' ]
.map(function (word) {
return new Re... |
"use strict";
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
... |
import React, { Component } from "react";
import { withStyles } from "@material-ui/core/styles";
import { connect } from "react-redux";
import {
getProductDetails,
postReview,
deleteReview,
updateLikes,
clearReviewActions,
clearProduct,
} from "../../actions/product_actions";
import { addCartItem, clearCart... |
'use strict';
var DataQuery = require('../query/DataQuery');
var utils = require('../utils');
var offlineTransformations = require('./offlineTransformations');
var expandProcessor = require('../ExpandProcessor');
var platform = require('../everlive.platform');
var everliveErrorModule = require('../EverliveError');
va... |
/*
The "main.js" contains core JS component supporting the PERF-Analysis module.
This web application is developed with Semantic-ui frame work.
The charts are build using Apex-Chart js charting library.
All the data for the report is derived from analyse_data.js
data = { info: {SeqInfo: {}, RepInf... |
if ($("#datepicker-popup").length) {
$('#datepicker-popup').datepicker({
enableOnReadonly: true,
todayHighlight: true,
autoclose: true,
format: 'yyyy-mm-dd'
});
}
function addSeparator(nStr, inD = '.', outD = '.', sep = '.') {
nStr += '';
var dpos = nStr.indexOf(inD);
var nStrEnd = '';
if (dpos != -1... |
"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.definePrope... |
import net from 'net'
import {READER_COMMAND_WORD, NumberTurnBuf, handleUnIPBuffer, handleBuffer, parsingData, getCrc, powerData} from './reader_command_word.js'
import Logger from './Logger.js'
import Pusher from './Pusher.js'
import mysql from './MysqlWraper.js'
const fs = require('fs')
const path = require('path')
... |
/*******************************************************************************
*
* 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
*
*... |
/*
JSPWiki - a JSP-based WikiWiki clone.
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 Apa... |
"use strict";
// Copyright 2020 Google LLC
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law... |
let scale = 40;
let maxStep = 0.05;
let wobbleSpeed = 8;
let wobbleDist = 0.07;
let playerXSpeed = 7;
let gravity = 30;
let jumpSpeed = 14;
let gameSpeed = 1;
const arrowsMap = {
"playerUp": ["KeyW", "ArrowUp"],
"playerDown": ["KeyD", "ArrowDown"],
"playerLeft": ["KeyA", "ArrowLeft"],
"playerRight": ["K... |
import { ACTOR_EVENT_NAMES } from '@apify/consts';
import { cryptoRandomObjectId } from '@apify/utilities';
import ow, { ArgumentError } from 'ow';
import _ from 'underscore';
import { addTimeoutToPromise, tryCancel } from '@apify/timeout';
import AutoscaledPool from '../autoscaling/autoscaled_pool'; // eslint-disable-... |
/* Copyright (c) Royal Holloway, University of London | Contact <NAME> (<EMAIL>), <NAME> (<EMAIL>), or <NAME> (<EMAIL>) for details or support | LICENSE.md for license details */
import Log from "./Utilities/Log";
import ObjectHelper from "./Utilities/ObjectHelper";
import Coverage from "./Coverage";
import Config fr... |
'use strict'
const events = require('events');
const proc = require('child_process');
const pLimit = require('p-limit');
const onExit = require('signal-exit');
async function exec(cmd, args, cwd) {
const child = proc.spawn(cmd, args, { cwd, stdio: 'inherit' });
onExit(() => child.kill());
const [status] = await... |
/*
Copyright (c) 2012 <NAME> www.unverse.net
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, merge, publish... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.