text stringlengths 8.5k 48.7k |
|---|
/**
* Telnet server implementation.
*
* References:
* - http://tools.ietf.org/html/rfc854
* - http://support.microsoft.com/kb/231866
* - http://www.iana.org/assignments/telnet-options
*
*/
/**
* Modules
*/
var net = require('net')
, assert = require('assert')
, EventEmitter = require('events').EventE... |
var oc = null;
var current_version_id;
var current_role;
var current_username;
var current_head;
function createUI(datasource) {
var getId = function() {
return (new Date().getTime()) * 1000 + Math.floor(Math.random() * 1001);
};
var nodeTemplate = function(data) {
// Round budgeted number to... |
/**
* http://usejsdoc.org/
*/
const shell = require('electron').shell;
const Router = require('electron-router');
var router = Router('MAIN');
const rutaDefecto=require("../../datosServer.json")["ruta"];
var modeloFichero = require("../../modelo/modeloFichero.js");
var notifier = require('node-notifier');
const upath... |
/* 2016-11-23 曹阳 创建 */
var MainLayer = cc.Layer.extend({
pus : null,
sprite:null,
stars:[],
tiledMap : null, // 瓦片地图
tileSize : null, // 瓦片大小
roadPointArray : [], // 怪物路径
towerPanel: null, // 构建塔的面板
ZOrderEnum : {}, // 对象层级枚举
touchWarningNo... |
function toHash(key, arr, remove_key) {
var hash = {};
arr.map(function (d) {
hash[d[key]] = d;
if (remove_key)
delete hash[d.key][key];
});
return hash;
}
var image = {width: 1392, height: 1040};
var imageAspectRatio = image.width / image.height;
var scaling = 0.4;
var dra... |
const plask = require('plask-wrap')
const SkCanvas = plask.SkCanvas
const SkPaint = plask.SkPaint
const SkPath = plask.SkPath
const Rect = require('pex-geom/Rect')
/**
* [SkiaRenderer description]
* @param {[type]} ctx [description]
* @param {[type]} width [description]
* @param {[type]} height [description]
... |
/**
* _________ ____________________ _____ ____
* / __/ __/ |/ /_ __/ _/_ __/ / / / _ \/ __/
* \ \/ _// / / / _/ / / / / /_/ / // / _/
* /___/___/_/|_/ /_/ /___/ /_/ \____/____/___/
*
*
* @file background.js - background script
* @autho... |
var pi = Math.PI;
var main_r = 300;
var main_x = 500
var main_y = 400
var all_sectors = new Array();
var sector_count = 0;
var max_sector = 0;
var y_correction = 50;
var x_correction = 0;
var whois_reps_toselect = new Array();
var race_type = "house";
var idNameMap = Object();
var default_cand_opacity = 1;
var nameL... |
const _ = require('lodash');
const fs = require('fs');
const pluralize = require('pluralize');
const parsers = require('./parsers');
const debug = require('debug')('docs:reader');
function Reader() {
/**
* Various JSDoc parameters per line
* Each key is the JSDOc param e.g. 'param', if no match is found the meta '... |
const dicomParser = require('dicom-parser');
/**
* ImageOBJ範例
* https://harrychen0506.github.io/cornerstone-analysis/core/concepts/images.html
*/
class CornerstoneImageOBJ{
/**
* CornerstoneImage物件建構子(因應特殊需求)
* @param {String} imageId
* >The imageId associated with this image object
* >與此... |
var events = require('events');
var util = require('util');
var async = require('async');
var utils = require('./utils.js');
var errors = require('./errors.js');
var types = require('./types');
var ControlConnection = require('./control-connection');
var RequestHandler = require('./request-handler');
var requests = re... |
/*
* XmlFile.js - plugin to extract resources from an XML file
*
* Copyright © 2021, Box, 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/... |
//functions
// 加载动画
function loading_start(item) {
var loading_tmp = '<div class="loading"><span></span><span></span><span></span><span></span><span></span></div>';
item.append(loading_tmp);
}
function loading_finish(item) {
item.children('.loading').remove();
}
// 获取meta信息
function getMetaContentByName(name) {... |
import './css/mentionsInput.css';
import { AT_ALL_TEXT, SOURCE_TYPE } from 'src/components/comment/config';
var _ = require('lodash');
import { htmlEncodeReg, getCaretPosition, setCaretPosition } from 'src/util';
var doT = require('dot');
var categoryAjax = require('src/api/category');
var userAjax = require('src/api/u... |
if (typeof window.attachEvent=='object'){
document.write('<!--[if lte IE 6]>\n'+
'<script type="text/javascript">\n'+
'var ie6_or_less=1;\n'+
'<\/script>\n'+
'<![endif]-->\n'+
'<!--[if lt IE 5.5]>\n'+
'<script type="text/javascript">\n'+
'var less_than_ie5_5=1;\n'+
'<\/script>\n'+
'<![endif]-->')
}
var menu=[], resize... |
var lastElement = null;
var lastPrefix = null;
var lastColor = null;
var comments = new Hash();
var last_shout = null;
var show_tooltips = 1;
var fetchTimeout = null;
var fetchElement = null;
function Hover(prefix, element) {
}
function ClearHover() {
}
// -------------------------
// show progress spinner
//
func... |
import React from 'react'
import Header from '../components/Header'
import Helmet from 'react-helmet'
import { Container } from 'react-bootstrap'
import Footer from '../components/Footer'
// images
class GetStarted extends React.Component {
render() {
return (
<React.Fragment>
<Helmet>
<... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the Source EULA. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import React, { Component } from 'react';
import Brand from '../brand/index';
import CarList from '../carlist/index';
/* global fetch */
class SelectCar extends Component {
constructor(props) {
super(props);
/* eslint-disable react/no-unused-state */
this.state = {
carBrandShow: true, // 是否显示车辆品牌
... |
var sankoreLang = {
display: "Afficher",
edit: "Modifier",
short_desc: "Sélectionner les animaux dans la liste suivante :",
add: "Nouveau bloc",
enter: "Texte",
cat: "chat",
ball: "balle",
shovel: "pelle",
dog: "chien",
tree: "arbre",
wgt_name: "Sélectionner",
reload: ... |
'use strict';
/*
UniClip! Linux Client
Written by: <NAME> <<EMAIL>>
*/
//Client version
var version = 3;
//osID - (2: Windows, 3: Linux, 4: MacOS)
var osID = 3;
const debug = false; //false
const verbose = false; //false
const reset = false; //false
//Electron variables
... |
/*** Helper functions ***/
// Calculate statistics for a boxplot chart from a set of values
function boxplotStats(vals) {
var half, values, min, max, median, h1, h2, q1, q3, iqr;
values = vals.concat()
.sort(function (a, b) { return a - b; })
.filter(function (d) { return d !... |
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { connect } from 'react-redux';
import TransitionGroup from 'react-addons-css-transition-group';
import * as Actions from '../../Engine/actions/SectionActions'
import * as Status from '../../Engine/Status'
import { TextNodeInterpreter } ... |
function t(t, e, a) {
return e in t ? Object.defineProperty(t, e, {
value: a,
enumerable: !0,
configurable: !0,
writable: !0
}) : t[e] = a, t;
}
var e, a, o = getApp(), s = o.requirejs("core"), i = (o.requirejs("icons"), o.requirejs("foxui")), n = o.requirejs("biz/diypage"), r =... |
/* global env: true */
'use strict';
var doop = require('jsdoc/util/doop');
var fs = require('jsdoc/fs');
var helper = require('jsdoc/util/templateHelper');
var logger = require('jsdoc/util/logger');
var parseMarkdown = require('jsdoc/util/markdown').getParser()
var path = require('jsdoc/path');
var taffy = require('t... |
hoverWidth = new Array(16, 36, 76, 49, 58, 92, 36);
hoverWidth_max = new Array(42, 62, 102, 75, 84, 122, 62);
hoverLeft = new Array(-680, -618, -534, -414, -319, -211, -71);
hoverLeft_max = new Array(-693, -631, -549, -427, -333, -228, -85);
///////////////////////////////////////////////
/*
* jquer... |
const path = require( "path" );
const { execAsync, runTask, askInput, askList, nicePrint, printLoaderLine } = require( "@solid-js/cli" );
const { parseBoolean, trailing, leading } = require( "@solid-js/core" );
const { findProject } = require( "./_common" );
const { File, FileFinder } = require( "@solid-js/files" );
/... |
import { elt } from "./util";
import dayjs from "dayjs";
import utc from "dayjs/plugin/utc";
import GeoJSON from "ol/format/GeoJSON";
import epsg3765 from "./epsg3765";
import "ol/ol.css";
import { Map, View } from "ol";
import TileLayer from "ol/layer/Tile";
import VectorLayer from "ol/layer/Vector";
import OSM from ... |
'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... |
/**
* Nested Record Array (SC.ChildRecord) Unit Test
*
* @author <NAME>
*/
// ..........................................................
// Basic Set up needs to move to the setup and teardown
//
var NestedRecord, store, testParent, peopleData1, peopleData2, personData1, addressData1;
var initModels = function(... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// TODO(jhawkins): Use hidden instead of showInline* and display:none.
/**
* Sets the display style of a node.
* @param {!Element} node The target ... |
/* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under ... |
const eTokenType = {
SIGN: "SIGN", // 負
DIGIT: "DIGIT", // 一二三...
DECIMAL: "DECIMAL", // ·
INT_MULT: "INT_MULT", // 十百千萬億...
FRAC_MULT: "FRAC_MULT", // 分釐毫...
DELIM: "DELIM", // 又
ZERO: "ZERO", // 零
// pseudo tokens
BEGIN: "BEGIN", // <BEGIN>
END: "END" // <END>
};
const NUM_TOKENS = {
負: { type... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _Api = require("../Api");
var _messageHelper = require("../messageHelper");
var _shared = require("../shared");
var _default = ProcessExecution;
exports.default = _default;
const kActivated = Symbol.for('ac... |
var MagicZoom_ua = 'msie';
var W = navigator.userAgent.toLowerCase();
if (W.indexOf("opera") != -1) {
MagicZoom_ua = 'opera'
} else if (W.indexOf("msie") != -1) {
MagicZoom_ua = 'msie'
} else if (W.indexOf("safari") != -1) {
MagicZoom_ua = 'safari'
} else if (W.indexOf("mozilla") != -1) {
Magic... |
var _ = require('lazy.js');
var blessed = require('blessed');
var clipboard = require('copy-paste').noConflict();
var Undo = require('undo.js');
var Coordinate = require('../Coordinate');
var util = require('../util');
var word = require('../word');
var markup = require('../markup');
var textUtil = require('../textUti... |
var gBuildDate = "2015年 09月 21日 星期一 12:44:08 CST";console.log("tile map build date: " + gBuildDate);
(function(root) {
var util = {};
root.util = util;
var extend = function(sub, sup) {
var keys = Object.keys(sup);
for(var i = 0; i < keys.length; i++) {
var k = keys[i];
sub[k] = sup[k];
}
};
util.ex... |
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- /
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at... |
"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)... |
// # Core utility functions
// A ragtag collection of helper functions which other modules can import and use
// #### Imports
import * as library from "./library.js";
// #### Functions
// __addStrings__ adds the two arguments together and returns a percentage string value if either of the values was a string;
//
//... |
const terrariaFileParser = require("./utils/terraria-file-parser.js");
const TerrariaWorldParserError = require("./utils/terraria-world-parser-error.js");
module.exports = class terrariaWorldParser extends terrariaFileParser {
constructor() {
super();
}
loadFileSync(file) {
try {
... |
//variable neede for search
var cacheParams = {};
//variable for the item being dragged
var currentDraggedItem = null;
var currentDropTarget = null;
var insertMarkerHalfHeight;
var treeTableOffset;
var expandTimeout = 1000;
var currentExpandTimerId;
var currentDropRefNode;
var currentDropMode;
var nodeIndent = 36;... |
"use strict";
const logos_grid_style =
` position: absolute;
z_index: 20;
height: 0%;
width: calc(78vw + 5vh);
max-width: 100%;
left: 50%;
-webkit-transform: translateX(-50%);
transform: translateX(-50%);
top: 33%;
margin: auto;
display: grid;
justify-items: center;
al... |
import React, { Component } from 'react'
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { setOneRound, setTwoRounds, setIrv, setAvs, setTbc, setSvs, setBvs,
setNCandidates, setNVoters, setNVacancies, addCandidate, deleteCandidate, setName,
setFame, fullReset, setTa... |
var weekend = [0,6];
var weekendColor = "#e0e0e0";
var fontface = "Verdana";
var fontsize = 8; // in "pt" units; used with "font-size" style element
var gNow = new Date();
var ggWinContent;
var ggPosX =-1;
var ggPosY = -1;
Calendar.Months = ["January", "February", "March", "April", "May", "June",
"July", "August", ... |
/* eslint-disable no-continue */
import { addDebugMethods, DebugLevel, proto } from "~/util"
import { Token } from "~/parser"
// Policy for automatically removing whitespace from the token stream.
export const WhitespacePolicy = {
ALL: "ALL", // Leave ALL whitespace
NONE: "NONE", // Remove ALL whitespace
LEADING... |
import {Network} from "vis";
import React, {Component, createRef} from "react";
import {connect} from "react-redux";
import "./SquareGrid.css";
import {
setFragmentIndex,
setCurrentVisualization,
addHistoryEntry,
setOutOfLandingPage,
setHistoryEntryCounter,
setRecommendationArray,
setRecommenda... |
/* global System */
import { arr, promise, obj, chain, fun } from 'lively.lang';
import { query, parse, acorn, walk } from 'lively.ast';
import { pt, Color } from 'lively.graphics';
import { addOrChangeCSSDeclaration } from 'lively.morphic/rendering/dom-helper.js';
import { HTMLMorph } from 'lively.morphic';
import { c... |
// this sets the background color of the master UIView (when there are no windows/tab groups on it)
Titanium.UI.setBackgroundColor('#000');
// create tab group
//var tabGroup = Titanium.UI.createTabGroup();
//Create player window
var win1 = Titanium.UI.createWindow({
title:'Playing from songs',
backgroundCol... |
const APP_NAME = "square-wars";
const DM = new DataManager(APP_NAME);
//global objects for the game
let player, enemy, enemys, bullet, bullets, boss, gameHandler, mathHandler, myGameArea;
//global boolean for the game engine
let gamePlaying;
//difficulty level for game preset to 1
let difficultyLevel = 1
/**
* used t... |
/* eslint-disable no-multi-str,no-undef,consistent-return,no-unused-vars,no-multi-assign */
import React from 'react';
import { GojsDiagram } from 'react-gojs';
import styles from './index.less';
class Index extends React.Component {
constructor(props) {
super(props);
this.state = {};
}
createDiagram = ... |
var modalPopup = ".modal";
var modalPopupContainer = modalPopup + " .modal-content";
var modalPopupContent = modalPopup + " .modal-content";
var isAddDeviceMode =false;
var sensorConfigs = null;
var heatMapInstances = {};
var currentHeatmapInstance = {};
var sensorValues = {};
/*
* set popup maximum height function.... |
const LineAPI = require('./api');
const request = require('request');
const fs = require('fs');
const unirest = require('unirest');
const webp = require('webp-converter');
const path = require('path');
const rp = require('request-promise');
const config = require('./config');
const { Message, OpType, Location } = requi... |
import React, {Component} from 'react';
var citylist = new Array()
citylist["真太阳时列表"] = 0
citylist["北京"] = 0
citylist["台北"] = 364
citylist["太原"] = -1788
citylist["石家庄"] = -1336
citylist["保定"] = -1088
citylist["鞍山"] = 720
citylist["吉林"] = 1584
citylist["上海"] = 344
citylist["徐州"] = -6... |
class SceneA extends Phaser.Scene {
constructor() {
super({ key: 'SceneA', active: false });
this.spotlight = undefined;
this.moveInimigo = false;
this.spaceBar = undefined;
this.funcMove = undefined;
this.funcSusto = undefined;
this.lastDir = undefi... |
const { Cesium } = DC.Namespace
// 非官方的js
import BaseImageryLayers from './Layers/BaseImageryLayers.js';
import GeojsonLayers from './Layers/GeojsonLayers.js';
import Tileset3dLayers from './Layers/Tileset3dLayers.js';
import GltfLayers from './Layers/GltfLayers.js';
import CustomWidgets from './Widgets/CustomWidgets.... |
var ModelTab = {};
// Create an empty model for updating
// ModelTab.modelData = {
// 'time': [],
// 'data': {'type': 'none', 'data': [], 'weights': []},
// 'parameters': [],
// 'variables': [],
// 'ic': {'substitutions': [], 'equations': []},
// 'rhs': {'substitutions': [], 'equations': []}... |
var module = {
name : "DOM testing module",
type : "dom-test",
html : "jquery-test.html"
};
function q() {
var r = [];
for(var i = 0; i < arguments.length; i++) {
r.push(doc.getElementById(arguments[i]));
}
return r;
}
function t(a,b,c) {
var f = jQuery(b).get(), s = "";
for(var i = 0; i < f.length; i++)... |
//--------------------------------------------------------------------------
//
// This file is part of GenePool Swimbots.
// Copyright (c) 2021 by <NAME> - All Rights Reserved.
// ... |
/*********************************************************************************************************************
* Global Variable
*********************************************************************************************************************/
// Global variable for truck
var truck_id;
// Global variabl... |
var config = {
type: Phaser.WEBGL,
parent: 'phaser-example',
width: 800,
height: 600,
scene: {
preload: preload,
create: create
}
};
var fragmentShader = `
/*
* Original shader from: https://www.shadertoy.com/view/ltdXzX
*/
#ifdef GL_ES
precision mediump float;
#endif
// gls... |
import {defs, tiny} from './examples/common.js';
const {
Vector, Vector3, vec, vec3, vec4, color, hex_color, Matrix, Mat4, Light, Shape, Material, Scene, Texture, Shader
} = tiny;
//Body Class from Collisions Demo
export class Body {
// **Body** can store and update the properties of a 3D body that increment... |
/*
*
* ProductPage
*
*/
import React, {PropTypes} from 'react';
import ReactDOM from 'react-dom';
import {BootstrapTable, TableHeaderColumn} from 'react-bootstrap-table';
// or in ECMAScript 5
import {connect} from 'react-redux';
import Helmet from 'react-helmet';
import $ from 'jquery';
import DualLineChart from... |
function BranchData() {
this.position = -1;
this.nodeLength = -1;
this.src = null;
this.evalFalse = 0;
this.evalTrue = 0;
this.init = function(position, nodeLength, src) {
this.position = position;
this.nodeLength = nodeLength;
this.src = src;
return this;
}
... |
"use strict";
/**
* @file
*
* Copyright 2014-2017 FutoIn Project (https://futoin.org)
* Copyright 2014-2017 <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
*
* ... |
import 'antd/es/notification/style';
import _notification from 'antd/es/notification';
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]... |
import ds from '@wq/store';
import model from '@wq/model';
import { convert } from '../vendor/json-forms';
import { createOffline, offlineConfig, RESET_STATE, busy } from './offline';
const { discard: defaultDiscard, retry: defaultRetry } = offlineConfig;
const REMOVE_ITEMS = '@@REMOVE_OUTBOX_ITEMS',
RETRY_ITEMS ... |
import './main.css';
import { scale } from './scale.js';
import { fx } from './glfx.js';
import { http, turnOver, runFunction, convertDataurlToBlob, toggleClass } from './utils';
// 裁剪框的一对边框所占像素
const BORDER_PIX = 4;
// 图片缓存,用于撤销修改
const CACHES = [];
/**
* 绑定事件
* @param {Object} editorObj 编辑器对象
* @return 无
*/
... |
import $ from 'jquery';
import Visibility from 'visibilityjs';
import Vue from 'vue';
import Api from '~/api';
import createFlash from '~/flash';
import { EVENT_ISSUABLE_VUE_APP_CHANGE } from '~/issuable/constants';
import axios from '~/lib/utils/axios_utils';
import { __, sprintf } from '~/locale';
import { confidenti... |
const fs = require('fs-extra')
const help = (prefix, cts, pendaftar) => {
return `
╭─「 *HITMAN-Mika* 」
║╭───────
║├「 *INFORMATION* 」
║│
║│ *Nama* : HITMAN-MIKA
║│ *Versi* : 3.0
║│ *CREATOR* : HITMAN
║│ wa.me/6282156986313
║│ ${99 + pendaftar.length} User Registered
║╰───────
║╭───────
║├「 ... |
'use strict';
var _reactDom = require('react-dom');
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
require('es6-promise').polyfill();
var DOM = require('react-dom-factories');
var createC... |
export { default as ThreeDIcon } from './3d';
export { default as AccessAccessibilityIcon } from './AccessAccessibility';
export { default as AccessAdIcon } from './AccessAd';
export { default as AccessAssistListeningIcon } from './AccessAssistListening';
export { default as AccessBrailleIcon } from './AccessBraille';
... |
// MIT License
// Copyright (c) 2017 <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, merge, pu... |
//********** DEFINICIONES *********************
var isSmallDevice = window.innerWidth < 840 ? true : false;
var path = d3.geoPath();
var padding = isSmallDevice ? 0.5 : 1;
var nodes, bubbles, bubblesStage, labels, labelsBarrios, labelsTemas, labelsExtra, nestedBarrios;
var isSmallDevice = window.innerWidth <... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const web3_js_1 = require("@solana/web3.js");
const fs_1 = __importDefault(require("fs"));
const os_1 = ... |
var vows = require("vows"),
load = require("../load"),
assert = require("../assert");
var suite = vows.describe("d3.scale.log");
suite.addBatch({
"log": {
topic: load("scale/log", "interpolate/hsl"), // beware instanceof d3_Color
"domain": {
"defaults to [1, 10], exactly": function(d3) {
... |
import Promise from 'pouchdb-promise';
import getArguments from 'argsarray';
import { Map } from 'pouchdb-collections';
import { EventEmitter } from 'events';
import inherits from 'inherits';
import immediate from 'immediate';
import { BAD_REQUEST, INVALID_ID, MISSING_ID, RESERVED_ID, createError } from 'pouchdb-errors... |
import $ from '../../core/renderer';
import eventsEngine from '../../events/core/events_engine';
import commonUtils from '../../core/utils/common';
import { getPublicElement, getElementOptions } from '../../core/utils/dom';
import domAdapter from '../../core/dom_adapter';
import { isPlainObject, isFunction, isDefined }... |
// Copyright (c) Microsoft. All rights reserved.
import React from "react";
import { Trans } from "react-i18next";
import update from "immutability-helper";
import {
Balloon,
BalloonAlignment,
BalloonPosition,
} from "@microsoft/azure-iot-ux-fluent-controls/lib/components/Balloon/Balloon";
import { Toggle ... |
//"use strict";
/* Controls to move & rotate blocks in 3D space using thumbsticks.
*
* One thumbstick (default: left) controls position
* The other thumbstick (default: right) controls orientation (rotation).
* Thumbstick movements is interpreted based on the orientation of the controller in question at that momen... |
var sver = require('../sver.js');
var Semver = sver.Semver;
var SemverRange = sver.SemverRange;
var convertRange = require('../convert-range.js');
var assert = require('assert');
suite('Semver Major and Minor Ranges', function() {
test('Range test 1', function() {
assert.equal(SemverRange.match('0.0.1', '0.0.1'... |
// Modified from the amazing <NAME>
// to use rectangles that aren't centered around x,y
// and separate rendering of the quadtree from the class
// For more: https://github.com/CodingTrain/QuadTree
class Point {
constructor(x, y) {
this.x = x;
this.y = y;
}
/**
*
* @param {Point} other required.
* @... |
/* *
*
* (c) 2010-2020 <NAME>
*
* License: www.highcharts.com/license
*
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
*
* */
'use strict';
import H from './Globals.js';
import './Axis.js';
import U from './Utilities.js';
var addEvent = U.addEvent, css = U.css, defined = U.defined... |
function Picker() {
Picker.prototype.Attach = function(Options) {
// Load options from supplied options object
this.Options = Options;
this.RangeTarget = $(Options.Range);
this.Graduations = Options.MaxGraduations || 8;
this.MaxSelection = Options.MaxSelection || 0;
this.M... |
/*
* In tutto il sito vengono utilizzate classi e altri attributi dei tag html
* per specificare del comportamento aggiuntivo realizzato tramite javascript;
* questa funzione attiva tali comportamenti e viene chiamata automaticamente
* in seguito al caricamento della pagina su tutto il document.
*
* `ctx` è il no... |
var numericFilter = function(x) {
return !_.isNaN(parseInt(x))
}
// since we are using an older version of _.js that does not have this function
var findIndex = function(list, predicate) {
for(var i=0;i<list.length;i++){
if(predicate(list[i])){
return i
}
}
}
mciModule.controller('PerfController',... |
// wink-tokenizer
// Multilingual tokenizer that automatically tags each token with its type.
//
// Copyright (C) 2017-20 GRAYPE Systems Private Limited
//
// This file is part of “wink-tokenizer”.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this sof... |
"use strict";
const {
downloadContentFromMessage
} = require("@adiwajshing/baileys-md")
const { color, bgcolor } = require('../lib/color')
const { getBuffer, fetchJson, fetchText, getRandom, getGroupAdmins, runtime, sleep } = require("../lib/myfunc");
const { webp2mp4File } = require("../lib/convert")
const f... |
import * as sel from "selectors";
import * as pi from "wallet/politeia";
import * as wallet from "wallet";
import { GETTRANSACTIONS_COMPLETE } from "./TransactionActions";
import { push as pushHistory } from "connected-react-router";
import { hexReversedHashToArray, reverseRawHash } from "helpers";
import {
setPolite... |
/**
* Authors: BEMOSS Team
* Version: 2.0
* Email: <EMAIL>
* Created: "2014-10-13 18:45:40"
* Updated: "2015-02-13 15:06:41"
* Copyright © 2014 by Virginia Polytechnic Institute and State University
* All rights reserved
* Virginia Polytechnic Institute and State University (Virginia Tech) owns the cop... |
/*
md_ssastc2d.js
Simulation of spherical asteroid compaction in 2-d
<NAME> | <EMAIL>
<NAME> | <EMAIL>
20181121
Change to JS.
Problem by Potential class / function, which is commented.
*/
/*
vect3.js
Library of Vect3 class in JavaScript
<NAME> | <EMAIL>
20170214
Create this librar... |
/*
JS Persian Calendar
@version 0.2.1.1
@created on 2013 July 18 - 1392 Tir 27
@licence GPL
@author <NAME>( AMIB )
<EMAIL>
http://amib.ir/weblog
*/
if ("undefined" === typeof AMIB)var AMIB = {};
var lastOpenPDatePicker = !1, lastOpenPDateMonthYearID = !1, pDatePickerZIndex = 9999, PERSIAN_MONTH_NAMES = "\u064... |
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 (Object.prototype.hasOwnProp... |
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
exports.tsutil = require("./tsutil");
var _ = re... |
//iScrollRefresh 选项卡加上拉刷新 下拉加载
//<EMAIL>
var iScrollRefresh = function(tab_id,bd_id,parames){
var config = {
pullDown:{
height:60,
nextTime:3600, //当没有更新的数据后,间隔多少时间才能再次下拉刷新,单位:秒
html:'<span class="ico"><i></i></span><span class="tip"><b>下拉刷新...</b><i></i></span>',
except:[],
contentDown:'下拉刷新...',
... |
// This next line references a grunt task to include the file below
// so we concatenate these two files
/* Begin: bannersSrc/lib/plugins.min.js */
(function() {
function require(path, parent, orig) {
var resolved = require.resolve(path);
if (null == resolved) {
orig = orig || path;
... |
//
// Lansite Server
// By <NAME>
//
//
// INITIAL SETUP
//
//requires
var crypto = require('crypto');
var readline = require('readline');
var express = require('express');
var socketio = require('socket.io');
var app = express();
var passport = require('passport');
var SteamStrategy = require('passport-steam').S... |
/* eslint-disable no-multi-str */
const YNAB_CONTENT_CONTAINER_SELECTOR = 'div.ynab-u.content';
const YNAB_NATIVE_CONTENT_SELECTOR = 'div.scroll-wrap';
(function poll() {
let allReportsReady = true;
const supportedReports = [{
name: 'Net Worth',
toolkitId: 'netWorthReport'
}, {
name: 'Spending By Cat... |
"use strict";
const path = require('path');
const jsonCopy = require('./json_copy');
const ae = require('./annotation_exporter');
const of = require('./object_factory');
const Pattern = of.Pattern;
const logger = require('./log');
const eol = require('os').EOL;
const _ = require('lodash');
//these are mocked in unit ... |
/* global Module, MMM-Provider-JSON */
/* Magic Mirror
* Module: node_helper
*
* By <NAME>
* MIT Licensed.
*/
const moduleruntime = new Date();
//this loads and formats JSON feeds from a specified source into extended NDTF items, depending on its config when called to from the main module
//TODO
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.