text stringlengths 3.22k 29.5k |
|---|
import React from 'react';
import { Link, graphql } from "gatsby";
import { GatsbyImage, getImage } from "gatsby-plugin-image";
import { login, isAuthenticated } from "../utils/auth";
import Layout from "../components/layout";
import { Tree, TreeNode } from 'react-organizational-chart';
import styled from 'styled-compo... |
var Application = require('..').Application
var assert = require('assert')
var fs = require('fs')
var helpers = require('./global-setup')
var path = require('path')
var temp = require('temp').track()
var describe = global.describe
var it = global.it
var beforeEach = global.beforeEach
var afterEach = global.afterEach
v... |
import * as Block from "../../../../../../../../../../node_modules/bs-platform/lib/es6/block.js";
import * as Curry from "../../../../../../../../../../node_modules/bs-platform/lib/es6/curry.js";
import * as React from "react";
import * as Caml_option from "../../../../../../../../../../node_modules/bs-platform/lib/e... |
export const HTTP_CODE = {
CONTINUE: 100,
SWITCHING_PROTOCOLS: 101,
OK: 200,
CREATED: 201,
ACCEPTED: 202,
NON_AUTHORITATIVE_INFORMATION: 203,
NO_CONTENT: 204,
RESET_CONTENT: 205,
PARTIAL_CONTENT: 206,
MULTI_STATUS: 207,
ALREADY_REPORTED: 208,
IM_USED: 226,
MULTIPLE_CHOICES: 300,
MOVED_PERMAN... |
'use strict';
/***
* Usage: blog2md b|w <BLOGGER/WordPress BACKUP XML> <OUTPUT DIR>
*/
const fs = require('fs');
const os = require('os');
const path = require('path');
const xml2js = require('xml2js');
const TurndownService = require('turndown');
var moment = require('moment');
var tds = new TurndownService({
... |
import { createReducer, createActions } from 'reduxsauce'
import Immutable from 'seamless-immutable'
import { arrayMerge } from '../../Utils/helper/datamining'
import _ from 'lodash'
import { path } from 'ramda'
/* ------------- Types and Action Creators ------------- */
const { Types, Creators } = createActions({
... |
var fs = require('fs');
var routes = [
{
route: "/example/api/bulkOil/save.json",
handle: function (req, res, next) {
res.setHeader('Content-Type','application/json; charset=UTF-8');
res.end(JSON.stringify({state:0}));
}
},
{
route: "/example/api/bulk... |
const moment = require('moment');
const _ = require('lodash');
const util = require('../core/util');
const Errors = require('../core/error');
const log = require('../core/log');
const marketData = require('./binance-markets.json');
const Binance = require('binance');
var Trader = function(config) {
_.bindAll(this)... |
jQuery(function ($) {
var wc_custom_checkout_coupons = {
init: function () {
$('.cart-promo__form').on('click', 'button.cart-promo__btn-remove', this.remove_coupon);
$('.cart-promo__form').on('click', 'button.cart-promo__btn-apply', this.submit);
$(document.body).on('my_custom_event', this.updateFrag... |
// # base-texture-file.js
"use strict";
const deprecate = require('util-deprecate');
const Stream = require('./stream');
const WriteBuffer = require('./write-buffer.js');
const { FileType } = require('./enums');
const Type = require('./type');
// # LotBaseTexture
class LotBaseTexture extends Type(FileType.BaseTextureF... |
let authtoken;
let userDetails;
let createdTeams = [];
let registeredEvents = [];
let eventID = undefined;
// to download csv
let isStaff = false;
$(document).ready(function () {
authtoken = localStorage.getItem('authtoken');
if (authtoken == null) {
disableButton();
} else {
getUserDetails... |
import {
applyFactor,
parsePipeEncodedValues,
parseDeltaEncodedValues,
parseDictEncodedValues,
indexBy,
sortByFuncMultiple,
sum,
} from 'util/data'
/**
* Return true if text is null or an empty string or single quote.
* @param {String} text
*/
const isEmpty = (text) => {
if (!text) {
return true... |
const fs = require('fs')
const semver = require('semver');
const { execSync } = require('child_process');
const path = require('path')
class Alkitab {
#data;
#daftarKitab;
#error;
#chapterEn;
#errorFile;
constructor() {
this.#data = JSON.parse(fs.readFileSync(path.join(__dirname, 'dat... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _get = function get(object, property, receiver) {
if (object === null) object = Function.prototype;
var desc = Object.getOwnPropertyDescriptor(object, property);
if (desc === undefined) {
var parent = Object.getPr... |
// shard2.js
/**
* test basic sharding
*/
placeCheck = function(num) {
print("shard2 step: " + num);
};
printAll = function() {
print("****************");
db.foo.find().forEach(printjsononeline);
print("++++++++++++++++++");
primary.foo.find().forEach(printjsononeline);
print("+++++++++++++++... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _style = _interopRequireDefault(require("styled-jsx/style"));
var _react = _interopRequireWildcard(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _momentTimezone = _i... |
import { displayProgress, displayErrors, endProgress } from '../../utility/batch';
import { computeImageRegEx } from './ImageSelectionCode';
const fs = window.require('fs');
const path = window.require('path');
const spawn = window.require('child_process').spawn;
const electron = window.require('electron');
let ipcRe... |
import React, { useState, useEffect } from "react"
import Layout from "../../components/layout"
import SideNav from "../../components/sideNav"
import SEO from "../../components/seo"
import devices from "../../utils/devices"
import styled from "styled-components"
import { Link, navigate } from "gatsby"
import { useSprin... |
// this module parses all the jokes to verify that they are valid and that their structure is not messed up
const fs = require("fs");
const jsl = require("svjsl");
const settings = require("../settings");
const debug = require("./verboseLogging");
const AllJokes = require("./classes/AllJokes");
/**
* Parses all jok... |
const { parseString } = require('xml2js');
const { errors, s3middleware } = require('arsenal');
const constants = require('../../constants');
const escapeForXml = s3middleware.escapeForXml;
const possibleGrantHeaders = ['x-amz-grant-read', 'x-amz-grant-write',
'x-amz-grant-read-acp', 'x-amz-grant-write-acp',
... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*------------------------------------------------------------... |
'use strict';
//Execute after DOM is loaded. Equivalent to document.ready on jQuery.
window.onload=function(){
//Event listener for test button press. Opens up test question for user.
let userTestButton = document.getElementById('userTestButton');
if (userTestButton){
userTestButton.addEventListener('click',... |
var MAX_SWAP_IMG_SIZE = 400;
var MAGNIFIER_WIDTH = 200;
var MAGNIFIER_HEIGHT = 200;
var MAGNIFIER_HALF_WIDTH = MAGNIFIER_WIDTH * 0.5;
var MAGNIFIER_HALF_HEIGHT = MAGNIFIER_HEIGHT * 0.5;
// TODO add support for a magnified scale factor
var MAGNIFIER_SCALE_FACTOR = 2.0;
angular.module('diff_viewer', []).
directive('imgC... |
#!/usr/bin/env node
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var acorn_1 = require("acorn");
var cp = require("child_process");
var fs = require("fs");
var walk = require('acorn/dist/walk');
var tajs_exec = 'tajs -quiet';
var preload = 'function __rfjs_null(){var ret=TAJS_newObject()... |
mysqlx = require('mysqlx');
// Variables assummed to exist on the script must be declared in global scope
var testSession = null;
var db;
var myTable;
var myColl;
var mySession;
var session;
function ensure_session(){
if (type(testSession) == "Null")
{
print("Creating testSession...\n");
var uri = "root@... |
var hospitals = null;
var hospitals_loaded = false;
var parks = null;
var parks_loaded = false;
var restaurants = null;
var restaurants_loaded = false;
// convert TWD97 coordinates to LatLng used by Google Map
// http://kuro.tw/posts/2015/06/11/js-note-twd97-convert-to-longitude-and-latitude
function twd97_to_latlng... |
import Vue from 'vue';
import manager from './manager';
export const FDraggable = {
name: 'f-draggable',
props: {
value: null,
source: { type: [String, HTMLElement, Function], default: 'self', validator: (value) => {
if (typeof value !== 'string')
return true;
... |
const EventEmitter = require('events');
const asyncAuto = require('async/auto');
const asyncEach = require('async/each');
const asyncWhilst = require('async/whilst');
const {subscribeToPayViaRoutes} = require('lightning/lnd_methods');
const {getRoutes} = require('./../lightning');
const ignoreFromRoutingFailure = req... |
exports.EventEmitter = process.EventEmitter;
var isArray = Array.isArray;
var _emit = process.EventEmitter.prototype.emit;
process.EventEmitter.prototype.emit = process.EventEmitter.prototype.fire = function (type) {
// putting this here will allow the 'error' event to be suppressed, which I suppose could be ... |
"use strict";
function difference(a, b) {
return Math.abs(a - b);
}
function closest(array, number) {
let index = 0;
let diffe = Infinity;
array.forEach((int, key) => {
let r = difference(int >> 0x10, number >> 0x10);
let g = difference((int >> 0x8) & 0xFF, (number >> 0x8) & 0xFF);
let b = difference(int & ... |
/*global Ext, Ijobs, window, document, printMsg, reset, console, getUserName, setInterval, openNewTab, setInterval */
var Timer;
var userAccountListStore;
var userAccountListGrid;
var params, application;
function searchForUserAccountList() {
var extraParams = {};
extraParams.applicationId = applic... |
/*
SPDX-License-Identifier: Apache-2.0
*/
import React, { Component, Fragment } from 'react';
import { Row, Col, Card, Radio, Icon } from 'antd';
import { connect } from 'dva';
import { defineMessages, FormattedMessage } from 'react-intl';
import { Pie } from 'components/Charts';
import styles from './index.less';
imp... |
"use strict";
var url = require('url'),
qs = require('querystring'),
fs = require('fs'),
formidable = require('formidable');
var print_request = false;
var BACKBONE = 'backbone', BACKBONE_MODEL = 'model', BACKBONE_COLLECTION = 'collection',
AUTHORIZATION = 'authorization',
ACCEPT = 'acc... |
import { EventEmitter, OpaqueToken } from '@angular/core';
import { ready, windowDimensions, flushDimensionCache } from '../util/dom';
export var Platform = (function () {
function Platform() {
var _this = this;
this._versions = {};
this._onResizes = [];
this._bbActions = [];
... |
import * as types from "./mutation-types";
export const startTick = ({ commit }) => {
setInterval(() => {
const time = new Date().getTime();
const a = new Date();
const d = new Date(a.setHours(a.getHours() - 4));
const date =
d.getFullYear() +
"-" +
("0" + (d.getMonth() + 1)).slice(... |
/*!!!!!!!!!!!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... |
import React, { Fragment, useState, useEffect } from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { Icon, Modal, Header, Button } from 'semantic-ui-react'
import { Route } from 'react-router-dom'
import { Loading, PrimaryButton } from '../common'
import {
planUpdated,
past... |
import $d from "./dum";
/**!
* Responsive v5.0.0 | MIT License | responsivebp.com
*/
const RbpCore = (($d, w, d) => {
// The initialization event used to trigger component autoloading
const einit = "init.rpb";
const raf = w.requestAnimationFrame;
const okeys = Object.keys;
const support = {
touchEve... |
import { createAsyncResourceBundle, createSelector } from 'redux-bundler'
import _ from 'lodash'
import binsClient from "gramene-bins-client";
import treesClient from "gramene-trees-client";
import {build} from "gramene-taxonomy-with-genomes";
const facets = [
"{!facet.limit='200' facet.mincount='1' key='taxon_id'}t... |
import React, { Component } from 'react';
import { withRouter } from 'react-router-dom';
import { Link } from 'react-router-dom';
import {
Table, Icon, Tooltip, Menu, Button,
} from 'choerodon-ui';
import { Choerodon } from '@choerodon/boot';
import { stores, axios } from '@choerodon/boot';
import _ from 'lodash';
im... |
const { serveHTTP, addonBuilder } = require('stremio-addon-sdk')
const needle = require('needle')
const _ = require('lodash')
const twitch_head = { headers: { 'Client-ID': process.env.TWITCH_CLIENT_ID } }
const caches = {
catalog: 15 * 60, // 15min
meta: 30 * 60, // 30min
streams: 15 * 60, // 15min
se... |
var request = require('request');
function returnReal(atco) {
//These are the demo API keys - Please replace with your own
var app_id = '03bf8009';
var app_key = 'd9307fd91b0247c607e098d5effedc97';
var url = "https://transportapi.com/v3/uk/bus/stop/"+ atco + "/live.json?app_id="+app_id+"&app_key="+ap... |
let clock = new THREE.Clock();
let canvas, scene, camera, renderer, axes;
let lines;
let arrows = [];
let graph;
let labels = [];
let data = [];
let dataA0 = [];
let rangesA0 = []; // [min, max]
let centroid;
let startPointA, startPointB;
const linesOffset = 0;
const axisLength = 4;
function drawArrowsRegion (minDa... |
import React, { useState, useEffect } from 'react';
import {Redirect, Link as RouterLink } from 'react-router-dom';
import { makeStyles } from '@material-ui/core/styles';
import Button from '@material-ui/core/Button';
import Grid from '@material-ui/core/Grid';
import Typography from '@material-ui/core/Typography';
imp... |
const {app, BrowserWindow, ipcMain, Menu} = require('electron')
const { fork } = require('child_process');
const fs = require('fs')
const path = require('path')
let args = process.argv
let cloneObj = function(obj){ return JSON.parse(JSON.stringify(obj))}
const gotTheLock = app.requestSingleInstanceLock()
let config... |
var oemInfo = [];
var isVmware = 0; // 0 == TA, 1 == Citrix
$(function() {
$('#mainAddHostContainer').prepend(disabledDiv);
$('#updateHostButton').hide();
sendJSONAjaxRequest(false, 'getData/getAllOemInfo.html', null, fnGetAllOemInfoSuccess, null);
/*
* Function to check validation as input loose focus.
... |
const User = require('../schemas/user');
var validator = require('validator');
const errorHandler = require('./errorhandler');
const { checkMissingParams, checkLogin, activeUserSubscription, isUserSubscribed } = require('./general');
const bcrypt = require('bcryptjs');
const config = require('../config.json');
var jwt ... |
import Dungeon from "./dungeon.js";
import { Room, Corridor } from "./features.js";
import RNG from "../rng.js";
import { DIRS } from "../constants.js";
const FEATURES = {
"room": Room,
"corridor": Corridor
};
/**
* Random dungeon generator using human-like digging patterns.
* Heavily based on Mike Anderson's... |
import React, { Component } from 'react'
import { Container, Header, Body, Title, Left, Right, Button, Text, Icon, Content, Textarea } from 'native-base';
import { View, TouchableWithoutFeedback, Alert, Image, ScrollView } from 'react-native';
import ImageResizer from 'react-native-image-resizer';
import { FormLabel, ... |
import React, { Fragment } from 'react';
import PropTypes from 'prop-types';
import { siteRoot, gettext, thumbnailSizeForOriginal } from '../../utils/constants';
import { Utils } from '../../utils/utils';
import Loading from '../loading';
import DirentListItem from './dirent-list-item';
import ModalPortal from '../moda... |
const Manager = require("./Manager");
const Engineer = require("./Engineer");
const Intern = require("./Intern");
const inquirer = require("inquirer");
const path = require("path");
const fs = require("fs");
const OUTPUT_DIR = path.resolve(__dirname, "output");
const outputPath = path.join(OUTPUT_DIR, "team.html");
... |
// GMY V20190717083800
var SSE = require('sse')
, http = require('http');
var connections = {};
var history = {}
var express = require('express');
var app = express();
var fs = require("fs");
var sse;
//check arguments
if(process.argv.length != 3 && process.argv.length != 4)
{
console.log('Usage: mode even... |
var gui = new dat.GUI();
var params = {
Nb_Rosace: 8,
Line_Size: 200,
RandomSeed: 0,
Variation: 6,
MethodNoise: false,
Texture: false,
Download_Image: function () { return save(); },
};
gui.add(params, "RandomSeed", 0, 20, 1);
gui.add(params, "Nb_Rosace", 0, 25, 1);
gui.add(params, "Line_Siz... |
//OpenVA - Open software platform for visual analytics
//Copyright (c) 2018, VTT Technical Research Centre of Finland Ltd
//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 so... |
import {addTitle,changeTitle} from "./Utilities.js";
import {makeTextSprite, makeTextSprite2} from "../Utilities/other.js"
import {getAxis} from "./Utilities.js";
import {insertLegend, removeLegend, changeLegend, insertLegendMolecule, removeLegendMolecule, changeLegendMolecule} from "../MultiviewControl/colorLegend.js"... |
"use strict";
//Importing required modules
const { remote } = require("electron");
const path = require("path");
const fs = require("fs");
const spawn = require("child_process").spawn;
const {
openfiles,
folder_tree_update,
fileSelectedLabel,
nofileSelectedLabel,
readfile,
save... |
import Openlink from "./openlink-v2.js";
import streamDeckXL from "./stream-deck-xl.js";
import streamDeck from "./stream-deck.js";
import JabraSpeak410 from "./jabra-speak-410.js";
import JabraSpeak510 from "./jabra-speak-510.js";
import BrowserDetect from "./browser-detect.js";
const browser_detect = new Brow... |
/*
* Copyright (c) AXA Group Operations Spain S.A.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify,... |
import { useState, useEffect } from 'react';
import { ethers } from 'ethers';
import { Button, Input, Form, message, Modal, Row } from 'antd';
import styled from 'styled-components';
import swapContract from '../contract/swapContract.json';
import { ContractInstance } from '../utils/useContract';
import {Web3Instance} ... |
/* jshint -W097 */
/* jshint strict: false */
/* jslint node: true */
/* jshint expr: true */
const expect = require('chai').expect;
const setup = require('./lib/setup');
const tests = require('./lib/testcases');
let objects = null;
let states = null;
let onStateChanged = null;
let sendToID = 1;
const adapterShortN... |
/*
* @Author: czy0729
* @Date: 2019-03-15 02:19:02
* @Last Modified by: czy0729
* @Last Modified time: 2020-01-19 14:36:45
*/
import React from 'react'
import { StyleSheet, View } from 'react-native'
import { observer } from 'mobx-react'
import { Carousel } from '@ant-design/react-native'
import { Flex, Popover, M... |
import React, { useState, useEffect } from "react";
import api from '../../../services/api';
import Select from '@material-ui/core/Select';
import InputLabel from '@material-ui/core/InputLabel';
import FormControl from '@material-ui/core/FormControl';
import MenuItem from '@material-ui/core/MenuItem';
import PanToolIco... |
import React, { createRef, useEffect, useState } from 'react';
import M from 'materialize-css'
import Axios from 'axios';
import authService from '../../authService';
import { getToken } from '../../authService';
import Preloader from '../AppComponents/Preloader';
import Card from '../AppComponents/CardComponents/CardP... |
import { pages } from './pages.js';
/**
* Contains logic to perform search and sort.
*
* Search can be a free text search or a mql search.
*
* For mql searches, utilizes a custom interpretor (Lexer + Parser + Token + AST) to validate search term
* and perform search.
*/
class SearchEngine {
constructor()... |
'use strict';
var styles = [
{
featureType: "road",
stylers: [{visibility: "off"}]
},
{
featureType: "water",
stylers: [
{ visibility: "on" },
{ color: "#1F2B38" }
]
},
{
featureType: "transit",
stylers: [
{ visibility: "off" }
]
},
{
featureType: "poi",
stylers: [
{ visibility: ... |
const fs = require('fs');
const ripa = require('ripajs');
const readlineSync = require('readline-sync');
const request = require('request-promise');
const HEADER_VERSION = require('./package.json').version;
const DEFAULT_CONFIG = 'config.json';
const DEFAULT_POOLLOGS = 'docs/poollogs.json';
const DEFAULT_PAYMENTS = 'pa... |
//'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import _ from 'underscore';
import { console, object, ajax, isServerSide } from '@hms-dbmi-bgm/shared-portal-components/es/components/util';
import { requestAnimationFrame } from '@hms-dbmi-bgm/shared-portal-components/es/components/viz/uti... |
var transformColor = function(Target,Height,Colors,Finals,Distance){
var flag = 0, //斷點標籤
scrollBegin = Height[flag], //顏色變化開始位置
scrollFinal = Finals[flag+1], //顏色變化結束位置
scrollArea = Distance[flag], //可滾動範圍
scrollTop, //當前滾動位置
top... |
'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";
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];
})... |
const canvasSketch = require('canvas-sketch');
const { lerp } = require('canvas-sketch-util/math');
const { renderGroups, renderPaths, createPath } = require('canvas-sketch-util/penplot');
const random = require('canvas-sketch-util/random');
//const palettes = require('nice-color-palettes');
const poly = require('../u... |
import {
cat,
oneOf,
opt,
match,
map,
many,
not,
EOFError,
} from './comb';
import {
NullToken,
BoolToken,
NumberToken,
StringToken,
IdentToken,
InfixToken,
BracketsToken,
BracesToken,
ParensToken,
DelimToken,
WhitespaceToken,
SpaceToken,
... |
// MODELS
// SVC
const Label = require('../../model/svc/label')
const Name = require('../../model/svc/name')
const Conf = require('../../model/svc/conf')
const Abbr = require('../../model/svc/abbr')
// CONTEXT
const Connector = require('../../model/context/connector')
const Relationship = require('../../model/context/... |
var localStorages = (function(){
let AccessLocalStorage = {
SetLocalStorage: function(para){
localStorage.setItem("cart", JSON.stringify(para));
},
GetLocalStorage: function(){
return JSON.parse(localStorage.getItem("cart"));
},
removeLocalStorage: ... |
/**
Common helper functions getting the database connection and for making the http requests to test the api calls
@toc
1. init
5. initDB
6. checkServer
2. httpGo
3. formHost
4. parseData
7. expectRequest
*/
'use strict';
var lodash = require('lodash');
var Q = require('q');
var request = require('request');
var fs ... |
import {
create,
attribute,
clickable,
collection,
hasClass,
is,
isHidden,
isPresent,
text,
visitable,
fillable
} from 'ember-cli-page-object';
import {
EMAIL_SETTINGS,
EMAIL_SETTINGS_TITLE,
EMAIL_SETTINGS_DESCRITION,
EMAIL_SETTINGS_TOGGLE,
EMAIL_SETTINGS_RESUBSCRIBE_LIST,
EMAIL_SETTI... |
import { bindEvent, extend, clone, isPromiseLike, probe } from 'sav-util'
import {Request} from './request.js'
export function Flux (opts = {strict: true}) {
let flux = this
let prop = initProp(flux)
prop('flux', flux)
prop('prop', prop)
prop('mutations', {})
prop('actions', {})
prop('proxys', {})
prop... |
/**
* A D3 Scatter Plot chart with interactive nodes,
* crosshair and custom axis grid.
*/
var totalWidth = window.innerWidth;
var totalHeight = window.innerHeight;
var margin = {
top: 20,
left: 50,
bottom: 30,
right: 30
}
var width = totalWidth - margin.left - margin.right;
var height = totalHeight - m... |
"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... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
var _createClass2 = _i... |
'use strict';
// Packages
const firebase = require('firebase-admin');
const NanoTimer = require('nanotimer');
// Ours
const nodecg = require('./util/nodecg-api-context').get();
const TimeObject = require('../shared/classes/time-object');
firebase.initializeApp({
credential: firebase.credential.cert(nodecg.bundleCon... |
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _regenerator = _interopRequire... |
import React, { Fragment, useState, useEffect } from "react";
import { useTable, useSortBy, useExpanded, usePagination } from "react-table";
import axios from "axios";
import { CSVLink } from "react-csv";
import "bootstrap/dist/css/bootstrap.min.css";
// reactstrap component
import {
Button,
Card,
CardBody,
Ta... |
// TODO Add support for editing password/profile
var popupPage;
$(document).ready(function () {
popupPage = new PopupPage();
popupPage.Initialize();
// Initialize GA
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-33221456-3']);
_gaq.push(['_trackPageview']);
(function () {
var ga = doc... |
/*
* chart-from-api.js
* <NAME>, 12 November 2020
*
* Script for a sample showing how to take data from an API
* and build a bar chart with tooltips.
*
* Uses the Chartist library: https://gionkunz.github.io/chartist-js/
* Copyright © 2019 <NAME>
* Free to use under either the WTFPL license or the MIT license.... |
import React from "react";
import Container from "../../../container";
import TextCenterLayout from "../../../partials/heading-left";
import TopImageBox from "../../../../components/top-image-box";
import { color } from "../../../../components/styles/colors";
import styled from "styled-components";
import Curve from ".... |
/* eslint no-cond-assign: 0 */
/* eslint prefer-destructuring: 0 */
/**
* JavaScript Client Detection
* (C) viazenetti GmbH (<NAME>)
*
* deleted: flashVersion, cookies
* added: osMajorVersion, browserCode, CriOS
* let width ...
*/
export function detect(_window) {
const unknown = '-';
const { screen } =... |
var
gl = c.getContext('webgl') || c.getContext('experimental-webgl'),
vertex_buffer,
shader_program,
texture_size = 1024,
tile_size = 16,
tile_fraction = tile_size / texture_size,
px_nudge = 0.5 / texture_size,
max_verts = 1024 * 64,
num_verts = 0,
level_num_verts,
buffer_data =... |
/* global window, fetch */
import React, {Component, PureComponent} from 'react';
import MapGL, {Marker, Popup, NavigationControl, FullscreenControl} from 'react-map-gl';
import {lineDistance, along, point, bearing} from '@turf/turf';
// import Accident2018_doha from './Accident2018_doha.json';
import CountryList from ... |
import { createReducer, createActions } from 'reduxsauce'
import Immutable from 'seamless-immutable'
import { arrayMerge } from '../../Utils/helper/datamining'
import { isEmpty } from 'ramda'
import Cookies from 'universal-cookie'
import AppConfig from '../../Config/AppConfig'
const cookies = new Cookies()
/* --------... |
/*jshint esversion: 6 */
import { router } from './router.js';
import { select, selectAll } from 'd3-selection';
import { calc } from './calculations';
import { userInputHolders, sliderSettings, textInputSettings, tableArraySettings, radioInputSettings } from './settings';
const numeral = require('numeral');
let Widg... |
'use strict';
var XPPCompiler = require("./compilers/xpp2js.js")
let Element = require("../models/element.js")
class MetadataHandler{
constructor(){
}
async init(){
await Element.init("./data");
}
fillDependencies(elements){
var elementNames = new Set()
var name2idx = {}
for(let i... |
// =========================================================================
// Copyright � 2017 T-Mobile USA, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.ap... |
'use strict';
var _ = require('underscore');
var values = require('../runtime/values');
var procs = require('../runtime/procs');
var errors = require('../errors');
var SemanticPass = require('./semantic');
function proc_name(node) {
return (node.name || node.type).replace('Proc', '').toLowerCase();
}
function is... |
import React from 'react';
import { compose } from 'redux';
import { connect } from 'react-redux';
import { withNamespaces } from 'react-i18next';
import cx from 'classnames';
import { orderBy } from 'lodash';
import manifest from '../../utils/manifest';
import * as voluspa from '../../utils/voluspa';
import MemberLin... |
import { Feature } from '@skypager/node'
/**
* @class ModuleManager
* @classdesc The ModuleManager provides a database like API on top of the package.json found in the NODE_MODULES resolution path of the project
*/
export default class ModuleManager extends Feature {
static shortcut = 'moduleManager'
observabl... |
/**
* Emp List
* @prop {string} groupName Name of the group we are viewing
* @prop {boolean} isEnrolled Checker for displaying an adding employee or viewing enrolled employee
* @prop {boolean} isTransfer Checker to display only enrolled employee without the options menu
* @prop {boolean} ... |
// Copyright (C) 2013 - Texas Instruments, <NAME>
//
// This is meant to hold some private functions
// Modified by <NAME>, Octal Consulting LLP
var fs = require('fs');
var debug = require('debug')('bone');
var pinmap = require('./pinmap');
var verror = require("verror");
var sysfsFiles = {};
function boneRequire(pac... |
import { formatDistanceToNow, format } from 'date-fns';
import { ethers } from 'ethers';
import { utils } from 'web3';
import { supportedChains } from './chains';
export const truncateAddr = (addr) => {
return addr ? addr.slice(0, 6) + '...' + addr.slice(-4) : null;
};
export const IsJsonString = (str) => {
try ... |
const baseUris = {
base: 'https://www.google.com/voice',
clientsBase: 'https://clients4.google.com/voice',
accountsBase: 'https://accounts.google.com',
};
// depends on baseUris being completed before it can be added to the list.
baseUris.mobileBase = `${baseUris.base}/m`;
baseUris.xpcBase = `${baseUris.cl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.