text
stringlengths
3.22k
29.5k
'use strict'; window.addEventListener("message", receiveMessage, false); window.activeLi = 0; /*globals chrome */ function closePopup(e) { // Retain window to help with debugging. if (e && e.type == "blur" && window.settings && window.settings.keep_open) { // console.log("Window not closed", e); ...
/* Copyright 2017 Keyhole Software LLC 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, sof...
// This view component contains purely presentational code, apart from UserSearchContainer that contains the data-layer access. import React, { Fragment } from 'react'; import PropTypes from 'prop-types'; import noop from 'lodash/noop'; import get from 'lodash/get'; import pickBy from 'lodash/pickBy'; import { Forma...
import React, { useEffect, useState } from 'react'; import { View, ScrollView, Text, StyleSheet, Dimensions, TouchableOpacity, Image, SafeAreaView } from 'react-native'; import CustomImage from '../components/CustomImage'; import CustomButton from '../../components/CustomButton'; import IconFA5 from 'react-native-vec...
import {nextTick, reactive, ref} from 'vue' import {dictConvert, isBlank, isNotEmptyCollection, successMsg, warningMsg} from '@/utils/common' import {DictEnum} from '@/constants/dict' import {add, del, getMaxSort, list, listChildrenByCode, update} from '@/api/sys/org' import {CommonEnum} from '@/constants/common' impor...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.drawArc = exports.arcToCurves = exports.drawPoints = exports.isValid = void 0; var point_1 = require("../point"); var regexSupportedData = new RegExp("^[\\s\\dLMCZz,.]*$"); function isValid(data) { if (typeof data !== 'string') { ...
/* * Copyright 2015 TWO SIGMA OPEN SOURCE, LLC * * 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 appl...
import express from 'express'; import bodyParser from 'body-parser'; import mysql from 'mysql'; import path from 'path'; import 'whatwg-fetch'; import request from 'request-promise'; import async from 'async'; let dbconfig = require(__dirname+'/../server/config/db-config.json'); let connection = mysql.createConnection...
/* * Copyright 2019 Google LLC * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
/** * SPECIFICATION HISTORY */ const defaultLimit = 10; const defaultDateOrder = "desc"; let renderedProperties = []; const storageKeyName = "historyFilterName"; const storageKeyDateOrder = "historyDateOrder"; const storageKeyPosition = "historyPosition"; const historyList = document.getElementById("history-conten...
/* global chrome: false */ var onNotification = function(notification) { // alert('onNotification' + JSON.stringify(notification)); // Emit alert event - this requires the app to be in forground if (notification.message && notification.foreground) { Push.emit('alert', notification); } // Emit sound even...
const Constants = require('./constants') const Helpers = { elementsBoundingBox (elems) { let elem, bbox let bounds for (let index=0; index < elems.length; index++) { bbox = elems[index] if (!bounds) { bounds = bbox } else { bounds = maxbbox(bounds, bbox) } } ...
var common = require('../../common'); var connection = common.createConnection(); var assert = require('assert'); common.useTestDb(connection); var tests = [ {type: 'decimal(3,3)', insert: '0.330', expect: 0.33 }, {type: 'decimal(3,3)', insert: 0.33}, {type: 'tinyint', insert: 1}, {type: 'smallint', i...
// Stores common functions that are used when writing the output document. // Creates text paragraph object. function initializeParagraphObject(docBody) { var paraRes = null; paraRes = docBody.appendParagraph(""); paraRes.setHeading(DocumentApp.ParagraphHeading.NORMAL); paraRes.setAlignment(DocumentApp.Horiz...
// dynamic styles and attributes var svgWidth = 274; var svgHeight = 80; var topMargin = 40; var leftMargin = 10; var mathFont = 'serif'; var nodeWidth = 13; var nodeSpacing = 40; var nodeRadius = 4; var arrowCurve = 6; var arrowSpacingStart = 2; var arrowSpacingEnd = 3; var arrowWidth = 1; var arrowOffset = 1; ...
/* * Copyright (C) 2009 Apple Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions a...
import React, { Component } from 'react'; import Web3 from "web3"; import 'bootstrap/dist/css/bootstrap.min.css'; import { Button, Input, InputGroup, Form } from 'reactstrap'; import { CopyToClipboard } from 'react-copy-to-clipboard'; import { Provider } from "react-redux"; import store from "./store"; import Screen fr...
var propertiesYears = { 'firstYear': 2001, 'lastYear': 2018, }; var constants = { killedRadius: function (d) { return 3 + 4 * d.killed; }, componentHeight: 300, accidentColor: "#c0392b", deathColor: "#2c3e50", buriedColor: "#1abc9c", caughtColor: "#f39c12", aspects: ['N', 'NNE', 'NE', 'ENE', 'E'...
require("dotenv").config(); const NewsAPI = require('newsapi'); const apiKey = require('../key'); const newsAPIKey = apiKey.newsapi.newsapi_key; console.log('printing key'); console.log(newsAPIKey); const newsapi = new NewsAPI('1d3bd9dddd5f45c2ba17eb1897e9ddd5'); console.log('printing newsapi'); console.log(newsapi); ...
const functions = require('firebase-functions'); const _ = require('underscore'); const csv = require('csv'); const crud = require('./crud'); const analysis = require('./analysis'); const util = require('../common/utils'); const config = require('../common/config.js'); const getPriceData = require('../companies/prices...
/** * Polyspline (smoothed line) module. */ import { __extends } from "tslib"; /** * ============================================================================ * IMPORTS * ============================================================================ * @hidden */ import { Polyline } from "./Polyline"; import { r...
// https://github.com/antimatter15/carbide/blob/gaylisp/src/editor/prediction.js // CodeMirror, copyright (c) by <NAME> and others // Distributed under an MIT license: http://codemirror.net/LICENSE // TODO: REWRITE // this is pretty hackily done and quite hard to understand // TODO: underline the parts of the comple...
// Generated by CoffeeScript 2.0.0-dev var $0, $0, additionalArgs, additionalArgs, additionalArgs, arg, args, coffee2ls, concat, foldl, formatOptions, fs, humanReadable, input, input, inspect, leftColumnWidth, longOptionArguments, longParameterArguments, match, match, match, maxWidth, numberLines, o, o, o, optionArgume...
import React, {Component} from 'react'; import { StatusBar, Platform, Text, Alert, AppState, DeviceEventEmitter, } from 'react-native'; import {CommonActions} from '@react-navigation/native'; import {AppThemeContext, UserContext} from './context/UserContext'; import Header from './Header'; import FooterTabs...
var initMap; function googleError(err) { console.log(err); $('#map').html('<h1 style="color: red;">Can\'t load map, please try later</h1>'); } (function () { 'use strict'; var map; var Worker = function () { var scope = this; scope.getLocations = function (func, e) { /** * Async fun...
import React from 'react' import Dropzone from 'react-dropzone' import _ from 'lodash' import styles from './index.less' import { Form, Col, Input, Row, Button, Alert, DatePicker, Spin, message } from 'antd' const FormItem = Form.Item const { TextArea } = Input const validateForm = (currentItem, files, frmData) => { ...
var LABEL_SPACING = 40, hasError = false, solrToJS = { 'max': Math.max, 'min': Math.min, 'sum': function(a, b) { return parseFloat(a, 10) + parseFloat(b, 10); }, 'sub': function(a, b) { return parseFloat(a, 10) - parseFloat(b, 10); }, ...
"use strict"; // merges all members from the source object to the target object; // it's like the underscore.extend function merge(target, source) { var key; for (key in source) { if (source.hasOwnProperty(key)) { target[key] = source[key]; } } } // prefer the fs-ext module if available, otherwise...
const fs = require('fs-extra'); const zlib = require('zlib'); const path = require('path'); const unbzip2Stream = require('unbzip2-stream'); const tar = require('tar-fs'); const iconv = require('iconv-lite'); const ZipStreamer = require('./Zip/ZipStreamer'); const appLogger = new (require('./AppLogger'))();//singleton...
///////////////////////////////////////////////////////////////////////// ////////////////////// SETTING UP THE VISUALISATION ///////////////////// ///////////////////////////////////////////////////////////////////////// const MARGIN = { top: 10, right: 10, bottom: 55, left: 65 }; const WIDTH = 1060 - MARGIN.left - M...
'use strict'; const path = require('path'); const fs = require('fs'); const electron = require('electron'); const got = require('got'); const execa = require('execa'); const makeDir = require('make-dir'); const {ipcMain: ipc} = require('electron-better-ipc'); const packageJson = require('package-json'); const {app, N...
/** * build morning.work * * @author <NAME> <<EMAIL>> */ import path from 'path'; import fs from 'fs'; import rd from 'rd'; import mkdirp from 'mkdirp'; import tinyliquid from 'tinyliquid'; import MarkdownIt from 'markdown-it'; import hljs from 'highlight.js'; import RSS from 'rss'; import xss from 'xss'; import a...
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.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } ...
var dapp = require('./dapp'); const Joi = require('joi'); const crypto = require('crypto'); const { bot, log, web3 } = require('@chippr-bots/common'); var bottoken = require('@chippr-bots/contracts/build/contracts/bottoken.json'); //joi validation schema const schema = Joi.object().keys({ username: Joi.string().r...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // <zoneMappingsSnippet> // Basic lookup for mapping Windows time zone identifiers to // IANA identifiers // Mappings taken from // https://github.com/unicode-org/cldr/blob/master/common/supplemental/windowsZones.xml const zoneMappings = { "D...
import React, { useContext, useEffect, useRef, useState } from 'react' import Graph from 'react-graph-vis' import { WorkbenchContext } from '../../context/ContextProvider' import { NOTIFICATION_TYPE } from '../../utilities/enum/NOTIFICATION_TYPE' import { MENU } from '../../utilities/enum/MENU' import { PROCESS_GRAPH }...
/*************************************************************************************************************** |||||||||||||||||||||||||||| CUSTOM SCRIPT FOR CHARITY HOME |||||||||||||||||||||||||||||||||||| *******************************************************************************************...
const { ethers, bn } = require('../../lib'); const { bridgeWrapperBuild } = require('../coingecko'); const { ethereum } = require('../ethereum'); const { toFloat } = require('../toFloat'); const { tokens } = require('../tokens'); const AutomateActions = require('../automate/actions'); const { getMasterChefStakingToken ...
//1.正式库 // const URL = 'http://api.yizhihui.com/'; //访问服务器的正式库:后台接口。 // const STATIC_FILE_URL = 'http://lab.yizhihui.com/'; //访问服务器的正式库:静态资源。 //2.测试库 //const URL = 'http://apitest.yizhihui.com/' //访问服务器的测试库:后台接口。 //const STATIC_FILE_URL = 'http://labtest.yizhihui.com/'; //访问服务器的测试库:静态资源。...
import { Class, clone, extend } from 'orbit/lib/objects'; import { uuid } from 'orbit/lib/uuid'; import { OperationNotAllowed } from './lib/exceptions'; import Evented from 'orbit/evented'; /** `Schema` defines the models allowed in a source, including their keys, attributes and relationships. A single schema may be...
// jshint esversion: 6, es3: false, node: true 'use strict'; import { registerBidder } from '../src/adapters/bidderFactory.js'; import { NATIVE, BANNER, VIDEO } from '../src/mediaTypes.js'; import * as utils from '../src/utils.js'; import { config } from '../src/config.js'; import { Renderer } from '../src/Rendere...
import Vue from 'vue'; let shift = false; //region utils const pxVal = v => isFinite(v) ? Number(v) : Number(v.replace(/[^0-9.\-]/g,'')); const childOf = (pid, child) => { while(child.getAttribute('moveid') !== pid){ child = child.parentElement; if (!child || child.tagName === 'BODY'){ return false; ...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import * as Animatable from 'react-native-animatable'; import { AppConfig } from '@constants/'; import PropTypes from 'prop-types'; import ImageSlider from './../slider/ImageSlider'; import LoadingContainer from 'react-native-loading-cont...
var props = { minBarSize: { type: Number, default: 50 }, scrollTop: { type: Number, default: 0 }, scrollLeft: { type: Number, default: 0 }, displayType: { type: String, default: "hover" }, offsetLeft: { type: Number, default: 0 }, offsetRight: { type: Nu...
import get from 'lodash/get' import merge from 'lodash/merge' import Association from './Association' import { QueryDefinition } from '../queries/dsl' import { receiveQueryResult, getDocumentFromState } from '../store' /** * @typedef {object} Relationship * @property {string} relName - name of the relationship * @p...
'use strict'; //Attention: increase GPU memory! With 64 MB the rendering suddenly gets very slow while drawing polygons!!! //Raspberry Pi 3 1080p@60: 13 fps (polygons could be improved) const amino = require('../../main.js'); const data = require('./countries.js'); const onecolor = require('onecolor'); const fs = r...
import 'components/Modal/PlayerInfo.scss'; import Autosave from 'components/Autosave.js'; import Modal from 'components/Modal.js'; import popup from 'components/popup.js'; const authClient = Tactics.authClient; const gameClient = Tactics.gameClient; export default class PlayerInfo extends Modal { constructor(data, ...
const DEFAULT_CREDIT_CARD_COUNTRY = 'BR' /* global wc_ebanx_params */ EBANX.config.setMode( wc_ebanx_params.mode ); EBANX.config.setPublishableKey( wc_ebanx_params.key ); jQuery(function ( $ ) { /** * Object to handle EBANX payment forms. */ const wc_ebanx_form = { /** * Initialize event handlers and UI s...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.MongoDBMutation = exports.MongoDBQuery = undefined; 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.hasOwnPr...
import React, { Component, Fragment } from 'react'; import cx from 'classnames'; import { Icon, Checkbox, Dialog, Input, ScrollView, Switch, LoadDiv, Button } from 'ming-ui'; import { SortableContainer, SortableElement, arrayMove } from 'react-sortable-hoc'; import SvgIcon from 'src/components/SvgIcon'; import Trigger ...
import React, { useState, useContext, useEffect } from "react"; import { StyleSheet, Text, View, KeyboardAvoidingView, TextInput, FlatList, Image, TouchableOpacity, Platform, ScrollView, } from "react-native"; import { Button } from "react-native-ui-lib"; import Colors from "../assets/color"; import...
// adjsearch.js // compatible IE8, Chrome, FF 3.5, Opera 10, Safari 4 var searchpool = document.getElementById("searchpool"); var searchlist = document.getElementById("searchlist"); var searchresults = document.getElementById("searchresultbox"); var searchresultnb = document.getElementById("searchresultnb"); var recher...
/*** grilla consecuencias ***/ consecuenciasDataStore = new Ext.data.Store({ id: 'consecuenciasDataStore', proxy: new Ext.data.HttpProxy({ url: CARPETA+'/listado_cons', method: 'POST' }), baseParams:{tampagina: TAM_PAGINA}, // this parameter is passed for any HTTP requ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _os = _interopRequireDefault(require("os")); var _crypto = _interopRequireDefault(require("crypto")); var _sourceMap = require("source-map"); var _RequestShortener = _interopRequireDefault(require("webpack/...
/** * Copyright (c) 2017-present, Viro, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ import React, {...
/* ported by <NAME> - Derived from 'Lib/test/pystone.py' from the Python software distribution. * This is more or less a line for line translation, so to be sure, I'll * provisionally put this under the same terms. The PSF license is found * here: http://docs.python.org/2/license.html */ "use strict"; var Ident...
$('#barcode').keyup(function(e){ if(e.keyCode == 13){ var barcode = $.trim($(this).val()); var qty = $('#qty').val(); doReceive(); } }); $('#invoice-box').keyup(function(e){ if(e.keyCode === 13){ add_invoice(); } }) $('#item_code').autocomplete({ source:BASE_URL + 'auto_complete/get_item_cod...
// Endpoint URL for California Housing price prediction regression model const housingEndpoint = ''; // Endpoint URL for Named Entity Recognition const nerEndpoint = ''; // Endpoint URL for PoS tagging and dependency parsing const parseEndpoint = ''; // S3 bucket name for image uploads const uploadBucke...
/* eslint-disable no-restricted-properties */ /* eslint-disable no-useless-concat */ /* eslint-disable no-use-before-define */ const htmlToText = require('html-to-text'); const AWS = require('aws-sdk'); const outputDataFile = process.argv[2]; // require('../../output/test_output.json'); if (typeof (outputDataFile) ==...
import { next } from '@ember/runloop'; import { typeOf } from '@ember/utils'; import Service, { inject as service } from '@ember/service'; import { Machine } from 'xstate'; import getStorage from 'vault/lib/token-storage'; import { STORAGE_KEYS, DEFAULTS, MACHINES } from 'vault/helpers/wizard-constants'; const { TUT...
"use strict"; const { Client, TokenCreateTransaction, TokenMintTransaction, PrivateKey, TokenSupplyType, TokenType, Hbar, CustomFixedFee, CustomRoyaltyFee, TokenInfoQuery } = require("@hashgraph/sdk"); const { NFTStorage, File, Blob } = require("nft.storage"); const path = require("path"); const is...
import React, { Fragment, useEffect, useState,useRef } from 'react'; import clsx from 'clsx'; import Card from '@material-ui/core/Card'; import CardContent from '@material-ui/core/CardContent'; import CardActions from '@material-ui/core/CardActions'; import Drawer from '@material-ui/core/Drawer'; import AppBar from '@m...
/********************************************************************* The MIT License (MIT) Copyright (c) 2015 hatfarm 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,...
const sweetalert = require('../sweetalert'); require('trumbowyg'); $.trumbowyg.svgPath = '/trumbowyg/icons.svg'; $('.trumbowyg').trumbowyg({ autogrowOnEnter: true, imageWidthModalEdit: true }).on('tbwchange', function() { htmlEditorChanged($(this)); }); /** * Global HTMl editor change function * * @...
$(function () { $(".k_div>label").each(function(i) { $(this).click(function(){ $(".key_con:visible").hide(); $(".key_con").eq(i).show(); }); }); //登录脚本 $("#logTop>a").each(function(i){ $(this).click(function(){ window.aa=$(this).attr("id"); if($(this).attr...
let allPapers = []; const allKeys = { authors: [], keywords: [], sessions: [], titles: [], }; const filters = { authors: null, keywords: null, session: null, title: null, }; // names for render modes const MODE = { mini: "mini", compact: "compact", detail: "detail" } let render_mode = MODE.comp...
import _typeof from "@babel/runtime/helpers/esm/typeof"; import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray"; import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck"; import _createClass from "@babel/runti...
const csv = require('fast-csv'); const qs = require('qs'); const _ = require('lodash'); const strava = require('strava-v3'); const Routeplans = require('../models/routeplans'); const UserCommon = require('../models/user-common'); const auth = require('./authentication'); const enhancePolylineLocation = require('../li...
import React, { Fragment, useEffect, useState } from "react" import LoanCalcPaymentTable from "./loancalcpaymenttable" import Image from "../components/image" import { defaultLoanAmount, faq, interestRates, programLoanInfo, schoolName, } from "../constants/programInfo" const SlidingLoanCalculator = props => ...
import React, {useContext, useState} from "react"; import Form from "react-bootstrap/Form"; import Col from "react-bootstrap/Col"; import Select from "react-select"; import AsyncSelect from 'react-select/async'; import {cloneDeep} from "lodash"; import Button from "react-bootstrap/Button"; import {useHistory, usePar...
import React, { Component } from 'react' import { StyleSheet, View, Text, StatusBar, TextInput, TouchableOpacity, ActivityIndicator, FlatList } from 'react-native' // import { Icon } from 'react-native-elements' import Icon from 'react-native-vector-icons/AntDesign' import { connect } from 'react-redux' import { Card }...
import React from 'react'; import { Avatar, Typography, Grid, Breadcrumbs, Fab, Container, } from '@material-ui/core'; import styled from 'styled-components'; import { useTheme } from '@material-ui/core/styles'; import { useTranslation } from 'react-i18next'; import ResponsiveSections from '@/components/Res...
let m1 = window.document.getElementById("md1") let m2 = window.document.getElementById("md2") let m3 = window.document.getElementById("md3") let busc = window.document.getElementById("busca") let vrm1 = window.document.getElementById("vrm1") let vrm2 = window.document.getElementById("vrm2") let vrm3 = window.document.g...
'use strict'; import UTF8 from "../vendor/utf8"; const JPEG_SOS = 0xFFDA; const JPEG_APP1 = 0xFFE1; const NS_IRI_X = "adobe:ns:meta/"; const NS_IRI_RDF = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"; const NS_IRI_XMP = "http://ns.adobe.com/xap/1.0/"; const NS_IRI_PHOTOBLOCK = "http://ns.photoblock.org/xmp/1.0/"; c...
const JMultiple = function (vals) {this.vals = vals} const JMinLength = function (val) {this.val = val} const JMaxLength = function (val){this.val = val} const JLength = function (val){this.val = val} const JMatch = function (reg,errorMsg) {this.reg = reg; this.errorMsg = errorMsg} const JEquals = function (val) {this....
import Vue from 'vue' import VueI18n from 'vue-i18n' import Vuetify from 'vuetify' import VueAnalytics from 'vue-analytics' import App from './App.vue' import router from './router' import axios from 'axios' import './registerServiceWorker' import 'vuetify/dist/vuetify.min.css' Vue.config.productionTip = false Vue.u...
const colours = ["red", "orange", "yellow", "dodgerblue", "limegreen", "darkorchid", "hotpink"], shapes = ["minus", "circle", "triangle", "plus", "square", "hexagon", "dot"], BOARD_SIZE = 8, score = { set(n) { score.number = n; squareElem.dataset.score = n; }, add(n) { this.set(n + this.number); } }...
import React, { useState, useEffect, useMemo } from "react"; import Select from "react-select"; import { useDropzone } from "react-dropzone"; import filesize from "filesize"; import { uniqueId } from "lodash"; import { useSelector } from "react-redux"; import api from "../../services/api"; import { Button, Card, ...
import React, { useState, useEffect, useRef } from "react"; // @material-ui/core components import { makeStyles } from "@material-ui/core/styles"; // core components import Card from "components/Card/Card.js"; import CardHeader from "components/Card/CardHeader.js"; import CardBody from "components/Card/CardBody.js"; im...
// Global variables of the script /* Adjacency matrix dipicting the graph * Value legend: 00 -> no edge * -1 -> undiscovered edge * >0 -> weight of a discovered edge */ var adjMtx = [[00, -1, 00, 00, 00, 00, 00, 00, 00, -1, -1], [...
/*---------------------------------------------------*/ /* INDEX */ /* 1. global variables */ /* 2. initial loading */ /* 3. functions for loading pages */ /* 4. content generating and fetching h...
var restify = require('restify'); var builder = require('botbuilder'); var pwned = require('./haveibeenpwned'); const request = require('request'); var striptags = require('striptags'); //require('dotenv-extended').load(); // Setup Restify Server var server = restify.createServer(); server.listen(process....
// ┏┳┓┏━┓╻┏ ╻╻┏━┓ // ┃┃┃┣━┫┣┻┓┃ ┗━┓ // ╹ ╹╹ ╹╹ ╹╹ ┗━┛ // ┏┓╻┏━┓┏┳┓┏━╸╺┳╸┏━┓┏━╸┏━┓ // ┃┗┫┣━┫┃┃┃┣╸ ┃ ┣━┫┃╺┓┗━┓ // ╹ ╹╹ ╹╹ ╹┗━╸ ╹ ╹ ╹┗━┛┗━┛ // github.com/makitsune/hifi-stuff var log = Script.require('https://hifi-content.s3.amazonaws.com/milad/ROLC/d/ROLC_High-Fidelity/02_Organize/O_Projects/Repos/hifi-content/develope...
var MAX_SANITY_CHANGE_TIME = 300; var stage_message = null; var imgs_loaded = 0; var sanity_change_time = 0; var last_sanity_change = false; var MAINSTAGE = { name: "main", enabled: true, scene_files: [ {name: "full_sanity", path: "data/sanity_full.png"}, {name: "empty_sanity", path: "data/sanity_empty.png...
const fs = require('fs') const path = require('path') const dev = require('./deviceList') const group = require('./deviceGroups') const devicePath = '/device/identifier/' const p = './appledb/iosFiles' function getAllFiles(dirPath, arrayOfFiles) { files = fs.readdirSync(dirPath) arrayOfFiles = arrayOfFiles || [] ...
var loc = require("locale"); loc.speed = function(){ var s = (speed/1.60934); return s.toFixed(s<10?1:0)+"mph"; } const Ypos = 30; const labels = ["N","NE","E","SE","S","SW","W","NW"]; var brg=0; var wpindex=0; function drawCompass(course) { g.clearRect(0,Ypos,175,Ypos+50); g.setColor(7); g.setFont("Vector...
/*jshint node: true, eqnull: true*/ 'use strict'; // Dependencies var util = require('util'), Emitter = require('events').EventEmitter, _ = require('underscore'), xml2js = require('xml2js'), async = require('async'), request = require('request'); // Constants var VALID_TYPES = ['arl', 'cpcode'], VALID_AC...
'use strict' var _ = require("lodash"); //Converter Class var Converter = require("csvtojson").Converter; var converter = new Converter({}); var async = require('async'); var testData = [{ s: 2.86, o: 3.13, d: 3.96 }]; var testResult = 4.07; // get val is or not in arr,eq: [2,8], 3 --> true function isInRange...
#!/usr/bin/env node // Packages const chalk = require('chalk') const table = require('text-table') const minimist = require('minimist') const ms = require('ms') // Ours const strlen = require('../lib/strlen') const cfg = require('../lib/cfg') const {handleError, error} = require('../lib/error') const NowSecrets = req...
/** * * Header * */ import React, { useEffect, useState, useRef } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { compose } from 'redux'; import { createStructuredSelector } from 'reselect'; import { FormattedMessage, injectIntl, intlShape } from 'react-intl'; impo...
/* global document */ const React = require('react'); const PropTypes = require('prop-types'); function getInitialState() { return { x: null, y: null, swiping: false, start: 0, }; } function getMovingPosition(e) { // If not a touch, determine point from mouse coordinates return 'changedTouches...
import { dvrSeekLimit } from 'view/constants'; import _ from 'utils/underscore'; import utils from 'utils/helpers'; import UI from 'utils/ui'; import Slider from 'view/controls/components/slider'; import Tooltip from 'view/controls/components/tooltip'; import ChaptersMixin from 'view/controls/components/chapters.mixin'...
import { select, event } from 'd3-selection'; import { scaleSqrt } from 'd3-scale'; import { forceSimulation } from 'd3-force'; import { interpolateViridis } from 'd3-scale-chromatic'; import { extent } from 'd3-array'; import throttle from 'just-throttle'; import scrollama from 'scrollama'; import { IS_MOBILE } from '...
/* * File: HomeMaticBlindIPAccessory.js * Project: hap-homematic * File Created: Tuesday, 21st April 2020 7:00:43 pm * Author: <NAME> (<EMAIL>) * ----- * The MIT License (MIT) * * Copyright (c) <NAME> <<EMAIL>> (https://github.com/thkl) * * Permission is hereby granted, free of charge, to any person obtaining...
import { inject as service } from '@ember/service'; import Component from '@ember/component'; import { get, getWithDefault } from '@ember/object'; import ResizeAware from 'ember-resize/mixins/resize-aware'; import { select } from 'd3-selection'; import { scaleBand, scaleLinear } from 'd3-scale'; import { max } from 'd3...
import React from 'react' import { makeStyles } from '@material-ui/core/styles' import clsx from 'clsx' import { isNumber } from 'step-wise/util/numbers' import { selectRandomEmpty, selectRandomNegative } from 'step-wise/util/random' import { removeAtIndex, insertAtIndex } from 'step-wise/util/strings' import { getEmp...
import React, { useState, useEffect, useRef, Fragment } from "react"; import axios from "axios"; // import Checkboxes from "./Checkbox"; import { Container, Checkbox, Button, Grid } from "@material-ui/core"; import TimerIcon from "@material-ui/icons/Timer"; import ChevronLeftIcon from "@material-ui/icons/ChevronLeft";...
function res_t_resize(t, is_sel) { var res_tv = document['res_tv']; var cbox = t.get('panelNode'); var table = cbox['g_table']; var lh = cbox.ancestor().ancestor().one('.yui3-tabview-list').get('clientHeight'); var w = res_tv.get('width') - 2; var h = res_tv.get('height') - lh; if (is_sel...
const { validationResult } = require('express-validator'); const { Target, Source, Feature } = require('../../models'); const SourceController = () => { const getSources = async (req, res) => { // Get query string params const sort = req.query.sort ? JSON.parse(req.query.sort) : ['sourceData', 'ASC']; const r...
const elemQuota = document.getElementById('quota'); const elemUsed = document.getElementById('used'); const elemRemaining = document.getElementById('remaining'); const elemCountTotal = document.getElementById('countTotal'); const elemCountIDB = document.getElementById('countIDB'); const elemCountCache = document.getEle...