text stringlengths 3.07k 16k |
|---|
var fs = (typeof (NODE_FS) === 'undefined' ? { readFile: function () { throw new Error("readFile only supported in node.js") } } : NODE_FS);
var yaml = require('./js-yaml/index.js');
var path = require("path");
var rest = require("rest");
var json_ast = require("./json_ast");
global.FRAGMENTS_CACHE = {};
global.PENDIN... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _react = _interopRequireDefault(require("react"));
var _chai = require("chai");
var _testUtils = require("../test-utils");
var _Typography = _interopRequireDefault(require("../Typography"));
var _StepLabel = _i... |
'use strict'
const chai = require('chai')
const dirtyChai = require('dirty-chai')
const http = require('http')
const path = require('path')
const {closeWindow} = require('./window-helpers')
const {expect} = chai
chai.use(dirtyChai)
const {ipcRenderer, remote} = require('electron')
const {ipcMain, webContents, Browse... |
// Copyleft 2015-2019 Superstring.Community
// This file is part of Susy.
//
// SPDX-License-Identifier: BSD-3-Clause
import { action, computed, observable } from 'mobx';
import bip39 from 'bip39';
import hdkey from 'sophonjs-wallet/hdkey';
import localForage from 'localforage';
import LS_PREFIX from './utils/lsPref... |
/* Servershell 2.x - Copyright (c) 2020 InnoGames GmbH
*
* The Servershell consists of three major (HTML) components:
* 1. The Servershell Search (search, command and understood inputs)
* 2. The Servershell Attributes Selection (right collapsible sidebar)
* 3. The Servershell Results (table to display, selec... |
function Controller() {
function chooseFilter() {
$.pickerView.animate(slide_in);
$.addFilter.enabled = false;
}
function hidePickerView() {
$.pickerView.animate(slide_out);
$.addFilter.enabled = true;
}
function filterChoosen() {
$.pickerView.animate(slide_ou... |
import React, { useEffect, useRef } from 'react';
import { useDispatch } from 'react-redux';
import * as d3 from 'd3';
import _ from 'lodash';
import styled, { css } from 'styled-components';
import { Grommet, Button, Tabs, Tab, Box } from 'grommet';
import { grommet } from 'grommet/themes';
import { globalColors } fr... |
ol.style.IconImageCache.shared.setSize(512);
export const view = new ol.View({
center: [0, 0],
zoom: 5,
});
export const map = new ol.Map({
layers: [
],
target: 'app-map',
//renderer: 'webgl',
controls: ol.control.defaults({
attribution: false,
// attributionOptions: {
// collapsible: fals... |
"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[k];
})... |
var readScore;
var overall_mapping;
var markerColorArr;
(function() {
// Get provider_id from URL parameter, query for it in API
var provider_id = window.location.search.replace(/^\?/, "");
var query_string = "https://data.medicare.gov/resource/b27b-2uc7.json?$where=" +
"federal_provider_nu... |
/**
* Copyright 2020 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
// set the dimensions and margins of the graph
var margin = {top: 10, right: 30, bottom: 50, left: 70},
width = 500 - margin.left - margin.right,
height = 500 - margin.top - margin.bottom;
//append the svg object to the body of the page
var svg_box = d3.select("#boxplot")
.append("svg")
... |
function AddProducts() {
try {
var sprodid, sprodname, sprodprice, prodUomId, prodsUomId, prodUomName, supBalNo, supWt, millWt;
sprodid = (document.getElementById("txt_item_ItemId").value == "") ? 0 : document.getElementById("txt_item_ItemId").value;
supBalNo = document.getElementById("txt_S... |
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 = Reflect.decorate(d... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link, withRouter } from 'react-router-dom';
import './AddProductPage.css';
import addProduct from '../static/images/addProduct.png';
import { Fertilizers } from '../fertilizers.js';
import { Dropdown, Modal, Button } from 'semanti... |
window.part = 0;
window.chunksize = 20971520;
window.sizeuploaded = 0;
window.totalElapsedTime = 0;
window.totalLoaded = 0;
window.uploaders = [];
LoadUploaderTemplate();
$('#files').on('change', function() {
$('#uploaders').empty();
window.uploaders = [];
for (var i = 0; i < this.files.length; i++) {
... |
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof o... |
// set the url to a variable
var url = "https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/1.0_day.geojson";
// Perform a GET request to the earthquake query URL
d3.json(url, function(data) {
// Once we get a response, send the data.features object to the createFeatures function
createFeatures(data.feature... |
import { select, call, put, takeLatest } from 'redux-saga/effects';
import { push } from 'react-router-redux';
import { delay } from 'redux-saga';
import moment from 'moment';
import axios from '../../axios';
import config from '../../config';
import {
SEARCH_CASE_START,
FETCH_CASE_START,
SAVE_CASE_START,
SING... |
import fs from 'fs-plus'
import path from 'path'
import mousetrap from 'mousetrap'
import {ipcRenderer} from 'electron'
import {Emitter, Disposable} from 'event-kit'
let suspended = false
const templateConfigKey = 'core.keymapTemplate'
/*
By default, Mousetrap stops all hotkeys within text inputs. Override this to
mo... |
/* Copyright 2017 Streampunk Media Ltd.
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 t... |
import React, { memo, useState, useEffect } from 'react';
import { useSelector, shallowEqual } from 'react-redux';
import Divider from '@material-ui/core/Divider';
import Drawer from '@material-ui/core/Drawer';
import Hidden from '@material-ui/core/Hidden';
import PersonIcon from '@material-ui/icons/Person';
import Wor... |
"use strict";
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 (b.hasOwnPrope... |
import React, { Component } from "react";
import { connect } from "react-redux";
import { Actions } from "jumpstate";
import { browserHistory } from "react-router";
import * as firebaseutils from "../utils/firebaseutils";
import firebase from "firebase";
import { withStyles } from '@material-ui/core/styles';
import Ap... |
'use strict';
// Aplication Setup
const express = require('express');
require('dotenv').config();
const server = express();
const cors = require('cors');
server.use(cors());
const superagent = require('superagent');
const pg = require('pg');
// const client= new pg.Client(process.env.DATABASE_URL);
const client ... |
var fs = require("fs");
var tmp = require("tmp");
var path = require("path");
var compile = require("node-elm-compiler").compile;
var jsEmitterFilename = "emitter.js";
var KNOWN_MODULES =
[
"Native",
"fullscreen",
"embed",
"worker",
"Basics",
"Maybe",
"List",
"Array",
"Char",
... |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
'use strict';
var retry_error_filter_1 = require('./retry_error_filter');
/**
* Parameters used with the {@link azure-iot-common.ExponentialBackOffWithJitter} policy to... |
var stats = new Stats();
var MAX_THORN_SIZE = 100;
var TIME_BETWEEN_GROWTHS = 10;
var width, height;
var stop = false;
var Thorn = {
bounds: function () {
// memoize
if (this._bounds) {
return this._bounds;
}
var endX = this.x + this.dirX;
var endY = this.y + this.dirY;
var x ... |
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = argumen... |
import React from "react";
class Locate extends React.Component {
state = {
numberEntered: "",
commQuery: "",
enteredValue: "",
predictions: []
};
onSearchChange = async () => {
const { typesA = ["(place_name)"] } = this.props;
//const { typesE = ["(establishment)"] } = this.props;
//... |
import { useState, useEffect } from "react";
import axios from "axios";
import Grid from "@mui/material/Grid";
import TextField from "@mui/material/TextField";
import Button from "@mui/material/Button";
import Rating from '@mui/material/Rating';
import Radio from '@mui/material/Radio';
import RadioGroup from '@mui/mate... |
const path = require('path')
const pathToComponent = path.resolve(__dirname, 'data-model-component')
process.env.NODE_CONFIG = `{"pubsweet":{
"components":[
"@pubsweet/model-user",
"@pubsweet/model-team",
"@pubsweet/model-fragment",
"${pathToComponent}"
]
}}`
const { model: Manuscript } = require(... |
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import { Button, ControlLabel, DropdownButton, FormControl, FormGroup, MenuItem } from 'react-bootstrap';
import { product } from 'config';
import Modal from 'components/Modal';
import SizeFormat... |
import ol from 'openlayers'
import { drawSymbol } from './mapUtils/OlMapUtils.js'
import { getLightList, getAlarm } from '@api/api'
const defColorArr = ['红','黄','绿','闪烁']//用来处理判断是否输出warn
export default {
namespaced: true,
state: {
layerSource: null,
lightLayer: null,
rows: null,
alarm: null,
ove... |
/**
* Simplification Filterer - This is what is run by the bookmarklet.
* Simplification - Distraction Free Browsing.
* Simplification removes headers, navbars, widgets, sidebars, forms, breadcrumbs and more at the click of a button.
*
* COMPATIBILITY: Chrome >1, Firefox >3.5, IE >9, Opera >10, Safari >3.2
*
* A... |
/**
* Copyright 2020 The Pennsylvania State University
* @license Apache-2.0, see License.md for full text.
*/
import { html, css } from "lit-element/lit-element.js";
import { SimpleColors } from "@lrnwebcomponents/simple-colors/simple-colors.js";
/**
* `date-card`
* `simple presentation of a date`
* @litElement
... |
var Touch;
Touch = class Touch {
constructor(stream, nav) {
//elem.addEventListener( 'pointerout', @out, false )
this.start = this.start.bind(this);
this.movit = this.movit.bind(this);
this.leave = this.leave.bind(this);
this.cancel = this.cancel.bind(this);
this.out = this.out.bind(thi... |
///////////////////
// <NAME> @fupete © 2017 MIT License
// P5js retrieve data from Google Spreadsheets/JSON & make OOP | Firenze, IT | 4.2017
// Educational purpose, made for DSII2017 lab @UniRSM
// P5js gdoc example inspired on Gist https://gist.github.com/claytical/6a929f14964c867e07d8 by @claytical
// link del do... |
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This module implements experimental API for <webview>.
// See web_view.js for details.
//
// <webview> Experimental API is only available on canary and... |
import 'log-timestamp';
import 'dotenv/config';
import { EventSource } from 'launchdarkly-eventsource';
import manakin from 'manakin';
import { dynamic as setIntervalAsyncDynamic } from 'set-interval-async';
import { BASE_URL, fetch, fetchIds } from './util.js';
import { writeEntry, write, flatWriteList } from './write... |
// Advent of Code 2019
// Day 24: Planet of Discord
// Part 2
import { union } from '../funtils';
// return string key for supplied 3d coord (ie a just adequate hash function)
const toKey = (r = 0, c = 0, z = 0) => JSON.stringify({ r, c, z });
// format input as a Set of 3d coordinates
// [][]bool -> Set<string>
exp... |
import React, {useState, useEffect} from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import {get, set} from 'lodash';
import PopupWrapper from './popup';
import NumSelect from './numSelect';
import Utils from '../../common';
const getClass = (useBorder, useBackground) =>
cx({'border-bo... |
import autoBind from 'auto-bind';
import isFunction from 'lodash/isFunction';
const TOOLTIP_CONTROL = 'tooltip';
const TOOLTIP_TAG = 'span';
const TOOLTIP_ATTR = 'data-tooltip';
const TOOLTIP_CLASS = 'tce-jodit-tooltip';
const TOOLTIP_POPUP_FORM = `
<form class="jodit-ui-form">
<div class="jodit-ui-block jodit-u... |
/**
* This class represents the digest tree for chrono-sync2013.
* Copyright (C) 2014-2015 Regents of the University of California.
* @author: <NAME>, based on Jeff T.'s implementation in ndn-cpp
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser Genera... |
/*global module*/
/*global require*/
'use strict';
var ObjectID = require('mongodb').ObjectID;
var q = require('q');
var _ = require('lodash');
module.exports = PopulatorFactory;
function PopulatorFactory(mongoWrapper) {
return new Populator(mongoWrapper)
}
Populator.prototype.transformResult = populatorResult... |
"use strict";
const assert = require("chai").assert;
const setupTestDb = require("../../test.database");
const {BigNumber} = require("bignumber.js");
const {series} = require("async");
const {processOrderCanceledLog, processOrderCanceledLogRemoval} = require("../../../../src/blockchain/log-processors/order-canceled");... |
const Nimiq = require('@nimiq/core');
const argv = require('minimist')(process.argv.slice(2));
const config = require('./src/Config.js')(argv.config);
const PoolServer = require('./src/PoolServer.js');
const PoolService = require('./src/PoolService.js');
const PoolPayout = require('./src/PoolPayout.js');
const Metrics... |
/// <reference path="../lib/types.d.ts" />
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 reje... |
/*
* levelmanager.js
* This script is responsible for how level and levelpack objects are handled on a data-level,
* it holds the Level and LevelPack classes with their various data-functionalities.
* It is also responsible for the functionality of adding and removing levels.
*/
let builtinLevels = new Set( ), cu... |
import React, {Component} from "react";
import {Toast} from "primereact/toast";
import {Card, Form} from "antd";
import axios from 'axios';
import {Redirect} from "react-router-dom";
import Grid from "@material-ui/core/Grid";
import CssBaseline from "@material-ui/core/CssBaseline";
import Paper from "@material-ui/core/... |
import { Link } from 'react-router-dom'
import NoSSR from 'react-no-ssr';
import { Preloader, Placeholder } from 'react-preloading-screen';
import Loader from '../Shared/Loader';
import Navigation from '../Navigation/Navigation';
import Footer from '../Common/Footer';
import GoTop from '../Common/GoTop'
import React, {... |
const qddVis = require("./build/Release/DDVis");
//const data = new Map(); //saves the QDDVis-objects needed for simulation
class DataManager {
constructor(objCode) {
this._data = new Map();
this._objCode = objCode;
}
get data() {
return this._data;
}
get objCode() {
... |
// TODO: Delete this file and find a way
// to use coinData in Verus-Desktop-GUI in appConfig.js
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getSimpleCoinArray = exports.getCoinObj = void 0;
var _coinHelpers = _interopRequireDefault(
require("agama-wallet-lib/src/coin-hel... |
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof o... |
/*
Copyright (c) 2009-2010 <NAME> <EMAIL>
Recast4J Copyright (c) 2015 <NAME> <EMAIL>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for a... |
import React, { PureComponent } from "react";
import { View, Text, FlatList, TouchableOpacity } from "react-native";
import { StackActions } from "react-navigation";
import Toast, { DURATION } from 'react-native-easy-toast';
import Loading from 'react-native-whc-loading';
import styles from "./style";
import Infomation... |
import React, {PureComponent} from 'react';
import echarts from 'echarts/lib/echarts';
import 'echarts/lib/chart/line';
import 'echarts/lib/chart/pie';
import 'echarts/lib/component/legend';
import 'echarts/lib/component/tooltip';
import {
Table,
Button,
Modal
} from 'antd';
import { withRouter } from '... |
import {padStart, bytesToString, concatTypedArrays} from '@videojs/vhs-utils/cjs/byte-helpers';
import {getAvcCodec, getHvcCodec, getAv1Codec} from '@videojs/vhs-utils/cjs/codec-helpers';
import {findEbml} from './find-ebml.js';
import {TAGS} from './constants.js';
import {setOpusHead, parseOpusHead, OPUS_HEAD} from '.... |
const WebSocket = require('ws')
const striptags = require('striptags')
const db = require('../database/db')
const session = require('./session')
const {check_perm, SUPER_ADMIN} = require('./permission')
const {FRONT_END_PATH, BACK_END_PATH} = require('../config/basic')
const git = {
front: require('../lib/git')(FRONT... |
var consul = require('consul');
var winston = require('winston');
var CachingStoreWrapper = require('ldclient-node/caching_store_wrapper');
var defaultCacheTTLSeconds = 15;
var defaultPrefix = 'launchdarkly';
var notFoundError = 'not found'; // unfortunately the Consul client doesn't have error classes or codes
func... |
const st = require('./server_transport');
const start_time = (new Date()).getTime();
''.__proto__.trimChar = function(c){
var s = this.toString();
if (c === "]") c = "\\]";
if (c === "\\") c = "\\\\";
return s.replace(new RegExp(
"^[" + c + "]+|[" + c + "]+$", "g"
), "");
};
let is_connect = 0;
c... |
/**
* @license
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { animationFrame, microTask, timeOut } from '@vaadin/component-base/src/async.js';
import { Debouncer } from '@vaadin/component-base/src/debounce.js';
con... |
import Api from '../Api'
import Logger from '../Logger'
import { getType, isArray, isBrowser, isInt, isObject, isString } from '../utils'
/**
* Class ActionNotificationExport
*/
class ActionNotificationExport {
attributes = {}
options = {}
constructor(attributes = {}, options = {}) {
Object.entries(attrib... |
import * as DateUtil from "./utility_front.js";
import config from "./config.js"
// HTML Prototype
const GetCheck = {
"Month": 1,
"Week": 2,
"Day": 3,
"Hour": 4
}
const Prototypes = [
`
<p>Year</p>
<select name="Select_Year" id="Select_Year">
</select>
`,
`
... |
import React, { PureComponent, Fragment } from 'react';
import { connect } from 'dva';
import { Link } from 'dva/router';
import {
Form,
Breadcrumb,
Card,
List,
Tag,
Icon,
Button,
Pagination,
} from 'antd';
import DocumentTitle from 'react-document-title';
import { parse, stringify } from 'qs';
import {... |
import tools from './tools'
import data from './data'
const textStyle = {
color: '#5c6685',
fontFamily: 'Microsoft YaHei',
fontSize: '14'
}
const color_bar = ['#879AFF', '#8A6192', '#FF736F', '#F2C500', '#355B68', '#00B9AB', '#87D4EC', '#F09E5E', '#A7689A']
const color_line = ['#879AFF', '#8A6192', '#FF736F', '#F... |
const { rtrimSlashes } = require('./path-utils');
const { urlDecode } = require('./string-utils');
const urlUtils = {};
urlUtils.hash = function(url) {
const s = url.split('#');
if (s.length <= 1) return '';
return s[s.length - 1];
};
urlUtils.urlWithoutPath = function(url) {
const parsed = require('url').parse(... |
/**
------------------------------- Swift Property ---------------------------------
*/
PlainProperty.prototype.swiftifiedName = function() {
return swiftify(this.name)
}
PlainProperty.prototype.swiftifiedType = function (prefix, postfix) {
switch(this.type) {
case "boolean":
return "Bool"
case "integer":
... |
if (!RFEM) {
throw new Error("This script is only for RFEM, it creates surfaces.");
}
if (n === undefined) {
n = 8; // Number of Edges
r_p = 5; // Radius of base polygon
r_c = 0.5; // Radius of beams at top
H = 4; // Height
thickness_1 = 0.001; // Membran... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... |
/*
* List of all the Icons
*/
const icons = [
"fa fa-anchor",
"fab fa-btc",
"fab fa-ethereum",
"fa fa-bicycle",
"fa fa-cloud",
"fa fa-gem",
"fas fa-fighter-jet",
"fa fa-paper-plane",
"fa fa-anchor",
"fab fa-btc",
"fab fa-ethereum",
"fa fa-bicycle",
"fa fa-cloud",
... |
// react
import React from 'react'
import { useParams } from 'react-router-dom'
// material-ui components
import Button from '@material-ui/core/Button'
import Container from '@material-ui/core/Container'
import Grid from '@material-ui/core/Grid'
import FormControl from '@material-ui/core/FormControl'
import FormControl... |
import "../assets/img/rigo-baby.jpg";
import "../assets/img/4geeks.ico";
import "../style/index.scss";
const drawButton = document.querySelector("#drawButton");
const bubbleSortButton = document.querySelector("#bubbleSortButton");
const selectSortButton = document.querySelector("#selectSortButton");
selectSortButton.... |
const {type, shape, arrayOf} = require('skema')
const forEach = require('lodash.foreach')
const {isArray, isString} = require('core-util-is')
const TYPES = {}
function D (name, toData, toDB) {
// if (name in TYPES) {
// throw new Error(`'${name}' should not be defined again`)
// }
toData = type(toData)
t... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
/*Prototype pattern*/
console.log('Welcome to Javascript Case Studies');
function classA(name,age,gender){
this.name = name;
this.age = age;
this.gender = gender;
this.logging = function(){
console.log(this.name,this.age,this.gender);
}
}
classA.prototype =
{
nidcard: (function(){
console.log(this... |
/* eslint-disable import/no-extraneous-dependencies */
const path = require('path');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const Dotenv = require('dotenv-webpack');
const ModuleScopePlugin = require(... |
'use strict'
const {app, dialog, ipcMain} = require('electron');
const path = require('path');
const fs = require('fs');
const Window = require('./scripts/Window');
const Processor = require('./scripts/Processor');
const Watson_Test = require('./test/WatsonTest');
const commonEmitter = require('./scripts/Emitter');
c... |
/*
* mochify.js
*
* Copyright (c) 2014 <NAME> <<EMAIL>>
*
* @license MIT
*/
'use strict';
var browserify = require('browserify');
var watchify = require('watchify');
var coverify = require('coverify');
var glob = require('glob');
var mocaccino = require('mocaccino');
var webdriver = require('min-wd')... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... |
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array... |
"use strict";
/**
* This is a tiny UI module for displaying simple stats data.
*
* Not working with IEx. Use a 'Proxy' polyfill maybe?
*
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy
*
* @author <NAME>
* @date 2020-12-20
*/
Object.defineProperty(exports, "__esModule... |
var fs = require('fs');
var path = require('path');
var storage = require('node-persist');
var crypto = require('crypto');
console.log("Starting HomeBridge server...");
// Look for the configuration file
var configPath = path.join(__dirname, "config.json");
// Complain and exit if it doesn't exist yet
if (!fs.exists... |
'use strict'
const debug = require('debug')
const mh = require('multihashes')
const pull = require('pull-stream')
const whilst = require('async/whilst')
const setImmediate = require('async/setImmediate')
const each = require('async/each')
const debounce = require('lodash.debounce')
const log = debug('bitswap:engine')... |
'use strict';
const keyNames = {
0: 'quote',
8: 'backspace',
9: 'tab',
12: 'num pad center',
13: 'enter',
16: 'shift',
17: 'ctrl',
18: 'alt',
19: 'pause',
20: 'caps lock',
27: 'esc',
32: 'space',
33: 'page up',
34: 'page down',
35: 'end',
36: 'home',
37: 'arrow left',
38: 'arrow up',
39: 'arrow ... |
// Global Variables
var gridCode;
function editableFunctions() {
$(".canvas > .grid").prepend('<div class="blockbar hide"><a class="pointer dragblock hint--rounded hint--bounce hint--bottom" aria-label="Move Block" data-drag="block"><i class="fa fa-arrows-v"></i></a><a class="pointer editblock hint--rounded hint--bou... |
/**
Project Name: cip2psn
LICENSE: MIT
Created By: Lightnet
*/
// https://github.com/koajs/router/blob/master/API.md
// https://github.com/koajs/examples/blob/master/blog/app.js
// https://github.com/koajs/logger
// https://github.com/koajs/session
// https://github.com/koajs/csrf
const logger = require('ko... |
"use strict";
var users = module.exports;
const dbUtil = require("../util/db.js");
const consts = require("../consts/consts.js");
const util = require("../util/util.js");
const tools = require("../util/tools.js");
const log = require('../util/log.js').logger;
const common = require('../control/common.js');
const outp... |
/* eslint-disable no-param-reassign,no-case-declarations */
const { flagName } = require('../../db/flags');
const ffa = require('./ffa');
const _2v2 = require('./2v2');
const _3v3 = require('./3v3');
const _4v4 = require('./4v4');
const wc = require('./wc');
const tt = require('./tt');
const rng = require('./random');
... |
import React, { useState, useEffect } from 'react'
import { useSelector, useDispatch } from 'react-redux'
import styled from 'styled-components'
import Container from '../common/styled/Container.css'
import { Translate } from 'react-localize-redux'
import FormButton from '../common/FormButton'
import ArrowCircleIcon fr... |
import React from 'react';
import ReactStars from 'react-rating-stars-component';
const RestaurantCard = ({name, idx, setIndex, borough, cuisine, address, score, reviews, price, stars, sponsored, setShowMenu, source, functionScore }) =>{
let modScore = score["$numberDouble"].toString().slice(0, 3);
let s... |
// TODO: Include packages needed for this application
const inquirer = require('inquirer');
const fs = require('fs');
const util = require('util');
const writeFileAsync = util.promisify(fs.writeFile);
// TODO: Create an array of questions for user input
// const questions = ["What is the project title?", "What is the ... |
import path from 'path-browserify'
import { deepClone } from '@/util'
import api from '@/api'
function hasPermission(permissions, route) {
let isAuth = false
if (route.meta && route.meta.auth) {
isAuth = permissions.some(auth => {
if (typeof route.meta.auth == 'string') {
re... |
import React, { Component } from "react";
import { List, Map } from "immutable";
import { Link } from "react-router-dom";
import { Alert, Button, Table } from "reactstrap";
import ReactGA from "react-ga";
import _ from "lodash";
import PropTypes from "prop-types";
import ImmutablePropTypes from "react-immutable-pr... |
'use strict'
var decimal = require('is-decimal')
var alphanumeric = require('is-alphanumeric')
var whitespace = require('is-whitespace-character')
var escapes = require('markdown-escapes')
var prefix = require('./util/entity-prefix-length')
module.exports = factory
var tab = '\t'
var lineFeed = '\n'
var space = ' '
... |
var grid_s = 50;
function mkGrid() {
var _ew = new Array(grid_s * grid_s).fill(false);
var _ns = new Array(grid_s * grid_s).fill(false);
var _n = new Array(grid_s * grid_s).fill(0);
return {
getL: function(x, y, d) {
if (d < 0) return false; //no direction is never available!s
if (d % 2) //e-w... |
$(document).ready(function () {
thong_ke();
// hover_addevent();
})
function thong_ke() {
$('#id_view').click(function () {
var path = 'top-service-view';
load_thong_ke(path,1);
var path2 = 'get-service-user-max-view';
load_user_thongke(path2);
})
$('#id_rating').click(function () {
var path = 'top-se... |
import {expect} from '../../util/configuredChai';
import {parseElement} from '@cdo/apps/xml';
const Artist = require('@cdo/apps/turtle/turtle');
const constants = require('@cdo/apps/constants');
const SHORT_DIAGONAL = 50 * Math.sqrt(2);
const VERY_LONG_DIAGONAL = 150 * Math.sqrt(2);
describe('Artist', () => {
descr... |
/*Variáveis criadas pro jovo*/
const _data = {
gameOn: false,
timeout: undefined,
sounds: [],
strict: false,
playerCanPlay: false,
score: 0,
gameSequence: [],
playerSequence: []
};
/*Elementos criados*/
const _gui = {
counter: document.querySelector(".gui__counter"),
switch: document.querySelector(".gui_... |
import React, { Component } from 'react';
import {
View,
ScrollView,
StyleSheet,
} from 'react-native';
import PropTypes from 'prop-types';
const NUM_OF_DUP = 3;
const approximatelyEqualTo = (a, b, epsilon = 0.01) => Math.abs(a - b) < epsilon;
export default class Carousel extends Component {
scrollView = Re... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.