text stringlengths 5.97k 41.2k |
|---|
const STYLESHEET = `
* {
box-sizing: border-box;
}
body,
html {
margin: 0;
padding: 0;
width: 100%;
height: 100%
}
html {
background-size: auto 100%;
background-size: cover;
background-position: center center;
background-repeat: repeat-y;
}
body {
display: flex;
background-color: tra... |
import moment from 'moment';
import React from 'react';
import { connect } from 'react-redux';
import axios from 'axios';
import { ToastContainer, ToastStore } from 'react-toasts';
import DatePicker from "react-datepicker";
import '../../print-list.css';
import "react-datepicker/dist/react-datepicker.css";
import {
B... |
import React from 'react';
class TranslateUrlHandler {
constructor() {
this.regEx = {
toEnglish: {
'/mac/': '/match/',
'canli-skor-': 'live-score-',
'/lig/': '/league/',
'-puan-durumu-': '-standing-',
'-sezon-': '-s... |
const Discord = require("discord.js");
const util = require('../util.js');
const request = require('request');
const nHentaiAPI = require('nhentai-api-js');
let napi = new nHentaiAPI();
module.exports.run = async (bot, message, args) => {
let messageArray = message.content.split(" ");
if (message.con... |
import React from 'react';
import ReactDOM from 'react-dom';
import {Button, IconButton} from 'react-toolbox/lib/button';
import style from './style';
import Autosuggest from 'react-autosuggest';
var VelocityTransitionGroup = require('velocity-react/velocity-transition-group.js');
var VelocityComponent = require('velo... |
#!/usr/bin/env node
var fs = require("fs-extra");
var childProcess = require("child_process");
var which = require("which");
var semver = require("semver");
var path = require("path");
var safename = require("safename");
var packageHost = "https://package.elm-lang.org";
var packageTransformations = require("./src/pa... |
/* jshint -W097 */// jshint strict:false
/*jslint node: true */
var chai = require('chai');
chai.use(require('chai-string'));
var expect = chai.expect;
var setup = require(__dirname + '/lib/setup');
var util = require(__dirname + '/lib/testUtil');
var fs = require('fs');
var objects = null;
var states = null;
v... |
/**
* Function to make array starting at low,
* going to high, stepping by step.
* Note: the last element is not "high" but high-step
* @param {Number} low The low bound of the array
* @param {Number} step the step between two elements of the array
* @param {Number} high the high bound of the array
*/
function ... |
/**
* @file Textwindow sprite class
* @author <NAME> <<EMAIL>>
* @copyright 2015-2016 <NAME>
* @link https://www.avgjs.org
* @license Apache License 2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { ButtonToolbar, Button, UncontrolledTooltip } from 'reactstrap';
import {
get as lodashGet,
find as lodashFind,
cloneDeep as lodashCloneDeep,
filter as lodashFilter,
} from 'lodash';
impo... |
'use strict';
/*
* Copyright (c) 2013-2019 <EMAIL>
* MIT License: https://spdx.org/licenses/MIT.html
*/
import {Const} from './Constants.js';
import {Debug} from './Debug.js';
let MojitoScript = null;
/**
* Displays popup toast message in the bottom right of the window.
*
* @param msg - Message to display
* ... |
const assert = require("assert");
const number = require("..").number;
describe("Testing numbers from strings", () => {
it("should check binary numbers as expected", () => {
assert.strictEqual(number.isBin("0b1010101"), true);
assert.strictEqual(number.isBin("0B1010101"), true);
asse... |
/*!
jQuery #hashtags v0.5.0
(c) 2013 <NAME>
updated: 2016-25-10
license: GNU LESSER GENERAL PUBLIC LICENSE
*/
// var hashtags = ["#構造設計",
// "#SS3などからのデータ連携",
// "#断面表の作成",
// "#基本設計からモデル作成",
// "#施主との合意形成",
// "#3D活用",
// "#意匠設計",
// "#協力会社設計協力",
// "#BIM360活用",
// "#点群",
// "#Arch-Log",
// "#見積・積算部",... |
/** *****************************************************************************
* Licensed Materials - Property of IBM
* (c) Copyright IBM Corporation 2018, 2019. All Rights Reserved.
*
* US Government Users Restricted Rights - Use, duplication or disclosure
* restricted by GSA ADP Schedule Contract with IBM Cor... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _classnames = _interopRequireDefault(require("classnames"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _react = _interopRequireWildcard(require("react"));
var _uncontrollable = req... |
'use strict';
var _get = require('babel-runtime/helpers/get')['default'];
var _inherits = require('babel-runtime/helpers/inherits')['default'];
var _createClass = require('babel-runtime/helpers/create-class')['default'];
var _classCallCheck = require('babel-runtime/helpers/class-call-check')['default'];
var _exten... |
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var DiffContext = require('jsondiffpatch/src/cont... |
var __assign = this && this.__assign || function () {
__assign = Object.assign || function (t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) {
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
}
}
return t;
};
return... |
#!/usr/bin/env node
'use strict';
const util = require('util')
, fs = require('fs')
, _ = require('lodash')
, codeGen = require('@babel/generator').default
, bb = require('@babel/types')
, iu
= { done: value => ({done: true, value})
, elem: value => ({done: false, value})
, iter: iterable => iterable[Symb... |
'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... |
jQuery.fn.addHover = function() {
return this.hover(
function(){ jQuery(this).addClass("hover"); },
function(){ jQuery(this).removeClass("hover"); }
)
};
jQuery.fn.bubble = function(top, left) {
var bubble = null;
var body = null;
var _created = false;
this.each(
function() {
this._tit... |
import React, { Component } from 'react';
import { Popconfirm, Menu, Form, Modal, Input } from 'antd';
import debounce from 'lodash/debounce';
import i18n from 'i18next';
import { v4 } from 'uuid';
import axios from 'axios';
import ImageMapFooterToolbar from './ImageMapFooterToolbar';
import ImageMapItems from... |
const ages = require("../ages.json");
const ageCost = require("../ages-cost/TheFuture");
Object.defineProperty(exports, "__esModule", {
value: true,
});
exports.default = {
key: "The_Arc",
gbReward: {
1: {
contribution_boost: 10,
clan_goods: 45,
},
2: {
contribution_boost: 12,
... |
import React, { useCallback, useState, useEffect, useRef } from "react"
import { Dispatch, SetStateAction, MutableRefObject } from "react"// eslint-disable-line
import { AppProps } from "app"// eslint-disable-line
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
import { faCheck, faCog, faEye, faPlay, ... |
let board;
let tileSize;
let images = {};
function initCanvas() {
const size = Math.min(window.innerWidth, window.innerHeight);
createCanvas(size, size);
}
window.addEventListener('resize', initCanvas)
function setup() {
initCanvas();
noStroke();
images['king_white'] = loadImage('Chess_klt45.... |
var childProcess = require('child_process')
, express = require('express')
, morgan = require('morgan')
, ws = require('ws'),fs=require("fs");
var bodyParser = require('body-parser')
var Serial = require('serialport');
var SerialPort = Serial.SerialPort;
var serialPort;
var cam = require('linuxcam');
var bmp = re... |
var sectionForm = angular.module('section-form-directive', ['ngFileUpload','location-other-section-directives']);
var locationNames;
sectionForm.directive('sectionform', function($http){
return {
restrict: 'E',
templateUrl: 'common/directives/section_form/section_form.tpl.html',
controller: 'SectionFormControl... |
import React, { useState, useEffect } from "react";
import 'bootstrap/dist/css/bootstrap.min.css';
import { Spinner, Card, Form, Button, Tab, Row, Col, ListGroup, Table } from "react-bootstrap";
import VotingContract from "./contracts/Voting.json";
import getWeb3 from "./getWeb3";
import "./App.css";
function App() {
... |
if ($.trim($('#isPublic').val()) === 'true') {
USER_OBJ = {
apiKey: $.trim($('#token').val()),
domainKey: $.trim($('#domainkey').val()),
token: $.trim($('#token').val())
};
API_KEY = USER_OBJ.apiKey;
DOMAIN_KEY = USER_OBJ.domainKey;
API_TOKEN = USER_OBJ.token;
MQTT_CLIE... |
import * as GmailActions from './gmail';
import DataLoader from 'dataloader';
import base64 from 'base-64';
import {
SYNC_MAILBOX_LABEL_REQUEST,
SYNC_MAILBOX_LABEL_SUCCESS,
SYNC_MAILBOX_LABEL_FAILURE,
SYNC_MAILBOX_LABEL_SUCCESS_NO_CHANGE,
GET_MAILBOX_LABEL_INFO_REQUEST,
GET_MAILBOX_LABEL_INFO_SUCCESS,
GET... |
function mainPageWidgetsInit () {
twitterShareInit();
gplusShareInit();
facebookShareInit();
}
function twitterShareInit() {
var e = document.createElement('script');
e.type="text/javascript";
e.async = true;
e.src = '//platform.twitter.com/widgets.js';
document.getElementsByTagName('head')[0].appendCh... |
//@ts-check
// generic functions related to parsing JavaScript
const { parse, parseExpressionAt } = require("acorn");
const { full, make, recursive } = require("acorn-walk");
const { readFileUtf8 } = require("./lang-fs");
const { join, resolve } = require("path");
const { getEmptyDocComment, parseSingleComment } = r... |
const view = require("tns-core-modules/ui/core/view");
const httpModule = require("tns-core-modules/http");
const colours = require("../JSON/colour.js").colours;
const Frame = require("tns-core-modules/ui/frame").Frame;
const timerModule = require("tns-core-modules/timer");
const teams = require("../JSON/teams.js").tea... |
/**
* FAIR-biomed components on user web pages
*
* */
'use strict';
var React = require('react');
var ReactDOM = require('react-dom');
var Rnd = require('react-rnd').Rnd;
// load a few icons into an icon cache
var iconcache = {};
['fa star', 'fa star-filled', 'fa search', 'fa arrow-left-solid'].forEach(function(x... |
'use strict';
import CommentThread from './CommentThread.js';
const e = React.createElement;
let SW_Utils = {
/**
* Displays a popup message indicating important app information
* @param {boolean} usePromise - whether to return Promise-wrapped timeout
* @param {HTMLElement} element - element that... |
var ptASObj = function (fld, param, id) {
var ptAS = {
ptBaseURI : String(location).match(/\/ps(c|p)\/?([^\/]*)?\/?([^\/]*)?\/?([^\/]*)?\//)[0].replace('psp', 'psc'),
fld: null,
prevVal: "",
inputVal: "",
inputCount: 0,
autoSuggest: [],
highLiteNum: 0,
options: null,
... |
"use strict";
/**
*
* (c) Copyright Ascensio System SIA 2021
*
* 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 b... |
var algorithmsDetails = []
function fetchAlgorithms() {
fetch('/details').then(function(response) {
return response.json();
})
.then(function(data) {
$.each(data, function(key, val) {
algorithmsDetails.push(val);
});
console.log(algorithmsDetails)
}).catch(function(err) {
alertError(... |
'use strict';
/*global require, module, Buffer, process, jsGen*/
var crypto = require('crypto'),
then = require('thenjs'),
msg = require('./msg.js'),
isArray = Array.isArray,
breaker = {};
function noop() {}
// 默认的callback函数模板
function callbackFn(err, doc) {
return err ? console.log(err) : doc;
... |
const xmlDom = require('xmldom');
const parseValue = require('./value'),
parseTimestamp = require('./timestamp');
module.exports = (() => {
'use strict';
class XmlDomParser {
constructor() {
this._xmlDomParser = new xmlDom.DOMParser();
}
/**
* Parses an XML document.
*
* @public
* @pa... |
// results-data-us.js
// By <NAME> - http://mg.to/
// See UNLICENSE or http://unlicense.org/ for public domain notice.
function getSeats( race, seat ) {
if( ! race ) return null;
if( seat == 'One' ) seat = '1';
if( race[seat] ) return [ race[seat] ];
if( race['NV'] ) return [ race['NV'] ];
if( race['2006'] ... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b)... |
/**
* Module to generate overview tabs
*
* Initial goals are to replace mustache with jquery
* Longer term we want to replace jquery with angular
*
* @module overview
*/
var Q = require('q');
var MonarchCommon = require('./monarch-common.js');
import {scaleLinear} from 'd3-scale';
import {axisTop} from 'd3-axis'... |
import React from 'react';
import './App.css';
import Collection from './components/Collection'
import Navbar from './components/Navbar'
let filterEmployees
class App extends React.Component {
state = {
search: '',
searchBy: '',
orderBy: '',
employeeData: [],
employeeDisplayData: []
}
h... |
const colors = [
{ ansi:'00', hex:'#000000'},
{ ansi:'01', hex:'#800000'},
{ ansi:'02', hex:'#008000'},
{ ansi:'03', hex:'#808000'},
{ ansi:'04', hex:'#000080'},
{ ansi:'05', hex:'#800080'},
{ ansi:'06', hex:'#008080'},
{ ansi:'07', hex:'#c0c0c0'},
{ ansi:'08', hex:'#808080'},
{ ansi:'09', ... |
'use strict';
/*
* Created with @iobroker/create-adapter v1.31.0
*/
// The adapter-core module gives you access to the core ioBroker functions
// you need to create an adapter
const utils = require('@iobroker/adapter-core');
const {default: axios} = require('axios'); // Lib to handle http requests
const stateAttr =... |
jQuery(function ($) {
$.fn.hScroll = function (amount) {
amount = amount || 120;
$(this).bind("DOMMouseScroll mousewheel", function (event) {
var oEvent = event.originalEvent,
direction = oEvent.detail ? oEvent.detail * -amount : oEvent.wheelDelta,
positio... |
"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 ("val... |
import DefaultConfig from "../config/defaultConfig.js";
import helperGeneric from "../modules/helperGeneric.js";
import imsc from "imsc";
import ImscExport from "../modules/imscExport.js";
import MenuStyleConfig from "../config/menuStyleConfig.js";
import MyRec from "../recommendations/myRec.js";
import MyRegion from "... |
//metronome.js
//
var audioContext = null;
var unlocked = false;
var isPlaying = false; // Are we currently playing?
var startTime; // The start time of the entire sequence.
var current16thNote; // What note is currently last scheduled?
//var tempo = 120.0; // tempo (in beats per minut... |
/**
* Copyright 2021 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... |
init_easywidgets();
$(document).ready(function() {
$(".widget-place").bind('click', function() {
$("#page_settings").hide();
});
$('#show_global_widget_refresh').click(widget_page_refresh);
});
// create array prototype to sole the lack of in_array() in javascript
Array.prototype.has = function(value) {
var i;
... |
/*
=========================================================
Name : SelectManager
GitHub : https://github.com/TimRohr22/Cauldron/tree/master/SelectManager
Roll20 Contact : timmaugh && TheAaron
Version : 0.0.7
Last Update : 2/19/2020
=========================================================
*/
var API_Meta = AP... |
import React from 'react';
import PropTypes from 'prop-types';
import get from 'lodash/get';
import { Link } from 'react-router-dom';
import { injectIntl, FormattedDate, FormattedTime, FormattedMessage } from 'react-intl';
import { stripesConnect } from '@folio/stripes/core';
import compose from 'compose-function';
imp... |
//@@ts-check
var cfg = {
templates: {
whoami: {
title: "מי אני?",
answers: ["אחיינ/ית של שרי", "בנ/ת של שלומי", "בנ/ת של מיגל"],
type: "choose 1 of n"
},
"what-tb": {
title: 'אילו בה"ד/ים אלו?',
type: "choose 1 of n"
},
"what-rank": {
title: "איזו דרגה זו?",
... |
// jshint esversion: 6
import React from "react";
import * as d3 from "d3";
import { connect } from "react-redux";
import mat4 from "gl-mat4";
import _regl from "regl";
import memoize from "memoize-one";
import * as globals from "../../globals";
import setupSVGandBrushElements from "./setupSVGandBrush";
import setupCe... |
$(document).ready(function() {
makeActiveSidebar();
setVessel();
setPort();
//setFueldpt();
//setFuelGradedpt();
setSchedules();
setCountry();
addOption_list5();
$('#dpt_service').on('input', function() {
setScheduleList();
})
});
function makeActiveSideba... |
/// <reference path="../../Scripts/typings/bootstrap.dns.d.ts" />
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
... |
import "backbone";
import $ from "jquery";
import * as joint from "jointjs/dist/joint";
import jointCss from "jointjs/dist/joint.min.css";
import "../../joint/joint.ui.stencil";
import "../../joint/joint.ui.stencil.css";
import "../../joint/joint.ui.selectionView";
import "../../joint/joint.ui.selectionView.css";
imp... |
/*
* Controls for the abc player
*
* Version: 1.0
* Date: 7 Dec 2016
*
* Developed as part of websites for https://wellington.session.nz
* by <NAME> and <NAME>
* Code available at:
* https://github.com/slow-session/wellington.session.nz/blob/master/js/audioID_controls.js
* Creative Commons Attribution-NonCom... |
'use strict'
// Third party modules.
var d3 = require('d3')
var React = require('react')
// Common EV modules.
var alphaify = require('alphaify')
var color = require('color')
var puid = require('puid')
// Modules local to this explanation.
var utils = require('./utils')
var buildNobs = require('./buildNobs')
// Style... |
import React from 'react';
import ChangesLinks from 'es6!display/changes/links';
import ChangesUI from 'es6!display/changes/ui';
import Request from 'es6!display/request';
import SectionHeader from 'es6!display/section_header';
import SimpleTooltip from 'es6!display/simple_tooltip';
import { ChangesPage, APINotLoadedP... |
/// #if EDITOR
import Tip from "./tip.js";
/*
/// #endif
throw 'Editor time sources was accidentally imported in to final game build. Please wrap with "#if EDITOR" tags all thing-editor imports, which start not with "thing-editor/js/engine/". More: https://github.com/Megabyteceer/thing-editor/wiki/Custom-Components#ta... |
// PNL calculation module
const frostybot_module = require('./mod.base')
const frostybot_pnl = require('../classes/classes.pnl')
var context = require('express-http-context')
const axios = require('axios')
const { utils } = require('mocha')
module.exports = class frostybot_pnl_module extends frostybot_module {
//... |
/*
* Copyright 2015 Particle ( https://particle.io )
*
* 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 a... |
const EventEmitter = require('events').EventEmitter
const Schedule = require('./db/Schedule.js')
const FailRecord = require('./db/FailRecord.js')
const Feed = require('./db/Feed.js')
const Supporter = require('./db/Supporter.js')
const ScheduleStats = require('./db/ScheduleStats.js')
const Processor = require('./Proces... |
import React, { useState, useEffect } from "react";
import Axios from "axios";
import './Crypto.css';
function Crypto() {
const [dbList, setDbList] = useState([])
const [classList, setClassList] = useState([])
const [isFetching, setFetching] = useState(true);
const [isFetchingc, setFetchingc] =... |
var that = this;
function __skpm_run (key, context) {
that.context = context;
var exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/****... |
// Ontogen - Concept Management Module
// (c) 2013-2014 <NAME>, <NAME>
// MIT License
var analytics = require('analytics.js');
var restf = require('restf.js');
var documents = require('documents.js');
var stores = require('stores.js');
var og = require('ogconfig.js');
// Checks the parent to see if it exists or has ... |
/*
wishlist in no paticular order:
- image fill
- collision ace's
- load image
- save image with dialog
- webgl, with pasting of effects
- last Path (pen) coordinates
- shadows
- Possible IE flood fill color fix? only rgb or rgba works with this...
var color = $('<div></div>').css('background-color', _color).css('ba... |
var multiparty = require('multiparty');
var fs = require('fs');
var blobs = require('../lib/blobs.js');
var cognitive = require('../lib/cognitive.js');
var async = require('async');
module.exports = function (CONFIG, app, ensureAuthenticated, mongoose, models) {
// Show the employee creation form
app.get('/employ... |
Selectize.define('restore_on_backspace2', function(options) {
var self = this;
options.text = options.text || function(option) {
return option[this.settings.labelField];
};
this.onKeyDown = (function() {
var original = self.onKeyDown;
return function(e) {
var inde... |
'use strict';
var assert = require('assert');
var hessian = require('../');
var utils = require('./utils');
describe('int.test.js', function () {
it('should read integer 300', function () {
assert(
hessian.decode(new Buffer(['I'.charCodeAt(0), 0x00, 0x00, 0x01, 0x2c])) === 300
);
});
it('should w... |
import { flattenEach, coordEach } from '../meta';
import { getCoords, getType } from '../invariant';
import { isObject, lineString, multiLineString, convertLength, degreesToRadians, radiansToDegrees } from '../helpers';
import intersection from './lib/intersection';
import centerOfMass from '../center-of-mass';
/**
*... |
const {Command, flags} = require('@oclif/command')
const moment = require('moment')
const request = require('request-promise')
const sqlite3 = require('better-sqlite3')
const config = require('config')
const _ = require('lodash')
const jiraConfig = config.has('jira') ? config.get('jira') : {}
const requestDefaults = ... |
import {
get as lodashGet,
cloneDeep as lodashCloneDeep,
eachRight as lodashEachRight,
isUndefined as lodashIsUndefined,
remove as lodashRemove,
findIndex as lodashFindIndex,
each as lodashEach,
isNaN as lodashIsNaN,
startCase as lodashStartCase,
isArray
} from 'lodash';
import { addLayer, resetLay... |
/* mobile service */
$('textarea').on('keyup',function(){
var charLength = $(this).val().length;
$(this).parent().find('.char-count').text(charLength);
});
$('.service-checklist').slimScroll({
alwaysVisible: true,
railVisible: true,
height: '180px',
});
$('html').on('click', '.main-servic... |
'use strict';
// libraries
const path = require('path');
const fs = require('fs');
// modules
const fetch = require('node-fetch');
// constants
const firstAccount = 'ban_1111111111111111111111111111111111111111111111111111hifc8npp';
const openPrevious = '00000000000000000000000000000000000000000000000000000000000000... |
/**
Copyright 2018 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... |
/***********
* GLOBAL INITALIZATION
***********/
//Set up logging (jqlog) and monkey patch jqlog with a debug function
$.jqlog.enabled(true);
$.jqlog.debug = function(object, options) {
if (IS_DEV || USE_TESTNET) //may change to just IS_DEV in the future
$.jqlog.info(object, options);
}
//Mix-in underscore.st... |
'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 ("... |
import $ from 'jquery';
import * as avatarURL from './avatarURL';
import AvatarApi from './avatarApi';
import {toPrettyString,toHtmlEncode} from './avatarUtil';
import {toPagination} from '../../components/Pagination/Pagination';
import './index.less';
var loadingImg = '<img src="http://image.coolpeng.cn/static/icons... |
var my_table = d3.select("#my-table");
var table_area = d3.select("#table-area");
var forecast_graph = d3.select("#forecast_graph");
var foreecast_area = d3.select("#weather");
var map_area = d3.select("#restaurant");
var map = d3.select("#map");
var labelElement = d3.select("#sel_class");
var weather = forecast_data;... |
/*
* _____/\\\\\\\\\_____/\\\\\\\\\\\\\\\__/\\\\\_____/\\\__/\\\\\\\\\\\\\_______/\\\\\\\\\\\\_______/\\\\\______
* ___/\\\\\\\\\\\\\__\///////\\\/////__\/\\\\\\___\/\\\_\/\\\/////////\\\___/\\\//////////______/\\\///\\\____
* __/\\\/////////\\\_______\/\\\_______\/\\\/\\\__\/\\\_\/\\\_______\/\\\__/\\\_______... |
import VError from 'verror';
let Status = {
computingLocalHash: "computingLocalHash",
fetchingRemoteHash: "fetchingRemoteHash",
gettingIssuerProfile: "gettingIssuerProfile",
parsingIssuerKeys: "parsingIssuerKeys",
comparingHashes: "comparingHashes",
checkingMerkleRoot: "checkingMerkleRoot",
checkingRecei... |
var sys = require('sys');
var fs = require('fs');
var pathfs = require('path');
var http = require('http');
var url_parse = require("url").parse;
var qs = require('querystring');
var util = require('../../../src/utils.js');
var utility = require('./lib/utility');
var port = 8000;
function clone(obj){
// return JS... |
// # ZCASH implementation: https://github.com/zcash/zcash/blob/master/qa/rpc-tests/test_framework/equihash.py
var blake2b = require('blake2b')
var _ = require('lodash')
var Networks = require('./networks')
function Equihash(network) {
this.network = network || Networks.bitcoingold
}
Equihash.prototype = ... |
/* eslint-disable max-len */
import {
asNumber,
createElement,
createFieldset,
createForm,
performLongOperation,
requiredInputs,
waitFor,
} from '../common/util.js';
import implementationImage from '../../resources/implementation.png';
const calculator = (context, id) => {
const div = createElement('d... |
/**
* =====================================================================================================================
* Fetch the server status information
*
* Author : <NAME> <EMAIL>
* =====================================================================================================================
... |
import React, { useEffect, useState } from "react";
import { connect } from "react-redux";
import ReactPlayer from "react-player";
import styled from "styled-components";
import "./Main.css";
import { getArticlesAPI, updateArticleAPI } from "../action";
import firebase from "firebase";
import PostalModal from "./Posta... |
/**
* Created by BiPham on 8/17/2017.
*/
var baseUrl = document.location.origin;
var mainUrl = baseUrl.substring(13);
var content_lesson_source = '';
var lesson_id = $('.upload-page-custom').data('lesson-id');
var quiz_id = $('.upload-page-custom').data('quiz-id');
console.log('lesson: ' + lesson_id);
console.log('qu... |
/*
* Documentative
* (c) 2020 dragonwocky <<EMAIL>>
* (https://dragonwocky.me/) under the MIT license
*/
module.exports = { build, serve };
const path = require('path'),
fs = require('fs'),
fsp = fs.promises,
klaw = require('klaw'),
resourcepath = (file) => path.join(__dirname, 'resources', file),
http ... |
import './styles.css';
const $colors = document.getElementById('colors');
const $grid = document.getElementById('grid');
const $iter = document.getElementById('iter');
const $message = document.getElementById('message');
let requestId;
function clearCanvas(gl) {
gl.viewport(0, 0, gl.canvas.width, gl.canvas.height);... |
"use strict";
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
return cooked;
};
var __assign = (this && this.__assign) || Object.assign || function(t) {
... |
/***
* MIT License
*
* Copyright (c) 2016 Scala Nordic AS
*
* 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... |
import Vue from "vue";
import Vuex from "vuex";
import axios from "axios";
import Cookies from "js-cookie";
import addMonths from "date-fns/addMonths";
import addYears from "date-fns/addYears";
import endOfYear from "date-fns/endOfYear";
import startOfYear from "date-fns/startOfYear";
import { ymDateFormat, parseDateTi... |
'use strict';
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array obje... |
/* See license.txt for terms of usage */
"use strict";
// Add-on SDK
const self = require("sdk/self");
const { Cu } = require("chrome");
const { loadSheet, removeSheet } = require("sdk/stylesheet/utils");
const { defer, all, resolve } = require("sdk/core/promise");
const { EventTarget } = require("sdk/event/target");... |
var directionsDisplay;
var directionsService = new google.maps.DirectionsService();
var geocoder;
var startLocation = null;
var endLocation = null;
var gmarkers = [];
var map;
var watchID;
var geoLoc;
function initialize() {
directionsDisplay = new google.maps.DirectionsRenderer();
directionsDisplayOld = new ... |
/*
Core rendering object both on the client and server
*/
'use strict';
var imports = require('./imports'),
index = require('./index'),
util = require('./util');
const config = imports.config,
escape = util.escape_html,
flatten = util.flatten,
join = util.join,
new_tab_link = util.new_tab_link,
pad = util.p... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.