text stringlengths 5.97k 41.2k |
|---|
import _regeneratorRuntime from "@babel/runtime/regenerator";
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
import _typeof from "@babel/runtime/helpers/esm/typeof";
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
import _createClass from "@babel/runtime/helpers/es... |
$(function() {
queryInfo();
});
function queryInfo(){
var goodsId=$("#goodsId").val();
var type=$("#type").val();
if(type==2||type=='2'){
exchangeGoods(goodsId,type)
}else{
exchangeCash(goodsId,type)
}
}
/**
* 兑换页面
*/
function exchangeGoods(id,type){
$("#goodsId").val("");
$("#daysLimit").val("");
... |
const db = require('../models');
const { saveAll } = require('../utils/promiseHelper');
const { updateModelVipLevel, getNodeById, getYesterdayRange, getWeekRange, getObjectIds, getDailyMinerBenefits, createCompleteTx } = require('../utils/common')
const { compose, map, get, flatten, compact, filter, memoize, sumBy, gro... |
import Automan from './automan'
import Monster from './monster'
import Bullet from './bullet'
import Cookie from './cookie'
import Level from './level'
let Stage = function () {
this.automan = new Automan()
this.level = 0
this.levelObj = new Level()
this.powerInter = null
this.monsterArr = []
this.monsterA... |
'use strict';
const { strict: assert } = require('assert');
const { compile } = require('..');
describe('compile', () => {
describe('async', () => {
it('should compare numbers', async () => {
assert(await compile('9 === 9')());
assert(!await compile('9 === 8')());
assert(await compile('9 > 8')... |
'use strict';
// URL config:
var BPMN_EDITOR_URL = 'https://broton.sc-hub.de/bpmnjs',
CAMUNDA_REST_URL = 'https://broton.sc-hub.de/engine-rest',
REST_GET_PROCESS_DEFS = '/process-definition?latestVersion=true',
REST_DEPLOY_CREATE = '/deployment/create';
// more config:
var DEPLOYMENT_SOURCE = 'process app... |
import Scale from './Scale';
// import Progression from './Progression';
import chordProbabilities from './hookTheory/chordProbabilities';
import chordDictionary from '../constants/chordDictionary';
import {
scales,
intervalTypes,
notes,
intervals,
romanNumerals,
chordFunction,
} from '../constants/theory';... |
"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... |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... |
/**
* BASED ON
* https://github.com/joshmarinacci/ElectronIDE
* BY <NAME>
*
* MODIFIED BY Arduino.org Team
*/
//TODO : expose only commands ?
var fs = require('fs');
var http = require('http');
var path = require('path');
console.log("os = " , process.platform);
var nodeDir = __dirname.substring(0, __dirna... |
// SCSS RFS mixin - converted to JS
//
// Automated responsive values for font sizes, paddings, margins and much more
//
// Licensed under MIT (https://github.com/twbs/rfs/blob/master/LICENSE):
//
// MIT License
//
// Copyright (c) 2017-2019 <NAME>
// Copyright (c) 2020 <NAME>
//
// Permission is hereby granted, free o... |
import log from 'loglevel';
import BigNumber from 'bignumber.js';
import abi from 'human-standard-token-abi';
import { isValidAddress } from 'ethereumjs-util';
import {
SWAPS_CHAINID_DEFAULT_TOKEN_MAP,
METASWAP_CHAINID_API_HOST_MAP,
} from '../../../../shared/constants/swaps';
import {
isSwapsDefaultTokenAddress,... |
#!/usr/bin/env node
'use strict'
const v8 = require('v8');
/**
* @license
* Everything in this repo is MIT License unless otherwise specified.
*
* Copyright (c) <NAME>, <NAME>, <NAME>, <NAME>, Google, Inc.
* Copyright (c) <NAME>, Solarwinds, Inc.
*
* Permission is hereby granted, free of charge, to any person o... |
// Ubiquity provides a standards-based suite of browser enhancements for
// building a new generation of internet-related applications.
//
// The Ubiquity RDFa module adds RDFa support to the Ubiquity library.
//
// Copyright (C) 2007-8 <NAME>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you... |
const fs = require('fs');
const path = require('path');
const { grey, red } = require('chalk');
const { web3, contract, artifacts, config } = require('hardhat');
const { assert, addSnapshotBeforeRestoreAfter } = require('../contracts/common');
const { toUnit, fromUnit } = require('../utils')();
const { knownAccounts, w... |
/// <reference path="../../typings/playcanvas.d.ts" />
import { sound } from './sound';
import { LevelData } from './levelData';
const numOfSprites = 17.0;
// 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17
const indexes = [, , 4, , , , , , 1, , , , 5, , 3, 2,];
var LevelController = pc.createScript('level... |
import React, {
Fragment,
createContext,
createRef,
useCallback,
useContext,
useMemo,
useReducer,
useRef,
} from 'react'
import { useDisposables } from '../../hooks/use-disposables'
import { useId } from '../../hooks/use-id'
import { useIsoMorphicEffect } from '../../hooks/use-iso-morphic-effect'
import... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
exports.append = append;
exports.getOrderFields = getOrderFields;
exports.processToJSON = processToJSON;
exports.processValue ... |
/**
* @author <NAME>
* @license MIT License (c) copyright 2017-present original author or authors
* @homepage https://github.com/stopsopa/roderic
*/
'use strict';
process.env.NODE_ENV = process.env.NODE_ENV || 'development';
require('@stopsopa/dotenv-up')(2, true, 'react/webpack.config.js');
const path ... |
"use strict";
/**
*
* client
*
*/
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 =... |
var solVersion;
var solErrorClass;
var solSuccessClass;
var solSymbolClass;
var solRequest;
var currentForm;
var errorListId;
var solSymbol;
var errorListElement = document.getElementById(errorListId);
// An Array to hold all the displayed tooltips
var tooltipElements = [];
/*
Represents the message object
used t... |
var Bbs = require('../persister/bbs');
var CheckIn = require('../persister/checkin');
var Dates = require('../persister/checked_date');
var User = require('../persister/user');
var LateComer = require('../persister/latecomer');
var bcrypt = require('bcrypt-nodejs');
var moment = require('moment');
var multer = require... |
// stats.js: JavaScript Performance Monitor
const stats = new Stats();
stats.showPanel(0); // 0: fps, 1: ms, 2: mb, 3+: custom
document.body.appendChild(stats.dom);
function animate() {
stats.begin();
// monitored code goes here
stats.end();
requestAnimationFrame(animate);
}
requestAnimationFrame(anim... |
var loc_ru = {axi: 'акси',// l_axi: 'реликвия акси',
neo: 'нео',
meso: 'мезо',
lith: 'лит',
cost_each: function(cost) { return 'по ' + cost.toString() + 'п'; },
cost_pack: function(cost) { return '5к' + cost.toString(); },
};
var loc_en = {axi: 'Axi',
neo: 'Neo',
meso: 'Meso',
... |
'use strict';
const energyLabelMapping = {
'A++++': { index: -2, lower: -10000, upper: -1000, color: [60, 134, 126] }, // dummy value
'A+++': { index: -1, lower: -1000, upper: 0, color: [60, 134, 126] },
'A++': { index: 0, lower: 0, upper: 0.5, color: [60, 134, 126] },
'A+': { index: 1, ... |
const test = require('tape')
const fs = require('fs')
import { Playlist } from '../src/playlist'
import {setupServer, tearDownServer, serverPort, hostAndPort} from './fixture-server'
const vod = fs.readFileSync('./tests/fixtures/basic/vod.m3u8').toString()
const master = fs.readFileSync('./tests/fixtures/ba... |
/**
* strftime formatters for javascript based on the Open Group specification defined at
* http://www.opengroup.org/onlinepubs/007908799/xsh/strftime.html
* This implementation does not include modified conversion specifiers (i.e., Ex and Ox)
*/
/**
* Pad a number with leading spaces, zeroes or something else
*... |
// imports
const { existsSync, promises : fs, constants : fsConstants } = require('fs');
const path = require('path');
const fileUrl = require('file-url');
const open = require('open');
const minimist = require('minimist');
const datauri = require('datauri/sync');
const template = require('./template.js');
const _ = re... |
"use strict";
// base Disney World park objects
var Park = require("../park.js");
// we're storing ride locations now, so include our location lib
var GeoLocation = require("../geoLocation.js");
// need schedule lib to store ride times
var Schedule = require("../schedule");
// Moment date/time library
var Moment = ... |
import moment from 'moment';
import {GeoJSON, KML} from 'ol/format';
import {Group} from 'ol/layer';
import {ImageWMS} from 'ol/source';
import {OSM, TileWMS} from 'ol/source';
import {Vector} from 'ol/source';
import {default as proj4} from 'proj4';
/**
* @param proxy
* @param maxResolution
*/
function MyProxy(pro... |
import React, { Component } from 'react';
import { formatMessage, defineMessages } from 'umi/locale';
import { connect } from 'dva';
import cs from 'classnames';
import { Button, Modal, Checkbox, Form, Input, message } from 'antd';
// import VerificationCode from './VerificationCode';
import ImageCode from '@/component... |
var currentSelection = 'objects';
var durationType = 'D';
$(document).ready(function () {
init();
var type, from, to;
//Call queryAPI() when from and to change.
$('.from, .to').on('change', function () {
from = $('.from').val();
to = $('.to').val();
type = getDuration(from, ... |
// JavaScript Document
$(document).ready(function () {
var slectionId='';
var shiftypeId='';
//*****************select filer by dept or jobtitel********//
$("input[name=rdSelection]:radio").change(function () {
if ($("#rdSelection1").attr("checked")) {
slectionId=$("#rdSelection1").val();
document.... |
var rootPath = "http://127.0.0.1:8080/pictureLabel";
var tomcatPath = "http://127.0.0.1:8080";
var imgPath= "";
var elements = [];
var pictureId = "";
var factoryCode = "";
var again_label ="0"; // 是否是已标注再次标注,1:重新标注2.标注
$(function() {
$(".loader").fadeOut(500, function() {
$(".page_wrapper").show();
});... |
/*
The Cookie Monster, or How to Remove HTTP Cookies From XMLHttpRequest With setRequestHeader()
Description: This class is used to remove cookies from XMLHttpRequests.
Copyright (c) 2006 <NAME> <http://www.michael-noll.com/>
Documentation:
http://www.michael-noll.com/wiki/Cookie_Monster_for_XMLH... |
"use strict";
/*
* Copyright (c) 2006-2009 <NAME> http://www.box2d.org
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
* Permission is granted to anyone to use this software for ... |
var HTMLTable = {
"\u0022":""",
"\u0026":"&",
"\u003C":"<",
"\u003E":">",
"\u00C2":"¡",
"\u00C2":"¢",
"\u00C2":"£",
"\u00C2":"¤",
"\u00C2":"¥",
"\u00C2":"¦",
"\u00C2":"§",
"\u00C2":"¨",
"\u00C2":"©",
"\u00C2":"ª",
"\u00C2":"«",
"... |
"use strict";
// import from Monio
var { liftM, } = require("monio/util");
var Either = require("monio/either");
var IO = require("monio/io");
var {
log,
applyIO,
doIO,
doIOBind,
match,
iif,
iNot,
iReturn,
wasReturned,
ifReturned,
} = require("monio/io/helpers");
var IOEventStream = require("monio/io/event-s... |
"use strict";
/**
* Compiler frontend for node.js
*
* Uses the low-level API exported from src/index.ts so it works with the compiler compiled to
* JavaScript as well as the compiler compiled to WebAssembly (eventually). Runs the sources
* directly through ts-node if distribution files are not present (indicated b... |
import HTTP from '../http';
import Vue from 'vue';
import VueSweetalert2 from 'vue-sweetalert2';
// If you don't need the styles, do not connect
import 'sweetalert2/dist/sweetalert2.min.css';
Vue.use(VueSweetalert2)
Vue.component('metadata-search', {
props: ['metadata'],
template: `<div>
<div class="field is-... |
const K = 1;
const K0 = 0.9996;
const DRAD = Math.PI / 180;
const DIAGRAPH_LETTERS_E = "ABCDEFGHJKLMNPQRSTUVWXYZ";
const DIAGRAPH_LETTERS_N = "ABCDEFGHJKLMNPQRSTUV";
const DIAGRAPH_LETTERS_ALL = "ABCDEFGHJKLMNPQRSTUVABCDEFGHJKLMNPQRSTUVABCDEFGHJKLMNPQRSTUVABCDEFGHJKLMNPQRSTUVABCDEFGHJKLMNPQRSTUVABCDEFGHJKLMNPQRSTUVABCD... |
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; };
function _classCallCheck(instance, Constructor) { if (!(insta... |
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] =... |
import React, {Component} from "react";
import PropTypes from "prop-types";
import {Button,Col, FormGroup, Input, Row} from "reactstrap";
import Select from "react-select";
import { saveAs } from 'file-saver';
import {getCompanies} from "../../../utils/api/company"; // компании
import {getVacancies} from "../../../util... |
/* eslint-disable brace-style */
/* eslint-disable strict */
/* eslint-disable no-console */
'use strict';
/**
* Score a Bowling Game
* 10 frames
* two rolls per frame
* per frame: 2,3 = 5
* Strike: get 10 + next two rolls from next frame
* Spare: 2 rolls equalling 10 in the frame. Get 10 + next single roll.
*... |
/**
* Copyright (c) 2014 Baidu.com, 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 required by applic... |
function zip(a, b) {
return a.map(function (e, i) {
return [e, b[e]];
});
}
function get_max_xy(series) {
max_x = Math.max.apply(null, series.map(function(x) {return Math.max.apply(null, x.data.map(function(y){ return y[0]; })); }));
max_y = Math.max.apply(null, series.map(function(x) {return Math.max... |
// 1616779400
let inputStr = args.widgetParameter
if ( inputStr == null ) { inputStr = "ferrari@1616979400" }
var res = inputStr.split("@")
let selectedTheme = res[0]
let vDate = res[1]
log(vDate)
if ( selectedTheme == null || selectedTheme == "" ) { selectedTheme = "mclaren" } else { selectedTheme = selectedTheme.t... |
// Production rule module for the CFG
/**
* Module Dependencies
*/
var _ = require('./subdash')
var util = require('./util')
var symbol = require('./symbol')
var tokenize = require('./tokenize')
/**
* Export `norm`
*/
module.exports = norm
// var str = "05 October 2011 14:48 UTC 08/11 2020 2012/12 event is at ... |
const db = require("../models")
const skills = require("../config/skills");
const xpTable = require("../config/xpTable");
const _ = require('lodash')
const items = require('../config/items')
const Crafting = require("../skills/Crafting");
const {random} = require("lodash/number");
const {omit} = require("lodash/object"... |
callback.visualBbox = function(){
$("#visual-video-toggle").append("<button class='btn btn-primary active btn-sm'>Bounding Box</button>");
if (input.bbox == undefined) {
input.bbox = [];
}
}
function visualBboxSave(){
var list = {};
$("#visual-bbox-timeline div.visual-bbox-bar[index]").each(function(i,o... |
// Declare global variables
//declare array to store score, school, district, mean, and median
var schoolInfo = [];
//declare variables so schoolInfo can be used as an associative array
var score2013 = 0;
var lowerIndivCI = 1;
var upperIndivCI = 2;
var lowerMeanCI = 3;
var upperMeanCI = 4;
var school = 5;
var distric... |
/*
The MIT License (MIT)
Copyright (c) 2017 Microsoft Corporation
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... |
const fs = require('./utils/fs');
const Resolver = require('./Resolver');
const Parser = require('./Parser');
const WorkerFarm = require('./WorkerFarm');
const Path = require('path');
const Bundle = require('./Bundle');
const {FSWatcher} = require('chokidar');
const FSCache = require('./FSCache');
const HMRServer = req... |
/**
* The statistics.js file is a route module that
* contains the routes for the statistics in the
* database. The statistics in the database are
* not able to be edited or removed given that
* the data is obtained through complex SQL queries.
* The purpose of this route module/JavaScript
* file is to simply ... |
/* eslint-disable no-unused-vars, @typescript-eslint/no-unused-vars, prefer-const */
const { setupDatabaseAndSynchronizer, db, sleep, switchClient } = require('../../testing/test-utils.js');
const SearchEngine = require('../../services/searchengine/SearchEngine').default;
const Note = require('../../models/Note').defa... |
// Native
import queryString from 'querystring'
// Packages
import electron from 'electron'
import { Fragment, Component } from 'react'
import parse from 'date-fns/parse'
import format from 'date-fns/format'
import isEqual from 'react-fast-compare'
import setRef from 'react-refs'
import { renderToStaticMarkup } from '... |
const board = document.querySelector('body');
const field = document.querySelector('main')
let id = 0;
let timerId;
board.addEventListener("keydown", keyListener);
const Storage = {
get() {
return JSON.parse(localStorage.getItem("snakejs:games")) || []
},
set(games) {
localStorage.setItem(... |
import dayjs from "dayjs";
import relativeTime from "dayjs/plugin/relativeTime";
import utc from "dayjs/plugin/utc";
import queryString from "query-string";
import sortBy from "lodash/sortBy";
import jwt from "jsonwebtoken";
import cronstrue from "cronstrue";
import size from "lodash/size";
import each from "lodash/eac... |
// author: InMon Corp.
// version: 1.0
// date: 1/27/2021
// description: Internet Exchange Provider (IXP) Metrics
// copyright: Copyright (c) 2021 InMon Corp. ALL RIGHTS RESERVED
include(scriptdir() + '/inc/trend.js');
var T = getSystemProperty('ixp.flow.t') || 15;
var N = getSystemProperty('ixp.flow.n') || 10;
var ... |
import React__default, { useMemo, useRef, useState, useEffect, useContext, Children, memo } from 'react';
import _pt from 'prop-types';
import { isNumber, forwardRefWithAs, useControlledSwitchWarning, makeId, useControlledState, noop, checkStyles, isFunction, useForkedRef, getElementComputedStyle, useEventCallback, wra... |
// import * as tf from '@tensorflow/tfjs-node'
import * as tf from '@tensorflow/tfjs'
import { Configs } from '../config/config'
const config = new Configs()
export class Utils {
//remove an element from an array
remove(arr, index) {
let new_arr = arr.filter(function (val, i) {
return i ... |
/* *
*
* Arc diagram module
*
* (c) 2021 <NAME>, <NAME>
*
* License: www.highcharts.com/license
*
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
*
* */
'use strict';
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
ext... |
/**
* MIT License
*
* Copyright (c) 2018 <NAME>
*
* 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, ... |
const Dia = require ('../../Dia.js')
const {Readable, PassThrough} = require ('stream')
const WrappedError = require ('../../Log/WrappedError.js')
const to_tsv = require ('./postgresql/to_tsv.js')
let pg_query_stream; try {pg_query_stream = require ('pg-query-stream')} catch (x) {}
module.exports = class... |
"use strict";
/**
* 第6节
* 知识点:
* 1.条件语句和循环语句
* 2.块作用域
* 3.如何避免
*/
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2... |
// pages/list/list.js
const util = require('../../utils/util.js')
var app = getApp();
Page({
/**
* 页面的初始数据
*/
data: {
listData: [],
activeIndex: 0,
toView: 'a0',
scrollTop: 0,
screenWidth: 667,
showModalStatus: false,
currentType: 0,
currentIndex: 0,
type_id:1,
models:[... |
import _ from 'lodash';
import BigNumber from 'bignumber.js';
import {Widget, Inject, Intent} from 'interstellar-core';
import {Alert, AlertGroup} from 'interstellar-ui-messages';
import { Asset, Keypair, Memo, Operation, Server, StrKey, TimeoutInfinite, Transaction, TransactionBuilder, xdr, AccountRequiresMemoError} f... |
import Nerv, { PropTypes, PureComponent } from 'nervjs'
import raf from 'raf'
import Loading from './Loading'
/**
* t: current time(当前时间);
* b: beginning value(初始值);
* c: change in value(变化量);
* _c: final value (最后值)
* d: duration(持续时间)。
*/
const easeOutQuart = function (t, b, _c, d) {
const c = _c - b
retu... |
var LogsView = FlowPanel.extend({
init: function() {
this._super()
this.render();
this.setId("logs-view");
},
setVisible: function(bool) {
if(bool) {
document.title = "Logs";
}
this._super(bool);
},
render: function() {
var tb = new TopBar();
var textarea = new LogPanel();
var dates = new Dat... |
/**
* This plugin adds various custom layouts using twitter bootstrap grid system.
* Author: <NAME>
**/
'use strict';
CKEDITOR.plugins.add('layoutmanager', {
requires: 'basewidget',
icons: 'addlayout',
lang: 'en,bg',
init: pluginInit
});
/**
* Config variables
* config.layoutmanager_loadbootstr... |
// Gary
// Copyright 2017 <NAME>
// LICENSE --------------------------------------------------------------------
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// (https://www.apache.org/licenses/LICENSE-2.0)
// Unless required by... |
const { Discord, Client, MessageEmbed, Message } = require('discord.js');
const client = global.client = new Client({fetchAllMembers: true});
const güvenlik = require('./güvenli.json')
const fs = require('fs');
const wh = require('./whitelist.json');
const moment = require("moment");
const mongoose = require('mo... |
// this creates the selected variable
// we are going to store the selected objects in here
var selected = $([]), offset = {top:0, left:0};
draggies = {
start: function(ev, ui) {
if ($(this).hasClass("ui-selected")){
selected = $(".ui-selected").each(function() {
var el ... |
'use strict';
const adapterName = require('./io-package.json').common.name;
const utils = require('@iobroker/adapter-core'); // Get common adapter utils
const _crypto = require('crypto');
const _got = require('got');
const _fs = require('fs');
const _path = require('path');
const { v4: _uuid } = require('uuid');... |
var commonFunctions = require('./commonFunctions');
var ignoreValue = commonFunctions.getFunction('ignore');
var processDate = commonFunctions.getFunction('cda_date');
function isClaimTypeD(childObj) {
var claimLineArr = childObj.claimLines;
if (ignoreValue(claimLineArr)) {
return false;
}
if (claimLineAr... |
'use strict'
//
// The background script provides monitoring of tabs for an active Metastream
// webapp. When activated, web requests originating from the app are modified
// to allow bypassing browser security limitations. This script also provides
// message brokering between embedded websites and the app itself.
//... |
const lang = {
lang: "fr",
homeTitle: "Éléments: Le Tableau Périodique",
homeHeader: "Tableau Périodique",
home: "Accueil",
compare: "Comparer",
settings: "Paramètres",
list: "Liste",
translate: "Traduire",
translation: "Traduction",
about: "A propos",
general: "Général",
version: "Version",
... |
import React from 'react';
import './Canvas.css';
class Canvas extends React.Component {
constructor(props) {
super(props);
this.canvasRef = React.createRef(null);
this.state = {
showPattern:false,
generations: 0,
activeArray: [],
inactiveArra... |
const { ArgumentMatches, ArgumentTypes, Symbols } = require('../util/Constants');
const { isPromise } = require('../util/Util');
/**
* The method to match arguments from text.
* - `word` matches by the order of the words inputted.
* It ignores words that matches a prefix or a flag.
* - `rest` matches the rest of t... |
// <NAME> <<EMAIL>>
"use strict";
// modules
const assert = require('../../assert.js');
const { CW, CCW } = require('../trace/trace.js');
// constants
// - states
const EXPECTED = 0;
const ACTIVE = 1;
const SUSPENDED = 2;
class TraceSlice {
/**
* Create a new trace slice
*
* @param {array} stitches C... |
/* Copyright <NAME>, 2015 - All rights reserved */
'use strict';
import React from 'react';
require('./compass.scss');
/*************************************************************************/
function setStyleTransform (element, value) {
let style = element.style,
styleNames = setStyleTransform._tran... |
import React, { Component } from "react";
import { connect } from "dva";
import {
Card,
Table,
Row,
Button,
Pagination,
Divider,
Form,
Col,
AutoComplete,
Select, TreeSelect, message, Input, Spin
} from "antd";
import PageHeaderLayout from "../../../layouts/PageHeaderLayout";
import NewToolsManage fr... |
'use strict';
var dom = {};
var ids = ['player', 'thumbnails', 'overlay', 'overlay-title',
'overlay-text', 'videoControls', 'videoFrame', 'videoBar',
'close', 'play', 'playHead', 'timeSlider', 'elapsedTime',
'video-title', 'duration-text', 'elapsed-text', 'bufferedTime',
's... |
var createObject = Object.create;
function createMap() {
var map = createObject(null);
map["__"] = undefined;
delete map["__"];
return map;
}
var Target = function Target(path, matcher, delegate) {
this.path = path;
this.matcher = matcher;
this.delegate = delegate;
};
Target.prototype.to = ... |
// Transforms a stream of TAP into a stream of result objects
// and string comments. Emits "results" event with summary.
var Writable = require('stream').Writable
/* istanbul ignore if */
if (!Writable) {
try {
Writable = require('readable-stream').Writable
} catch (er) {
throw new Error('Please install "... |
"use strict";
var mousedown;
function SpriteEditor(){
var data = [];
var thiscolor = 0;
var pixelareabgcolor = 0;
var sprite = [];
var spriteflags = [];
var pixelarea = document.getElementById("pixelearea");
var pixelareactx = pixelarea.getContext('2d');
var lastx = 0, lasty = 0, lastselect = -1;
var type = ... |
/*
* Copyright (c) 2020, 2021, Oracle and/or its affiliates.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 2.0, as
* published by the Free Software Foundation.
*
* This program is also distributed with certain software (in... |
/* --------------------------------------------------------------------------------
GENERATOR-CRAFTPLUGIN
generator-craftplugin is a Yeoman generator for Craft CMS plugins
Type just `yo craftplugin` and a new Craft CMS plugin template tailored to
your liking will be created.
---------------------------... |
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. 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
*
... |
const t = require("@babel/types")
const nodePath = require("path")
const generate = require("@babel/generator").default
const traverse = require("@babel/traverse").default
const Vistor = require("./Vistor")
const clone = require("clone")
const utils = require("../../utils/utils")
const pathUtil = require("../../utils/p... |
var fs = require('fs-extra');
var path = require('path');
if (!fs.existsSync('proxy.txt')) {
console.log("INFO: did not found proxy.txt - creating it.");
fs.copySync(path.resolve(__dirname,'./proxy.sample.txt'), 'proxy.txt');
}
if (!fs.existsSync('config.js')) {
console.log("INFO: did not found config.js... |
var Nav,
hasProp = {}.hasOwnProperty,
boundMethodCheck = function(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new Error('Bound instance method accessed before binding'); } };
import Mix from './Mix.js';
import Build from '../util/Build.js';
import Dir from './Dir.js';
Nav = class Na... |
/*
* Copyright (c) 2017 Cornell 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 required by applicable law ... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.startup = exports.synchronous = exports.before = exports.after = exports.platforms = exports.name = undefined;
var _rebuilders;
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var s... |
function vprint(){
window.print();
}
function chkDisable(ele,obj){
alert(jQuery(obj).val());
jQuery(obj).attr("value",true);
if(jQuery(ele).attr("disabled")==true){
jQuery(ele).attr("disabled",false);
jQuery(obj).attr("value",false);
}else{
jQuery(ele).attr("disabled",true);
jQuery(obj).attr("value",true);... |
//All NLU specific functions and routes.
const request = require('request');
const db = require('../../db/db');
const NodeCache = require('node-cache');
const logger = require('../../util/logger');
//https://github.com/mpneuried/nodecache
const nluParseLogCache = new NodeCache();
const YAML = require('yaml');
functio... |
/**
* Created by kangtian on 16/10/22.
*
* TODO:
* cache-save 批量保存需要优化, 现在仍然是单条 save.
*/
'use strict';
var AV = require('../lib/tab-login');
var G = require('../config/global');
var TabUtil = require('../lib/tab-util');
var DsUtil = require('../lib/ds_util');
var HttpUtil = require('../lib/http-util');
var T... |
/*global $, console */
// 对Date的扩展,将 Date 转化为指定格式的String
// 月(M)、日(d)、小时(h)、分(m)、秒(s)、季度(q) 可以用 1-2 个占位符,
// 年(y)可以用 1-4 个占位符,毫秒(S)只能用 1 个占位符(是 1-3 位的数字)
// 例子:
// (new Date()).Format("yyyy-MM-dd hh:mm:ss.S") ==> 2006-07-02 08:09:04.423
// (new Date()).Format("yyyy-M-d h:m:s.S") ==> 2006-7-2 8:9:4.18
Date.prototy... |
/**
* util.js stores utility JavaScript functions
*
* This file stores utility functions for validating data before form submittal.
* On a public page, JS should NOT be the only means of validating data
*
* Version 1.1 adds addOnload() function for safe JS function initialization
*
* Version 1.2 adds e... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.