text
stringlengths
8.5k
48.7k
let focusInput, readChar const {Emitter, Disposable, CompositeDisposable} = require('atom') const settings = require('./settings') const LoadedLibs = {} const __vimStatesByEditor = new Map() const dasherize = s => (s[0].toLowerCase() + s.slice(1)).replace(/[A-Z]/g, m => '-' + m.toLowerCase()) const classify = s => s...
function array_unique(arr, key) { var tmp_arr = []; var tmp_arr_key = []; for (var i = 0; i < arr.length; i++) { if (tmp_arr_key.indexOf(key ? arr[i][key] : arr[i]) == "-1") { tmp_arr.push(arr[i]); tmp_arr_key.push(arr[i][key]); } } return tmp_arr; } function...
/* ----------------------------------------------- /* Author : <NAME> - vincentgarreau.com /* MIT license: http://opensource.org/licenses/MIT /* Demo / Generator : vincentgarreau.com/particles.js /* GitHub : github.com/VincentGarreau/particles.js /* How to use? : Check the GitHub README /* v2.0.0 /* ------------------...
var g_config = { //数字 empty:-1 ,numStart:0 ,numX:10 ,numMultiX:100 //消除多个X时返回值 120:2"X" 130:3"X" 140:4"X" //方向 ,directCount:4 //Grid的大小 ,gridCount_x:7 ,gridCount_y:7 //初始块数 ,brickNum_init:8 ,brickNum_everyRound:2 ,gridMargin:5 ,gridInnerSize:80 ,gridOuterSize:90 ,gridTop:150 //暂停目录按钮坐标 ,pauseBtL...
import gunModule from './gun'; import playerModule from './player'; import itemModule from './item'; let gore_emitter; function destroyText(text) { setTimeout(() => { text.destroy(); }, 1000); } function gorify(x,y, vx, vy, amt) { // Start gore emitter gore_emitter.x = x; gore_emitter.y = y; gore_em...
const toolbar = document.querySelector('#toolbar'); const toolbarToggle = document.querySelector('#toolbar-toggle'); const datasetInp = document.querySelector('#dataset'); const pointsSizeInp = document.querySelector('#points-size'); const pointsSizeVal = document.querySelector('#points-size-value'); const pointsOpaci...
var width = 1360, height = 700, root, linkColor = '#444444', rootBranches = [], selectedNode = {}, optArray = [], searchBy = "name", clusterOn = false, searchBox = $("#search-input"), labelsOn, linksOn, linksCheckbox = $('#show-link-cb'), labelsCheckbox = $('#show-la...
#!/usr/bin/env node const VERBOSE = "VERBOSE" in process.env; const TERSE = VERBOSE; const TESTS = "TESTS" in process.env ? process.env.TESTS.split(/,/) : null; const ShExUtil = require("@shexjs/util"); const ShExTerm = require("@shexjs/term"); const RdfJs = require("n3"); const ShExNode = require("@shexjs/node")({ ...
// Global variables (starting positions) var examEditingOn = false; var numCases = 2; // For searching through the question bank function query() { //document.getElementById("version").innerHTML = "testing for cache"; var xhttp = new XMLHttpRequest(); var qRequest = "query=GetQuestions"; var...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var React = require('react'); var core = require('hassanreact/core'); var inputtext = require('hassanreact/inputtext'); function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } var ...
/** * fMP4 remuxer */ import AAC from '../helper/aac'; import Event from '../events'; import {logger} from '../utils/logger'; import MP4 from '../remux/mp4-generator'; import {ErrorTypes, ErrorDetails} from '../errors'; import '../utils/polyfill'; class MP4Remuxer { constructor(observer, id, config) { this.ob...
var events = require('events') , path = require('path') , basename = path.basename , util = require('util') , utils = require('cli-util') , camelcase = utils.camelcase , define = utils.define , EventProxy = require('./lib/event-proxy') , Description = require('cli-description') , mutators = require('...
global.d3 = require('d3'); var Flatpickr = require('flatpickr'); var L = require('leaflet'); require('leaflet-contextmenu'); require('leaflet-loading'); var moment = require('moment'); require('./lib/leaflet.elevation-0.0.4.min.js'); require('./lib/leaflet_numbered_markers.js'); global.jQuery = require('jquery'); glo...
/* -------------------------------------------------------------------------- */ // J_Base // V: 1.2 // /*:@plugindesc The core plugin that basically handles setup, icons, text, etc. This should go above any other plugins of mine you use! @author J @param MHP-icon @desc This is the icon ID for the MHP stat to ...
var packageRegex = "[a-z_A-Z]\\w+(?:\\.@?[a-z_A-Z]\\w+)*"; var validIdientifierRegex = new RegExp("^@?" + packageRegex + "$"); var urlExp = /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; /** * Parent class for inheritance into the System. * @returns {Type} * @construc...
import Root from '../../generated/root.svelte'; import { routes, fallback } from '../../generated/manifest.js'; import { g as get_base_uri } from '../chunks/utils.js'; import { writable } from 'svelte/store'; import { init } from './singletons.js'; import { set_paths } from '../paths.js'; function scroll_state() { re...
import luckysheetConfigsetting from './luckysheetConfigsetting'; import luckysheetFreezen from './freezen'; import { luckysheetrefreshgrid } from '../global/refresh'; import Store from '../store'; import locale from '../locale/locale'; import sheetmanage from './sheetmanage'; import tooltip from '../global/tooltip' le...
"use strict"; var cadence; (function (cadence) { class Point { constructor(x, y) { this.x = x; this.y = y; } } cadence.Point = Point; class Rectangle { constructor() { this.x = 0; this.y = 0; this.width = 1; ...
function doCmd(idIframe,sCmd,sOption) { var oEditor=eval(idIframe); var oSel=oEditor.document.selection.createRange(); var sType=oEditor.document.selection.type; var oTarget=(sType=="None"?oEditor.document:oSel); oTarget.execCommand(sCmd,false,sOption); } function getHTMLBody(idIframe) { var oEditor=eval(idIf...
var db = require('../db.js'); var airports = require('../public/data/airports.json'); var aircrafts = require('../public/data/aircrafts.json'); var flights = require('./Flights.js'); var moment = require('moment'); var jwt = require('jsonwebtoken'); var request = require("request"); var array =require("../public/data/o...
/* * anime.js v3.1.2 * (c) 2020 <NAME> * Released under the MIT license * animejs.com */ 'use strict'; // Defaults var defaultInstanceSettings = {}; var defaultTweenSettings = { duration: 1000, round: 0 }; var validTransforms = ['translateX', 'translateY', 'translateZ', 'rotate', 'rotateX', 'rotateY', 'ro...
var tipoTransaccion; // function addDetallesNota(items, tipo, id){ // if (items==null){ // items = []; // } // $(document).ready(function () { // $('#table_bienes').DataTable({ // destroy: true, // paging: false, // searching: false, // aaSort...
function Board(cellSize, numHCells, numVCells) { this.cellSize = cellSize; this.numHCells = numHCells; this.numVCells = numVCells; this.Board = document.getElementById("myBoard"); this.maxWidth = this.Board.clientWidth; this.currentTerrainType = ""; this.currentElevation = 2; this.backgr...
#! /usr/bin/env node "use strict"; /* jshint esnext:true, node:true */ const crypto = require('crypto') , path = require('path') , fs = require('fs') , { nodeCallback2Promise } = require('./nodeCallback2Promise') , { AsyncQueue } = require('./AsyncQueue') , { StorageService: GRPCStorageService} = require('pr...
/* * eGov SmartCity eGovernance suite aims to improve the internal efficiency,transparency, * accountability and the service delivery of the government organizations. * * Copyright (C) 2017 eGovernments Foundation * * The updated version of eGov suite of products as by eGovernments Foundation * ...
/** * Copyright 2019 <NAME>. All Rights Reserved. * * Distributed under MIT license * https://opensource.org/licenses/MIT * */ "use strict"; import Vue from 'vue'; import VueRouter from 'vue-router'; import Constants from '../../common/constants'; import Config from '../../common/config'; import CommonUtils from...
// -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ const nsIFilePicker = Compone...
var today = new Date(); var time = today.getHours() + ":" + today.getMinutes() + ":" + today.getSeconds(); var hour = String(today.getHours()) console.log(hour) var mm = String(today.getMonth() + 1).padStart(2, '0'); //January is 0! if (today.getHours() >= 17 && today.getHours() <=23) { if (dd<=9) var dd = String(par...
// global properties, assigned with let for easy overriding by the user let disk; // store user input history let inputs = ['']; let inputsPos = 0; // define list style let bullet = '•'; // reference to the input element let input = document.querySelector('#input'); // add any default values to the disk // disk -> ...
import React, {forwardRef, useState, useEffect} from 'react'; import PropTypes from 'prop-types'; import SortOrder from 'react-base-table/lib/SortOrder'; import AdvancedTable from '../AdvancedTable/AdvancedTable'; import { generateUUID, getObjectExcludedProps, noop, notificationError } from "../../utils/baseUtils"; imp...
"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 NativeEvent = { _listener...
$('#uploadSelectFile').on('change', function () { //get the file name var fileName = $(this).val().replace('C:\\fakepath\\', " "); //replace the "Choose a file" label $(this).next('.custom-file-label').html(fileName); }); $('a.a-submit, button.btn-submit').on('click', function (event) { $(event.targ...
import { ServerConnection, MemoryStore, Log, parseId } from '@logux/core' import { LoguxNotFoundError } from '@logux/actions' import { createNanoEvents } from 'nanoevents' import { promises as fs } from 'fs' import { fileURLToPath } from 'url' import { join, dirname } from 'path' import UrlPattern from 'url-pattern' im...
//#region Global Variables let cWidth = 1202, cHeight = 602; let shapes = [], points = []; let insideShape = false, selectedShape = -1; let input = 0, rotDir = 0, moveDir = 0; let rotSpeed, moveSpeed; let mousePoint; let staticCollision = false; //#endregion function setup() { createCanvas(cWidth, cHeight); ...
/* * NodeHispano v0.0.1 * @author: <NAME> <<EMAIL>> * @filename: server.js * */ var cfg = {} , couchAuthUrl; // nunca expongas tus credenciales (siempre usa un config.json o ENV variables) // en este caso la base de datos es pública por lo tanto no hay necesidad de ocultarlos if (process.env.NODE_ENV === 'prod...
const container = document.getElementById('popup'); const content = document.getElementById('popup-content'); const closer = document.getElementById('popup-closer'); ////////////////////////////////////////////////////////////////////// function VisusOL(params) { var self=this; self.id = params...
var debug = 0; var counter = 0; // gIp = 'http://127.0.0.1:3006/'; // gIp = serverConfig.mode + "://" + serverConfig.ip + ":" + serverConfig.port + "/"; if(serverConfig.runOnServer) gIp = "https://partner.bauexperts.de:3010/"; else gIp = 'https://127.0.0.1:3006/'; function raw(x) { return JSON.parse(JSON....
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var react = require('react'); function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prot...
export const JOIN_DRAFT = 'JOIN_DRAFT' export const START_DRAFT = 'START_DRAFT' export const RESUME_DRAFT = 'RESUME_DRAFT' export const SIMULATE_DRAFT = 'SIMULATE_DRAFT' export const PICK_TIMER_PICK = 'PICK_TIMER_PICK' export const PACK_TO_PICK = 'PACK_TO_PICK' export const NEXT_PACK = 'NEXT_PACK' export const PICK_...
/* Coinmarketcap sniper bot that uses telegram notification from specific channel make sure you join the telegram channel before running the bot https://t.me/CMC_fastest_alerts https://t.me/CMC_CG_listing_alerts ## Tips for you: Turn on two step verification in telegram. Go to my.telegram.org and create App to get a...
import SpeedSection from './speed-section.js'; import * as TestCustomElements from '../../../helpers/test/test-custom-elements.js'; import CurrentContext from '../../../models/current-context.js'; import { inputValueAndTriggerEvent } from '../../../helpers/element-helpers.js'; import { nullIfEmptyString } from '../.....
var Enigma = function(message){ if(typeof(message) === 'undefined') message = "ADIVINANZA"; this.message = message; this.active = false; this.setMessage = function(new_message){ this.message = new_message; }; }; var Map = function(file_name, trigger ){ if(typeof(file_name) === 'undefined') file_name = "de...
import {playbackActions} from './playback-actions'; import _ from 'lodash' import deepClone from 'deep-clone' import {resetModes, resetModesAndPlayback} from '../../util/ModeManager'; import {getActionDefinition} from '../../util/ActionUtils'; import {countReportableActions} from '../../util/TestUtils'; import {Request...
function TraceInfoFlag() { this.traceFlag = new Array(); this.traceFlag["Plantv2.c:432c61"]=1; this.traceFlag["Plantv2.c:433c61"]=1; this.traceFlag["Plantv2.c:434c61"]=1; this.traceFlag["Plantv2.c:446c42"]=1; this.traceFlag["Plantv2.c:446c66"]=1; this.traceFlag["Plantv2.c:447c45"]=1; thi...
import Config from './Config' var app //global variable class GameScene extends Phaser.Scene { init() { app = this this.getZombieCardsData() this.player this.opponent //obstacles this.spawnObstacleCount = 0 this.spawnMin = 0 this.spawnMax = 0 /...
/* -*- coding: utf-8 -*- Copyright (c) 2016 <NAME> <<EMAIL>> 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, mer...
const { hash64 } = require('@bibletags/bibletags-ui-helper') const { getOrigLangVersionIdFromLoc, equalObjs, getObjFromArrayOfObjs, deepSortTagSetTags, cloneObj } = require('./utils') const getWordInfoByIdAndPart = require('./getWordInfoByIdAndPart') const SUBMIT_TAG_SETS_CALC_ROW_LIMIT_PER_STATUS = 100 const WORD_HA...
import React, { createElement, useState, useEffect } from 'react'; import { CommonActions, createNavigatorFactory, useNavigationBuilder, TabRouter } from '@react-navigation/native'; import { Platform, Dimensions, Animated, StyleSheet, View, BackHandler, I18nManager } from 'react-native'; import Styled, { css } from 'st...
import {transitionEvent} from "../functions/transitionEvent"; import {animationEvent} from "../functions/animationEvent"; import {animationSupport} from "../functions/animationSupport"; import {jsAnimation} from "../functions/jsAnimation"; import {httpGet} from "../functions/promise-ajax"; import GlobalVariables from "...
import { Principal } from "@dfinity/principal"; import qrcode from "./qrcode"; import { Agent, decodeIdentity } from "./agent"; const MIN_ALLOCATION = 0.001; // in trillion cycles function formatICP(e8s) { return (Number((BigInt(e8s) * 10000n) / 100000000n) / 10000).toFixed(4); } function formatCycle(val, d = 3) {...
// vim: ts=4 sw=4 var FBP_canvas; var FBP_CANVAS_TOP=50; var FBP_linkIsActive= false; var g_lines=[]; var g_nodes=[]; var g_pages={}; var g_filename; g_current_page = null; var id=window.location.href; var f=id.split("/"); id = f[4]; $.post("/applications/"+id, function(r) { g_filename = r.app.id; }); $(document).r...
/******************************************* * Acos - Advanced Content Server * Server for hosting smart learning content * * Licensed under MIT license. */ var express = require('express'); var path = require('path'); var favicon = require('serve-favicon'); var logger = require('morgan'); var cookieParser = requ...
/* Speedtest.net client. The MIT License (MIT) Copyright (c) 2014 DDSol 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...
var utils = require('../../../lib/node/utils'); var formatter = require('../../../lib/node/dataFormatter'); var CmpTypeNames = { 'grid': 'Grid', 'form': 'Form', 'ms-linkage': 'Link' }; var cmpDefHT = {}, routerHT = {}, navDefHT = {}; var bizCmpHT = new IX.IListManager(), pageHT = new IX.IListManager(); var router...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PdfViewer = void 0; const path = require("path"); const vscode = require("vscode"); const CortexBuilder_1 = require("./Creator/CortexBuilder"); const CortexBuilder_2 = require("./Creator/CortexBuilder"); const CortexBuilder_3 = require...
import React, { Component } from "react"; // We need to import tf to set the TensorFlow's JavaScript backend import * as tf from "@tensorflow/tfjs"; import * as posenet from "@tensorflow-models/posenet"; import * as THREE from "three"; import Jumping from "../assets/Jump2.fbx"; import deadline from "../assets/logos/hou...
const html_main = document.querySelector('.main > .container'); const category = document.querySelector('.main > .category > .container'); var scroll_y = 0; var carousel_count = 2; var bag_items = []; // [chicken-mcdo-mcnuggets, mcspaghetti-rice-meals, burgers] var food_category = [false, false, false]; function hea...
"use strict"; /* eslint camelcase:off */ const ArgHandler = require("../ArgHandler"); const xmlq = require("../xml/xmlq"); const colorIndexes = require("../colorIndexes"); const {mapValues} = require('../utils'); const Helper = { getFontVerticalAlignment: (fontNode) => { return xmlq.getChildAttribute(fo...
import unified from "unified"; import markdown from "remark-parse"; import remark2rehype from "remark-rehype"; import stringify from "rehype-stringify"; import gfm from "remark-gfm"; import slug from "remark-slug"; import toc from "remark-toc"; import math from "remark-math"; import katex from "rehype-katex"; import em...
var map; var geoCoder; var myApp = angular.module('searchApp', ['ngAnimate']); String.prototype.contains = function (t) { return this.indexOf(t) != -1; }; myApp.controller('SearchController', function ($scope, $filter, $timeout) { $scope.countyList = countyList; $scope.storedSearches = []; $scope.last...
var ground_set = [0, 100000]; function pSearch() { return URL_PROPERTIES + '?' + $.param( { city: $('#city').val(), price: price_set, ground: ground_set, inmobs: $('input[name=p_inmob]:checked').val(), type: $('input[name=p_...
var formatDate = function(date,format){if(!format)format="yyyy-MM-dd HH:mm:ss";date=new Date(parseInt(date));var dict={"yyyy":date.getFullYear(),"M":date.getMonth()+1,"d":date.getDate(),"H":date.getHours(),"m":date.getMinutes(),"s":date.getSeconds(),"S":date.getMilliseconds(),"MM":(""+(date.getMonth()+101)).substr(1),"...
// using strict mode at the beginning of your js code // // start code with strict mode to catch errors in your code easier on the console debug // ! the code lessons moving forward will use strict mode ! 'use strict'; let hasDriversLicense = false; const passTest = true; // make sure your writing of the variables...
var baseURL = $("#base-url").val(); function changeArgDependency(dep, op) { $.each($('.field_dependency' + dep) , function() { $(this).hide(); }); $('.field_dependency' + dep + '_' + op).show(); $('#arg_dependency' + dep).html($('#arg_dependency' + dep + '_' + op)[0].innerText); } var ComponentsBootstr...
var express = require('express'); var app = express(); var bodyParser = require('body-parser'); var request = require('request'); var mongoose = require('mongoose'); var config = require('./config'); var noticeconfig = require('./noticeString'); var fs = require('fs'); // CONNECT TO MONGODB SERVER var db = mongoose.co...
import React, { Component } from 'react'; import { Redirect } from 'react-router'; import { connect } from 'react-redux'; import { bindActionCreators, compose } from 'redux'; import { Button, Row, Col, ButtonToolbar, ButtonGroup, DropdownItem, DropdownMenu, DropdownToggle, UncontrolledDropdown, Nav, NavItem, NavLink }...
// Module dependencies // ---------------------------------------------------------------------------- var request = require('request'), express = require('express'), bodyParser = require('body-parser'), session = require('express-session'), passport = require('passport'), GoogleStrategy = require('pa...
// // WebTablet.js // // Created by <NAME> on 8/8/2016 // Copyright 2016 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // /* global getControllerWorldLocation, Tablet, WebTablet:true, HMD, Setting...
// # Demo Snippets 005 // Create a responsive, interactive and accessible before/after slider infographic // // Related files: // + [Slider infographic snippet - main module](../snippets-005.html) // ### 'Before-after slider infographic' snippet // __Purpose:__ Turn a pair of images, alongside associated data, into a ...
/*** @using { core.RAIIEventEmitter } **/ var Modernizr = window.Modernizr exports.capabilities = { csstransforms3d: Modernizr.csstransforms3d, csstransforms: Modernizr.csstransforms, csstransitions: Modernizr.csstransitions } var imageCache = null exports.createAddRule = function(style) { if(! (style.sheet || ...
var selectedOperation = null; var selectedClass = null; var selectedElement = null; var current = {}; var currentMenu = null; var currentEditor = null; var currentError = null; var currentContent = null; var currentContentDirty = false; // Transitional var programListText = localStorage.getItem('programList'); /** ...
/* eslint prefer-template: 0 */ import React, { forwardRef, Fragment, useCallback, useEffect, useMemo, useReducer, useRef, useState } from 'react' import PropTypes from 'prop-types' import { fromEvent } from 'file-selector' import { allFilesAccepted, composeEventHandlers, fileAccepted, fileMatch...
import React, { Component } from 'react'; // import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { is } from 'immutable'; import { View, Text, StyleSheet, LayoutAnimation, FlatList, Platform, TouchableOpacity, Modal, Alert, Image, Keyboard, } from 'react-native'; import Loading ...
/* Banner 商城管理/内容管理/banner管理 */ // ================== // 所需的各种插件 // ================== import React from "react"; import { connect } from "react-redux"; import { bindActionCreators } from "redux"; import P from "prop-types"; import BraftEditor from "braft-editor"; import "braft-editor/dist/braft.css"; import Config f...
import RichNode from '@lblod/marawa/rich-node'; import { isAdjacentRange, isEmptyRange } from '@lblod/marawa/range-helpers'; import { wrapRichNode } from '../rich-node-tree-modification'; import { runInDebug } from '@ember/debug'; import { parsePrefixString } from '@lblod/marawa/rdfa-attributes'; import { isVoidElement...
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ /* Copyright 2012 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the ...
import * as mars3d from "mars3d" export let map // mars3d.Map三维地图对象 export let graphicLayer // 矢量图层对象 let allCount let lastSelectWX // 需要覆盖config.json中地图属性参数(当前示例框架中自动处理合并) export const mapOptions = { scene: { center: { lat: 29.646563, lng: 96.25028, alt: 150004581, heading: 352, pitch: -90 }, cameraControl...
const express = require('express'); const app = (module.exports = express()); const fs = require('fs'); const sharp = require('sharp'); const Busboy = require('busboy'); const unzipper = require('unzipper'); const StreamZip = require('node-stream-zip'); const request = require('request'); const connection = require('.....
var dns = require('dns-socket') var events = require('events') var util = require('util') var crypto = require('crypto') var network = require('network-address') var multicast = require('multicast-dns') var debug = require('debug')('dns-discovery') var store = require('./store') var IPv4 = /^\d{1,3}\.\d{1,3}\.\d{1,3}....
'use strict'; const _folder = require('wysknd-lib').folder; const _utils = require('wysknd-lib').utils; const _lambdaConfig = require('./src/lambda-config.json'); const _awsSdk = require('aws-sdk'); const DEPLOY_STACKS = ['dev', 'qa', 'prod', 'core', 'api']; // Need to set project specific options here. const DEFAULT...
#!/usr/bin/env teajs var exports = require("GL"); for (var p in exports) { global[p] = exports[p]; } //adding matrix 4x4 library /* * Copyright (c) 2009, Mozilla Corp * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the foll...
import React from 'react'; import DTable from 'dtable-sdk'; import L from 'leaflet'; import LocationSettings from './components/location-settings'; import Loading from './components/loading'; import intl from 'react-intl-universal'; import './locale/index.js'; import * as image from './image/index'; import { getLocat...
'use strict'; // Default snooze times per tree in minutes. const DefaultSnoozeTimes = { 'chromium.perf': 60 * 24, '*': 60, }; const ONE_MIN_MS = 1000 * 60; // TODO(yuanzhi) Consider construct this list from a monorail query. const MONORAIL_PROJECTS = ['chromium', 'fuchsia', 'gn', 'monorail', 'v8', 'webrtc']; ...
var events = []; //array to keep all events var initialDowntime = 0; //start time of first key event var questionInitialDowntime = 0; var sessionObject = sessionInfo(); // keeps track of the sessionInformation var qAnswers = questionnaireAnswers(); // keeps track of questionnaire answers var isFirstKeyPress = true; ...
import React, { Component } from "react"; import { Field, FieldArray } from "redux-form"; import { Row, Col, Form, Button, Typography, Popconfirm, Alert, Tooltip, Icon, Card } from "antd"; import { capitalize, isEmpty } from "lodash"; import PropTypes from "prop-types"; import { renderConfig } from "@/components/common...
var cityname; var kelvin = new Array(); var hourkelvin = new Array(); var checktf=0; function loaddefault(){ //loadWeather('Toronto'); //loadForcast('Toronto'); //celsius(); autocomplete(); loadWeather('Toronto'); } function autocomplete(){ var input = document.getElementById('autocomplete'); var autocompl...
/* Copyright (C) 2016 NooBaa */ 'use strict'; const _ = require('lodash'); const util = require('util'); const P = require('../../util/promise'); const dbg = require('../../util/debug_module')(__filename); const config = require('../../../config'); const MDStore = require('../object_services/md_store').MDStore; const ...
// Paper texture html background generation // <NAME> 2018 // math constants var rad2deg = 180/Math.PI var deg2rad = Math.PI/180 var PI = Math.PI var sin = Math.sin var cos = Math.cos var abs = Math.abs var pow = Math.pow function rad(x){return x * deg2rad} function deg(x){return x * rad2deg} // seedable pseudo rando...
import {unByKey as unlistenByKey} from "ol/Observable.js"; import VectorLayer from "ol/layer/Vector.js"; import Cluster from "ol/source/Cluster.js"; import {Group as LayerGroup} from "ol/layer.js"; import VectorSource from "ol/source/Vector.js"; import MapView from "./mapView"; import ObliqueMap from "./obliqueMap"; im...
$(document) .ready( function() { title = blogcontent.title + "-" +basicsetTitle; // 设置专栏信息 $("#n1").css('display', 'block'); if (blogcolumn != null && blogcolumn != '') { // 设置专栏信息 $("#n2").css('display', 'block'); if (blogcolumn.columnType == 'M') { // 主专栏 // ...
$(function() { $(".demo2").trigger("click"); tableList(page_id); }); $('.demo2').click(function(){ swal({ title: "Good job!", text: 'test', type: "success" }); }); $('#date').datepicker({ todayHighlight: true }); $(".number").on("input", function(evt) { var self = $(th...
/* * Copyright 2011 2012 2013 <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 applicable law o...
import { COUNT_METHODS, WORLD_LOCATIONS, } from "./types.js"; import { dateStrParser, isPerCapita, MS_PER_DAY } from "./utils.js"; const plotAesthetics = Object.freeze((() => { const colorScale = (t) => d3.interpolateYlOrRd(t); const pa = { width: { usa: 500, world: 500 }, height: { usa: 325, wo...
// @ts-check // Source : http://wiki.seeedstudio.com/wiki/Grove_-_OLED_Display_128*64 const OLED_CONST = { basicFont: [ [0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00], [0x00, 0x00, 0x5f, 0x00, 0x00, 0x00, 0x00, 0x00], [0x00, 0x00, 0x07, 0x00, 0x07, 0x00, 0x00, 0x00], [0x00, 0x14, 0x7f, 0x14, 0x7f, ...
var eduscope = angular.module('eduscope', ['FBAngular']); // ===================================Whiteboard Variables ============================================== var color; //to change line color var width = 5; //to change line width var isPensil = false; var isEraser = false; var isHighlighter = false; var ...
/** * Created by wenhua on 14-7-25. */ //获取URL地址hash参数的值 function getQueryStringRegExp(name,getAfter) { var reg = new RegExp('(^|\\?|&|#)' + name + '=([^&]*)(\\s|&|$)', 'i'); if(getAfter){ var reg = new RegExp('(^|\\?|&|#)' + name + '=(.*)(.*)', 'i'); } if (reg.test(location.hash)) return decodeURIComponent(Reg...
/* global swal, axios, Dropzone, ClipboardJS, LazyLoad */ const lsKeys = { token: 'token', chunkSize: 'chunkSize', parallelUploads: 'parallelUploads', uploadsHistoryOrder: 'uploadsHistoryOrder', previewImages: 'previewImages', fileLength: 'fileLength', uploadAge: 'uploadAge' } const page = { // user t...
/** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @providesModule GraphQLParser * * @format */ 'use strict'; var _extends3 = _interopRequireDefault(require('babel-runtime/helpers/...
// ============== Consts ============== const Discord = require('discord.js'); const moment = require('moment'); const { prefix, token, channel, GOOGLE_API_KEY } = require('./config.json'); const discord = require('discord.js'); const ytdl = require("ytdl-core"); const fmmpg = require("ffmpeg"); const YouTube...
'use strict' const crypto = require('crypto') const asn1 = require('asn1.js') const ec_pem_api = { __proto__: Object.getPrototypeOf(crypto.createECDH('prime256v1')), encodePrivateKey(enc) { return encodePrivateKey(this, enc) }, encodePublicKey(enc) { return encodePublicKey(this, enc) }, sign(algorithm, ...opti...