text
stringlengths
3.22k
29.5k
/* eslint-env mocha */ 'use strict' const { expect } = require('aegir/utils/chai') const { UnixFS } = require('ipfs-unixfs') const all = require('it-all') const last = require('it-last') const randomBytes = require('it-buffer-stream') const { exporter, walkPath } = require('../src') const { importer } = require('ipfs-...
const app = require('..'); const path = require('path'); const fs = require('fs'); const main = require("./orthography"); const dictionary = require("./dictionary"); const {orthography} = app.Config; const cliTask = {}; const wordCollection = 'word-collection.json'; const readText = async (file) => await fs.promise...
/** * Created by jun on 15/11/20. */ var cid = 0; var page = 1; var perpage = 40; var orderFlag = 10; $(function () { $('.select-icon').click(function(){ $('.select-total').toggle(); }); //首页轮播图 $.getJsonp(apiBaseUrl + '/banner/banner-list', {type: 0, source: 1, num: 5}, function (json) { ...
"use strict"; /* * Copyright (C) 2017-2020 HERE Europe B.V. * Licensed under Apache 2.0, see full license in LICENSE * SPDX-License-Identifier: Apache-2.0 */ Object.defineProperty(exports, "__esModule", { value: true }); exports.EdgeMaterial = void 0; const THREE = require("three"); const MapMeshMaterials_1 = requi...
/** * Created by maddoxw on 7/23/16. */ 'use strict' const $ = require('jquery') const utils = require('utils') const WFSContext = require('WFS110Context') const settings = require('serversettings') const OSMFire_Core = require('MainCore') require('jquery-ui') let callback = function(sandBox) { let wfsProjecti...
const mime = require('mime'); const ObjectUtils = require('wootils/shared/objectUtils'); const { eventNames } = require('../../constants'); const { middlewareCreator } = require('../../utils/wrappers'); const { createRouteExpression, removeSlashes } = require('../../utils/functions'); /** * @typedef {import('../../ty...
var canvas = document.getElementById("canvasPolygon"); canvas.addEventListener("click", handle_click_mouse_event); canvas.addEventListener("mousemove", update_current_position); canvas.addEventListener("mousedown", handle_mouse_down_event); canvas.addEventListener("mouseup", handle_mouse_up_event); window.addEventList...
// // ansi.js -- send ANSI screen codes to stdout // // <NAME> // May, 2015 // //----------[ Color Codes ]---------- exports.FG_BLACK = 30; exports.FG_RED = 31; exports.FG_GREEN = 32; exports.FG_YELLOW = 33; exports.FG_BLUE = 34; exports.FG_MAGENTA = 35; exports.FG_CYAN = 36; exports.FG_WHITE = 37; exports.BG_BLACK...
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...
/* ------------------------------------------ !!ADD COMMENTS!! ------------------------------------------ */ let lb; let lbData = []; let pages = []; let pageNumber = 0; let pageSize = 25; let currentStat = { type: "k", displayname: "Total Kills" } let leaderboardLoaded = false; async function inn...
/** * Created by caoshuaibiao on 2018/8/15. * 顶部多模块头 */ import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'dva/router'; import properties from '../properties'; import { AppstoreOutlined, DownOutlined, LogoutOutlined, QuestionCircleOutlined, UserOutlined, } from '...
// MODULES const PythonShell = require('python-shell') const fs = require('fs') const xml2js = require('xml2js') const nlp = require('nlp_compromise') nlp.plugin(require('nlp-syllables')) const math = require('mathjs') const _ = require('underscore') const async = require('async') const time = require('node-tictoc') co...
const fs = require('fs') const rfr = require('rfr') const actionsPath = './actions/' const Model = require('./model').model const extend = require('extend') const ObjectId = require('mongoose').Types.ObjectId const jimp = require('jimp') const moment = require('moment') const jwtHelper = rfr('helpers/jwt') const error...
/* eslint-disable eqeqeq */ const moment = require("moment-timezone"); const userModel = require("../../models/userModel"); const deadlineModel = require("../../models/deadlineModel"); const roundModel = require("../../models/roundModel"); const slotModel = require("../../models/slotModel"); const updatesModel = requir...
import React, { Component } from 'react'; import { TextField, FormGroup, FormControl, Paper, withStyles,Typography, Grid, Divider, InputLabel, Select, OutlinedInput, Card, CardMedia, IconButton, GridListTileBar, GridList, GridListTile } from '@material-ui/core'; import styles from './styles/new-listing'; im...
"use strict"; const { vec3, vec4, mat4 } = glMatrix; var canvas; var gl; var numVertices = 36; var points = []; var colors = []; var rotationMatrix; var rotationMatrixLoc; var angle = 0.0; var axis = [ 0, 0, 1 ]; var trackingMouse = false; var trackballMove = false; var lastPos = [ 0, 0, 0 ]; var curx, cury; va...
// Test for FDSSL let timer1 = Math.random() * 10000.0; const seed = Math.random() * 10000.0; let vertexCount = 0; let rotate = false; let vsSource = ` precision highp float; precision highp int; uniform mat4 uProjectionMatrix; uniform mat4 uModelViewMatrix; attribute vec4 aVertPos; varying vec2 vXY; void main() { ...
// REW Auto EQ to GEQ function writeTextFile(afilename, output) { var txtFile = new File(afilename); txtFile.writeln(output); txtFile.close(); } function makeArr(startValue, stopValue, cardinality) { var arr = []; var step = (stopValue - startValue) / (cardinality - 1); for (var i = 0; i < cardinality; i+...
const sqlconnector = require('../db/SqlConnector') const { checkPermission } = require('./permissions/BookingPermissions') const { getProcessor } = require('./command') const MatchCommandProcessors = require('./processor') const SQLErrorFactory = require('./../utils/SqlErrorFactory'); const RESTError = require('./../ut...
//Protects self through (element) (shape) (effect). const elements = [ "Dark", "Light", "Fire", "Lightning", "Wind", "Water", "Force", "Toxic", "Energy", "Illusion", "Earth", "Metal", "Time", "Life" ] const effects = [ { name: "and absorb...
export const space = [0, 4, 8, 12, 16, 20, 24, 32, 40, 48, 56, 64, 72]; export const shadows = { raised: "rgba(46, 41, 51, 0.08) 0px 1px 2px, rgba(71, 63, 79, 0.08) 0px 2px 4px", floating: "rgba(46, 41, 51, 0.08) 0px 2px 4px, rgba(71, 63, 79, 0.16) 0px 4px 8px", overlay: "rgba(46, 41, 51, 0.08) 0px 4...
import React, {Component} from 'react'; import { View, Text, Platform, ActivityIndicator, Image, Dimensions, TouchableHighlight, TouchableHighlightComponent, } from 'react-native'; import {Button} from 'react-native-elements'; import androidUI from '../../styles/ui.android.style.js'; import iosUI from '...
var elementList = {}; var pageLoadCompleted = false; var shipopFidollistAPI = null; var shipopPidollistAPI = null; var shipopSidollistAPI = null; var shipopFidolUpdate = ""; var shipopPidolUpdate = ""; var shipopSidolUpdate = ""; var FORMAT_TIMESTAMP = "YYYY/MM/DD HH:mm:ss"; var CONST_IDOLTYPE = [ "fesIdol", ...
// @TODO: YOUR CODE HERE! var width = parseInt(d3.select("#scatter").style("width")); var height = width - width / 3.9; var margin = 20; var labelArea = 110; let axisDelay = 1000; let dotDelay = 1000; // padding for the text at the bottom and left axes var tPadBot = 40; var tPadLeft = 40; var svg = d3 .select("...
var $ = require('jquery'); var UI = require('jquery-ui-browserify'); var FT = require('jquery.fancytree/dist/jquery.fancytree'); var RDFType = require('../models/RDFType'); var treeItems = require('../models/TreeItem'); var ResourceItem = treeItems.ResourceItem; var PredicateItem = treeItems.PredicateItem; var CONST ...
$(document).ready(function(){ $('#id_tablatipotramite').DataTable( { "language": { "lengthMenu": 'Mostrar <select class="form-control input-sm">'+ '<option value="5">5</option>'+ '<op...
$(document).ready(function () { $("nav ul li a:not(:only-child)").click(function (e) { $(this).siblings(".nav-dropdown").toggle(); // Close one dropdown when selecting another $(".nav-dropdown").not($(this).siblings()).hide(); e.stopPropagation(); }); // Clicking away from dropdown will remove the...
const express = require('express') const fs = require('fs') const path = require('path') const moment = require('moment') const {promisify} = require('util') const readFileAsync = promisify(fs.readFile) // Parse const libxml = require('libxmljs') // const fs = require('fs') const parse = async function (path, reg...
const _ = require('lodash') const AWS = require('aws-sdk') const zlib = require('zlib') const debug = require('debug')('async-lambda-metrics') const log = require('@dazn/lambda-powertools-logger') const retry = require('async-retry') const cloudWatch = new AWS.CloudWatch() // node10.x messages are like this: // INFO\t...
// -------------------------------------------------- // Utility Functions // -------------------------------------------------- /* circle: Make a circle at (center_x, center_y). center_x -> X coordinate of the circle's center. center_y -> Y coordinate of the circle's center. radius -> Ra...
'use strict'; const Promise = require('bluebird'); const { BadRequest, NotFound, NotImplemented } = require('@feathersjs/errors'); const { keyNotFound } = require('couchbase').errors; const { QueryBuilder, QueryConsistency } = require('../querybuilder'); const uuid = require('uuid/v4'); const R = require('ramda'); cl...
/* STANDBY REQUEST FORM OBSERVERS */ var standbyRequestFormsRef = firebase.database().ref('StandbyRequests'); standbyRequestFormsRef.orderByChild('order').on('child_added', function(snapshot) { var ul = document.getElementById("standbyFormsList"); // create list item var li = document.createElement("...
/* * This file is the entry point for the main thread * It takes care of spawning the worker and sending it the initial init message * It also acts and the messenger between the worker thread and the renderer running on the UI * thread */ var __decorate = (this && this.__decorate) || function (decorators, target, k...
var view = [21.841, 4.92, 5] /* var map = new mapboxgl.Map({ container: 'sahel', preserveDrawingBuffer: true, }); map.setStyle("mapbox://styles/etibdv/cj0cviykv00br2sqpvtoco9j8"); map.setZoom(5) map.setCenter([4.92, 21.841]) */ // load data for pop and informa var inform_d = $.Deferred(); var geom...
// load modules const _ = require('underscore'); const url = require('url'); const async = require('async'); const S = require('string'); const cheerio = require('cheerio'); const http2 = require('http2'); /** * handle checking for the cache **/ module.exports = ...
import React from 'react'; import {StatusBar, StyleSheet, SafeAreaView, Text, Image, View, Dimensions, Platform, TouchableOpacity} from 'react-native'; import RadioForm, {RadioButton, RadioButtonInput, RadioButtonLabel} from 'react-native-simple-radio-button'; import DeviceInfo from 'react-native-device-info'; import {...
var Actions = require('app/resources/Actions'); var Msgbox = require('widget/Msgbox'); var WechatShare = require('util/WechatShare'); var YiXinShare = require('util/YiXinShare'); var BasicModel = require('app/model/Model'); function View() { this.models = { Basic: BasicModel } var VIEW = this, els, sha...
/** todo * * En/Disabling Console output according to intLogLevel - Done! * En/Disabling writing to file according to intLogLevel - Done! * intro/ customIntro function - Done ! * 0.1.4 * * Bug gix * option to separate log files per intLogLevel * 0.1.6 * --------------------------------- * Support fo...
var Colors = { red:0xf25346, white:0xd8d0d1, brown:0x59332e, pink:0xF5986E, brownDark:0x23190f, blue:0x68c3c0 } window.addEventListener('load', init, false); function init(){ createScene(); createLights(); createSea(); createSky(); renderer.render(scene, camera); } var scene,camera,renderer,WIDTH,HEIGH...
/* global chrome */ const $ = window.jQuery const fetch = window.fetch // const delay = require('delay') const {lastIndexOfRegex} = require('index-of-regex') var waitToken = new Promise((resolve, reject) => { chrome.storage.sync.get('token', (res) => { if (chrome.runtime.lastError) { reject(chrome.runtime...
import React from 'react'; import PropTypes from 'prop-types'; import { navigateTo } from 'gatsby'; import Recaptcha from 'react-google-recaptcha'; import classNames from 'classnames'; import validate from 'validate.js'; import { isEmpty } from 'lodash'; import { withIntl } from '../i18n'; const RECAPTCHA_KEY = proce...
// Copyright 2021 Quantap 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 in...
// Place all the behaviors and hooks related to the matching controller here. // ---- All this logic will automatically be available in application.js. ---- NO IT WONT var menudata; var programs; // ############## // ### Helpers // ############## // ### CREATE function createCategory() { console.log("CREATE categ...
var excelData = null; var vm = new Vue({ el:'#rrapp', data:{ saveFlag:true }, methods: { saveBtn:function(){ if(excelData === null){ alert("需要上传的数据为空"); wm.saveFlag=false; return false; } for(var dIndex in excelData){ if(excelData[dInd...
const AbstractMessage = require('./AbstractMessage.js'); class Poll extends AbstractMessage { constructor(params) { super(params); this._events = [ ['click', 'pa_'+this.domId, 'onAnswerClick'], ['click', 'pols_'+this.domId, 'onSolutionClick'], ['click', 'polv_'+this.domId, 'onVotersClick'], ['click',...
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[...
const Movie = require('../models/movie.model'); const defaultValues = require('../constants/defaultValues.constants'); const UserService = require('../services/user.service'); const YtsService = require('../services/yts.service'); const existsMovieWithImdbID = async imdbID => (await Movie.countDocuments({ imdbID })) > ...
import React, {useRef, useCallback, useState, useEffect} from 'react' import PropTypes from 'prop-types' import {Input} from 'reactstrap' import {inputPropTypes} from './props/inputPropTypes' import {inputDefaultProps} from './props/inputDefaultProps' import {withAddon} from './addon/withAddon' import isControl...
import React from "react"; import axios from "axios"; import PropTypes from "prop-types"; import { withRouter } from "react-router-dom"; //MUI import Stack from "@mui/material/Stack"; import Grid from "@mui/material/Grid"; import Card from "@mui/material/Card"; import Box from "@mui/material/Box"; import CardContent fr...
var jsrete = require('./rete'), rule = require('./rule'), facts = require('./factbase'), rules = require('./rulebase'), memory = require('./memory'), reteutils = require('./reteutils'), constants = require('./constants'), _ = require("underscore"); function ReteScript(app){ this.socketE...
/**! * @cidekar/window-rivet version 1.0.0 * Copyright 2019 Cidekar, LLC * @license Released under the Apache-2.0 license. */ /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (...
// Initializes the `knight` service on path `/knight` const createService = require('feathers-nedb'); const createModel = require('../../models/knights.model'); const hooks = require('./knights.hooks'); const makePatchAction = require('../../utils/makePatchAction'); const _patchDelta = require('../../utils/_patchDelta'...
import React, { Component, Fragment } from 'react'; import LogsRow from './LogsRow'; import { userService } from '../../infrastructure'; import { toast } from 'react-toastify'; import { ToastComponent } from '../common'; import './css/UserLogsPage.css'; import { css } from '@emotion/core'; import { CircleLoader } from ...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
/** * @type import('hardhat/config').HardhatUserConfig */ require('dotenv').config(); require('@nomiclabs/hardhat-waffle'); require('hardhat-gas-reporter'); const WEB3_RPC_ENDPOINT = process.env.WEB3_RPC_ENDPOINT; // Hardhat workaround to specify some random private key so this won't fail in CI const ROPSTEN_PRIVATE...
import { JetView } from "webix-jet"; import { ErrorView } from "../errors/dialog"; import { packages } from "../../services/packages"; import PackageDetailsView from "./packageDetails" const UNKNOWN_STATUS = 'Unknown'; const PACKAGE_STATES = [ { name: "Init", actions: [] }, { name...
const events = require('events'); const https = require("https"); const http = require("http"); const parser = require('fast-xml-parser'); let elementList = []; let hierarchyInfo = {}; let elementId = 0; const eventEmitter = new events.EventEmitter(); // ########## screenshot ########## const getImageFile = function...
var btn = document.getElementById("box__info--btn") btn.addEventListener("click", getGeolocation); function getGeolocation() { let e = document.getElementById("box__info--location"); let x = document.getElementById("box__info--date"); if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(sho...
var aiota = require("aiota-utils"); var jsonValidate = require("jsonschema").validate; var path = require("path"); var amqp = require("amqp-rpc"); var MongoClient = require("mongodb").MongoClient; var ObjectID = require("mongodb").ObjectID; var config = null; var actionUpdateQueue = []; var db = null; function valida...
const TAG = "[Scanner]"; const CANVAS_ID = "scene"; const FRAME_RATE = 30; const WORKER_SCRIPT_PATH = "worker/zxing-0.18.6-worker.js"; /** * @typedef {number} ScannerFormats * @enum {ScannerFormats} */ const SCANNER_FORMATS = { UNKNOWN: 0, DATA_MATRIX: 1, // Europe GS1_DATABAR_LIMITED_COMPOSITE: 2 // Japan } /*...
import React from 'react'; import {StyleSheet, View, ScrollView,Image , TouchableOpacity, ImageBackground, Dimensions} from 'react-native'; import { Icon,Card,Button, Text, Block} from 'galio-framework'; //import { LinearGradient } from 'expo'; import TextTicker from 'react-native-text-ticker'; import Textarea2 from '...
import cx from 'classnames' import _ from 'lodash' import React, { Component, PropTypes } from 'react' import { compose } from 'redux' import { withStateHandlers } from 'recompose' import Portal from '../Portal' import PTVIcon from 'Components/PTVIcon' import withState from 'util/withState' import styles from './styles...
import Vex from 'vexflow'; import React, {Component} from 'react'; import PropTypes from 'prop-types'; const VF = Vex.Flow; export default class Masking extends Component { constructor(props) { super(props); this.state = { x: 0, y: 0, }; }; setupScore...
/** * */ var newsIdT = 0; var alertMsg = ""; var start = 0; var rowStart = 0; var newsWin; var newsWinU; if (window.innerHeight) var winHeight = window.innerHeight; else if ((document.body) && (document.body.clientHeight)) var winHeight = document.body.clientHeight; var h = Math.round((winHe...
const { encodeText, decodeText } = require('./util') const { TFrames, TFramesV220 } = require('./TFrames') const { SFrames, SFramesV220 } = require('./SFrames') const { WFrames, WFramesV220 } = require('./WFrames') const { not, isUndefined } = require('../util') module.exports = { getTagsFromBuffer, removeTags...
$(function() { var isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent); // Remove the scrolling effect for non-mobile devices. for (var i = 1; i < 4; i++) { (isMobile) ? $('#parallax-mobile' + i).css("display", "block") : $('#parallax' + i).css("di...
import {map, MIN_ZOOM_LEVEL} from "./purp-map-gmap.js"; const USE_ZSTD = true; const DELAY = 250; // ms let recs; let groups; let visibleRecs; let minTm = null, maxTm = null; let curTm; function setCurTm(val) { curTm = val } // Time when the last data was generated, used for animation let lastDataGen; functi...
/** * Created by carlen on 3/14/17. */ import Koa from 'koa' import _ from 'koa-route' import Router from 'koa-trie-router' import cors from 'koa2-cors' import bodyParser from 'koa-bodyparser' import IO from 'koa-socket' import { createClient } from 'then-redis' const app = new Koa() const io = new IO() const router...
$('.trigger').click(function () { $('.page_portfolio').css('opacity', '1'); $('.page_portfolio').css('clip-path', 'polygon(0 100%, 100% 100%, 100% 0%, 0 0%)'); $('.logo img, .portfolio_home__title h1, .portfolio_home__title hr, .portfolio_home__title img.trigger').addClass('out'); $('.slider_inner').add...
/* * Copyright (c) 2020 * All rights reserved. */ /* $$ Classes e IDs (subparte) $$ */ var classeEIDSectionRaizConverMathCSPart = "conver_math_c__spart"; var classeTituloSPart = "conver_math_c_titulo__spart"; var classeCardInferiorSPart = "card_conver_math_c__inferior___spart"; var classeCardSuperiorSPart = "...
'use strict'; var DAY = 24 * 60 * 60 * 1000; //var MIN = 60 * 1000; var ACME = require('le-acme-core').ACME; var LE = module.exports; LE.LE = LE; // in-process cache, shared between all instances var ipc = {}; function _log(debug) { if (debug) { var args = Array.prototype.slice.call(arguments); args.shift(...
const SPACE = 32 const BACKSPACE = 8 const CANCELLED = [13, 33, 34, 35, 36, 37, 38, 39, 40] const IGNORED = [16, 17, 18, 37, 91, 93, 186, 219, 225] function get_cookie(name) { let name_eq = name + "=" const cookies = document.cookie.split(";") for (var i = 0; i < cookies.length; i++) { let c = cookies[i] ...
var lastRefresh = new Date(); let refreshInterval = 500; //ms // // Helpers // function elById(id) { return document.getElementById(id); } function elByCls(cls) { return document.getElementsByClassName(cls); } function makeId(base, name) { return base + "_" + name.replace(' ', '_').toLowerCase(); } function homeGroup...
/** * Kernel's keeper of persistent state for a device. */ import { Nat } from '@agoric/nat'; import { assert, details as X } from '@agoric/assert'; import { parseKernelSlot } from '../parseKernelSlots.js'; import { makeVatSlot, parseVatSlot } from '../../parseVatSlots.js'; import { insistDeviceID } from '../id.js';...
// Import config import dotenv from 'dotenv'; dotenv.config(); const API_KEY = process.env.API_KEY; // import { API_KEY } from './config.js'; // Importing jQuery import $ from 'jquery'; // Importing jQuery Easing Plugin import 'jquery.easing'; // Import Bootstrap import 'bootstrap'; // Importing the custom scss imp...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import clsx from 'clsx'; import AppBar from '@material-ui/core/AppBar'; import Paper from '@material-ui/core/Paper'; import Fab from '@material-ui/core/Fab'; import Toolbar from '@materi...
'use strict' var strtok = require('strtok2') var common = require('./common') var equal = require('deep-equal') var decodeString = common.decodeString module.exports = function (stream, callback, done) { var currentState = startState strtok.parse(stream, function (v, cb) { currentState = currentState.parse(c...
import { JailedStatus, StakingStatus, } from "@pokt-network/pocket-js"; import Axios from "axios"; import Errors from "./errors"; /** * Http Adapter. * Configure your headers and what not in here. * Interceptors and Network Layer middlewares should come in here. */ class AxiosProvider { constructor(baseURL, ...
var budgetController = (function(){ var Expense = function(id, description, value){ this.id = id; this.description = description; this.value = value; this.percentage = -1; }; Expense.prototype.calcPercentage = function(totalIncome){ if(totalIncome >...
var sys = require("util"), async = require("async"), relativeDate = require("relative-date"), moment = require('moment'), _ = require("underscore"); function setEpoch(date, epoch) { date.setTime(epoch * 1000); return date; } function getEpoch(date) { return Math.round(date.getTime() / 1000); } functio...
/** * @Author: <NAME> <CHC> * @Date: 2017-05-03T01:23:38+08:00 * @Email: <EMAIL> * @Filename: toolbar_left_click.js * @Last modified by: CHC * @Last modified time: 2017-08-10T12:43:22+08:00 * @License: MIT * @Copyright: 2017 */ function $toolbar_left_undo_click($vm) { if ($vm.d_history_index > 0) { ...
'use strict'; var path$3 = require('path'); var rootPath = path$3.resolve(__dirname, '..'); var configPath = path$3.resolve(rootPath, './config.json'); var tplPath = path$3.resolve(rootPath, './templates'); var forAll = 'all'; var tplConfigFile = './tplkit.config.js'; var path$2 = require('path'); var fs$2 = requir...
/* global danger, fail, warn, message */ // requires const debug = require('debug')('dangerfile'); const fs = require('fs-extra'); const eslint = require('@seadub/danger-plugin-eslint').default; const junit = require('@seadub/danger-plugin-junit').default; const dependencies = require('@seadub/danger-plugin-dependenci...
onOpenDialog = function(dialog) { (dialog = $('.ui-dialog')).corner('6px') .find('.ui-dialog-titlebar').corner('1px top') if (dialog.height() < $(window).height()) { $(document.body).addClass('hide-overflow'); } } onCloseDialog = function(dialog) { $(document.body).removeClass('...
#!/usr/bin/env node 'use strict' var Configstore = require('configstore'); var request = require('superagent'); var CryptoJS = require("crypto-js"); var format = require('util').format; var _ = require('lodash'); var pkg = require('./package.json'); var config = new Configstore(pkg.name); var HOST_URL = 'https://w...
//This function gets a valid numeric value with units(user entered or current units) function getNumInputWithUnits(inputString, defVal, currUnits, minValue, maxValue, toTrim) { let flag = 0; while (flag == 0) { let input = prompt(inputString, defVal); if (input == null) { return null; } else { ...
function inc_importance(i, id_) { //csrf_setup(); $.ajax({ url: "api/update_importance", method: "POST", data: { id: id_ }, dataType: "json" }) .done(function(data) { response = data; if (response...
var map; var infoWindow; var geocoder; var isAdd; function initMap() { //added geocoder to this function geocoder = new google.maps.Geocoder(); map = new google.maps.Map(document.getElementById('map'), { center: {lat: 39.102115, lng: -94.582554}, zoom: 10 }); ...
// all functions ------------------ function initBionick() { "use strict"; // window load ------------------ jQuery(window).load(function() { var a = [], b = window.location.href.split("#")[1], c = jQuery("header").outerHeight(true), hb = jQuery("html, body"); jQuery(".scroll-nav a").each(fun...
const fs = require('fs') const fsPromises = fs.promises const path = require('path') const { ipcMain } = require('electron') const { syncApp } = require('./sync') const { app } = require('electron') const dataFolder = app.getPath("userData") const { writeFileAsync, fileResolve, dirExist } = require('../tools/fileSystem...
$(function () { consoleInit() start(main) }); const LPPool = { token1: 'PPBLZ', token2: 'ETH', lpAddress: '0x9479b62fd1cb36f8fed1eebb1bb373d238d08216', poolAddress: '0xf1f508c7c9f0d1b15a76fba564eef2d956220cf7', rewardAddress: '0xf1f508c7c9f0d1b15a76fba564eef2d956220cf7' } const SubPool = { ...
import { TilingLayout, component, ViewModel, part } from 'lively.morphic'; import { Color, rect, pt } from 'lively.graphics'; import { obj, arr } from 'lively.lang'; import { once, connect } from 'lively.bindings'; import { ShadowPopup, OpacityPopup, FlipPopup, TiltPopup, CursorPopup, BlurPopup, InsetShadowPopup } fro...
const sinon = require('sinon'); const lolex = require('lolex'); const Promise = require('bluebird'); const isPromise = require('is-promise'); const BatchRecorder = require('../src/batch-recorder'); const {JSON_V2} = require('../src/jsonEncoder'); const Annotation = require('../src/annotation'); const {Sampler, neverSa...
import path from "path"; import electron from "electron"; const shell = electron.shell; import jetpack from "fs-jetpack"; import {swapState, writeFile, populateFileList, setLineNumber, state, fileList, EDITOR, saveSettings, setNewFileDir, newFileDir, createFile, setSelectedLeaf} from "./model"; import {relToAbsPaths,...
/** * Copyright 2018 Google Inc. All rights reserved. * Modifications copyright (c) Microsoft Corporation. * * 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.or...
import { defineMessages } from 'react-intl'; /** * Abilities internationalized names. */ const abilityMessages = defineMessages({ adaptable: { id: 'ability.adaptable', defaultMessage: 'Adaptable' }, a_safe_pair_of_hands: { id: 'ability.aSafePairOfHands', defaultMessage: 'A safe pair ...
const URL = require("url").URL; const _Guild = require("../schemas/guild.js"); const Member = require("../schemas/member.js"); const Role = require("../schemas/role.js"); const emojiRegex = require("emoji-regex"); const { Message, MessageEmbed, Guild, GuildMember, Collection, MessageActionRow, MessageSelectMenu } = req...
// Initialize with empty array var eventData = []; // If localStorage key exists, set existing data to eventData if( localStorage.getItem( 'workday-scheduler' ) ) { eventData = JSON.parse( localStorage.getItem( 'workday-scheduler') ) } ; // global display date var displayDate, offset = 0 // I...
#!/usr/bin/env node "use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(valu...
'use strict'; // libraries const blake = require('blakejs'); const fetch = require('node-fetch'); // modules const randomUtil = require('./random-util.js'); // constants const lastNonceByOwnerMap = new Map(); // variables /* eslint-disable no-unused-vars */ let config; let loggingUtil; let waxRpc; /* eslint-enable n...