text stringlengths 3.22k 29.5k |
|---|
/* based on <NAME>'s https://github.com/vinarmani/slpswap-client sources */
DEFAULT_RPC_ENDPOINT = 'bchd.fountainhead.cash:443';
DEFAULT_RATES_ENDPOINT = 'https://api.slpswap.com/rates';
DEFAULT_POSTAGE_ENDPOINT = 'https://api.slpswap.com/postage';
const BCHRPC = require('./bchrpc');
const PayPro = require('./paypro... |
/***************************************************************************************************
******************************************* dependencies ******************************************
**************************************************************************************************/
require('dotenv')... |
/**
* Module dependencies.
*/
var Writable = require('stream').Writable;
var QS = require('querystring');
var util = require('util');
var _ = require('lodash');
var express = require('express');
var buildReq = require('./req');
var buildRes = require('./res');
var defaultHandlers = require('./bindDefaultHandlers');... |
const del = require('del');
const fs = require('fs');
const http = require('http');
const finalhandler = require('finalhandler');
const serveStatic = require('serve-static');
const chokidar = require('chokidar');
const log = require('fancy-log');
const path = require('path');
const pretty = require('pretty');
const Rea... |
import React, { Component } from "react";
import "../App.css";
import {
Card,
CardTitle,
CardSubtitle,
Row,
Col,
Alert,
Table,
CardBody,
} from "reactstrap";
import Collapsible from "react-collapsible";
import Axios from 'axios';
//import ReactSpeedometer from "react-d3-speedometer";
import "bootstrap/... |
/**
* Sync load of language file once QUnit and Blanket are ready
* Otherwise the language file is loaded before instrumented files
*/
QUnit.begin(function() {
$.ajax({
async: false,
url: '../dist/i18n/query-builder.en.js',
dataType: 'script'
});
});
/**
* Add GitHub link in header
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var _a;
var core_1 = require("@angular/core");
var kendo_date_math_1 = require("@progress/kendo-date-math");
var navigation_action_enum_1 = require("../models/navigation-action.enum");
var selection_range_interface_1 = require("../models/selec... |
/*
* K2HR3 REST API
*
* Copyright 2017 Yahoo! Japan Corporation.
*
* K2HR3 is K2hdkc based Resource and Roles and policy Rules, gathers
* common management information for the cloud.
* K2HR3 can dynamically manage information as "who", "what", "operate".
* These are stored as roles, resources, policies in K2hd... |
import { useDataQuery } from '@dhis2/app-runtime'
import i18n from '@dhis2/d2-i18n'
import {
Box,
Modal,
ModalTitle,
ModalContent,
DataTable,
DataTableHead,
DataTableBody,
DataTableRow,
DataTableCell,
DataTableColumnHeader,
DataTableToolbar,
NoticeBox,
CircularLoader,... |
// Generated by ReScript, PLEASE EDIT WITH CARE
'use strict';
var Caml_option = require("rescript/lib/js/caml_option.js");
var Styles_Theme$Materialui = require("../src/styles/Styles_Theme.js");
var Styles_Palette$Materialui = require("../src/styles/Styles_Palette.js");
describe("default palette", (function () {
... |
const debug = require("debug")("solidity-utils");
const CodeUtils = require("@truffle/code-utils");
const Codec = require("@truffle/codec");
const jsonpointer = require("json-pointer");
const IntervalTree = require("node-interval-tree").default;
var SolidityUtils = {
getCharacterOffsetToLineAndColumnMapping: functio... |
import React, { useState } from 'react';
import { useSelector, useDispatch } from 'react-redux';
import { useRouteMatch } from 'react-router';
import { Formik, Form } from 'formik';
import * as yup from 'yup';
import styled from 'styled-components';
import {
Table,
Button,
Breadcrumb,
Modal,
Input,
Loader,
... |
'use strict'
var _interopRequireWildcard = require('@babel/runtime/helpers/interopRequireWildcard')
var _interopRequireDefault = require('@babel/runtime/helpers/interopRequireDefault')
exports.__esModule = true
exports.default = void 0
var _extends2 = _interopRequireDefault(
require('@babel/runtime/helpers/extend... |
const path = require('path')
const tdDirectory = path.resolve(__dirname, 'data')
const { Client } = require('tdl')
const { TDLib } = require('tdl-tdlib-addon')
let tdLibFile = process.platform === 'win32' ? 'tdjson.dll' : 'libtdjson.so'
if (process.platform === 'darwin') tdLibFile = 'libtdjson.dylib'
const client =... |
import React from 'react';
import { ScrollView, StyleSheet, Keyboard, TouchableWithoutFeedback } from 'react-native';
import { Button, Layout, Text, Input, Select, RangeDatepicker } from 'react-native-ui-kitten';
import MapPicker from "react-native-map-picker";
import Axios from 'axios';
import { AddProject2 } from '.... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { genKey } from 'draft-js';
import escapeRegExp from 'lodash.escaperegexp';
import Entry from './Entry';
import addMention from '../modifiers/addMention';
import decodeOffsetKey from '../utils/decodeOffsetKey';
import getSearchText fro... |
if(userId == "null" || userId == null){
window.location.href = path + "/common/m-login.html";
}
$(function(){
//返回上一页
$(".back").click(function(){
history.go(-1);
});
if(userId == "null"){ //未登录
$("#myCenter").attr("href",path+"/common/m-login.html");
}else{
$("#myCenter").attr("href",path+"/comm... |
import {
classifyEqInterval,
classifyJenks,
classifyQuantile,
classifyStdDeviation,
classifyCkmeans
} from 'classify-series'
import DataContainer from '../index.js'
import getDataLength from '../utils/getDataLength.js'
import { calculateDomain } from '../utils/calculateDomain.js'
const methodMap = {
Equal... |
var Game = {
playerProps: {
level: 1,
xp: 0,
hp: 100,
mp: 100,
xpToNextLevel: 0
},
mapObjects: [],
citizens: [
"doriana"
],
enemies: []
};
Game.preload = function()
{
Game.scene = this;
this.load.image("tree001", "data/scen... |
'use strict';
const waitHelpers = require('./waitHelpers');
const LOAD_PAGE_TIMEOUT = 10000;
//Wait for element and click (without waitUntilPageLoads)
async function click(selectorOrElement) {
const element = await waitHelpers.waitUntilElementIsClickable(selectorOrElement);
await element.click();
}
//This method ... |
import React, { useState, useEffect, useContext } from "react";
import { Link } from "@reach/router";
import HeaderNew from "Components/HeaderNew";
import homePageCompanySvg from "../Assets/homePageCompanySvg.svg";
import accurateJobMatches from "../Assets/accurateJobMatches.svg";
import hassleFreeJobRecruitment from "... |
import { Meteor } from 'meteor/meteor';
import { Tracker } from 'meteor/tracker';
import { Session } from 'meteor/session';
import s from 'underscore.string';
import { Handlebars } from 'meteor/ui';
import { fileUploadHandler } from '../../../file-upload';
import { t, fileUploadIsValidContentType } from '../../../util... |
/*
* Copyright https://github.com/divio/django-cms
*/
import $ from 'jquery';
import { throttle } from 'lodash';
/**
* Responsible for creating usable navigation for narrow screens.
*
* @class Navigation
* @namespace CMS
*/
class Navigation {
constructor() {
this._setupUI();
this._getWidths... |
require('./src/checkNodeVer')
require('source-map-support').install()
var sVer = require('./package.json').version;
const compile = require("string-template/compile");
const moment = require('moment')
const crypto = require('crypto')
const os = require('os');
const fs = require("fs");
const cls = require('@ashleyw/cls... |
"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 Event = require('./Event');
var MouseEvent = require('./MouseEvent');
var utils = require('./utils');
module.exports = EventTarget;
function EventTarget() {}
EventTarget.prototype = {
// XXX
// See WebIDL §4.8 for details on object event handlers
// and how they should behave. We actually ha... |
import angular from 'angular';
import gmfEditingEditFeatureComponent, {EditingState} from 'gmf/editing/editFeatureComponent.js';
import gmfLayertreeTreeManager from 'gmf/layertree/TreeManager.js';
import gmfThemeThemes from 'gmf/theme/Themes.js';
/**
* @type {angular.IModule}
* @hidden
*/
const module = angular.... |
import "../styles/index.css";
import "./webgl";
import { animateModel } from "./webgl";
/*
I. Selector Functionality
*/
//Selector Div Element
const selector = document.getElementById("Selector");
//LocalStorage previously played music number
// 0 - #LofiGirl
// 1 - #Wormono
// 2 - #YukoRecords
const localStorage... |
var Discord = require('discord.io');
var logger = require('winston');
var auth = require('./auth.json');
var fs = require("fs");
// Configure logger settings
logger.remove(logger.transports.Console);
logger.add(new logger.transports.Console, {
colorize: true
});
logger.level = 'debug';
// Initialize Discord Bot
v... |
import React, {useState, useEffect} from "react";
import { useParams } from 'react-router-dom'
import { makeStyles } from '@material-ui/core/styles';
import {Button, Card, CardContent, Container, Grid, Typography} from '@material-ui/core'
import Computer from 'bitcoin-computer'
import * as Constants from './../constant... |
const _ = require('lodash');
const AWS = require('../../../utils/requireAWS');
const ExperimentExecution = require('../../model/ExperimentExecution');
const config = require('../../../config');
const getLogger = require('../../../utils/getLogger');
const pipelineConstants = require('./constants');
const { getPipeline... |
import React, { useState, useEffect, useRef } from 'react';
import io from 'socket.io-client';
import classes from './PlayerSpace.module.css';
import StatsDisplay from '../StatsDisplay/StatsDisplay';
import Players from '../Players/Players';
//Needs to be up here, or it'll re-initialize upon every re-render
let gameD... |
/* global ArangoServerState, ArangoClusterInfo */
'use strict';
// /////////////////////////////////////////////////////////////////////////////
// / @brief JavaScript cluster functionality
// /
// / @file
// /
// / DISCLAIMER
// /
// / Copyright 2012 triagens GmbH, Cologne, Germany
// /
// / Licensed under the Apache... |
'use strict';
/**
* Debug note: to test this app in a desktop browser, you'll have to set
* the `dom.mozSettings.enabled' preference to false in order to avoid an
* `uncaught exception: 2147500033' message (= 0x80004001).
*/
var Settings = {
get mozSettings() {
// return navigator.mozSettings when properly ... |
"use strict";
var fs = require("fs-extra");
const _ = require("lodash");
const proofResolverFileTemplatePath = require.resolve("./proofResolvers.go");
let str = "#####";
const resolverFnTemplatePath = require.resolve(
"./resolverFunctionTemplates.go"
);
function buildResolvers(fileIn, fileOut, dataloaders = {}) {... |
// https://github.com/FactomProject/FactomDocs/blob/master/factomDataStructureDetails.md#factoid-transaction
// https://github.com/FactomProject/factoid/blob/3ee9763f86849036723d1b059216e08a6d34b184/transaction.go
const sign = require('tweetnacl/nacl-fast').sign,
base58 = require('base-58'),
{ RCD_TYPE_1, enco... |
/*
* Copyright (c) 2018, Arm Limited and affiliates.
* SPDX-License-Identifier: Apache-2.0
*
* 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/LICEN... |
import React from "react";
import { Icon, Button, Intent, Classes } from "@blueprintjs/core";
import {
FileUploadField,
TextareaField,
EditableTextField,
CheckboxField,
wrapDialog
} from "teselagen-react-components";
import { reduxForm, FieldArray } from "redux-form";
import { anyToJson } from "bio-parsers";
... |
import React, { Component } from "react";
import { observer, inject } from "mobx-react";
import { toJS } from "mobx";
import ToggleDisplay from "react-toggle-display";
import chrono from "chrono-node";
import Moment from "moment";
import jstz from "jstz";
import { size } from "lodash-es";
import {
FormFeedback,
... |
'use strict';
const moment = require('moment');
const ping = require('ping');
const logger = require('../../utils/logger');
const { validIP } = require('../../utils/utils');
const Telegram = require('../../lib/telegram');
class Handler {
constructor() {
this.hosts = [];
this.configured = false;
}
confi... |
/**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
*/
'use strict';
var REACT_ELEMENT_TYPE = require('./ReactElementSymbol');
var _require = require('./ReactCoroutine'),
REACT_C... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import React, { Component, Fragment } from 'react';
import PropTypes from 'pr... |
/****
* If want to set up seperate file for css - http://bit.ly/2crZxRP & http://bit.ly/2dPjoLi
* Setting up autoprefixer - http://bit.ly/2crZEgn
* Adding global scripts like jquery: http://bit.ly/2cLBCgv - and/or vendor/commons - http://bit.ly/2cLKJOj & http://bit.ly/2cLKG51
* Splitting webpack config - http://survive... |
// The MIT License (MIT)
//
// Copyright (c) 2015-2021 Camptocamp SA
//
// 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
// u... |
import Vue from "vue";
import axios from "axios";
/*
* 格式化参数
*/
function formatParams(data = {}) {
const arr = [];
for (const name in data) {
arr.push(
encodeURIComponent(name) + "=" + encodeURIComponent(data[name])
);
}
return arr.join("&");
}
/**
* 获取浏览器类型
*/
function ... |
"use strict";
/**
* @license
* Copyright 2018 Palantir Technologies, 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.apache.org/licenses/LICENSE-2.0
*
* Unle... |
const {drawMap, getStatistics, showByHoursChart, showBySpeakersChart} = require('./home-page-charts');
const {toggleFooterPosition, updateLocaleLanguagesDropdown, getLocaleString, performAPIRequest} = require('./utils')
const {
setSpeakerDetails,
setStartRecordBtnToolTipContent,
//setTNCOnChange,
setUse... |
const {Component} = require('react');
const PropTypes = require('prop-types');
const connect = require('react-redux').connect;
const {Route, Switch, withRouter} = require('react-router-dom');
const {compose} = require('recompose');
const h = require('react-hyperscript');
const actions = require('./actions');
const clas... |
var fs = require('fs')
var test = require('tape')
var mingo = require('../dist/mingo')
var _ = mingo._internal()
exports.personData = JSON.parse(fs.readFileSync(__dirname + '/data/person.json'))
exports.simpleGradesData = JSON.parse(fs.readFileSync(__dirname + '/data/grades_simple.json'))
exports.complexGradesData = J... |
/**
* 对Cesium进行二次封装
* author:andot
* date: 2018年9月6日12:49:08
*
*/
var Cranegis = function () {
/**
* 绘制中国国界线
* param:name 文字
* param:url 国界线的数据文件, 一共有三个文件,缺一不可
* */
Cranegis.prototype.drawBorderLine = function (name, url) {
viewer.scene.debugShowFramesPerSecond = !0;
var r = null;
... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getSymbolMasterById = exports.getSymbolMasterByName = exports.makeSymbol = exports.getSymbolComponentByName = exports.injectSymbols = exports.getSymbolsPage = undefined;
var _createClass = function () { function defineProperties(ta... |
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.hasOwnProperty(p)) d[p] =... |
module.exports = () => {
return {
restrict: 'E',
template: require('./template.html'),
controller: ['$scope', '$interval', '$timeout', 'timelineData',
($scope, $interval, $timeout, timelineData) => {
$scope.currentItem = addStartupItem(timelineData);
const midnight = new Dat... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Grid = void 0;
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
function _nonIterableRest() { throw new TypeError("Inval... |
/*
* Copyright © 2017-2018 <NAME>, 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.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.makeMessagesSocket = void 0;
const got_1 = __importDefault(require("got"));
const boom_1 = requi... |
import Vue, { nextTick } from 'vue';
import { GlButton, GlLink, GlToast } from '@gitlab/ui';
import VueApollo from 'vue-apollo';
import createMockApollo from 'helpers/mock_apollo_helper';
import setWindowLocation from 'helpers/set_window_location_helper';
import {
extendedWrapper,
shallowMountExtended,
mountExten... |
/* Simple Image Panner and Zoomer (March 11th, 10)
* This notice must stay intact for usage
* Author: Dynamic Drive at http://www.dynamicdrive.com/
* Visit http://www.dynamicdrive.com/ for full source code
*/
// v1.1 (March 25th, 10): Updated with ability to zoom in/out of image
//jQuery.noConflict()
var ddimagepan... |
const articles = [{
'id': 1,
'photo': require('../img/photo1.png'),
'type': 'article',
'time': -300,
'header': 'Plants Of Our Nature',
'text': 'Ferns are a very old group of plants. They first appeared on Earth in the middle Devonian Era about 360 million years ago, just before the Carboniferous Era. Most o... |
'use strict';
const FS = require('fs');
const PATH = require('path');
const { green } = require('colorette');
const { loadConfig, optimize } = require('../svgo-node.js');
const pluginsMap = require('../../plugins/plugins.js');
const PKG = require('../../package.json');
const { encodeSVGDatauri, decodeSVGDatauri } = re... |
import React from 'react'
import Super from "./../../super"
import Units from "./../../units"
import {Button,Icon,Popover,Input,Modal, message,Collapse,Tag} from 'antd'
import DragTable from './../DragTable'
import './index.css'
const {confirm} = Modal
const {Panel}=Collapse
const {CheckableTag}=Tag
export default cl... |
// Sienna NDI Monitor
var tcp = require('../../tcp');
var instance_skel = require('../../instance_skel');
var debug;
var log;
const xml2js = require('xml2js');
function instance(system, id, config) {
var self = this;
// super-constructor
instance_skel.apply(this, arguments);
self.actions(); // export actions
... |
import { getAsyncTypes } from '../helpers/actionType'
import * as AdmClientRuleService from '../services/AdmClientRuleService'
import {RintagiScreenRedux,initialRintagiScreenReduxState} from './_ScreenReducer'
const Label = {
PostToAp: 'Post to AP',
}
class AdmClientRuleRedux extends RintagiScreenRedux {
allowTm... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var IPrivilegeManager_1 = require("../user/privilege/IPrivilegeManager");
var xml_js_builder_1 = require("xml-js-builder");
var IfParser_1 = require("../helper/IfParser");
var HTTPCodes_1 = require("./HTTPCodes");
var FSManager_1 = requi... |
/**
* Node.js server for swarmchat. (see swarmchat.org)
* <p>by <NAME>.
* Source, mechanics and all creative elements are freely usable under <a href="https://creativecommons.org/licenses/by/4.0/deed.de">CC BY 4.0</a> with one important condition: <br><strong>All decisions are overruled by the human rights charta of... |
/**
* Copyright 2017 The AMP HTML Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... |
// Copyright (c) 2015 - 2017 Uber Technologies, Inc.
//
// 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... |
// 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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _get2 = require('lodash/get');
var _get3 = _interopRequireDefault(_get2);
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Objec... |
var contatoAtual = '';
var novaHora = new Date();
const alvo = "<NAME>";
const mensagensAleatorias = ['Te adoro', 'Sou gamado em vc', 'Me importo muito contigo', 'vc é a melhor do mundo', 'vc é minha deliciosa garota de olhos lindos',
'Gosto muito de vc', 'Adoro seus olhos',
'Vc é muito especial', 'Adoro ti abra... |
var fs = require('fs');
var path = require('path');
var gulp = require('gulp');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var mincss = require('gulp-minify-css');
var minhtml = require('gulp-minify-html');
var ngtemplate = require('gulp-angular-templatecache');
var streamqueue = require(... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getBundleIdentifier = getBundleIdentifier;
exports.setBundleIdentifier = setBundleIdentifier;
exports.getBundleIdentifierFromPbxproj = getBundleIdentifierFromPbxproj;
exports.updateBundleIdentifierForPbxproj = updateBundleIdentifier... |
import "../default-config"
import * as t from "@onflow/types"
import {account, arg, config} from "@onflow/sdk"
import {spawn, send, INIT, SUBSCRIBE, UNSUBSCRIBE} from "@onflow/util-actor"
import {withPrefix, sansPrefix} from "@onflow/util-address"
import {invariant} from "@onflow/util-invariant"
import {buildUser} from... |
import React, { Component } from 'react';
import '../../distributor-managment/distributor-master/styles.css';
import { Button, Card, CardBody, CardHeader, Col, Row } from 'reactstrap';
import LabelInput from "../../../components/input/txtlbl/index";
import { MDBDataTable } from 'mdbreact';
import { Button as SementicBt... |
const fs = require("fs");
const path = require("path");
const async = require("async");
const child_process = require("child_process");
//var fsPromises = require("fs").promises;
// node 8 compatibility
const {promisify} = require('util');
const stat = promisify(fs.stat);
const fsPromises = {
readFile: promisify(fs.... |
import * as _ from 'lodash-es';
import 'whatwg-fetch';
import { authSvc } from './module/auth';
import store from './redux';
const initDefaults = {
headers: {},
credentials: 'same-origin',
};
// TODO: url can be url or path, but shouldLogout only handles paths
export const shouldLogout = (url) => {
const k8sRe... |
'use strict';
var __importStar =
(this && this.__importStar) ||
function(mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null)
for (var k in mod)
if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result['default'] = mod;
return result;
};
var _... |
'use strict';
const Router = require('koa-router');
const {graphqlKoa, graphiqlKoa} = require('apollo-server-koa');
const {makeExecutableSchema} = require('graphql-tools');
const {graphql, GraphQLScalarType} = require('graphql');
const GraphQLJson = require('graphql-type-json');
const {map, values} = require('lodash')... |
const Discord = require('discord.js')
const fs = require('fs')
const { CmdParser } = require('discordjs-cmds')
const LogFile = require('./src/logFiles')
const OwnerCmd = require('./src/ownerCmd')
const ReactRole = require('./src/reactRole.js')
const UnitEmbed = require('./src/unitEmbed')
const PetEmbed = require('... |
// Copyright 2014 The Oppia Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ap... |
/** @babel */
import * as char from 'hjs-core/lib/char';
import * as util from 'hjs-core/lib/util';
import {ByteBuffer} from 'hjs-io/lib/buffer';
import {ByteArrayInputStream,InputStream} from 'hjs-io/lib/input';
import {Reader} from 'hjs-io/lib/reader';
import {Hashtable} from 'hjs-collection/lib/table';
import... |
/**
* [SIMINOV FRAMEWORK]
* Copyright [2015] [Siminov Software Solution LLP|<EMAIL>]
*
* 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/LIC... |
'use strict';
var _core = require('../../../../core.js');
var _core2 = _interopRequireDefault(_core);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
(0, _core.$C)('$data.storageProviders.oData.oDataCompiler', _core2.default.Expressions.EntityExpressionVisitor, null, ... |
"use strict";
/*
* eslint-plugin-sonarjs
* Copyright (C) 2018 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* versio... |
let words, stats;
const clusterize = { "phrase": null, "window": null, "ngram": null };
function scrollRefresh(element) {
element.style.overflow = "auto";
requestAnimationFrame(() => {
element.style.overflow = "overlay";
});
}
function searchGram(list) {
let query = "";
for (let i = 0, length = list.length; i ... |
const path = require('path')
const {defaults, BASIC_TYPES} = require('skema')
const minimist = require('@ostai/minimist')
const {
isObject, isArray, isString, isFunction
} = require('core-util-is')
const UI = require('cliui')
const error = require('./error')
const {
shape,
any,
set
} = defaults({
async: tru... |
'use strict';
var FEWCOOKIES = 10;
var MORECOOKIES = 20;
var honcode = {
setCookiesBadge: function(url) {
chrome.cookies.getAll(
{domain: this.getDomainFromUrl(url)},
function(cookies) {
var cookiedensity = '';
if (cookies.length === 0) {
cookiedensity = 'no';
} else... |
$(document).ready(function () {
$("#services-modal-button").click(function () {
$("#servicesModal").appendTo("body").modal("show").find('.modal-content').draggable();
});
$("#servicesModal #choose-selected-services").click(function () {
saveFunction();
});
$("#service-searc... |
'use strict';
const path = require('path');
const electron = require('electron');
const { BrowserWindow, net, session } = electron;
const fs = require('fs');
const app = electron.app;
let downloadFolder = app.getPath('downloads');
let lastWindowCreated;
const queue = [];
const downloadingItems = {};
const _popQueueI... |
import React, { Component, Fragment } from 'react';
import _ from 'lodash';
import SearchItem from "./SearchItem";
import {
COLLECTION_TYPE_COLLECTION,
COLLECTION_TYPE_FOR_SELL,
COLLECTION_TYPE_MARKET,
COLLECTION_TYPE_WISHLIST,
DATA_TYPE_RELEASE,
GENRE_DROPDOWN,
GENRES_ALL,
ROUTE_SEARCH,... |
/*
Modified version from
+-+- GITHUB -+-+
unmodified version located at:
https://github.com/RoryDuncan/ClockEventAggreggator
+-+- DOCUMENTATION -+-+
http://roryduncan.github.io/ClockEventAggreggator/
*/
var utils = require("./_utils");
var Clock = function(args) {
/* Helpers */
... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.DocumentSparkline = void 0;
var _icons = require("@sanity/icons");
var _ui = require("@sanity/ui");
var _react = _interopRequireWildcard(require("react"));
var _raf = require("../../../../utils/raf");
var _useDocumentPane2 = re... |
var net = require('net');
var TiDebugClient = require('./client-api/tidebug');
var agents = {
Console : require('./protocol/inspector/agent/console'),
CSS : require('./protocol/inspector/agent/css'),
Database : require('./protocol/inspector/agent/database'),
Debugger : require('./protocol/inspector/agen... |
import {useState, useEffect} from 'react';
import { useParams } from 'react-router-dom';
import {apparel, homegoods, techAccessories} from '../../seed';
import {Nav, Footer, Card} from '../index';
import {Link} from 'react-router-dom';
import {Modal, Radio, Table} from 'antd';
import {HeartOutlined} from '@ant-design/i... |
tinymce.init({
selector: 'textarea#content_book',
// theme : "advanced",
height: 350,
width:"",
plugins: [
"codemirror advlist autolink lists link image charmap print preview hr anchor pagebreak",
"searchreplace wordcount visualblocks visualchars fullscreen",
"insertdatetime ... |
/* eslint-disable no-continue */
/* eslint-disable no-restricted-syntax */
const got = require('got');
const cheerio = require('cheerio');
const fuzz = require('fuzzball');
const moment = require('moment-timezone');
const { logger } = require('../middleware/logger');
const REDDIT_WIKI = 'https://old.reddit.com/r/spac... |
import React, { Fragment, Component } from 'react';
import { Drawer, Select } from 'antd';
import { Icon, LoadDiv } from 'ming-ui';
import cx from 'classnames';
import instanceVersion from 'src/pages/workflow/api/instanceVersion';
import AppFilter from '../AppFilter';
import { TABS } from '../index';
import SvgIcon fro... |
/* Google Scripts Sheets Form Utilities
* By <NAME>
* https://github.com/johnellis0/gs-sheets-menu
* Released under the MIT License
*
* Google Apps Script for Google Sheets that adds the ability to create a sheet based settings menu.
*/
/**
* Create SheetMenu instance
*
* @param {object} options Optional opti... |
/* eslint-disable max-lines */
import lodash from 'lodash'
import { crawl } from '../utils/crawl.js'
import { promiseThen, promiseAllThen } from '../utils/promise.js'
import { templateHandler } from './error.js'
import { parseTemplate, parseEscape } from './parse.js'
import { checkRecursion } from './recursion.js'
/... |
$(document).ready(function() {
// init
addPlayer(); // player1
addPlayer(); // player2
// onclick events
$("#startGame").on('click', startGame);
$("#backToStart").on('click', backToStart);
$("#addPlayer").on('click', addPlayer);
$("#removePlayer").on('click', removePlayer);
});
var ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.