text stringlengths 3.07k 16k |
|---|
/*
Copyright 2017 BlocLedger
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 in writing, software
distribu... |
"use strict";
/*!
* Copyright 2018 CoNET Technology Inc. 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
*
* ... |
import { useContext, useState, useEffect } from "react"
import { dashboardContextFunc } from "../context/DashboardContext"
import CardTodo from "./CardTodo";
import { RiDeleteBin6Fill, RiAddCircleFill, RiEditBoxFill } from "react-icons/ri"
import { GiSave } from "react-icons/gi"
import { v4 as uuidv4 } from "uuid"
impo... |
'use strict'
const events = require('events')
const path = require('path')
const Module = require('module')
// We modified the original process.argv to let node.js load the
// init.js, we need to restore it here.
process.argv.splice(1, 1)
// Clear search paths.
require('../common/reset-search-paths')
// Import comm... |
import React, { useEffect, useState } from "react";
import { signIn, useSession } from "next-auth/client";
import { useRouter } from "next/router";
import { NextSeo } from "next-seo";
import NavBar from "../../components/navbar/NavBar";
import Footer from "../../components/footer/Footer";
const adminlogin = (... |
'use strict';
import { Cube } from './geometries/Cube.js';
import { Program } from './shaders/Program.js';
import { Camera } from './Camera.js';
import { BASE_VERTEX_SOURCE, BASE_FRAGMENT_SOURCE } from './shaders/shaders.js';
import { Renderer } from './Renderer.js';
import { Obj } from './geometries/Obj.js';
import e... |
/*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
import Main from '@/views/Main.vue';
// 不作为Main组件的子页面展示的页面单独写,如下
export const loginRouter = {
path: '/login',
name: 'login',
meta: {
title: 'Login - 登录'
},
component:resolve => void(require(['@/views/login.vue'],resolve)),// 懒加载 () => import('@/views/login.vue')
};
export con... |
const fs = require('fs')
const path = require('path')
const url = require('url')
const net = require('net')
const createRenderer = require('./electron-shell')
const { setupRpc } = require('./Rpc')
const { getMenuTemplate } = require('./Menu')
const { registerGlobalPluginHost } = require('./ethereum_clients/P... |
import React from "react";
// reactstrap components
import { Button } from "reactstrap";
//materialui components
import { makeStyles } from "@material-ui/core/styles";
import Grid from "@material-ui/core/Grid";
import TextField from "@material-ui/core/TextField";
import List from '@material-ui/core/List';
import ListIt... |
/* global describe, it, before, after */
let adapter;
try {
require.resolve("worker_threads");
if (process.argv.includes("--child_process"))
adapter = "child_process";
else
adapter = "worker_threads";
} catch (e) {
if (process.argv.includes("--child_process"))
return;
else... |
const expressJwt = require('express-jwt');
const utils = require('../utils/util');
let cache = require('../utils/cache');
let authUtils = require('../utils/auth');
const httpUtils = require('../utils/http');
const config = require('../../config/env');
const express = require('express');
const fs = require('fs');
const ... |
"use strict";
var Logger = require("./../../logger/Logger");
const threads = require("threads");
const isRunning = require("is-running");
const ERROR_UNKNOWN_IDENTIFIER = "Unknown thread identifier";
const ERROR_STRINGIFY_FUNCTION_THREAD = "Error in thread stringify function";
/**
* This class allows to manage thread... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _stripSuperfluousWhitespace = _interopRequireDefault(require("../utils/string/stripSuperfluousWhitespace"));
var _standardizeKeyName = _interopRequireDefault(require("../helpers/parsing-key-maps/standardiz... |
const Usuario = require('../models/usuario')
const Sequelize = require('sequelize');
const jwt = require('jsonwebtoken');
const sequelize = new Sequelize('doarfazbem', 'root', '', {
host: 'localhost',
dialect: 'mysql',
pool: {
max: 5,
min: 0,
acquire: 30000,
idle: 10000
... |
import React, { useState, useEffect, useCallback } from 'react';
import { useLocation, useHistory } from 'react-router-dom';
import styled from 'styled-components';
import { t } from '@lingui/macro';
import {
Card,
PageSection,
PageSectionVariants,
SelectGroup,
Select as PFSelect,
SelectVariant,
SelectOpt... |
"use strict";
const Plugin = require('../plugin');
const uuid = require('node-uuid');
const crypto = require('crypto');
const Path = require('path');
const Data = require('../settings/data');
const clientSessions = require('client-sessions');
/**
* The Session plugin manages a user's session and the applicable infor... |
//index.js file
const http= require("http");//hhtp is also a library of node Js
const websocketServer = require("websocket").server // websocket is a library.This creates a websocket object
const httpServer = http.createServer();
httpServer.listen(9090,()=> console.log("Listening .. on 9090")) //
const mysql = requi... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const webpack = require("webpack");
const path = require("path");
const CopyWebpackPlugin = require("copy-webpack-plugin");
const named_lazy_chunks_webpack_plugin_1 = require("../../plugins/named-lazy-chunks-webpack-plugin");
const insert_conc... |
import React, { Component } from "react";
import { Link } from "react-router-dom";
import { StatusBadge } from "../Shared/StatusBadge";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faMapMarkerAlt, faSpinner } from "@fortawesome/free-solid-svg-icons";
import styled from "react-emotion";
im... |
/* LIB SVG
https://github.com/tps2015gh/js_ui_builder
https://github.com/tps2015gh/js_ui_builder/blob/master/lib_svg/
@author: <NAME>
@country: Thailand
@dependency: no-dependency library
@since: 2018-07-10
*/
//@ts-check
var line_style_grid = "stroke:silver;stroke-width:1px;"
/**
* @param {numbe... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
*... |
import React, { Component, useState } from 'react';
import dynamic from 'next/dynamic';
const QrReader = dynamic(() => import('react-qr-reader'), { ssr: false });
import { useMediaQuery } from 'react-responsive';
import Button from 'react-bootstrap/Button';
import Form from 'react-bootstrap/Form';
import Container fro... |
#!/usr/bin/env node
"use strict";
var Promise = require("bluebird");
var Datastore = require("nedb");
Promise.promisifyAll(Datastore.prototype);
var nopt = require("nopt");
var path = require("path");
var fs = require("fs");
const ROOM_DB = "0.3-db/rooms.db";
var opts = nopt({
"help": Boolean,
rooms: path,
}... |
var ref = require("prosemirror-transform");
var Transform = ref.Transform;
var ref$1 = require("./selection");
var Selection = ref$1.Selection;
// ::- A selection-aware extension of `Transform`. Use
// [`EditorState.tr`](#state.EditorState.tr) to create an instance.
var EditorTransform = (function (Transform) {
func... |
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'
import { withRouter, Link } from 'react-router-dom'
import queryString from 'query-string'
import { compose } from 'recompose'
import moment from 'moment'
import TransactionProvider from '../omg-transacti... |
const projectsData = require("./tempData/projects.json");
const API_BASE_URL =
"https://ld48eii9kk.execute-api.eu-central-1.amazonaws.com/dev";
const VOTING_SERVER_API_BASE_URL = "https://fellow-voting-system.herokuapp.com";
const REPORTER_BASE_URL = "https://github-reporter.now.sh";
const EC2_BOT_REPLY_U... |
// import CallingExtensions, { Constants } from "@hubspot/calling-extensions-sdk";
import CallingExtensions from './CallingExtensions';
import { errorType } from './Constants';
var engagementIdconst = '';
var Thread = {
sleep: function (ms) {
var start = Date.now();
while (true) {
var clock = Date.n... |
import React, { useState, useRef } from "react";
import axios from "axios";
import "./styles/CharDetail.scss";
import Tabs from "./CharDetailTabs";
import Tables from "./CharDetailTables";
import Helmet from "react-helmet";
import { API_KEY } from "../config";
const CharDetail = ({ match, history }) => {
const { serv... |
/**
* @file zhihuishu.js
* @author perhaps(<EMAIL>)
* @date 2017-11-17
* @description 智慧树视频自动播放下一集,并以1.5倍速度,无声播放
*/
/**
* dom 加载完毕的5s后才开始执行脚本
*/
window.onload = function () {
setTimeout(() => begin(), 5000)
}
/**
* 主程序
*/
async function begin() {
let list = null // 整个视频播放列表
let video = null // video播放... |
var childProcess = require('child_process'),
fs = require('fs'),
path = require('path'),
running = require('is-running'),
LocalBinary = require('./LocalBinary'),
LocalError = require('./LocalError'),
psTree = require('ps-tree');
function Local(){
this.pid = undefined;
this.isProcessRunning = false;
t... |
const kReuseScanline = 51;
const kNewScanline = 122;
function sendRequest(url) {
return new Promise((resolve) => {
let req = new XMLHttpRequest();
req.onload = (event) => {
if (req.response) {
resolve(req.response);
}
};
req.open("GET", url);
req.responseType = "arraybuffer";
... |
{
"translatorID": "b56f856e-934e-4b46-bc58-d61dccc9f32f",
"label": "Mainichi Daily News",
"creator": "<NAME>",
"target": "^https?://mainichi\\.jp/(?:english/)?(articles/|search\\?)",
"minVersion": "3.0",
"maxVersion": "",
"priority": 100,
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
... |
const cheerio = require('cheerio');
const zlib = require('zlib');
// Using size instead of character count to avoid underestimation due to UTF-8 character byte size
// e.g. Chinese characters. Although Alexa cannot read Chinese, don't let it crash.
const MAX_PARAGRAPH_SIZE = 3500; // bytes
function ssmlEscape(str) {
... |
"use strict";
const _ = require("lodash");
const log = require("../../log");
const colors = require("chalk");
const path = require("path");
const semver = require("semver");
const Helper = require("../../helper");
const themes = require("./themes");
const packageMap = new Map();
const inputs = require("../inputs");
co... |
/*
* @Author: Felix
* @Email: <EMAIL>
* @Date: 2020-12-30 10:26:26
* @LastEditTime: 2021-06-09 11:11:31
* @FilePath: /pc-front/src/views/current/js/order.js
* @Copyright © 2019 Shanghai Qingmao Network Technology Co.,Ltd All rights reserved.
*/
import {
getCurrentOrderList,
cancelOrderByAdmin,
assignDriver... |
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow strict-local
*/
import React, { Component } from 'react';
import { Navigation } from 'react-native-navigation';
import {
SafeAreaView,
KeyboardAvoidingView,
StyleSheet,
ScrollView,
Alert,
View,
ActivityInd... |
const vscode = require('vscode');
const SerialPort = require('../lib/serialport');
const path = require('path');
const locale = require('../i18n')();
class SerialPortProvider {
constructor(context) {
this._onDidChangeTreeData = new vscode.EventEmitter();
this.refreshPort();
this.ports = [];
this.context = co... |
import { relative } from 'path'
import { fileURLToPath } from 'url'
import figures from 'figures'
import stripAnsi from 'strip-ansi'
// Normalize log output so it can be snapshot consistently across test runs
export const normalizeOutput = function (output) {
const outputA = stripAnsi(output)
return NORMALIZE_REG... |
const express = require('express');
const axios = require('axios');
const cheerio = require('cheerio');
const port = process.env.PORT || 8000;
const app = express();
const path = require('path');
//documentation
const swaggerUi = require('swagger-ui-express');
const swaggerDocument = require('./swagger.json');
//her... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
const path = require('path');
const rt = require('runtypes');
const { BaseGenerator, integrations, platforms } = require('../../index');
const { v4: uuidv4 } = require('uuid');
const options = rt.Record({
applicationSettingsDirectory: rt.Str... |
var DefineMap = require('can-define/map/map');
var localStorage = require('./local-storage');
var sortedCollectionNames = ['can-core', 'can-infrastructure', 'can-ecosystem', 'can-legacy'];
var expandedStorageKeyForName = function(name) {
return 'canjs-expanded-' + name;
};
var getShortTitleForNameWithParent = funct... |
'use strict';
const core = require('@actions/core');
const github = require('@actions/github');
const partition = require('lodash/partition');
const yaml = require('yaml');
class PullRequest {
// ref: https://developer.github.com/v3/pulls/#get-a-pull-request
constructor(pull_request_paylaod) {
// "ncc" doesn'... |
/*Copyright 2015-2019 <NAME>
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 in writing, software
dist... |
/**
*
* ©2016-2017 EdgeVerve Systems Limited (a fully owned Infosys subsidiary),
* Bangalore, India. All Rights Reserved.
*
*/
var bootstrap = require('./bootstrap');
var chalk = require('chalk');
var chai = require('chai');
var expect = chai.expect;
chai.use(require('chai-things'));
var defaults = require('sup... |
const { existsSync } = require('fs');
const { join } = require('path');
let i = 0; // necessary other it will log twice
function autoconfig(opts, pkg, thisPkg, base) {
const autoconf = { reject: [] };
if (!opts.disableAutoConf) {
// get them dynamically, it must include documentation in the name, and be in de... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = exports.RouteMenuProps = void 0;
var _vueTypes = _interopRequireDefault(require("ant-design-vue/es/_util/vue-types"));
require("ant-design-vue/es/menu/style");
var _menu = _interopRequireDefault(require("ant-design-v... |
"use strict";
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ... |
import _ from 'lodash';
import React, { Component } from 'react';
import { csv } from 'd3-request';
import * as d3 from "d3";
import { csvParseRows } from 'd3-dsv';
import { CSVLink, CSVDownload } from 'react-csv';
class Node {
constructor(val, priority) {
this.value = val;
this.priority = priority;
... |
const electron = require('electron')
console.log(electron);
// Module to control application life.
const app = electron.app;
console.log(app);
const globalShortcut = electron.globalShortcut;
//var Express = require('express');
//console.log(Express);
//var ExpressApp = Express();
//console.log(ExpressApp);
//ExpressAp... |
var test = require('tap').test
, lodash = require('lodash')
, StackPointSet = require('../../../../client/js/ui/chart2/models/point-set/stack')
, StackLayers = require('../../../../client/js/ui/chart2/models/stack-layers')
test("StackPointSet", function(t) {
var layers = new StackLayers()
... |
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
exports.run = run;
function _os() {
const data = require('os');
_os = function() {
return data;
};
return data;
}
function path() {
const data = _interopRequireWildcard(require('path'));
path = function() {
return d... |
/*
* Copyright (c) 2014 - present Adobe Systems Incorporated. All rights reserved.
*
* 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
* ... |
import { props, define } from '@bolt/core/utils';
import { withLitHtml, html } from '@bolt/core/renderers/renderer-lit-html';
import { unsafeHTML } from 'lit-html/directives/unsafe-html';
import { ifDefined } from 'lit-html/directives/if-defined';
import { parse, stringify } from 'himalaya';
import classNames from 'cl... |
var joueur;
var id;
var listdocuments;
var geocoder;
var country;
var pays;
var marker;
var current = 0;
var chartBase = 'https://chart.googleapis.com/chart?chst=';
function creerpersonne(){
var nompersonne = document.getElementById("clogin").value;
creaPers({"nom":nompersonne});
}
function creaPers(data){
... |
// Questions View for mission results
// Should take a list of responses
// [
// {
// displayName, description, id, etc.
// questions: [
// itemId: < use this field to match across students >
// text.text: < show this as a preview to faculty >
// responses: [ <null> or { isCorrect: s... |
var BrushBase = require('brush-base');
var regexLib = require('syntaxhighlighter-regex').commonRegExp;
function Brush() {
var keywords = [
"lock-on-active",
"date-effective",
"date-expires",
"no-loop",
"auto-focus",
"activation-group",
"agenda-group",
"ruleflow-group",
"entry-point",
"duration",
... |
import React from 'react';
import {
StyleSheet,
Text,
TouchableOpacity,
View,
FlatList,
AsyncStorage,
Alert,
DeviceEventEmitter
} from 'react-native';
import { Ionicons } from '@expo/vector-icons';
//import Header from '../components/Header';
import MenuBackButton from './MenuBackButton'
import OneBook... |
var express = require('express');
var router = express.Router();
var status = require('./errorHandling.js');
var html_dir = '../html/';
var userInfo = require ('./createuser.js');
var loginInfo = require ('./login.js');
var fbToken = require ('./sendFbToken.js');
va... |
const dropArea = document.getElementById('FileSelector'),
fs = require("fs");
dropArea.addEventListener('change', (event) => {
getAFile(event.target.files[0]);
});
dropArea.addEventListener('dragover', (event) => {
event.stopPropagation();
event.preventDefault();
event.dataTransfer.dropEffect = 'cop... |
/* eslint-disable no-await-in-loop, import/no-unresolved, no-eval, jest/no-export */
/* eslint no-unused-vars: ["error", { "vars": "local" }] */
/* global figure page jestPlaywright */
const { toMatchImageSnapshot } = require('jest-image-snapshot');
const fs = require('fs');
const { getExamples } = require('./getExampl... |
// CARD LIST
var tiles = [
'fa-diamond',
'fa-anchor',
'fa-bolt',
'fa-cube',
'fa-paper-plane-o',
'fa-leaf',
'fa-bicycle',
'fa-bomb',
];
tiles = tiles.concat(tiles);
// ARRAY FOR CARD FLIPPED AND MATCHED
let openCards = [];
let matchedCards = [];
// Shuffle function from http://stackoverflow.com/a/2450... |
const constants = require('../common/constants');
const pomelo = require('pomelo');
const request = require('request');
const utility = require('utility');
const utils = require('../utils');
const xml2js = require('xml2js');
const _ = require('underscore');
let sdk = module.exports = {};
sdk.APPID = "";
sdk.APPSECRE... |
function autocomplete(inp, arr) {
/*the autocomplete function takes two arguments,
the text field element and an array of possible autocompleted values:*/
var currentFocus;
/* a list that stores all entered equities*/
var allEquities = {};
/*execute a function when someone writes in the text fie... |
// Modules to control application life and create native browser window
const {app, Menu, Tray, BrowserWindow, ipcMain, ipcRenderer} = require('electron');
const path = require('path');
const fs = require('fs');
const Store = require('./js/Store.js');
const CronJob = require('cron').CronJob;
const FormData = require('f... |
import React from "react"
import styled from "styled-components"
import ReactMarkdown from "react-markdown"
function WelcomeDetails(props) {
return (
<Wrapper style={!props.style ? null : props.style}>
<div id={!props.id ? null : props.id} className="whatwedo_consulting">
<div className="heading">... |
/* global moment */
/**
* @external CommentItem
*/
var utils = require( './utils.js' );
/**
* A thread item, either a heading or a comment
*
* @class ThreadItem
* @constructor
* @param {string} type `heading` or `comment`
* @param {number} level Indentation level
* @param {Object} range Object describing the... |
import Area from "./Area.vue";
import Container from "./Container.vue";
export default (layout, containerProps) => ({
name: "Layout",
inject: ["areas"],
data() {
return {
layout
}
},
computed: {
containers() {
return getNestedContainers(this.layout);
},
areas() {
return ... |
const express = require('express');
const router = express.Router();
// Item Model
const PlanCapteur = require('../../models/PlanCapteur');
const Capteur = require('../../models/Actionneur');
const Parcelle = require('../../models/Parcelle');
const Admin = require('../../models/Admin');
// @route GET api/mesures
/... |
/**
* 服务端的日志封装
* 提供统一日志入口,满足统一日志格式要求
* how to use ?
* const logger = require('/path/to/mylogger').Logger;
*
* Created by tanxiangyuan on 2016/12/20.
*/
const winston = require('winston');
const path = require('path');
const moment = require('moment');
const localIp = require('ip');
const fs = require('fs-extra... |
/*
* Copyright 2019 VMware, all rights reserved.
*/
const OrdersProxy = artifacts.require("OrdersProxy");
const Orders = artifacts.require("OrdersV1");
const Order = artifacts.require("OrderV1");
const Document = artifacts.require("Document");
contract("Order Test", async accounts => {
let orders, order, orderAdd... |
'use strict';
var _ = require('lodash');
var assert = require('chai').assert;
var visualizations = require('../app/front/scripts/services/visualizations');
var data = require('./data');
var sourceParams = {
measures: ['Depenses_realisees.sum'],
groups: ['date_2.Annee'],
series: ['economic_classification_3.Arti... |
var tape = require('tape'),
weblas = require('../index'),
loader = require('arrayloader'); // browserify aware file loader (xhr in browser)
weblas.test = require('../lib/test');
var RTOL = 1e-05,
ATOL = 1e-12;
var dataDirectory = 'test/data/slokn/',
testFile = 'small.json';
var matrixFiles = ['a.f32', 'out.f3... |
/*
* Copyright (C) 2017-2019 Dremio Corporation
*
* 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 l... |
"use strict";
class Counter {
static $getCounter (board, state) {
const $wrpPanel = $(`<div class="w-100 h-100 dm-cnt__root dm__panel-bg dm__data-anchor"/>`) // root class used to identify for saving
.data("getState", () => counters.getSaveableState());
const counters = new CounterRoot(board, $wrpPanel);
cou... |
import { Row, Col } from 'react-grid-system';
function CGU() {
return (
<div className="app__container">
<Row>
<Col>
<h1 className="title--noMarginTop">
Conditions générales d'utilisation
</h1>
... |
/*
AdScriptor
Copyright (c) 2016 crealytics GmbH All Rights Reserved.
See LICENSE.md for License Information.
*/
/*
Contains some Functions to create and edit the internalStartup.js File contained in every Gist.
*/
// The Startup Code Template. Replace $DEPENDENCIES with the Dependencies and $SCRIPTS w... |
import BigNumber from "bignumber.js";
import { Component } from "react"
import { Alert } from "react-native";
import { connect } from 'react-redux'
import { traditionalCryptoSend, TraditionalCryptoSendFee } from "../../../../actions/actionDispatchers";
import { createAlert } from "../../../../actions/actions/alert/disp... |
var mkdirp = require('mkdirp')
var path = require('path')
var os = require('os')
var untildify = require('untildify')
var express = require('express')
var vhost = require('vhost')
var http = require('http')
var greenlockExpress = require('greenlock-express')
var Multidat = require('multidat')
var toiletdb = require('to... |
/**
* TODO This Lambda function is subscribed to SNS topics, EventBridge buses, and
* other message services. It expects that any message data it receives from
* those sources is a fully-formed Slack message payload, and relays that
* payload to Slack via the chat.postMessage Web API method [1].
*
* 1. https://ap... |
/**
* Find short path.
*
*/
function FloidAlgorithm(graph, app)
{
BaseAlgorithmEx.apply(this, arguments);
this.selectedObjects = {};
this.matrix = [];
this.updateMessage(false);
this.edgesCopy = [];
}
// inheritance.
FloidAlgorithm.prototype = Object.create(BaseAlgorithmEx.prototype);
// First... |
var CUSTOMER_PHONE_NUMBER = 0;
var CUSTOMER_NAME = 1;
var AMOUNT_DUE = 2;
var PAYMENT_DUE_DATE = 3;
var PAYMENT_LINK = 4; // A URL where the payment can be made
var PAYMENT_INFO = 5; // Details of the service or product
var MESSAGE_STATUS = 6; // Whether the SMS was sent or not
//Set your SignalWire cre... |
var MAX_OVERALL_MESSAGES = 100;
var MAX_STORED_INPUTS = 10;
var INPUT_VISIBLE = false;
var STORED_INPUT_COUNT = 0;
var example = {
size: 0, // -5 to 5
maxmessages: 10, // 5 to 50
font: "Roboto", // String, has fallback if invalid
};
var chat;
var lastInputs = [];
lastInputs.length = MAX_STORED_INPUTS;
func... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.expectProjectAndDepPlasmicJson = exports.expectProject1PlasmicJson = exports.project1Config = ex... |
jQuery.noConflict();
(function ($) {
$ = jQuery;
$(window).on('load', function () {});
$(document).ready(function () {
__has();
});
})(jQuery());
let __has = function (__has) {
const $ = jQuery;
const data = {
init: function () {
this.client_slider();
... |
#!/usr/bin/env node
const glob = require("glob");
const fs = require("fs");
const axios = require("axios");
const { ManagementClient } = require("@kentico/kontent-management");
const { DeliveryClient } = require("@kentico/kontent-delivery");
require('dotenv').config()
const getAssetDataDataFromUrl = async ... |
//Users
export const USER_LOADING = "USER_LOADING";
export const USER_LOADED = "USER_LOADED";
export const AUTH_ERROR = "AUTH_ERROR";
export const LOGIN_SUCCESS = "LOGIN_SUCCESS";
export const LOGIN_FAIL = "LOGIN_FAIL";
export const LOGOUT_SUCCESS = "LOGOUT_SUCCESS";
export const REGISTER_SUCCESS = "REGISTER_SUCCESS";
... |
/* Tabular Rasa JS Table
** Copyright (c) 2018-2019 <NAME>
**
** 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 React, { useState, useEffect } from 'react';
import { useHistory, useLocation } from 'react-router-dom';
import {
// CBadge,
CCard,
CCardBody,
CCardHeader,
CCol,
// CDataTable,
CRow,
// CPagination,
CLink,
CTabs,
CContainer,
CFormGroup,
CLabel,
CInputGroup,
CInput,
CForm,
CInputFile
} from '@cor... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _rclient = require("../runebase/rclient");
var _models = _interopRequireDefault(require("../models"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
fu... |
import {create, isoFormat, namespaces} from "d3";
import {nonempty} from "../defined.js";
import {formatNumber} from "../format.js";
import {indexOf, identity, string, maybeNumberChannel, maybeTuple, numberChannel, isNumeric, isTemporal, keyword, maybeFrameAnchor, isTextual} from "../options.js";
import {Mark} from "..... |
// Copyright 2019 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 writin... |
'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
var binaryxml_1 = require("./binaryxml");
// const NS_ANDROID = 'http://schemas.android.com/apk/res/android'
var INTENT_MAIN = 'android.intent.action.MAIN';
var CATEGORY_LAUNCHER = 'android.intent.category.LAUNCHER';
var ManifestParser = /** @... |
"use strict";
/***************************************************************************************************************************
* @license *
* Copyright 2017 Coinbase, Inc. ... |
require("dotenv").config();
const express = require("express");
const moment = require('moment')
const plaid = require("plaid");
const db = require("./plaidModel.js");
const datab = require("../data/db-config.js");
const router = express.Router();
var client = new plaid.Client(
process.env.PLAID_CLIENT_ID,
process... |
import { test } from '@agoric/swingset-vat/tools/prepare-test-env-ava.js';
import path from 'path';
import { E } from '@agoric/eventual-send';
import {
makeNetworkProtocol,
makeLoopbackProtocolHandler,
} from '@agoric/swingset-vat/src/vats/network/index.js';
import bundleSource from '@agoric/bundle-source';
impor... |
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.p... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _classCallCheck3... |
import React, { useState, useEffect } from 'react';
import { makeStyles, withStyles } from '@material-ui/core/styles';
import Button from '@material-ui/core/Button';
import Typography from '@material-ui/core/Typography';
import Select from '@material-ui/core/Select';
import MenuItem from '@material-ui/core/MenuItem';
i... |
const Currency = require('@barchart/common-js/lang/Currency'),
Decimal = require('@barchart/common-js/lang/Decimal');
const InstrumentType = require('./../../../lib/data/InstrumentType'),
PositionSummaryFrame = require('./../../../lib/data/PositionSummaryFrame');
const PositionContainer = require('./../../../lib/pr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.