text stringlengths 3.22k 29.5k |
|---|
const passport = require('passport');
//CONTROLERS
const oauth2Controller = require('../controllers/oauth/oauth2');
const tokenController = require('../controllers/oauth/token');
const userController = require('../controllers/user/user');
//AUTH CONTROLLERS
const authChoose = require('../controllers/auth/choose');
co... |
/* globals Intl */
import { extend } from '../../core/utils/extend';
import { locale } from '../core';
const SYMBOLS_TO_REMOVE_REGEX = /[\u200E\u200F]/g;
const getIntlFormatter = format => {
return date => {
// NOTE: Intl in some browsers formates dates with timezone offset which was at the moment for thi... |
// Specular.js 2013 (c) matsuda
// Vertex shader program
var VSHADER_SOURCE =
'uniform mat4 u_perspectiveMatrix;\n' +
'uniform mat4 u_modelMatrix;\n' +
'uniform mat4 u_viewMatrix;\n' +
'attribute vec4 a_Position;\n' +
'attribute vec3 a_Normal;\n' +
'varying vec4 v_Position;\n' +
'varying vec3 v_Normal;\... |
/*
* Copyright 2016 <NAME> for ThrustCurve.org
* Licensed under the ISC License, https://opensource.org/licenses/ISC
*/
'use strict';
var express = require('express'),
router = express.Router(),
metadata = require('../lib/metadata'),
locals = require('./locals.js'),
authorized = require('./authorize... |
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow
*/
import React, {Component} from 'react';
import {StyleSheet, Text, View, ActivityIndicator, TouchableOpacity, Keyboard, AsyncStorage} from 'react-native';
import Icon from 'react-native-vector-icons/FontAwesome5';
imp... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.update = void 0;
const slugify_1 = __importDefault(require("@sindresorhus/slugify"));
const dayj... |
/*---------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/
'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
const vscode = require("vscode");
const path = require("path"... |
/*global FormFiller, JSONF, jQuery, Logger, Libs */
/*eslint complexity:0 */
var poorMansDelayMaxCyles = 10000;
// Warp the waitUntil function so that invalid selectors and other jQuery expections get caught
var wrapWaitUntilFunction = function(waitUntilFunction) {
return function wrappedWaitUntilFunction() {
tr... |
import React, { useEffect, useState, useRef } from "react"
import { useStaticQuery, graphql } from "gatsby"
import "pathseg"
import Matter from "matter-js"
import MatterAttractors from "matter-attractors"
import Colors from "./colors"
if (typeof window !== 'undefined') {
window.decomp = require('poly-decomp');
}
co... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
import React, { Component } from "react";
import { Link } from "react-router-dom";
import PatientDetailsGraph from "../../components/PatientDetailsGraph/PatientDetailsGraph";
import "./PatientDetails.css";
import profilePic from "../../assets/user.svg";
import editIcon from "./../../assets/svg/edit.svg";
import Patie... |
// Cubemap prefilter utility
// http://www.unrealengine.com/files/downloads/2013SiggraphPresentationsNotes.pdf
// http://http.developer.nvidia.com/GPUGems3/gpugems3_ch20.html
import Texture2D from '../Texture2D';
import TextureCube from '../TextureCube';
import Texture from '../Texture';
import FrameBuffer from '../Fra... |
'use strict'
import { app, BrowserWindow, Menu, MenuItem, dialog, ipcMain, shell } from 'electron'
import * as path from 'path'
import * as fs from 'fs'
const isDevelopment = process.env.NODE_ENV !== 'production';
const WAD4SServer = require('./WAD4SServer');
// Keep a global reference of the window object, if you ... |
$(document).ready(function () {
$('.new_extra_question').on('click',addExtraQuestion);
$('.newanswer').on('click',addNewAnswer);
$('.extraquestion').on('click', '.removeanswer', removeAnswer);
$('body').on('click', '.markcorrect', markCorrect);
$('.extraquestion').on('click','.removeQuestion',removeQuestion);... |
var detailView;
var valuesForField = {};
var calledBefore = false;
function initReact() {
// only run init once
if (calledBefore) {
return;
}
calledBefore = true;
// don't display internal attributes
var banProperties = ['bounds'];
// simple Label: Value display
var MapLabel = React.createClass({... |
const shopUrl = rootUrl + "/shop/";
const mainUrl = rootUrl + "/";
let cardEls;
let visible = 3;
let is_listview = false;
let allData = [];
let size = 0;
let is_ordered = false;
const listViewClassName = "product__listview";
const productsContainer = document.querySelector(".product_cards");
const mainSpinnerBox = d... |
var cart = [];
var goods = [];
var animating = false;
//onload
$(function () {
cart = getUserCart();
loadGoods();
scrollBySections($('.js-slider-main'), $('.js-header'));
});
function printMiniCartList() {
var $cartEmpty = $('.js-cart-detailed__row_empty');
var $cartItem = $('.js-cart-detailed_... |
function uniqId() {
return "id"+Math.round(new Date().getTime() + (Math.random() * 100));
}
function return_text(types=''){
var mainDiv = types ==''? '<a href="#" class="sort_icon fa_move fa_small editable" onclick="return false;"></a>' :'<a href="#" class="parrentdropable fa_move fa_small editable" onclick="retur... |
/*jslint browser: true*/
/*globals canvasDatagrid: false*/
var data;
function demo() {
'use strict';
var searchUrl = window.location.search.substring(3),
typeMap = {
'text': 'string',
'money': 'number',
'number': 'number'
},
dataSets = [
['... |
/* eslint-disable no-restricted-syntax */
/* eslint-disable max-len */
/* eslint-disable camelcase */
const { readFile } = require('fs').promises;
const Collection = require('@discordjs/collection');
const Base = require('./Base');
const Endpoints = require('../../resources/Endpoints');
const Tokens = require('../../re... |
import consts from 'consts/const_global'
import BufferExtended from "common/utils/BufferExtended";
import InterfaceBlock from 'common/blockchain/interface-blockchain/blocks/Interface-Blockchain-Block'
import PPoWBlock from 'common/blockchain/ppow-blockchain/blocks/PPoW-Blockchain-Block'
import BlockchainGenesis from '... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.PXFrame = undefined;
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... |
const AlertBoxAppend = (message) => {
const alertBox = document.querySelector(".alert");
alertBox.innerText = message;
alertBox.classList.remove("hidden");
setTimeout(() => {
alertBox.classList.add("hidden");
}, 3000);
};
const likedislike = async function (url) {
const promise = await fetch(url, {
... |
// @flow
import React, { Component } from 'react';
import { withStyles } from 'material-ui/styles';
import PropTypes from 'prop-types';
import mergeClassNames from 'merge-class-names';
import Navigation from './Calendar/Navigation';
import CenturyView from './CenturyView';
import DecadeView from './DecadeView';
import... |
import {errorMessage, getExportScheme, getExportData, getStyles} from "./common";
import i18n from "../../webix/i18n";
import promise from "../../thirdparty/promiz";
import require from "../../load/require";
import env from "../../webix/env";
import {download} from "../../webix/html";
import {isArray} from "../../web... |
/**
* Plugin.js file, set configs, routes, hooks and events here
*
* see http://wejs.org/docs/we/plugin
*/
const fs = require('fs'),
path = require('path'),
request = require('request'),
cheerio = require('cheerio'),
uuid = require('uuid'),
gm = require('gm'),
mime = require('mime'),
rmdir = require('... |
import EventEmitter from 'events';
import { deepEqual } from 'fast-equals';
import {
// re-export
//
DAILY_STATE_NEW,
DAILY_STATE_JOINING,
DAILY_STATE_JOINED,
DAILY_STATE_LEFT,
DAILY_STATE_ERROR,
DAILY_EVENT_JOINING_MEETING,
DAILY_EVENT_JOINED_MEETING,
DAILY_EVENT_LEFT_MEETING,
DAILY_EVENT_PARTI... |
const os = require('os')
const fs = require('fs-extra')
const logger = require('../modules/logger')
const config = require('../config/config')
const childProcess = require('child_process')
module.exports = {
/*
* Array of local NodeServer process objects. Corresponds to config.NodeServer[profileNum]
* {proce... |
var convertChildren = function(children, param, namespace, iBatisMapper, isFirst) {
if (param == null) {
param = {};
}
if (!isDict(param)){
throw new Error("Parameter argument should be Key-Value type or Null.");
}
if (children.type == 'text') {
// Convert Parameters
return conver... |
'use strict';
require('@fortawesome/fontawesome-free/css/all.css');
import css from './my.css';
import $ from 'jquery';
import L from 'leaflet';
import 'leaflet/dist/leaflet.css';
/* This code is needed to properly load the images in the Leaflet CSS */
delete L.Icon.Default.prototype._getIconUrl;
L.Icon.Default.merg... |
/*
* Design and develop by <NAME> ( <EMAIL> ) at FUDUGO SOLUTIONS PVT. LTD.
* Licence Authorize by fudugosolutions@2017
*/
/* Open chat box */
function openChatBox(e,userName,partenerUserId,currentUserId,chatThreadId = null) {
var targetUser = ($(e).html());
var userNameId = userName.replace(/ /g, '-'); ... |
const solanaWeb3 = require('@solana/web3.js')
const splToken = require('@solana/spl-token')
const { transferWAudioBalance } = require('./transfer')
const { getBankAccountAddress, createUserBankFrom } = require('./userBank')
const {
createAssociatedTokenAccount,
getAssociatedTokenAccountInfo,
findAssociatedTokenAd... |
/**
*
* <pre>
* Title: 【报表处理】-【报表填报】
* Description: 报表处理-报表填报:主页面
* 此页面提供了报表处理的填报管理功能,可以允许用户选择具体的子任务,点击填报
* 列表展示子任务中的具体错误明细数据,选择一条错误明细数据,即可对数据进行填报
* </pre>
* @author liangzy5
* @version 1.00.00
@date 2020年8月18日
*/
var org_no = "";
var maskUtil = "";
var whereSql = "";
function AfterInit(){
//获取报表权限
va... |
/*
Preprocess .solp files into ordinal solidity source under simple #if and #define directives like C or C#.
In principle, you should use a complete compiler generator, but for this purpose it is enough based on regular expressions.
In comparison to C#, logical orerators in #if ( ex. #if DEBUG && WINDOWS), are not s... |
/*
* Copyright 2017-2018 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0/
*
* or in the "lic... |
$(document).ready(function() {
$('form').attr('autocomplete', 'off'); // disable default autocomplete
$("main").animate({ opacity: 1 }, 1000); // fade-in
// add the class scrolled to the navbar if the window is scrolled below the navbar's height
$(document).scroll(() => {
const $nav = $("#main... |
const VALID_TOPICS = [
'gateway_register',
'gateway_init',
'gateway_update_member',
'gateway_revoke',
]
async function doGatewayRegister(params, context) {
const name = params.name
app.sdb.lock(`gateway@${name}`)
const exists = await app.sdb.exists('Gateway', { name })
if (exists) throw new Error('Gate... |
import vu from './ViewUtil';
import { BinaryConverter } from '../../util/BinaryConverter';
import { Deflater } from '../../util/Deflater';
const imgRe = /^image\/.+|application\/octet-stream/;
const padding0 = BinaryConverter.stringToU8A('aaaa');
const padding1 = BinaryConverter.stringToU8A('bbb');
const padding2 = Bi... |
class Player{
constructor(name) {
this.name = name;
this.frames = [];
this.totalScore = 0;
this.strikeBonus = 0;
this.spareBonus = 0;
this.round = 1;
this.throws = 2;
this.previousRoll = 0;
this.silotape = 0;
};
gameOver(){
if(this.round == 12){
this.switchPlayer()
... |
let daysOfWeek = ["пн", "вт", "ср", "чт", "пт", "сб", "вс"];
let months = [
"Январь",
"Февраль",
"Март",
"Апрель",
"Май",
"Июнь",
"Июль",
"Август",
"Сентябрь",
"Октябрь",
"Ноябрь",
"Декабрь"
];
let sep = ".";
//let placeholder = "ДД.ММ.ГГГГ";
class DatePicker {
constructor(element) {
thi... |
import React, { Component } from "react";
import PropTypes from "prop-types";
import isEqual from "lodash/isEqual";
import get from "lodash/get";
import set from "lodash/set";
import unset from "lodash/unset";
import clone from "clone";
import bracketsToDots from "./shared/bracketsToDots";
import customPropTypes from ... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.MetricsPanelCtrl = exports.FlowchartCtrl = void 0;
var _sdk = require("app/plugins/sdk");
var _time_series = _interopRequireDefault(require("app/core/time_series2"));
var _kbn = _interopRequireDefault(require("app/core/utils/kbn"... |
// Copyright (c) 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
'use strict';
/**
* Promise of the volume list.
* @type {Promise}
*/
var volumeListPromise = new Promise(function(fulfill, reject) {
chrome.file... |
// Approximate structure for the photo-thumbs page:
//
// <body>
// (refresh button)
// <div body-wrapper>
// <div thumblist>
// <ul>
// <li>... -- has without-photo class if accepting new photos
// </ul>
// </div>
//
// <div photothumbs>
// <div thumbnail>
// ... |
import {
tiny_warning_esm_default
} from "./chunk-CLU75KXX.js";
import {
AbstractConnector
} from "./chunk-TJI2OIHM.js";
import "./chunk-ZT2DFEDG.js";
import "./chunk-QK4E7WAS.js";
import {
init_define_process_env
} from "./chunk-DDBPGQBO.js";
// dep:@web3-react_injected-connector
init_define_process_env();
// ... |
const Discord = require("discord.js");
const bot = new Discord.Client();
const { prefix, token, cookie, color, GroupId } = require("./config.json");
const nblx = require("noblox.js");
const {Green, Red} = require("./colors.json");
const bloxy = require("bloxy"); //impostor amogus
const fs = require("fs")
nblx.setCo... |
import React, {Component, Fragment} from 'react';
import Loading from '../components/loadingDiv';
import Error from '../components/wentWrong';
import {Button, Modal, Form, Container} from 'react-bootstrap';
import SideBar from '../components/SideBar';
import BootstrapTable from 'react-bootstrap-table-next';
import pagi... |
/**
* Pour faciliter les manipulation des conversations
* Tout d'abord, on definir deux tableaux
* un pour enregistrer les donnees des contacteurs
* l'autre pour enregistrer les donnees des conversations
* **/
var friends = {
list: document.querySelector('ul.people'),
all: document.querySelectorAll('.left .per... |
import React, { Component } from "react";
import { Player as VideoPlayer } from 'video-react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from "./Advertiser.css";
//import { subscribeClntRequest, sendEthRequest, sendEthGetAccount, sendEthCall } from '.../../ethlite/Api';
import Ethlite ... |
// ==UserScript==
// @name PoESmartShopperItemTagger
// @namespace https://github.com/concacid
// @include http://poe.trade/search/*
// @version 1.0
// @license MIT License
// @grant none
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.0.0/jquery.min.js
// ==/UserScript==
this... |
import(/* webpackPrefetch: true, webpackChunkName: "users-scss" */ '../../sass/_users.scss');
import { faChevronCircleLeft } from '@fortawesome/pro-light-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { DateTime } from 'luxon';
import PropTypes from 'prop-types';
import React, { F... |
var fs = require('fs');
var uuid = require('node-uuid');
var path = require('path');
var validator = require('postman_validator');
var raml = require('raml-parser');
var _ = require('lodash');
var async = require('async');
var converter = {
sampleFile: {},
currentFolder: {},
env: {},
pa... |
import React, {PropTypes, Component} from 'react'
import {Button, Row, Col, Modal, Form, Select, Input, Spin, Table, Icon, message} from 'antd'
import {FormattedMessage} from 'react-intl'
import OperatingButton from '@/app/components/common/OperatingButton'
// 导入样式
import styles from './res/styles/index.less'
import Re... |
import Discord from 'discord.js';
import dotenv from "dotenv";
dotenv.config();
import process from 'process';
import path from "path";
const version = process.env.NODE_ENV;
const client = new Discord.Client();
import fs from 'fs';
import { pool } from '../db/index.js';
import SQL_Query from '../db/query.js';
client.co... |
/**
Hook is executed building the project after the prepare stage.
It will copy the alpha/beta specific icons to the platform directories.
It will also modify the iOS plist CFBundleIdentifier.
*/
var configParser = require('./lib/configXmlParser.js');
var fs = require('fs-extra');
var lwip = require('lwip');
var path ... |
import { throttle } from 'lodash';
import localforage from 'localforage';
import L from 'leaflet';
// eslint-disable-next-line import/no-extraneous-dependencies, import/no-unresolved, import/extensions
import Tangram from 'tangram';
import config from '../config';
import LeafletHash from './leaflet-hash';
import EventE... |
import React, {PureComponent, Fragment} from 'react';
import {Link, withRouter} from 'react-router-dom'
import Card from '@material-ui/core/Card'
import CardContent from '@material-ui/core/CardContent';
import CardActions from '@material-ui/core/CardActions';
import Typography from '@material-ui/core/Typography';
impor... |
const nodeFetch = require('node-fetch')
const createGetCurrentWorkItemIdsGetter = require('./get-current-work-item-ids')
const fetchDecorator = require('../api/decorate-fetch-with-options')
describe('createGetCurrentWorkItemIdsGetter', () => {
[
['(undefined)', undefined, new ReferenceError("Cannot destructure p... |
/* GENERATED FILE */
import { html, svg, define } from "hybrids";
const PhJeep = {
color: "currentColor",
size: "1em",
weight: "regular",
mirrored: false,
render: ({ color, size, weight, mirrored }) => html`
<svg
xmlns="http://www.w3.org/2000/svg"
width="${size}"
height="${size}"
... |
/* global videojs, WebKitMediaKeys */
import { arrayToString, getHostnameFromURI } from './util';
import concatInitDataIdAndCertificate from './fairplay';
import ERROR_TYPE from './error-type';
let certificate;
let logToBrowserConsole = false;
class Html5Fairplay {
static setLogToBrowserConsole(value = false) {
... |
/* src/components/Footer 2.svelte generated by Svelte v3.29.0 */
import {
SvelteComponent,
append,
attr,
component_subscribe,
detach,
element,
init,
insert,
noop,
safe_not_equal,
set_data,
space,
text
} from "../../web_modules/svelte/internal.js";
import { _ } from "../../web_modules/svelte-i18n.js";
impo... |
"use strict";
/*
* Copyright 2015, Yahoo Inc.
* Copyrights licensed under the New BSD License.
* See the accompanying LICENSE file for terms.
*/
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
... |
// Keep alphabetically sorted
export const ADD_ACTIVE_REQUEST = 'ADD_ACTIVE_REQUEST'
export const ADD_DISK_REMOVAL_PENDING_TASK = 'ADD_DISK_REMOVAL_PENDING_TASK'
export const ADD_NETWORKS_TO_VNIC_PROFILES = 'ADD_NETWORKS_TO_VNIC_PROFILES'
export const ADD_SNAPSHOT_ADD_PENDING_TASK = 'ADD_SNAPSHOT_ADD_PENDING_TASK'
exp... |
const fs = require('fs');
const ytdl = require('ytdl-core');
const ffmpeg = require('ffmpeg-static');
const cp = require('child_process');
const readline = require('readline');
const help = require('./helpers');
const videos = require('./videos');
const STD_MSG = '[MSG service] ';
const STREAM_MSG = '[MSG DURING STREA... |
const {
aggregatePartiesForService,
} = require('../../utilities/aggregatePartiesForService');
const {
isAuthorized,
ROLE_PERMISSIONS,
} = require('../../../authorization/authorizationClientService');
const {
ROLES,
SERVICE_INDICATOR_TYPES,
} = require('../../entities/EntityConstants');
const { Case } = requi... |
/***********************************************************************
* File Name: App.js
* Description: This is the root component that is rendered
* for the application. Here, react-router-dom routes and
* components are defined. The background is defined here as well.
* Author: <NAME> <EMAIL>
**************... |
'use strict';
const _ = require('lodash');
const internals = {};
// @purpose
// take in array of player info and a playerId, where playerId is in first position, recursively find player info from a given playerId
// @params
// namesArray: [ 'bondeje01',
// 'Jeremy',
// 'Bonderman',
// '<NAME>',
// '2003-04-... |
var url = require('url');
var _ = require('underscore');
var ObjectId = require('mongolian').ObjectId;
var history = require('./history');
var cur = require('./db_cur');
////////// A P P R O V E D //////////
exports.approved = function ( req, res ) {
// check if the user is logged in
var u... |
import { uniq } from 'lodash';
import { isBlockTablesFeatureEnabled } from './feature_flags';
const defaultAttrs = {
td: { colspan: 1, rowspan: 1, colwidth: null },
th: { colspan: 1, rowspan: 1, colwidth: null },
};
const tableMap = new WeakMap();
// Source taken from
// prosemirror-markdown/src/to_markdown.js
e... |
// Anna was here
// Ling was here
// Jervo was here
// Roger was here
// Initial Functions
$(document).ready(function() {
startTime();
showCurDay();
resizeEvents($(".event"));
removeInteraction();
$.simpleWeather({
location: "Philadelphia, PA",
woeid: "",
unit: "f",
... |
"use strict";
const vec3 = require('gl-vec3');
const vec4 = require('gl-vec4');
const streamToTube = function(stream) {
const { points, velocities, divergences } = stream;
//if (points.length < 10) return {};
// debugger;
var p, fwd, r, u, v, up;
up = vec3.set(vec3.create(), 0, 1, 0);
u = vec3.create();
v = ve... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Element = void 0;
var _react = _interopRequireWildcard(require("react"));
var _slate = require("slate");
var _slateReact = require("@sanity/slate-react");
var _values = require("../utils/values");
var _debug = require("../utils... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _instanceof(left, right) { if (right != null && typ... |
/* eslint-disable */
const path = require('path');
const fs = require('fs');
const babel = require('@babel/core');
const babelrc = JSON.parse(fs.readFileSync(path.resolve(process.cwd(), '.babelrc')).toString());
const babelParser = require("@babel/parser");
const t = require("@babel/types");
const traverse = require('@... |
const globby = require("globby");
const fs = require("fs");
const nodePlop = require("node-plop");
const plop = nodePlop(`./plopfile.js`);
const generatePackDetails = plop.getGenerator("details");
const jsStringEscape = require("js-string-escape");
const docsLinksfileName = './content-repo/contentItemsDocsLinks.json';
... |
import retrieveSchema from './schema/retriev';
import { getPathVal } from './vueUtils';
import { getSchemaType, isObject } from './utils';
// 通用的处理表达式方法
// 这里打破 JSON Schema 规范
const regExpression = /{{(.*)}}/;
function handleExpression(rootFormData, curNodePath, expression, fallBack) {
// 未配置
if (undefined ==... |
import React from 'react';
import groupBy from 'lodash/groupBy';
import sortBy from 'lodash/sortBy';
import WidgetLegend from 'components/widget-legend';
import WidgetTooltip from 'components/widget-tooltip';
import { format } from 'd3-format';
const numberFormat = format(',.3r');
const formatAxis = format(',~s');
co... |
AUTOSIZE_MARGIN_PERCENT = 10;
EXPECTED_VIEWBOX_PIXEL_SIZE = 1.5; // size in screen pixels of a viewbox unit
function App() {
this.nodes = [];
this.arrows = [];
this.scaling = null;
this.ws = null;
this.init = function() {
let autosizeButton = document.querySelector("#zoom-autosize-btn");... |
import { Balance, CopyToClipboard } from "shared";
import { StandaloneHeader, StandalonePage } from "layout";
import { shell } from "electron";
import { transactionDetails } from "connectors";
import { SlateGrayButton } from "buttons";
import { addSpacingAroundText, tsToDate, reverseHash } from "helpers";
import { Form... |
import emoji from "react-easy-emoji";
import {
DiHtml5,
DiCss3,
DiJavascript1,
DiNodejsSmall,
DiReact,
} from "react-icons/di";
import {
SiExpress,
SiMongodb,
SiRedux,
SiChakraui,
SiHeroku,
SiNetlify,
} from "react-icons/si";
import {FaAws} from "react-icons/fa"
export const greetings = {
name:... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function isObject(obj) {
var type = typeof obj;
return !!obj && (type === 'object' || type === 'function');
}
function isFunction(obj) {
return typeof obj === 'function';
}
var assign = Object.assign || function assign(to) {
var ar... |
import { extend } from '@syncfusion/ej2-base';
import * as EVENTS from './../../common/constant';
import * as CONSTANT from './../../markdown-parser/base/constant';
/**
* MDFormats internal plugin
*/
var MDFormats = /** @class */ (function () {
/**
* Constructor for creating the Formats plugin
*/
... |
var util = require('util');
var events = require('events');
var http = require('http');
var https = require('https');
var Logger = require('./../util/logger');
var format = util.format;
module.exports = (function() {
var Settings = {
selenium_host : 'localhost',
selenium_port : 4444,
default_path :... |
import React from 'react';
import PropTypes from 'prop-types';
import { Connect, reduxActions } from '@codetanzania/ewea-api-states';
import { httpActions } from '@codetanzania/ewea-api-client';
import { Button, Form, Row, Col } from 'antd';
import get from 'lodash/get';
import SearchableSelectInput from '../../../comp... |
// Copyright 2018 FOCUS Inc.All Rights Reserved.
/**
* @fileOverview UED-FE-Task
* @author <EMAIL>
*/
const sql = require('../../config/sql-jira');
const moment = require('moment');
const mongoDB = require('../mongodb');
const request = require('../jiraFilter/request');
const jiraData = require('../jiraFilter/data... |
// 合作&交流 git:https://github.com/lich4 个人Q:571652571 Q群:560017652
/*
Usage: dumpModule("BWA.app"); dumpModule("aaa.dylib")
[iPhone::PID::20457]-> dumpModule(".app")
Fix decrypted at:ac0
Fix decrypted at:4000
*/
var O_RDONLY = 0;
var O_WRONLY = 1;
var O_RDWR = 2;
var O_CREAT = 512;
... |
const log = require('loglevel')
const trackManager = require('../library/trackManager')
const invoiceManager = require('../library/invoiceManager')
const storage = require('../library/storage')
const { db } = require('../library/fstore')
// Error handling
// Ref: https://stackoverflow.com/questions/43356705/node-js-ex... |
import firebase from "firebase/app";
import "firebase/firestore";
import { SOLUTION_PRIVATE_LINK } from "../containers/Root/actions";
import { notificationShow } from "../containers/Root/actions";
const NOT_FOUND_ERROR = 404;
export class AdminCustomAnalysisService {
/**
* This method returns true or false based... |
import * as d3 from "d3";
import topojson from "./topojson";
const cloud = require('d3-cloud')
function word_cloud() {
var DATA_FILE_PATH = 'data.json'; // 読み込みデータファイル
const TARGET_ELEMENT_ID = '#cloud'; // 描画先
const languages = ["en", "fr", "it", "de", "gr", "ru", "es"];
const fonts = ["serif", "Ink F... |
//COLORS
var red = 0;
var orange = 0;
var yellow = 0;
var green = 0;
var blue = 0;
var purple = 0;
var pink = 0;
//Pink Upgrades
var clickPower = 1;
var upCost = 100;
var upCostCost = 1;
var maxPurpleCost = 10;
var maxPurple = 1000;
//AD NOTATIONS
const standard = new ADNotations.StandardNotation();
const scientifi... |
const fs = require('fs')
const getArticles = require('../rss/cycleSingle.js')
const sqlCmds = require('../rss/sql/commands.js')
const sqlConnect = require('../rss/sql/connect.js')
const config = require('../config.json')
const configChecks = require('./configCheck.js')
const debugFeeds = require('../util/debugFeeds.js'... |
function Prybar(selector){
var self = this;
function getSvg(){
if (typeof(self.selector) === 'string'){
return document.querySelector(self.selector);
} else {
return self.selector;
}
}
function cloneSvg(){
// Adapted from SVG Crowbar
// https://github.com/NYTimes/svg-crowbar/... |
const earthRadius = 3958.8; // miles
// miles from site to user.
function milesFromSite(user, site) {
const sitePhi = site.siteLat * Math.PI/180;
const userPhi = user.latitude * Math.PI/180;
const deltaPhi = (site.siteLat - user.latitude) * Math.PI/180;
const deltaLam = (site.siteLon - user.longitude)... |
'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... |
const { ArrayEx } = require('../array.js');
const assert = require('assert').strict;
const debugOn = process.env["DEBUG_ARRAYEX"] === "1";
function DBG(...args) {
if (debugOn) {
console.log(...args);
}
}
function testShuffle(numIterations) {
let a = new ArrayEx(0,1,2,3,4,5,6,7,8,9);
let len = ... |
/**
* RPC handler for AEPP side
*
* @module @aeternity/aepp-sdk/es/utils/aepp-wallet-communication/rpc/aepp-rpc
* @export AeppRpc
* @example import ContentScriptBridge from '@aeternity/aepp-sdk/es/utils/aepp-wallet-communication/rpc/aepp-rpc'
*/
import * as R from 'ramda'
import { v4 as uuid } from 'uuid'
import... |
const webpackConfig = require('./webpack.config.js');
const { readFileSync } = require('fs');
const { relative, resolve } = require('path');
const nsWebpack = require('@nativescript/webpack');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-p... |
#!/usr/bin/env node
/**
* https://github.com/alunny/node-xcode/tree/master/test
*
* see node_modules/xcode/pbxProject.js
* cordova/lib/projectFile.ks
*
* Context {
hook: 'after_plugin_install',
opts:
{ cordova: { platforms: [Object], plugins: [Object], version: '6.5.0' },
plugin:
{ id: 'c... |
/*
* Copyright 2005-2019 The Kuali Foundation
*
* Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
*
* Unless requi... |
import React from 'react';
import { RefreshControl } from 'react-native';
import PropTypes from 'prop-types';
import { Q } from '@nozbe/watermelondb';
import moment from 'moment';
import { dequal } from 'dequal';
import { Value, event } from 'react-native-reanimated';
import database from '../../../lib/database';
impo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.