text stringlengths 3.22k 29.5k |
|---|
const fs = require("fs");
const path = require("path");
const notify = require("gulp-notify");
const { isFile, isDirectory } = require("./is");
const { taskTarget, reportError, args } = require("../utils");
const appConfig = require("../config");
const root = path.resolve(__dirname, "..");
const root2 = path.resolve(_... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
import $ from '$qui/lib/jquery.module.js'
import {gettext} from '$qui/base/i18n.js'
import {CheckField} from '$qui/forms/common-fields/common-fields.js'
import {ColorComboField} from '$qui/forms/common-fields/common-fields.js'
import {NumericField} from '$qui/forms/common-fields/common-fields.js'
impo... |
import React from 'react';
import TextField from 'material-ui/TextField';
import RaisedButton from 'material-ui/RaisedButton';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import ThemeDefault from '../../../theme-default';
import {Grid, Row, Col} from 'react-bootstrap';
import CircularProgress f... |
/**
* Imports.
*/
import React from 'react';
import async from 'async';
import connectToStores from 'fluxible-addons-react/connectToStores';
import {FormattedMessage} from 'react-intl';
import {Link} from 'react-router';
import {slugify} from '../../../utils/strings';
// Flux
import CollectionsStore from '../../../... |
// [NCMB] APIキー設定
var appKey = "<KEY>";
var clientKey = "<KEY>";
// [NCMB] SDKの初期化
var ncmb = new NCMB(appKey, clientKey);
var flag = false;
var id_flag = false;
// ログイン中の会員
var currentLoginUser;
/********** ID / PW 認証 **********/
// 【ID / PW 認証】「登録する」ボタン押下時の処理
function onIDRegisterBtn() {
// 入力フォ... |
const reply = require('axios');
const filesys = require('fs');
const rdline = require('readline');
function compareReply(message, res, sendMessage) {
reply.post(sendMessage, {
chat_id: message.chat.id,
text: `Please enter and send two enrollment numbers separated by a space`,
reply_markup: ... |
$(function() {
// 初步渲染
var render = function(callback) {
getProductData({
page: currPage,
pageSize: 2
}, function(data) {
$("tbody").html(template('productList', data));
setPaginator(data.page, Math.ceil(data.total / data.size), render);
});
callback && callback();
};
render();
// 上下架
$("tbod... |
const nativeImage = require('electron').nativeImage;
const remote = require('@electron/remote');
const { Menu, MenuItem } = remote;
const fs = window.fs;
function getSpriteCell(index) {
var column = Math.floor(index % 10);
var row = Math.floor(index / 10);
var x = -69 * column - 1;
var y = -57 * row - ... |
'use strict';
const util = require('util');
const fs = require('fs');
const path = require('path');
const ssh2 = require('ssh2');
const jszip = require('jszip');
const request = require('request');
/**
* Directories to fetch MNP from.
*/
const REMOTE_MNP_DIR = '/numlex/Port_All_Full';
const REMOTE_... |
// by: [jm3](http://jm3.github.io) ([@jm3](http://twitter.com/jm3) on Twitter)
// [View a screenshot](http://git.io/mj8ZIg) to see what this code does.
// [Fork the code](https://github.com/jm3/dotfiles/blob/master/.js/en.wikipedia.org.js)
// [View the docs](http://jm3.github.io/wikipedia-watchlist/)
// # Setup
//... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var theme_core_1 = require("@lugia/theme-core");
var react_1 = tslib_1.__importStar(require("react"));
var object_utils_1 = require("@lugia/object-utils");
var styled_components_1 = require("styled-components");... |
import { parseSvgPoints, parseXml } from "./utilities.js";
import { CanvasRenderer } from "./svg-path/canvas-renderer.js";
import { InstructionSimplifier } from "./svg-path/instruction-simplifier.js";
import { SvgPathParser } from "./svg-path/svg-path-parser.js";
function getAsClipPath(element) {
return {
id... |
import React, { Fragment, useEffect, useState, useContext } from "react";
import { Tabs, Tab } from "react-bootstrap";
import Select from "react-select";
import * as CONSTANTS from "constants/Constants";
import { GlobalContext } from "context";
import { useAuth0 } from "components/common/ReactAuth0SPA";
import {
U... |
// Main config!
let averagemspt = 0;
let globalMultiplier = 1;
const presets = [{ // index 0
name: "Slow",
velocity: 0.1,
gradient: 2,
lifespan: 100,
lifespanBase: 50,
lifeOpacity: 0.25,
opacityMultiplier: 1,
size: 3,
rainbow: true,
part... |
process.env["NTBA_FIX_319"] = 1;
const TelegramBot = require('node-telegram-bot-api')
const token = '<KEY>'
const axios = require('axios')
const needle = require('needle')
const bot = new TelegramBot(token, {
polling: true
});
let events = [];
let selectedEvent = '';
let ticketOptions = '';
let totalAmount = '';... |
// #######################
// ####### 8 Types #######
// #######################
import {
$$ArgumentCount,
$$BoundFunctionCreate,
$$CreateObject,
$$CreateInternalObject,
$$CurrentRealm,
$$Get,
$$GetIntrinsic,
$$HasArgument,
$$Set
} from '@@internals';
import {
MISSING
} from '@@internal-symbols';... |
import React from 'react';
import PropTypes from 'prop-types';
import { getIn } from 'formik';
import { compose } from 'redux';
import { connect } from 'react-redux';
import Grid from '@material-ui/core/Grid';
import MuiButton from 'components/MuiButton';
import FormData from 'components/FormikUI/FormData';
import Conf... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
function Caption3() {
// JAVASCRIPT INCLUDE FILE - (c) <NAME> >= 2006-02-08
// http://www.merlyn.demon.co.uk/include3.js
// Routines may be copied, but URL must not be linked to.
// Needs, for LZ at least, include1.js
}
var Inc3T=0
// Gregorian Date/Time Utili... |
"use strict";
/*
* Copyright (C) 2017 TypeFox and others.
*
* 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
*/
var __decorate = (this && this.__dec... |
/**
* Copyright 2016 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 2013-2021, University of Colorado Boulder
/**
* Scenery node for the track, which can be translated by dragging the track, or manipulated by dragging its control points.
* If the track's length is changed (by deleting a control point or linking two tracks together) a new TrackNode is created.
* Keep tr... |
import _regeneratorRuntime from 'babel-runtime/regenerator';
import $ from 'jquery';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
return typeof obj;
} : function (obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbo... |
var glob = require("glob");
var path = require("path");
var fs = require("fs");
var YAML = require("js-yaml");
var em = require("datamodeljs");
module.exports = (function () {
var dm = em.dm("yaml");
dm.define("YAML", {
id: "@string",
package: "string",
desc: "string",
interfa... |
import { describe, expect, it, jest } from "@jest/globals";
import moment from "moment";
import _ from "lodash";
import {
computeEventDays,
computePopularEvents,
computeIdToEventMap,
processRawEvents,
computeOngoingEvents,
computeFeaturedEvents,
} from "../eventUtils";
import {
fridayTestEvents,
saturda... |
import React, { useState, useRef, useEffect } from 'react';
import { StyleSheet, Text, View, TouchableOpacity, Button, FlatList, Alert, Modal } from 'react-native';
import { addUserPendingMatch, addSuccessfulMatch, deleteMyPending } from '../actions';
import DateTimePicker from '@react-native-community/datetimepicker';... |
"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 ... |
/*
* The MIT License
*
* Copyright (c) 2014- High-Mobility GmbH (https://high-mobility.com)
*
* 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 withou... |
/**
* @name- BadleeCard.js
*
* @chill- Suffering is only one face of life. Life has another face, the face of wonder. If we can see that face of life, we will have happiness, peace and joy. When our hearts are unfettered, we can make direct contact with the wonders of life. - <NAME>
*
*
* @description- Badlee ... |
const readline = require('readline')
const {
prettifyJson,
stylizeString,
} = require('../deps')
const { ask_question: raw_ask_question } = require('./ask_question')
/////////////////////////////////////////////////
const ui = require('./state')
const { play, equip_item, sell_item, does_item_exist_at_coordinate, re... |
"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... |
function hexToRgb(hexCode) {
var patt = /^#([\da-fA-F]{2})([\da-fA-F]{2})([\da-fA-F]{2})$/;
var matches = patt.exec(hexCode);
var rgb = "rgb(" + parseInt(matches[1], 16) + "," + parseInt(matches[2], 16) + "," + parseInt(matches[3], 16) + ")";
return rgb;
}
function hexToRgba(hexCode, opacity) {
va... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.nodeFromDep = nodeFromDep;
exports.nodeFromAssetGroup = nodeFromAssetGroup;
exports.nodeFromAsset = nodeFromAsset;
exports.nodeFromEntrySpecifier = nodeFromEntrySpecifier;
exports.nodeFromEntryFile = nodeFromEntryFile;
exports.defau... |
/*
JS for the module browse page
*/
const LATEST_VERSION = "1.17";
function headerSaysWindowLoaded(){
$.ajax({url:"images/slideshow/slides.json"}).done(function(data) {
for (const slide of data.slides) {
$(".slideshow > .trackContainer").append(`<div data-bg="images/slideshow/${slide.background_image}" cl... |
import React, { Component } from 'react';
import AceEditor from 'react-ace';
import brace from 'brace'; // eslint-disable-line no-unused-vars
import 'brace/mode/javascript';
import 'brace/theme/tomorrow';
import Alert from 'react-s-alert';
import '../style/AdminPanel.css';
import Header from '../Header';
import Card fr... |
const supportsP3 = self.CSS && CSS.supports("color", "color(display-p3 0 1 0)");
const sRGB_space = {
from_lch: OKLCH_to_sRGB,
to_lch: sRGB_to_OKLCH,
}
const P3_space = {
from_lch: OKLCH_to_P3,
to_lch: P3_to_OKLCH,
}
const r2020_space = {
from_lch: OKLCH_to_r2020,
to_lch: r2020_to_OKLCH,
}
function alpha_to_s... |
/* node-module-concat
Node.js module concatenation library
This library exposes a single function that concatenates Node.js modules
within a project. This can be used to obfuscate an entire project into a
single file. It can also be used to write client-side JavaScript code where
each file is written just like ... |
/**
* SLS
* @description 给小程序page 增加Behavior 功能, 初始化增加全局配置方法,例如可以全局配置onShareAppMessage。在小程序原生开发,sdk2.4 环境下测试通过
* @description 给page 使用的Behavior,会触发对应的onLoad 和onUnLoad 方法
* @description 给page component 增加 $on $emit $getCurrentPageComponentsByName,方便跨组件调用
* FIXME: 使用component 构建页面将会出错
* @author: <EMAIL>
* @date... |
'use strict';
const appConf = require("./configuration")
const electron = require('electron')
const fs = require('fs')
const shell = electron.shell;
const app = electron.app;
const ipcMain = electron.ipcMain;
const BrowserWindow = electron.BrowserWindow;
const Notification = electron.Notification;
const Menu = electr... |
importScripts( 'scheme.js', 'flood.js', 'csg.js', 'flood_csg.js');
// Routing
var that = this;
onmessage = function (m) {
if (!checkCommandData(m.data)) return;
commands.push(m.data);
that[ "on_" + m.data.kind ](m.data);
};
checkCommandData = function(data){
if (!data.kind) {
fail({kind: "noCommand", msg: ... |
/**
* This program does a difference compare of a newly created Bible with a previous copy.
* And it creates an Identity record inside the Bible to indicate if it is the same or different.
*/
var versionDiff = function(versionCode) {
var filename = versionCode + '.db';
openDatabase(CURRENT_PATH, filename, function(cu... |
import RegisterFishpond from './RegisterFishpond';
import costForm from './costForm';
//CONFIGURACIÓN DE DAYJS
const dayjs = require('dayjs');
require('dayjs/locale/es-do');
//Se adiciona el pluging para tiempo relativo
let relativeTime = require('dayjs/plugin/relativeTime');
dayjs.extend(relativeTime);
let isSameOr... |
/* eslint-disable no-console */
var cluster = require('cluster');
import FS from 'fs';
import OCLE from 'openchemlib-extended'
const stat = require('ml-stat/array');
const sdfParser = require('sdf-parser');
const maxSphereSize = 5;
const sdf = fs.readFileSync(`${__dirname}/nmrshiftdb2withsignals.sd`, 'utf8');
const... |
/* Snake */
class Snake {
constructor() {
this.position = new Point(6, 1);
this.length = 5;
this.dead = false;
this.direction = Directions.right;
this.tail = [
new Tail(1, 1, this.direction, false),
new Tail(2, 1, this.direction, false),
new Tail(3, 1, this.direction, false),
new Tail(4, 1, thi... |
// static configue
const log = console.log;
// FE에서 script(src="/socket.io/socket.io.js") 를 이용해서 가져온 socket.js를 통해
// socket io init -> 생성자 + connection
const socket = io();
// -------------------- static dom selector area -------------------- //
const myFace = document.getElementById("myFace"); // video t... |
/*jshint globalstrict:false, strict:false, maxlen: 500 */
/*global assertEqual, assertFalse, assertTrue, assertNotEqual, AQL_EXPLAIN, AQL_EXECUTE */
////////////////////////////////////////////////////////////////////////////////
/// @brief tests for optimizer rules
///
/// @file
///
/// DISCLAIMER
///
/// Copyright 20... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = require("react");
var Utilities_1 = require("../../Utilities");
var Icon_1 = require("../../Icon");
var ContextualMenu_1 = require("../../ContextualMenu");
var BaseButton_classNames_1 = require("./Ba... |
const global_oAuth = new oAuth()
const global_dmProjects = new DMProjects()
const global_msSet = new MSSet()
const global_clashRawView= new ClashRawView()
const global_clashBreakdownView= new ClashBreakdownView()
const global_clashMatrixView= new ClashMatrixView()
const global_ClashPDF = new ClashPDF()
const glob... |
import React, { useEffect, useState } from 'react';
import TokenIcon from 'components/TokenIcon';
import Modal from 'react-bootstrap/Modal';
import styled from 'styled-components';
import BatchCall from 'web3-batch-call';
import Skeleton from '@material-ui/lab/Skeleton';
import { useContract } from 'containers/DrizzleP... |
/**
* Created by xiucheren on 16/11/30.
*/
import React from 'react';
import {
Container,
List
} from 'amazeui-touch';
import{
hashHistory
} from 'react-router';
import SearchBar from '../Tools/SearchBar'
import ReactIScroll from 'reactjs-iscroll';
import iScroll from 'iscroll/build/iscroll-probe';
import Merch... |
let Vorld = require('../../../vorld/core/vorld');
let VorldUtils = require('../../../vorld/core/utils');
module.exports = (function(){
let exports = {};
let forVolume = VorldUtils.forVolume;
let createSpiralStair = (vorld, sxMin, sxMax, syMin, syMax, szMin, szMax, x, y, z, direction, halfBlock) => {
// x, y, z ... |
/*
| Defines typed immutable classes.
|
| Runs the generator from node.js for the module
| that defines a tim class.
*/
'use strict';
if( !NODE ) throw new Error( );
const fs = require( 'fs' );
const vm = require( 'vm' );
let tim_path;
let timspec_provisional;
let timspec_timspec;
const readOptions = Object.freez... |
// The MIT License (MIT)
// hal.js | Copyright (c) 2019 IGN
// 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, ... |
// <NAME>
let syncClient;
let streams = [];
const keys = [
"w",
"arrowup",
"a",
"arrowleft",
"s",
"arrowright",
"d",
"arrowdown",
];
const directionFrames = {
LEFT: 24,
RIGHT: 8,
UP: 16,
DOWN: 0,
};
let keydownhandler;
let keyuphandler;
let lastUpdate = 0;
// Setup for various methods of positi... |
import React, {useState, useEffect} from 'react'
import styled from "styled-components"
import {useWeb3React} from "@web3-react/core";
import {ethers} from "ethers"
//addresses etc
import {ERC20Abi, MasterChefABI} from "../../../config/abis" //will need forapprove button
import { addresses } from "../../../config/add... |
/**
* This module contains helper puppeteer utilities.
*
* IMPORTANT: because of Babel we can't import any variable that's used in page.evaluate(() => { ... });
* for example we can't import underscore since "_" is used in injectUnderscoreScript
* otherwise Babel will replace that with "_unde... |
const puppeteer = require('puppeteer');
const { TimeoutError } = require('puppeteer/Errors');
import { getUrlFromProjectId } from '../cmdline.js';
import { wait4selector, click, closeModalWindow, findElementByText } from '../utils';
import * as ST from '../selectors';
const baseURL = process.env.url || 'http://local... |
import 'bootstrap';
import './main.scss';
import log from './data/log.json';
import {Business, BusinessEvent, upgradeList} from './business.js';
import {makeItemsDraggable, formatTime, floater, pluralize, humanizedMap, Inventory, itemList, Item, makeSlotsDroppable, getBusiness, save} from './toolset.js';
import {startu... |
const { ethers, bn, ethersMulticall } = require('../lib');
const { ethereum } = require('./ethereum');
const { CoingeckoProvider } = require('./coingecko');
const { toFloat } = require('./toFloat');
const { tokens } = require('./tokens');
const AutomateActions = require('./automate/actions');
const stakingABI = requir... |
// Copyright (c) 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, merge... |
import React from 'react';
import { connect } from 'react-redux';
import axios from 'axios';
import { ToastContainer, ToastStore } from 'react-toasts';
import PagePermissions from "./PagePermissions";
import {
Button,
Card,
CardBody,
CardFooter,
CardHeader,
Col,
Form,
FormGroup,
Input,
Label,
Row
... |
// 本程式主要參考並修改自 https://github.com/havivha/Nand2Tetris
var fs = require("fs");
var c = console;
var file = process.argv[2];
// SP:R0, LCL:R1, ARG:R2, THIS:R3, THAT:R4, TEMP:R5-12, General Purpose:R13..15
/*
static: mapped on RAM[16 ... 255];
each segment reference static i appearing in a
VM file named f is compiled ... |
/* eslint-disable no-unused-vars */
import { useEffect, useMemo, useRef, useState } from "react";
import { Navigate, useParams } from "react-router-dom";
import { Button, Col, Container, Form, Row } from "react-bootstrap";
import { useMutation, useQuery } from "@apollo/client";
import dayjs from "dayjs";
import { conve... |
let EnumsService = function () {
let enums = {
sex: {
0: 'Male',
1: 'Female',
2: 'Other',
},
volunteer_level: {
0: 'Unverified',
1: 'Verified',
2: 'Trained',
3: 'hasObserved',
4: 'beenObserved'
},
days: {
0: 'Monday',
1: 'Tuesday',
... |
'use strict';
/**
* Controller that creates an order from the current basket. It's a pure processing controller and does
* no page rendering. The controller is used by checkout and is called upon the triggered place order action.
* It contains the actual logic to authorize the payment and create the order. The cont... |
import { deepMerge } from './lib/util';
// Create an empty plugin object
const plugin = {};
// Set the plugin defaults
const defaults = {
// Accordion parts
accordionClass: 'accordion',
headerClass: 'accordion__title',
contentClass: 'accordion__content',
panelClass: 'accordion__panel',
// Toggle Button
... |
/* ------------------------------------------------------------------------------
* a Genda sistema de gerenciamento de tempo
* © 2020 <NAME>
*
* Version: 1.0.0
* update: Dez 3, 2020
* ---------------------------------------------------------------------------- */
var crud;
notificar('OLÁ, SEJA MUITO BEM VINDO... |
const flags = {
DISCORD_EMPLOYEE: {
description: 'User is a Discord employee.',
number: 1n << 0n
},
DISCORD_PARTNER: {
description: 'User is a Discord partner.',
number: 1n << 1n
},
HYPESQUAD_EVENTS: {
description: 'User is a HypeSquad Events member.',
... |
import React from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { Switch, Route } from 'react-router-dom';
import Header from '../components/Header';
import Icon from '../components/Icon';
import DropdownField from '../components/Fields/DropdownField';
impor... |
var codeMirrorEnabled = [];
var langTabSelected = 'js';
var featureSelected = 'storage';
var hideAllCode = function() {
var $div_blocks = $('#div-storage-js, #div-storage-nodejs, #div-storage-java, #div-storage-dotnet, #div-storage-curl, #div-search-js, #div-search-nodejs, #div-search-java, #div-search-dotnet, #di... |
#!/usr/bin/env node
'use strict';
// JKPug discord bot
// core packages
// third party packages
const discord = require( 'discord.io' );
const jkutils = require( 'jkutils' );
const colors = require( 'colors' );
// local modules
const jkpug = require( './jkpug' );
const utils = require( './utils' );
// local confi... |
let root = null;
const localforage = require('localforage');
const { dialog } = require('electron').remote;
/*
* Base daily goal item.
*/
class DailyGoalNode {
constructor() {
this.children = [];
this.wrapper = $('<div class="dg-lists"></div>');
}
addChild(dailyGoalNode) {
// Bind child logical... |
'use strict';
var XmlNames = require('./../defs/xml-names'),
XmlUtils = require('./../utils/xml-utils'),
Consts = require('../defs/consts'),
KdbxCustomData = require('./kdbx-custom-data'),
KdbxTimes = require('./kdbx-times'),
KdbxUuid = require('./kdbx-uuid'),
KdbxEntry = require('./kdbx-entry'... |
const BaseView = require('../BaseView');
const MapMarker = require('../../worldMap/MapMarker');
const MapLine = require('../../worldMap/MapLine');
const MapPolygon = require('../../worldMap/MapPolygon');
const MapObject = require('../../worldMap/MapObject');
const PositionDialog = require('../dialogs/PositionDialog');
... |
// Variables necesarias
var empleados;
var empleadosE;
var evaluador = {
'subindice' : 0,
'codigo' : 0
};
var total = 0;
var listaEvaluados = [];
function funcionPrincipal()
{
// Obtiene todos los empleados que se quieren evaluar
obtenerEmpleados();
// Evento del form
$("#seleccionEvaluados").... |
import React, {
Component
} from 'react'
import {
StyleSheet,
Text,
View,
Alert,
Animated,
ScrollView
} from 'react-native'
import styleUtil from "../../common/styleUtil";
import UserAbout from "./UserAbout";
import ProfileBackground from "./profile/ProfileBackground";
import ProfileHeader from "./profile/Pro... |
import React from 'react';
import { FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import { Flex, Box } from '@rebass/grid';
import memoizeOne from 'memoize-one';
import { orderBy } from 'lodash';
import { CollectiveType } from '../../../lib/constants/collectives';
import { TierTypes } from ... |
'use strict'
class WaveParameters {
constructor() {
this.sizem = 50
this.periodSeconds = 1
this.dt = 0.02
this.offscreenDamping = 0.99
this.offscreenBuffer = 200
this.amplitude = 10
this.maxSpeedRuns = 10
}
}
startups.push(() => {
const canvas = document.getElementById('wave-canvas')
const ctx = ca... |
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
const playbookRunStartCommand = '/playbook run';
// function startPlaybookRun(playbookRunName) {
Cypress.Commands.add('startPlaybookRun', (playbookName, playbookRunName) => {
cy.get('#interactiveDialogM... |
const makeDebug = require('debug');
const getItems = require('./get-items');
const replaceItems = require('./replace-items');
const debug = makeDebug('fgraphql');
const graphqlActions = ['Query', 'Mutation', 'Subscription'];
module.exports = function fgraphql (options1 = {}) {
debug('init call');
const { parse, ... |
#!/usr/bin/env node
const co = require("co");
const prompt = require("co-prompt");
const exec = require("child_process").exec;
const spawn = require("child_process").spawn;
const fs = require('fs');
const srcDir = "../target";
let replaceFile = (name, path, regex, replacement)=>{
path = name + path;
return new Promi... |
import React from 'react';
import Cookies from 'js-cookie';
import { connect } from 'react-redux';
import Promise from 'bluebird';
import { Helmet } from 'react-helmet';
import queryString from 'query-string';
import {
BaseComponent,
CodeEditor,
Header,
Navigator,
ResizableContainer,
TabContainer,
ToastCo... |
"use strict";
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
... |
"use strict";
// Global state
// ============
const global = {
pcSend: null,
pcRecv: null,
statsInterval: null,
// Memory used to calculate averages and rates.
printWebRtcStats: { bytesSent: 0 },
// Workaround for Chrome bug #740501: skip nested negotiations.
// - https://bugs.chromium.org/p/chromium/... |
'use strict';
var assert = require('assert');
var utils = require('./utils');
var ethers = utils.getEthers(__filename);
function skip(name) {
var match = name.match(/^random-([0-9]+)$/);
if (match && parseInt(match[1]) > 512) {
return true;
}
return false;
}
describe('Test HD Node Derivation... |
'use strict';
var regPathInstructions = /([MmLlHhVvCcSsQqTtAaZz])\s*/,
regPathData = /[\-+]?\d*\.?\d+([eE][\-+]?\d+)?/g,
transform2js = require('./_transforms').transform2js,
transformsMultiply = require('./_transforms').transformsMultiply,
cleanupOutData = require('../lib/svgo/tools').cleanupOutData;
... |
if (typeof module !== 'undefined') {
var types = require('./types');
var readline = require('./node_readline');
var reader = require('./reader');
var printer = require('./printer');
var Env = require('./env').Env;
var core = require('./core');
var interop = require('./interop');
}
... |
const Afip = require('@afipsdk/afip.js');
const activeWindow = electron.getCurrentWindow();
const tempPath = electron.app.getPath("temp");
const invoiceType = 11 // Factura C
let afip, lastInvoiceNumber, lastInvoiceDate;
async function initAfip() {
afip = await getAfipUser();
if (!afip) {
... |
function toV1Endpoint(endpoint) {
if (endpoint === undefined) {
return undefined;
}
const res = {
serviceName: endpoint.serviceName || '', // undefined is not allowed in v1
};
if (endpoint.ipv4) {
res.ipv4 = endpoint.ipv4;
}
if (endpoint.ipv6) {
res.ipv6 = endpoint.ipv6;
}
if (endpoint... |
/**
* Module dependencies.
*/
var formatGherkin = require('./format_gherkin');
var parseGherkin = require('./parse_gherkin');
var Table = require('../table');
var utils = require('../utils');
var _ = require('underscore')._;
/**
* Gherkin Runner.
*/
var timeout = __peanut__.options.timeout;
var features = {};
va... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ReduxToastr = undefined;
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) {... |
var child_process = require('child_process'),
//grep = spawn('grep', ['ssh']),
read_cmd_line_args,
cmd_line_args = {},
config = {},
exit_and_print_usage,
get_keys,
exit_and_print_usage,
validate_cmd_line_args,
exit_msg = '',
INDENT=" ",
list_method='',
list_method_confi... |
import React from 'react'
import './index.css'
import {POSTAPI} from '../../../https'
import Loader from 'react-loader-spinner'
import {back} from './mockData'
import LOGO from '../../../Media/Images/Logo.png'
class Identity extends React.Component{
constructor(props){
super(props)
this.state={
... |
var authors = (isbns = flattened_authors = filtered_authors = []),
isbn = (searched_author = "");
const spinner = document.getElementById("spinner");
async function searchAuthor() {
// Set searched_author variable to HTML search value
searched_author = document.getElementById("search").value;
// Reset all au... |
import React, { Component } from 'react';
import SelectRow from "../../components/Select/SelectRow"
import { Button, Form, FormControl } from "react-bootstrap";
import Header from "../common/Header";
import Footer from "../common/Footer";
import { Link, withRouter } from "react-router-dom";
import profile from "../.... |
////////////////////////////////////////////////////////////////////////////////
//
// Author: <NAME>
// Keywords: Main
// Filename: main.js
// Date: 1/14/2020
// Description: Main script dependant module to be included towards the end
// of the html file.
//
/////... |
import React from 'react';
import { Layout, Menu, Breadcrumb, Divider, Badge } from 'antd';
const { Header, Content, Footer, Icon } = Layout;
const SubMenu = Menu.SubMenu;
const MenuItemGroup = Menu.ItemGroup;
import { Row, Col, Carousel } from 'antd';
import * as FaIconPack from 'react-icons/lib/fa';
import {inject,ob... |
import { Trans } from "@lingui/macro";
import classNames from "classnames";
import isEqual from "lodash.isequal";
import PropTypes from "prop-types";
import React from "react";
import { Link } from "react-router";
import { Tooltip } from "reactjs-components";
import CheckboxTable from "#SRC/js/components/CheckboxTable... |
/**
* This file is part of the @iconify/tools package.
*
* (c) <NAME> <<EMAIL>>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
'use strict';
const fs = require('fs');
const cheerio = require('cheerio');
const SVG = require('../s... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.