text stringlengths 5.97k 41.2k |
|---|
/*
* Window manager
* @self, Akashic content
*/
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Configuration
var conf = require('../content_config');
var view = {
floating: false,
position: {x: 0, y: ... |
/*
* Copyright (C) 2014-2017 Regents of the University of California.
* @author: <NAME>
* @author: <NAME> <<EMAIL>>
* @author: <NAME> <<EMAIL>>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Softwa... |
"use strict";
var myLocalip = "https://floating-savannah-55816.herokuapp.com/";
var myLocalipAndPort = myLocalip+":5000"
console.log(myLocalipAndPort);
var nowText = document.getElementById("now");
var nowTopRow = document.getElementById("nowTopRow");
var titleText = document.getElementById("title");
var startText ... |
/* eventDraw.js
* ---------------------------------------------
* All functions that are involved in physically drawing the
* events on the timeline
* See events.js for helpers
* See eventDetails.js for detailed piece drawing (i.e., clock icon, duration)
*/
//Creates graphical elements from array of data (task... |
'use strict';
var srlog = SIREPO.srlog;
var srdbg = SIREPO.srdbg;
SIREPO.app.config(function() {
SIREPO.PLOTTING_COLOR_MAP = 'afmhot';
SIREPO.SINGLE_FRAME_ANIMATION = ['twissAnimation', 'twissFromParticlesAnimation'];
SIREPO.appReportTypes = [
'<div data-ng-switch-when="matchSummaryAnimation" data... |
import { checkParamOrThrow } from 'apify-client/build/utils';
// Everything gets destroyed slowly to make the UX better
const DESTROY_FADEOUT_MILLIS = 2000;
/**
* Creates a page line in the Index.
*
* Used both client and server-side.
*
* @param {string} id
* @param {string} url
* @returns {string} html
* @ig... |
import _ from 'lodash';
import B from 'bluebird';
import { retryInterval } from 'asyncbox';
import { RemoteDebugger, WebKitRemoteDebugger } from 'appium-remote-debugger';
import { IOSPerformanceLog } from 'appium-ios-log';
import { errors } from 'mobile-json-wire-protocol';
import logger from '../logger';
import { util... |
/*
* Copyright 2017 BBC
*
* Author: <NAME> <<EMAIL>>
*
* 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 applica... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _util = require("@antv/util");
var _matrixUtil = require("@antv/matrix-util");
var _timeButton = _interopRequireDefault(require("./timeButton"));
var _constant = require("./constant");
function _interopReq... |
/**
* ShopReactNative
*
* @author <NAME>
* @date 2016-08-13
* @email <EMAIL>
* @copyright Copyright © 2016 EleTeam
* @license The MIT License (MIT)
*/
import React from 'react';
import {
StyleSheet,
View,
Text,
TextInput,
Image,
ListView,
ScrollView,
Animated,
TouchableOpaci... |
const Joi = require('@hapi/joi')
const {sequelize} = require('../models')
const PDFParser = require('pdf2json')
const {
article: ArticleModel,
tag: TagModel,
category: CategoryModel,
user: UserModel,
comment: CommentModel,
reply: ReplyModel
} = require('../models')
const send = require('koa-send')
const arc... |
import React from 'react';
import { gql } from 'apollo-boost';
var styles = {"test":"_3ybTi"};
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 ("... |
import * as THREE from "../libs/three.js/r131/three.module.js";
import { FBXLoader } from "../libs/three.js/r131/loaders/FBXLoader.js";
import { OrbitControls } from "../libs/three.js/r131/controls/OrbitControls.js";
let tars_robot = null;
let stars = [];
let renderer = null,
scene = null,
camera = null,
orbitCon... |
import { Obj } from "../../../lib/Obj.js"
import { Splitter } from "../../../lib/splitter/Splitter.js"
import { Tree, Item } from "../../../lib/tree/Tree.js"
import { Form } from "../../../lib/form/Form.js"
import { ListBox } from "../../../lib/ListBox.js"
import { Label } from "../../../lib/Label.js"
import { Button }... |
import React, { useState } from 'react';
import { connect } from 'react-redux';
import { updateAddress } from '../../actions/profile-action';
import { setAlert } from '../../actions/alert-action';
export const ProfileAddress = ({
updateAddress,
setAlert,
address,
guest,
order,
}) => {
const [addressData, ... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _react = _interopRequireDefault(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _classnames = _interopRequireDefault(require("classnames"));
var _recompose = requir... |
//-----------------------------------------------------------------------------
// runoff.c
//
// Project: EPA SWMM5
// Version: 5.1
// Date: 03/20/14 (Build 5.1.001)
// 09/15/14 (Build 5.1.007)
// 03/19/15 (Build 5.1.008)
// 08/01/16 (Build 5.1.011)
// ... |
// failed to import as a module atm
const { X2JS } = window;
function floatStringToArray(text) {
return text.split(/[\s,]+/).map(e => parseFloat(e));
}
function intStringToArray(text) {
return text.split(/[\s,]+/).map(e => parseInt(e, 10));
}
function simplifyName(name) {
if (!name) {
return name;
}
// C... |
/* global ace */
import $ from 'jquery';
var DropletFunctionTooltipMarkup = require('./DropletParameterTooltip.html.ejs');
var tooltipUtils = require('./tooltipUtils.js');
var dom = require('../dom');
import {getAllAvailableDropletBlocks} from '../dropletUtils';
/**
* @fileoverview Displays tooltips for Droplet block... |
(function() {
$.getJSON("//gateway.baidu.com/acl/baidu.php", {},
function(data, status) {
//console.log(data);
if (data["s"]) {
if (data['c'] == 4) $("button").css('display', "block");
//ready1();
} else {
//document.write("... |
/*
Proto!MultiSelect
Copyright: InteRiders <http://interiders.com/> - Distributed under MIT - Keep this message!
*/
// Added key contstant for COMMA watching happiness
Object.extend(Event, {
KEY_COMMA: {code: 188, value:","},
KEY_SPACE: {code: 32, value:" "}
});
var ResizableTextbox = Class.create({
initia... |
import { EditorView, Decoration, ViewPlugin, logException, WidgetType } from '@codemirror/view';
import { StateEffect, StateField } from '@codemirror/state';
import { hoverTooltip } from '@codemirror/tooltip';
import { showPanel, getPanel } from '@codemirror/panel';
import elt from 'crelt';
class SelectedDiagnostic {
... |
/* eslint react/no-array-index-key:off */
/* eslint no-restricted-globals:off */
import * as array from 'd3-array';
import * as scale from 'd3-scale';
import * as shape from 'd3-shape';
import PropTypes from 'prop-types';
import React, { PureComponent } from 'react';
import { View, ScrollView, Text as RNText } f... |
import * as tslib_1 from "tslib";
import "../../CommonImports";
import "../../Core/core.css";
import "./Splitter.css";
import * as React from "react";
import { EventManagement } from '../../Core/EventManagement';
import { ObservableLike, ObservableValue } from '../../Core/Observable';
import { format } from '../../Core... |
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... |
/*
* Author: <NAME>
* Date: March 2015
* Object: Port of Foundation-5 sliders to Angular
*
* Reference: https://github.com/zurb/foundation
*
* Dependencies module only depend on Foundation RangeSlider CSS
* https://github.com/zurb/foundation/blob/master/scss/foundation/components/_range-sl... |
/* global
TalkChat:false,
Util: false,
Projects: false,
Hashs: false,
baffle: false,
GAcustom: false,
Swipped: false,
*/
/* exported Projects */
var Projects = function() {
var activeClass = 'is-active',
chatContent = TalkChat.conversation,
arrProjects = chatContent.prac... |
function _deserializeDate(date) {
if (date.constructor === Date) return date;
if (typeof (date) == "string") {
if (date.indexOf("Date(") == 1) {
while (date.indexOf("/") != -1) date = date.replace("/", "");
return eval("new " + date);
}
}
return null;
}
$(docu... |
/**
* 工具方法
* @author Cc
*
*/
import $ from 'jquery';
import CommonVar from './_var.js';
class UtilFn {
constructor() {}
// 动态设置html的font-size,用于rem的计算
setHtmlFontSize(doc, win) {
let docEl = doc.documentElement,
resizeEvt = 'orientationchange' in window ? 'orient... |
////
//// Usage: node ./node_modules/.bin/gulp doc|build|test|watch|clean
////
var gulp = require('gulp');
//var jsdoc = require("gulp-jsdoc");
var jshint = require('gulp-jshint');
var mocha = require('gulp-mocha');
var shell = require('gulp-shell');
var browserify = require('browserify');
var source = require('vinyl-... |
//
// This web interface has been quickly thrown together. It's not production code.
//
inputsHandler = {}
inputsHandler.items = []
const GstSecond = 1000000000
inputsHandler.draw = function() {
inputsHandler._drawCards()
}
inputsHandler.findById = function(id) {
return inputsHandler.items.find(function(x) { ... |
const got = require('got')
const FormData = require('form-data')
const crypto = require('crypto')
const fromPairs = require('lodash/fromPairs')
const sumBy = require('lodash/sumBy')
const fs = require('fs')
const { basename } = require('path')
const tus = require('tus-js-client')
const { access, stat: fsStat } = requir... |
// Social Icons Tooltip
$('.social-link').tooltip();
socialMediaShareURLs("#facebookSL");
socialMediaShareURLs("#twitterSL");
socialMediaShareURLs("#linkedinSL");
socialMediaShareURLs("#googlePlusSL");
// Page Loader
$(window).load(function() {
"use strict";
$('#loader').fadeOut();
});
//Bootsrap slider carousel
... |
$(function () {
//当阅读取到底部时自动加载下一章,由于体验效果不佳,暂时弃用
//定义事件锁,防止重复请求同个章节
// var is_running = true;
//
// $(window).scroll(function() {
//
// var foot = $(document).scrollTop()+1;
//
// if ( foot >= $(document).height() - $(window).height()) {
//
// if(is_running == true) {
//
// ... |
/* eslint-disable no-undef */
import React, { useEffect, useState } from 'react';
import { Link } from 'gatsby';
import styled from 'styled-components';
import Layout from '../components/layout';
import OnikuImage from '../components/molecules/Images/OnikuImage';
import SEO from '../components/seo';
import Oniku01 fr... |
/**
* A library of geometry focused tools for computational designers.
* @author ekatzenstein
* @namespace MODE
*/
var MODE = {
VERSION: 'Alpha'
};
/**
* Create bounding box based on an input plane.
* @author ekatzenstein
* @param {THREE.Geometry/THREE.Mesh} geo Geometry or Mesh to create bounding bo... |
var deptList = null;
$(function () {
});
function iniGrid(){
$("#jqGrid").jqGrid({
url: baseURL + 'sys/dauser/list',
datatype: "json",
colModel: [
{ label: 'id', name: 'id', index: 'id', width: 50, key: true,hidden:true },
{ label: '部门名称', name: 'deptId', index: 'deptId', form... |
const EventEmitter = require('events')
const SmartBuffer = require('smart-buffer').SmartBuffer;
const fs = require('fs')
const hash = require('object-hash')
const https = require('https')
const log4js = require('log4js')
const parseTime = require('parse-duration')
const sqlite3 = require('sqlite3')
class CacheLayer ex... |
import Window from './window.js';
import L from "thing-editor/js/engine/utils/l.js";
import Group from './group.js';
import SelectEditor from './props-editor/select-editor.js';
let languagesMerged;
let langsIdsList;
let oneLanguageTable;
let idsList;
const tableBodyProps = {className:'langs-editor-table'};
const lang... |
'use strict';
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
import isMobile from 'utils/isMobile';
import Cookie from '../../utils/cookies';
const debugLogs = (logStr, val) => {
if (
typeof window === 'object' &&
window.location.href.indexOf('debugLogs=1') > -1
) {
console.log(logStr, val);
}
};
let targetSlot = '';
// let colombiadcontainerId = '';
// eslin... |
var v0 = (function (v1){
var v2 = v1('http://management.azure.com:443').get('/subscriptions/947d47b4-7883-4bb9-9d85-c5e8e2f572ce/providers/Microsoft.Network/locations/westus.validation/operations/1ad6a362-5f45-4fa5-b540-f010a0c7f8c0?api-version=2017-10-01').reply(200, "{\r\n \"status\": \"InProgress\"\r\n}", ({'cache-... |
// - Requirements & Vars - //
const Discord = require('discord.js');
const c = new Discord.Client();
const Client = new Discord.Client();
const fs = require('fs');
const path = require('path');
const chalk = require('chalk');
const moment = require('moment');
const ms = require('ms');
cons... |
import '/resources/polymer/@polymer/polymer/polymer-legacy.js';
import '/resources/polymer/@polymer/iron-flex-layout/iron-flex-layout-classes.js';
import '/resources/polymer/@polymer/iron-input/iron-input.js'
import '/resources/polymer/@polymer/iron-icons/iron-icons.js'
import '/resources/polymer/@polymer/paper-icon-bu... |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
/**
* Copyright (c) 2020 kedacom
* OpenATC is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
* http://license.coscl.org.cn/MulanPSL2
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES ... |
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import moment from 'moment';
import { orderBy } from 'lodash';
import { message, Button, Icon, Table, Modal, Tag, Divider, Input } from 'antd';
import withStyles from 'isomor... |
// Obtain the browser's preferred language.
var currentLanguage = (window.navigator.language || window.navigator.userLanguage || window.navigator.userLanguage).substr(0, 2);
i18n.init({lng: currentLanguage, fallbackLng: 'en', resStore: resources, getAsync: false});
var width;
var height;
var stage;
var renderer;
va... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var 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] = b[p]; };
return function (d, b)... |
const {
ethers
} = require("ethers");
const jsonfile = require('jsonfile');
const {
CRV_ABI,
REGISTRY_ABI,
BOOSTER_ABI,
MULTICALL_ABI,
SWAP_ABI,
FOREX_PRICE_ABI
} = require('./abi');
var BN = require('big-number');
const { default: got } = require("got/dist/source");
const config = jsonfile... |
var log = new Log();
var carbon = require('carbon');
var utils = require('/modules/utils.js');
/**
* get registry reference
*/
var getRegistry = function () {
var server = new carbon.server.Server();
return new carbon.registry.Registry(server, {
system: true
});
};
//TODO: what happen when the ... |
'use strict';
var async = require('async');
var events = require('events');
var Joi = require('joi');
var LinkedList = require('linkedlist');
var logger = require('winston');
var util = require('util');
var RiakNode = require ('./riaknode');
var RoundRobinNodeManager = require('./roundrobinnodemanager');
/**
* @mod... |
// This will check if the node version you are running is the required
// Node version, if it isn't it will throw the following error to inform
// you.
// REDIS ***NEEDS*** A CALLBACK FUNCTION
if (process.version.slice(1).split(".")[0] < 8) throw new Error("Node 8.0.0 or higher is required. Update Node on your sy... |
// Firebase cloud database instance
var fbaseCon = firebase.database();
//Firebase get boxscore & game references
var dataRef = fbaseCon.ref('boxscore');
var dataRef2 = fbaseCon.ref('Game');
var fg2m = 0;
var fg2a = 0;
var fg3m = 0;
var fg3a = 0;
var fg23m = 0;
var fg23a = 0;
var ftm = 0;
var fta = 0;
var oreb = 0;
va... |
/**
* JS Formula Parser
* -------------------
* This is taken from https://github.com/bylexus/fparse but with additions.
* I already got permission from Alex to use this so you can use this as you wish.
*
* For the module repository, visit https://github.com/Squagward/fparser
*/
export class Formula {
static ... |
import PFElement from "../../pfelement/dist/pfelement.js";
/**
* Debounce helper function
* @see https://davidwalsh.name/javascript-debounce-function
*
* @param {function} func Function to be debounced
* @param {number} delay How long until it will be run
* @param {boolean} immediate Whether it should be run at ... |
var app = getApp();
const util = require('../../utils/util.js');
Page({
/**
* 页面的初始数据
*/
data: {
textareaStatus:true,
parameter: {
'navbar': '1',
'return': '1',
'title': '提交订单'
},
//支付方式
cartArr: [
{ "name": "余额支付", "icon": "icon-icon-test", value: 'yue',title:'可用余... |
const diablo2Data = require('diablo2-data')('pod_1.13d')
const Utils = require('../utils')
const Map = require('../map')
const { findPath, walkNeighborsCandidates, tpNeighborsCandidates } = require('../pathFinding')
function inject (bot) {
bot.destination = null
bot.warps = []
bot.objects = [] // This is used to... |
$(window).load(function() {
$("#date_from").datepicker({
dateFormat: 'yy-mm-dd',
constrainInput: false,
changeMonth: true,
changeYear: true,
onSelect: function(selectedDate) {
$("#date_to").datepicker("option", "minDate", selectedDate);
}
});
$("#d... |
/*!
* MLP.Client.Components.IAT.Panel
* File: panel.iat.js
* Copyright(c) 2021 Runtime Software Development Inc.
* MIT Licensed
*/
import React from 'react';
import Button from '../common/button';
import PanelControls from './panel.controls.iat';
import PanelInfo from './panel.info.iat';
import ControlPoints, { u... |
var id = ['1','2','3','4','5'];
var names = ['Rıdvan','Tamer','Mehmet','Muhammet','Emin'];
var text = ['Nasılsın?','Len?','Kanka','Tamamdır','Görüşürüz.'];
var images = ['http://i.hizliresim.com/Gz6PXZ.gif','http://i.hizliresim.com/Gz6PXZ.gif','http://i.hizliresim.com/Gz6PXZ.gif','http://i.hizliresim.com/Gz6PXZ.gif','h... |
import Vue from 'vue'
import Vuex from 'vuex'
import persistedState from 'vuex-persistedstate'
import { message } from 'ant-design-vue'
import md5 from 'md5'
import xmind from 'xmind'
import XMLJS from 'xml-js'
import width from 'string-width'
import { remote, shell, ipcRenderer } from 'electron'
import { groupBy, set,... |
const Device = require('../device.js')
const VivintDict = require('../vivint_dictionary.json')
const getPort = require('get-port')
const ffmpegPath = require('ffmpeg-for-homebridge')
const { spawn } = require('child_process')
// Need to reserve ports in sequence because ffmpeg uses the next port up by default. If it... |
/**
* this class is only for developer's use. we will examine the database
* using these functions to make sure that we only preserve the correct data.
*/
var Database = require('better-sqlite3');
var db= new Database('DB_merged.sqlite');
///main: !!
runTestsOnDB();
//end main
//connects to the db using db mo... |
"use strict";
function createSVG(tag, classes) {
let elt = document.createElementNS("http://www.w3.org/2000/svg", tag);
if (classes) {
elt.classList.add(classes);
}
return elt;
}
function createSVGRoot(setStyleId) {
let root = createSVG("svg", ["no-markdown"]);
let id = (Math.random() + 1).toString(36... |
import './BrowseAddonsWindow.css';
import 'simplebar/dist/simplebar.min.css';
import SimpleBar from 'simplebar-react';
import * as React from 'react';
import { Row, Col, Form, DropdownButton, Dropdown } from 'react-bootstrap';
import BootstrapTable from 'react-bootstrap-table-next';
import InfiniteScroll from 'react-i... |
const JsonSchemaValidator = require('../src/jsonschema');
const ProcessRegistry = require('../src/registry');
const Utils = require('../src/utils');
const epsg = require('epsg-index/all.json');
const PROCESSES = require('./assets/processes.json');
process.on('unhandledRejection', r => console.log(r));
var errors;
asy... |
// Generated by BUCKLESCRIPT VERSION 4.0.5, PLEASE EDIT WITH CARE
'use strict';
var Fs = require("fs");
var List = require("bs-platform/lib/js/list.js");
var Types = require("./types.bs.js");
var $$String = require("bs-platform/lib/js/string.js");
var Content = require("./content.bs.js");
var Decoder = require("./deco... |
/*
* Copyright 2019 Red Hat 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... |
"use strict";
import $ from "jquery";
import config from "./config.json";
import {
domLoad,
isH5P
} from "./dom.js";
// import {
// clickLanguage
// } from "./translate.js";
import {
encode
} from "./decode.js";
import {
findCorrespondingRightBracket
} from "./texParser.js";
import MQ from "./li... |
import $ from 'jquery';
import axios from '../../lib/utils/axios_utils';
import toaster from '../../lib/utils/toaster';
import Datagrid from './datagrid';
import { modifiedValues } from '../../lib/utils/modified_values';
const EMPTY_CELL = index => `<div class="datagrid-cell is-empty text-left js-datagrid-column-width... |
// Hex math defined here: http://blog.ruslans.com/2011/02/hexagonal-grid-math.html
function HexGridViewer(options) {
var self = this;
self.debug = options.debug;
self.originOffset = options.originOffset;
self.hexRadius = options.hexRadius;
self.hexHeight = Math.sqrt(3) * self.hexRadius;
self.... |
(function(l, r) { if (l.getElementById('livereloadscript')) return; r = l.createElement('script'); r.async = 1; r.src = '//' + (window.location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1'; r.id = 'livereloadscript'; l.getElementsByTagName('head')[0].appendChild(r) })(window.document);
import ... |
import React, { Component } from "react";
import { Button, Spin } from "antd";
import { BannerParser } from "minicap";
import HighlighterRect from "./HighlighterRect";
import adbkit from "adbkit";
// @ts-ignore
import styles from "./Inspector.css";
// @ts-ignore
import devices from "./devices.css";
// @ts-ignore
import... |
'use strict';
// 生成16位随机key
var randomKey = function (length) {
//var chars = "<KEY>`=//[];',./~!@#$%^&*()_+|{}:<>?";
var chars = "<KEY>";
var s = "";
for (var i = 0; i < length; i++) {
s += chars.charAt(Math.ceil(Math.random() * 1000) % chars.length);
}
return s;
};
//取得Request参数
v... |
/*
Title: Extendible Hashing Simulator
Author: <NAME>
Date: 11/05/2020
All rights reserved
*/
/* global declarations here*/
//setting the initial values of the fields and variables
var k = 3;
document.getElementById("k").value = k;
var max_bit_size = 3;
var bucketsize = 2;
document.getElementById("rec").value = bucket... |
"use strict";
var moment = require('moment');
//these are common models that must be hardcoded...
//might want to modify later so that HERE it also takes in custom default values.
//later on, this functions might become MUCH more complicated, because
//cities are not necessarily one word entries
var zipDict = requi... |
const validator = require('./../utils/validation-helper')
const ConnectionState = require('./connection-state')
const ConnectionMode = require('./connection-mode')
const Timers = require('./timers')
const Config = require('./config')
const EventEmitter = require('events').EventEmitter;
const net = require('net');
const... |
// ==UserScript==
// @name gd-tax-plugin
// @namespace http://tampermonkey.net/
// @version 1.0.4
// @description 广东电子税局多账号管理插件
// @author Dengguiling
// @license MIT
// @match https://etax.guangdong.chinatax.gov.cn/*
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEA... |
// Rete and Plugins
import ReactRenderPlugin from "rete-react-render-plugin";
import ConnectionPlugin from "rete-connection-plugin";
//import DockPlugin from "rete-dock-plugin"
import CommentPlugin from "rete-comment-plugin";
import AreaPlugin from "rete-area-plugin";
import ContextMenuPlugin from 'rete-context-menu-pl... |
var tel;
var data = {
promoteArr: promoteArr,
template_style:template_style,
reply:reply
}
var commonObject = function(data){
var self = this;
this.data = data;
this.promoteArr = self.data.promoteArr;
this.reply = self.data.reply;
this.template_style = self.data.template_style;
this.... |
function model() {
this.name = "Current Model";
this.classification = "model";
this.description = "Description";
this.author = "";
this.cellGroups = new cellGroup("Home");
this.cellAliases = [];
this.synapses = [];
this.columns = [];
}
function izhikevichParam() {
this.type = "Izhikevich";
this.a = {type:... |
/***
Mit License
Copyright (c) 2018 <NAME>-Tobin
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... |
// WARNING: GUN is very simple, but the JavaScript chaining API around GUN
// is complicated and was extremely hard to build. If you port GUN to another
// language, consider implementing an easier API to build.
var Gun = require('./root');
Gun.chain.chain = function(sub){
var gun = this, at = gun._, chain = new (sub... |
'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var _createClass = function () { f... |
////
//// A lot of the commented out stuff in the other completely gone here.
////
// Let jshint pass over over our external globals (browserify takes
// care of it all).
/* global jQuery */
/* global global_acc */
/* global global_live_search_query */
/* global global_live_search_filters */
/* global global_live_sear... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import moment from 'moment';
import Grid from '@material-ui/core/Grid';
import Hidden from '@material-ui/core/Hidden';
import Image from '@material-ui/icons/Image';
import InsertDriveFile from '@material-ui/icons/InsertDriveFile';
import Pic... |
const checkoutContainer = document.querySelector('.payment-method');
const sidebar = document.querySelector('.sidebar');
const stateContainer = document.querySelector('.current-state');
function updateStateContainer(newState) {
console.log('State', newState);
stateContainer.innerText = JSON.stringify(newState, nul... |
/* Copyright 2021 <NAME> & Association BDovore
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and t... |
//resp
$(document).ready(function() {
$( "#tabs" ).tabs();
});
// 桁数が1桁だったら先頭に0を加えて2桁に調整する
function set2fig(num) {
var ret;
if( num < 10 ) { ret = "0" + num; }
else { ret = num; }
return ret;
}
var harfMin = "30";
var listTime = "08:00:00";
var nowMin = ... |
var SJ = null;
var master = null;
var carousel = null;
var imagesLength = 0;
var selection = 0;
var unveiling;
var target = 1;
var direction = 0;
function onLoad (sender)
{
SJ = document.getElementById ("slControl").content;
master = sender.findName("masterCanvas");
console.log ("Loading...");
createCarousel ();
... |
/**
* DevExtreme (renovation/viz/core/renderers/svg_text.js)
* Version: 20.2.6
* Build date: Tue Mar 16 2021
*
* Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
"use strict";
function _typeof(obj) {
... |
const {shell} = require('electron')
const querystring = require('querystring');
var path = require('path');
var fs = require('fs');
var jQuery = null;
var search_keyup_timeout = 0;
function formatBytes(a, b) {
if (0 == a) {
return "0 Bytes";
}
var c = 1e3, d = b || 2, e = ["Bytes", "KB", "MB", "GB", "TB", "P... |
// import _ from "lodash";
// import moment from "moment";
// import * as formulas from "./calculations/formulas.js";
// import * as commondata from "./data/commondata.js";
// import * as validators from "./validators";
'use strict'
let _ = require('lodash')
let moment = require('moment')
let formulas = require('./cal... |
/**
*
* DocumentUploadForm
*
*/
import React from 'react';
import {
Tag,
Row,
Col,
Spin,
Form,
Input,
Select,
Upload,
Button,
Tooltip,
Checkbox,
DatePicker,
message,
} from 'antd';
import {
PlusOutlined,
UploadOutlined,
FileImageOutlined,
LoadingOutlined,
Dropbox... |
// Global variables
var map, bounds, infoWindow, selectedMarker = null, originalZoom, originalCenter;
// Resets the map view
function resetMap() {
map.setCenter(originalCenter);
map.setZoom(originalZoom);
}
// Fetches data from Foursquare and Flickr
function getFlickrAndFoursquare(place) {
... |
const loadFlag = flag => {
try {
const data = require(`../rdm/config/options/${flag}`)
if (flag === 'secretIndex') {
config.CONST.INDEX_PUBLIC = data.value
} else {
config[flag] = true
}
} catch (e) {}
}
const express = require('express')
const cors = req... |
const d3 = Object.assign({}, require("d3-selection"));
const smalltalk = require('./minortalk/lib/smalltalk');
import "./styles/preview.less";
import {
dumbEditor as DumbEditor
} from "./dumb_editor";
import * as Files from "./files";
import * as Bled from "./bled/blockeditor";
import * as Pathops from "./pathops";
... |
import App from "../app";
import {pubsub} from "../helpers/subscriptionManager";
import throttle from "../helpers/throttle";
import uuid from "uuid";
//import uuid from "uuid";
import {
waterTankMax,
wasteTankMax,
hydrogenTankMax,
oxygenTankMax,
nitrogenTankMax,
} from "./environment-params.js";
const Envir... |
// GULPFILE (last updated on 14.01.2017)
// ***
// 'gulp serve'
// server project on localhost from .tmp and frontend folders
// ***
// 'gulp serve:web'
// serve project on localhost from web/ folder with builded files
// ***
// 'gulp'
// clean .tmp/ and web/ folders and then 'gulp build'
// ***
// 'gulp build'
// buil... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.