text
stringlengths
3.22k
29.5k
const fs = require('fs'); const lib = require('./lib'); const signUtils = require('./lib/factory/signature'); const XmlHelper = require('./lib/factory/xmlHelper'); const path = require('path'); let cert = { key: fs.readFileSync('C:\\cert\\newKey.key'), pem: fs.readFileSync('C:\\cert\\test.pem'), pfx: fs.r...
/****************************************************************** * * For the remarks at the bottom right of the desktop * ******************************************************************/ function feedback(){ $('#remarks-button').click(function(){ $.ajax({ type : "GET", data : {"remar...
import { Scene } from 'phaser'; import dogImg from "./interactive/2019/12/pet-the-dog/images/dog.png"; import dogHappyImg from "./interactive/2019/12/pet-the-dog/images/dog-happy.png"; import dogNoTail from "./interactive/2019/12/pet-the-dog/images/dogNoTail.png"; import dogSad from "./interactive/2019/12/pet-the-dog/i...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { t...
var config = { "leancloud": { "appId": "xxx", "appKey": "xxx", "roomId": "575ced852077030063b5faa6" } } AV.initialize(config.leancloud.appId, config.leancloud.appKey); localStorage.setItem('debug', 'LC*'); var checkinBtn = $('#checkin') var Checkin = AV.Object.extend('Checkin'); var p...
import React, {Component} from 'react'; import { StyleSheet, View, Text, Animated, Easing, Image, ImageBackground, Linking, NativeModules, InteractionManager, TouchableOpacity, Alert, DeviceEventEmitter, Platform } from 'react-native'; import {RNCamera} from 'react-native-camera...
/*!!!!!!!!!!!Do not change anything between here (the DRIVERNAME placeholder will be automatically replaced at buildtime)!!!!!!!!!!!*/ import NodeDriver from 'shared/mixins/node-driver'; // do not remove LAYOUT, it is replaced at build time with a base64 representation of the template of the hbs template // we do this...
/* * FBOpen API server v0 Supports /opp ("opportunity") POST and GET and POSTing a new/updated set of tags for an opportunity * */ var express = require('express'), http_auth = require('http-auth'), // other useful stuff ejs = require('./elastic.min.js'), es = require('elasticsearch'), S = require(...
var delegados = new BASE_JS('asociados', 'asociados'); document.addEventListener("DOMContentLoaded", function() { $(function() { $('input[type="radio"], input[type="checkbox"]').iCheck({ checkboxClass: 'icheckbox_minimal-blue', radioClass : 'iradio_minimal-blue' }) }...
/* The weather icon mappings are taken from yohaybn (https://github.com/yohaybn/weatherbit.io-codes-to-weather-icon-mapping). With these it is possible to match the Weatherbit weather codes to the Weather Icons font classes (https://github.com/erikflowers/weather-icons). */ const weatherIcons = { 201: 'wi-thu...
import React from 'react'; import { shallow, mount } from 'enzyme'; import SearchableSortableTable from '../SearchableSortableTable/SearchableSortableTable'; import fetcher200 from '../../mocks/mock-fetch-200'; import fetcher404 from '../../mocks/mock-fetch-404'; import fetcherError from '../../mocks/mock-fetch-error';...
/* DOM */ const grid = document.querySelector('.grid-container'); const rowsInput = document.getElementById('rows-input'); const colsInput = document.getElementById('cols-input'); /* Buttons */ const clearBtn = document.getElementById('clear-draw'); const saveBtn = document.getElementById('save-btn'); const loadBtn ...
/*! * ghash.js - ghash for javascript * Copyright (c) 2018-2019, <NAME> (MIT License). * https://github.com/bcoin-org/bcrypto * * Parts of this software are based on golang/go: * Copyright (c) 2009, The Go Authors. All rights reserved. * https://github.com/golang/go * * Resources: * https://en.wikipedia...
/* * decaffeinate suggestions: * DS001: Remove Babel/TypeScript constructor workaround * DS102: Remove unnecessary code created because of implicit returns * DS207: Consider shorter variations of null checks * Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md */ const request...
const THREE = require('js/three/build/three.js') window.THREE = THREE require('js/three/loaders/GLTFLoader.js') require('js/three/controls/OrbitControls.js') const Detector = require('js/three/Detector.js') const Stats = require('js/three/libs/stats.min.js') const Animal = require('js/animal.js') var sonarSound = ne...
"use strict"; /******************************************************************************** * Copyright (C) 2019 Red Hat, Inc. and others. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0 which is available at * http://www.eclipse.org/leg...
import React, { useEffect, useState } from 'react'; import classes from './StoreOrders.module.css'; import { Link, useLocation, useHistory } from 'react-router-dom'; import { useDispatch, useSelector } from 'react-redux'; import * as actions from '../../store/actions/index'; import moment from 'moment'; import Loader...
import React from 'react'; import ModalWithDrag from '../../../components/ModalWithDrag'; import showPopup from '../../../standard-business/showPopup'; import helper from '../../../common/common'; import {DatePicker, Input, Button} from "antd"; import moment from 'moment'; const BAIDU_AK = '<KEY>'; const createScript...
"use strict"; var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; var rx_server_1 = require('rx-server'); var mong...
let GitHub = { ADD: 'addition', DELETE: 'deletion', NONE: 'none' }; GitHub.BlobLine = class { constructor(idx, text) { this.line_number = idx; this.text = text.replace(/ /g, "&nbsp;"); } renderHtml() { return ` <tr> <td id="L${this.line_number}" class="blob-num js-line-number" da...
"use strict"; const assert = require("assert"); function assertDoc(val) { assert( typeof val === "string" || val != null && typeof val.type === "string", "Value is a valid document" ); } function fromString(text) { return "" + text; } function concat(parts) { parts.forEach(assertDoc); return { typ...
auctions = []; function watchEvents() { var filter = web3.eth.filter("latest"); filter.watch(function(err, block) { // Call get block number on every block if (!err) { console.log("filter : " + block); } }); var eventsAll = auctionRecordContract.allEvents({ fromBlo...
//prendo l'ean dall'url const url = window.location.href; const parametroEAN = url.substring(url.lastIndexOf('/') + 1); fetch(ROUTE + 'is_logged').then(onResponse).then(onLoggedJson); function onLoggedJson(json) { isLogged = json; fetch(ROUTE + "get_prodotto/" + parametroEAN).then(onResponse).then(onProdottoJs...
function _raycasterIntersectedHandler(evt) { this.intersectingRaycaster = evt.detail.el.components.raycaster; } function _raycasterIntersectedClearedHandler(evt) { if (this.intersectingRaycaster != null) { const intersection = this.intersectingRaycaster.getIntersection(this.el); if (intersection == und...
import { configureStore, createAsyncThunk, createSlice } from '@reduxjs/toolkit' import { combineReducers } from 'redux' import { CriaProductsAdapter } from '../../api-adapters' const APIKey = "72e2a68accf05e426eeada6656ca978b306db57d1dcc5ed6aaab73ac7760e371801b5d02ee86a696cd84e10cc92ad747a7da6482db4218bc3d147650f...
/* Copyright (c) 2014-2015, ArrayFire Copyright (c) 2015 <NAME> aka unbornchikken (<EMAIL>) All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyri...
Components.utils.import("chrome://redirector/content/js/redirect.js"); Components.utils.import("chrome://redirector/content/js/redirector.js"); Components.utils.import("chrome://redirector/content/js/redirectorprefs.js"); Components.utils.import("chrome://redirector/content/js/xpcom.js"); jQuery.fn.center = function (...
import 'babel-polyfill'; import 'source-map-support/register'; import debugLog from 'debug'; import fs from 'graceful-fs'; import mkdirp from 'mkdirp'; import path from 'path'; import renege from 'renege'; const debug = debugLog('fs-promise-util'); export default ((self) => { // Promise for fs.appendFile self.appe...
import { createAsyncThunk, createSlice } from "@reduxjs/toolkit"; import { createMarketItem, createMarketRental, createMarketVehicle, } from "../../graphql/mutations"; import { getMarketItem, getMarketRental, getMarketVehicle, marketItemSortBySortKey, marketRentalSortBySortKey, marketVehicleSortBySort...
/* global describe, before, it */ 'use strict' const bindings = require('../') const expect = require('chai').expect const maxIsReadyToSampleWait = 60000 const evUnsampled = '00-5bd5777ca0077c734b537b64c6b96921-1aa0b1b42979f5c4-00' const evSampled = '00-4fc9017ba3404828f253638a697dc7cf-a544d5b98159b555-01' describe...
var renderers = {}; // A cross-browser requestAnimationFrame // See https://hacks.mozilla.org/2011/08/animating-with-javascript-from-setinterval-to-requestanimationframe/ var requestAnimFrame = (function(){ return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRe...
/** * Supplement class */ // Dependencies const _ = require('lodash'); const airtable = require('./airtable.js'); const Base = require('./base.js'); const debug = require('debug')('mn-elections-api:supplement'); // Main class class Supplement extends Base { constructor(options = {}, election) { super(options)...
const builder = require('.') const test = require('tape') const skip = false test('feature simple', {skip:skip}, function (t) { t.equal(builder('(width:400px)'), '(width: 400px)') t.equal(builder('(min-width:400px)'), '(min-width: 400px)') t.equal(builder('(max-width:400px)'), '(ma...
'use strict'; const fs = require('fs'); const path = require('path'); const BroccoliPlugin = require('broccoli-plugin'); const commondir = require('commondir'); const appFiles = [ 'app.js', 'router.js' ]; const appDirs = [ 'components', 'controllers', 'helpers', 'initializers', 'instance-initializers',...
import React from 'react' import PropTypes from 'prop-types' import { Link } from 'react-router-dom' import { Table as AntdTable, Divider, Row, Button, Input, Icon, } from 'antd' import { localizeDateTime, localizeDateTimeUnix } from '../utils/stringUtils' import { DEFAULT_TABLE_PAGE_SIZE } from '../constants' imp...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.transform = void 0; const defs_1 = require("../runtime/defs"); const stack_1 = require("../runtime/stack"); const symbol_1 = require("../runtime/symbol"); const add_1 = require("./add"); const bake_1 = require("./bake"); const decomp_1...
// BUDGET CONTROLLER var budgetController = (function() { var Expense = function(id, description, value) { this.id = id; this.description = description; this.value = value; this.percentage = -1; }; Expense.prototype.calculatePercentage = function(totalIncome) { if(t...
const WebSocket = require('ws') const EventEmitter = require('events') const FileSystem = require('fs') const { URL } = require('url') const Request = require('request') const Package = require('./package.json') const Cheerio = require('cheerio') require('colors') const _uniq = require('lodash.uniq') const normalizeURL...
'use strict'; var util = require('util'), path = require('path'), yeoman = require('yeoman-generator'), chalk = require('chalk'), sortedObject = require('sorted-object'); var BespokeGenerator = module.exports = function BespokeGenerator(args, options, config) { yeoman.generators.Base.apply(this, arguments)...
/** * 888888ba dP .88888. dP * 88 `8b 88 d8' `88 88 * 88aaaa8P' .d8888b. .d888b88 88 .d8888b. .d8888b. 88 .dP .d8888b. * 88 `8b. 88ooood8 88' `88 88 YP88 88ooood8 88' `"" 88888" 88' `88 * 8...
var midi = require('midi'); var fs = require('fs'); var robot = require("robotjs.node"); // Set up a new input. var input = new midi.input(); // Count the available input ports. var ports = input.getPortCount(); for (i=0; i<ports; i++) { console.log('index: ' + i + ' -> ' + input.getPortName(i)); }; // TODO: make...
/** * Update Rank Chart * * @param data - . * @returns none. */ function updateRankChart(d) { // Result table var vars_table = { x: d.dependentVar, y: d.independentVar, categoryAttr: d.categoryAttr, category: d.category, trend_type:d.trend_type }; updateTabulate(vars_table); // Rank chart // hi...
import React from 'react'; import PropTypes from 'prop-types'; import moment from 'moment'; import { Button, Sidebar } from 'semantic-ui-react'; import { INITIAL_DATE, DEFAULT_TOPIC, TIME_ZONE, TIME_SLOTS, PROPERTIES_REQUEST_PATH, TIME_SLOTS_REQUEST_PATH, TIME_SERIES_REQUEST_PATH, VGI_OB...
import React, { Component } from 'react'; import {Janus} from 'janusjs-sdk' import Button from '@material-ui/core/Button' import CssBaseline from '@material-ui/core/CssBaseline'; import { withStyles } from '@material-ui/core/styles'; import Card from '@material-ui/core/Card'; import CardActions from '@material-ui/core/...
const fs = require("fs"); const {basename,dirname,relative,normalize,extname,resolve} = require('path'); const is_dir = (path) => fs.existsSync(path) && fs.lstatSync(path).isDirectory() const teacss = require("./teacss-core.js"); const cwd = process.cwd(); let command = process.argv[2]; let config_keys = pro...
var red = 0; var green = 0; var blue = 0; $("#new_col").on("click", function() { $(".bubble-block").addClass("spin-360"); setTimeout(function() { setRandomColor(); }, 1500); setTimeout(function() { $(".bubble-block").removeClass("spin-360"); }, 2000); }); function setRandomColor() { setColor((Math.floo...
import parser from './parser/parser'; import results from './results'; import DefaultVariableStorage from './default-variable-storage'; import convertYarn from './convert-yarn-to-js'; import types from './parser/nodes'; const nodeTypes = types.types; class Runner { constructor() { this.noEscape = false; thi...
import React, { useState, useEffect, useRef } from 'react' import { Editor } from '@tinymce/tinymce-react'; import { Formik, FormikConsumer, useFormik } from 'formik' import { Card, CardHeader, CardBody, Row, Col } from "reactstrap"; import moment from 'moment-timezone'; import { useRouteMatch, useHistory, useLocation,...
'use strict' //Variables const qa1 = ['What type of apple was developed at the U?','honeycrisp','jazz','gala','granny smith','honeycrisp']; const qa2 = ['How can you get from place to place without going outside?','teleportation','skyway system', 'tunnels', 'not possible','tunnels' ]; const qa3 = ['The U h...
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import Card from '../Card'; import UpdateCard from '../UpdateCard'; import withContext from '../Context'; const UpdateCardWithContext = withContext(UpdateCard); // DeckDetailContainer Component receives props from DeckDetail and rende...
import React, { useRef, useState, useEffect } from "react"; import FormControl from "@material-ui/core/FormControl"; import { useLocation } from "react-router-dom"; import FormHelperText from "@material-ui/core/FormHelperText"; import Snackbar from "@material-ui/core/Snackbar"; import MuiAlert from "@material-ui/lab/Al...
const fs = require('fs'); const fsp = fs.promises; const { authorize } = require('./lib/auth'); const { read } = require('./lib/sheet'); const { createDatabase, findByFieldName } = require('./lib/db'); const { toCamelCase } = require('./lib/strings'); const inquirer = require('inquirer'); const chalk = require('chalk')...
/* * ARHParser.jsm * * Parser for the Authentication-Results header as specified in RFC 7601. * * Version: 1.2.1 (13 January 2019) * * Copyright (c) 2014-2019 <NAME> * * This software is licensed under the terms of the MIT License. * * The above copyright and license notice shall be * included in all co...
import { limitNumber, distanceNeededToAchieveSpeed, accelerationNeededToAchieveChangeDistance, deprecationWarning, epsilonEquals } from './base.js'; import { Movable } from './movable.js'; function newElevStateHandler(elevator) { elevator.handleNewState(); } export class Elevator extends Movable { constructor(s...
function appendOpListHeaders(oplist) { oplist.empty(); const oplistRow = $('<div>').addClass('opv86-oplist-container'); oplistRow.append($('<div>').addClass('opv86-oplist-header').text('Opcode')); oplistRow.append($('<div>').addClass('opv86-oplist-header').text('Instr')); oplistRow.append($('<div>')...
var Map = require('./im/map'); var Set = require('./im/set'); var Point = require('./point'); var Line = require('./line'); function dict() { return Object.create(null); } // pls refactor // http://stackoverflow.com/questions/849211/shortest-distance-between-a-point-and-a-line-segment function sqr(x) { return x...
'use strict'; const fetch = require('node-fetch'); const MODELS = require('./models'); const MONGO = require('./mongo'); const Obj = require('./obj.js'); const { studentBordersID, teacherBordersID } = require('./constantas.js'); // above you can see start and end ID for requests const { amountOfBlocks } = require(...
'use strict'; var { Pool } = require('pg'); const copyTo = require('pg-copy-streams').to; const copyFrom = require('pg-copy-streams').from; const format = require('pg-format'); const fs = require('fs-extra'); var dblocal = require('./dblocal'); var THE_POOL = null; var THE_CONFIG = null; /** * initialises the dat...
import React, { Component } from 'react'; import { hashHistory } from 'react-router'; import moment from 'moment'; import InvoiceListSetPaid from './InvoiceListSetPaid'; import InvoiceListSendNotification from './InvoiceListSendNotification'; import InvoiceListSetIrrecoverable from './InvoiceListSetIrrecoverable'; imp...
var BASEURL = jeo_share_widget_settings.baseurl; var DEFAULTMAP = jeo_share_widget_settings.defaultmap; // indexOf shim via // developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/indexOf if (!Array.prototype.indexOf) { Array.prototype.indexOf = function (searchElement /*, fromIndex */ ) { 'us...
function generateUpdateIF() { var innerhtml = ""; if (curData.resourcesIn === undefined) { return innerhtml; } innerhtml += "<table class='table table-bordered table-hover table-sm' width='100%' style='margin-top:0.5vh;'><tbody>"; innerhtml += "<tr><td width='10%;'><label>IF Name</label></t...
/** * The core matchmaking logic */ 'use strict' const constants = require('../constants') const config = require('../config') const async = require('async') const randomDate = require('random-datetime') const playerRepository = require('../model/playerRepository') /** * Matches the given player to a suitable oppo...
'use strict'; const acento = '[áéíóúâêôãõüöäëï]'; const vogal = '[áéíóúâêôãõàèaeiouüöäëï]'; const consoante = '[bcçdfghjklmñnpqrstvwyxz]'; const syl = { 20 : " -.!?:;", 10 : "bçdfgjkpqtv", 8 : "sc", 7 : "m", 6 : "lzx", 5 : "nr", 4 : "h", 3 : "wy", 2 : "eaoáéíóúôâêûàãõäëïöü", 1 :...
var React = require('react'); var firebase = require('firebase'); var Link = require('react-router').Link; var hashHistory = require('react-router').hashHistory; var Search = require('./search.js'); var Layout = React.createClass({ //sets the initial logged in state getInitialState: function() { retur...
/** * @license * ©2016-2017 EdgeVerve Systems Limited (a fully owned Infosys subsidiary), Bangalore, India. All Rights Reserved. */ // date parse module. window.OEUtils = window.OEUtils || {}; var OEUtils = window.OEUtils; OEUtils.DateUtils = { months: ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'se...
import React, { Component } from 'react'; import { Modal, Text, View, StyleSheet, FlatList, TouchableOpacity, ToastAndroid, Alert, } from 'react-native'; import styles from '../styles'; import { MGMapView, XClsType } from '@mapgis/mobile-react-native'; import { MAPX_FILE_PATH } from '../uti...
const fs = require('fs'); const path = require('path'); const crypto = require('crypto'); const vm = require('vm'); const { promisify, inspect } = require('util'); const Apify = require('apify'); const _ = require('underscore'); const Ajv = require('ajv'); const { META_KEY, RESOURCE_LOAD_ERROR_MESSAGE, PAGE_FUNCTION_...
function writelog(line,addnewline){ if (zipabox.showlog){ if (typeof(addnewline) == "undefined") addnewline = true; var logvalue = ""; if (zipabox.show_datetime_in_log) logvalue += new Date().toISOString().replace(/T/, ' ').replace(/\..+/, '') + " - "; console.log(logvalue + "[zipabox] : " + line +...
// Copyright 2015-2017 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any lat...
var userGlobal; var postsForFilter; var postsToUse; window.onload = () => { user = false; checkStatus(); } $(document).ready(() => { launchUI(); confetti({ particleCount: 1000, spread: 500 }); const searchEvent = document.getElementById("search-input"); searchEvent.addE...
'use strict'; const NODE_ENV = process.env.NODE_ENV || 'development'; const ExtractTextPlugin = require('extract-text-webpack-plugin'); const AssetsPlugin = require('assets-webpack-plugin'); const ConcatPlugin = require('webpack-concat-plugin'); const CopyWebpackPlugin = require('copy-webpack-plugin'); const UglifyJsP...
import { Box, Button, Center, Divider, Drawer, DrawerBody, DrawerCloseButton, DrawerContent, DrawerOverlay, Grid, Heading, IconButton, Tooltip, useBreakpointValue, useColorMode, useDisclosure, } from '@chakra-ui/react'; import { useSortable } from '@dnd-kit/sortable'; import { CSS } from...
var bvDialog = { title: { confimation: EIDSS.BvMessages['msgConfimation'], error: EIDSS.BvMessages['Error'], warning: EIDSS.BvMessages['Warning'] }, messageText: { authenticationError: EIDSS.BvMessages['ErrAuthentication'], savePrompt: EIDSS.BvMessages['msg...
const _ = require('lodash'); const moment = require('moment'); const { BU } = require('base-util-jh'); const { dpc } = require('../../module'); const { BaseModel } = dpc; class Model extends BaseModel.Inverter { /** * protocol_info.option --> true: 3.3kW, any: 600W * @param {protocol_info} protocolInfo */...
import React, { Component } from "react" import Radium from "radium" import "./styles/slide.scss" class SlideShow extends Component { state = { activeIndex: 0, nextActiveIndex: 0, activeIndexClasses: ["active-slide"], nextActiveIndexClasses: [], disablePrevNext: false, xCoordinate: null, } ...
'use strict'; const js0 = require('js0') ; class Pager { get base() { return this._base; } get current() { return this._currentPageInfo; } get pages() { return this._pages; } constructor(base = '/', useState = true) { this._initialized = false; ...
'use strict' const campSlider = (() => { const lengthSlides = document.querySelectorAll('.slide').length const wrapper = document.querySelector('.camp-wrapper') const slidesContent = document.querySelector('.slides') let widthSlider = 0 let current = 0 let arr = [] let config = { speed: 1000, ea...
require('shelljs/global') var uuid = require('uuid'); var xml2js = require('xml2js'); var path = require('path'); var fs = require('fs-extra'); var Q = require('bluebird'); var XMLHttpRequest = require('xhr2'); var checkUrlExists = require('./util').checkUrlExists var Sidx = require('./sidx') console.log(Sidx); var na...
$selected = ""; // selected game type $gameStatus = "Not created"; /* on click events to choose game type */ $('.option').click(function(){ $selected = $(this).data('val'); $('.option div').css('background-color','rgba(110, 115, 224, 1)'); $(".option[data-val='"+$selected+"'] div").css('background-...
var status = "empty"; var currentTab = -1; //set badge color chrome.browserAction.setBadgeBackgroundColor({ color: [78, 195, 70, 128] }); document.addEventListener("DOMContentLoaded", function() { Animation.init(); }, false); var ACTION_IN_PROGRESS = false; function refreshStatus(callback) { if(ACTI...
export const loadJs = (url) => { return new Promise((resolve, reject) => { const script = document.createElement('script') script.src = url script.type = 'text/javascript' document.body.appendChild(script) script.onload = () => { resolve() } }) } export const loadCss = (url) => { re...
import { Mongo } from 'meteor/mongo'; import { cornerstoneTools, cornerstone } from 'meteor/ohif:cornerstone'; import { $ } from 'meteor/jquery'; import { waitUntilExists } from 'jquery.waituntilexists'; fiducialsCollection = new Mongo.Collection('fiducialsCollection', {connection: null}); const probeSynchronizer = n...
const jbPath = '/chart/jailbreak/' const fwPath = '/chart/firmware/' const devicePath = '/chart/device/' const betaDevicePath = '/chart/beta/device' const header = [ 'Info', 'Related Devices', 'Table', ] const infoHeader = [ 'Device', 'Identifier', 'SoC', 'Arch', 'Model', 'Released', 'Discontinued...
/* * File: ha-mon.js - monitor all exported group addresses * * this parse and creates a dp for each groupaddress and on an event * if will record the value if it is associated with a group address * * */ // load knx ip stack var knx = require('knx'); //const DPTLib = require('knx.dptlib'); //const dns = require...
import React from 'react'; import { Text, View, Image, Dimensions, TouchableOpacity, TextInput, ScrollView, FlatList, StyleSheet, AsyncStorage } from 'react-native'; import poster from '../../Images/poster1.jpg' import facebook from '../../Images/facebook.png' import CustomInput from '../../components/CustomInput'; imp...
// THIS IS A FLOW TEST INTERFACE // EACH COMPONENT USES THIS SCRIPT FOR TESTING (DON'T RUN THIS SCRIPT DIRECTLY) // MIT License // Copyright 2017 <NAME> <<EMAIL>> const Fs = require('fs'); const Util = require('util'); const Exec = require('child_process').exec; const EventEmitter = require('events'); const ERR = '--...
const EventEmitter = require('events'); const Wall = require('../2d/wall.js'); class Game extends EventEmitter{ constructor(con) { super(); con.on('close', this.shutdown.bind(this)) this.winning_score = 5; this.active_tokens = ['foo']; this.con = con; this.game_running = false; this.co...
/* Copyright 2015 <NAME> 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, softwar...
import moment from 'moment'; import React from 'react'; import nzh from 'nzh/cn'; import { parse, stringify } from 'qs'; import {message, Badge, Tooltip} from 'antd' export function fixedZero(val) { return val * 1 < 10 ? `0${val}` : val; } export function getTimeDistance(type) { const now = new Date(); const on...
/** * Copyright 2017 Google Inc. All Rights Reserved. * * 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 appli...
import "core-js/stable"; import "regenerator-runtime/runtime"; import { html, render } from 'lit-html'; import { resumeAudioContext } from '@ircam/resume-audio-context'; import { Scheduler } from 'waves-masters'; import { AudioBufferLoader } from 'waves-loaders'; import '@ircam/simple-components/sc-text.js'; import '@i...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const junctionTree_1 = require("./junctionTree"); const uuid_1 = require("uuid"); const util_1 = require("util"); const log = (obj) => { console.log(util_1.inspect(obj, { showHidden: false, depth: null })); }; const SUPER_NETWORK = 'SUPER_...
/* * Window on load, hijacks all a tag & call loadPage, * set size for nav & content, call init */ $(function() { $('a').on('click',function(e){ e.preventDefault(); var href = $(this).attr('href'); loadPage(href); }); $( window ).resize(function() { setHeights(); }); init(); }); /* * generate function na...
import React, {useState, useEffect} from 'react' import { Row, Container, Form } from 'react-bootstrap'; import {useHistory} from 'react-router-dom'; import {getAmazonBooks, getCheggBooks} from '../../actions/book'; import { useDispatch, useSelector } from 'react-redux'; import FormGroup from '@material-ui/core/FormGro...
/** * * OpenUI5 Cache Buster * Copyright 2017 PulseShift GmbH. All rights reserved. * * Licensed under the MIT License. * */ const gutil = require('gulp-util') const loaderUtils = require('loader-utils') const fs = require('fs') const path = require('path') const _ = require('lodash') module.exports = ui5Bu...
function genrand(screennum,numofwords) { var myarrayjs = []; if(screennum == 1) { var learne = ["blackberry","blackcurrant","blueberry","cherry","coconut","fig","gooseberry","grape","grapefruit","kiwi fruit","lemon","lime","mango","melon","starfruit","tomato","ugli fruit","walnut","watermelon",]; myarray...
import _ from 'lodash'; import { JWProxy } from 'appium-base-driver'; import { waitForCondition } from 'asyncbox'; import log from './logger'; import { SERVER_APK_PATH as apkPath, TEST_APK_PATH as testApkPath, version as serverVersion } from 'appium-uiautomator2-server'; import { util, logger, tempDir, fs } from 'appiu...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va...
/** * Copyright 2017 IBM Corp. All Rights Reserved. * * 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 l...