text stringlengths 3.07k 16k |
|---|
'use strict';
const gulp = require('gulp');
const fs = require('fs');
const del = require('del');
const pkg = require('./package.json');
const ioPackage = require('./io-package.json');
const version = (pkg && pkg.version) ? pkg.version : ioPackage.common.version;
const cp = require('ch... |
/* SXI1211
Description: Edit for multi model simulation
Date: 5 Feb 2017
Adds tabs for multiple model simulations*/
var $alphaModeldata = '';
var $betaModeldata = '';
var $previousTab = '';
/*
SXI1211
06/29/2017: Changes in this function to delay the tabs function.
*/
if (getWindowType() != 'Charts') {
... |
import React from 'react';
import styled from 'styled-components';
import find from 'lodash/fp/find';
import Link from './Link';
import { H4 } from './Components';
import AppContext from './Context';
import { IfActiveEntity, Entity } from './Entity';
import clubs, { TokenImage } from './clubs';
import { DiscoverIcon }... |
import { Component, PropTypes } from 'react';
import r, { a, div, img, span } from 'r-dom';
import classNames from 'classnames';
import { t, fullLocaleCode, localizedString, localizedPricingUnit } from '../../../utils/i18n';
import { canUseDOM } from '../../../utils/featureDetection';
import { tint, avatarColor } from ... |
/* global gapi, google */
import {
ALTI_CALLBACK,
ALTI_KEY
} from './config'
import {
deleteCookie,
getCookie,
randomState,
setCookie,
tokenStateFromHash
} from './helper'
let ALTI_TOKEN = ''
let selectedFiles = []
function onLogout () {
deleteCookie('token')
window.location.href = ALTI_CALLBACK
}
... |
import { subtract, length, normalize, cross } from './vec3';
//contains code from THREE.js
export function applyMatrix(out, v, e) {
const x = v[0], y = v[1], z = v[2];
// const e = in;
const w = 1 / (e[ 3 ] * x + e[ 7 ] * y + e[ 11 ] * z + e[ 15 ]);
out[0] = (e[ 0 ] * x + e[ 4 ] * y + e[ 8 ] * z + e[... |
'use strict';
// Include depenencies (A-Z)
const chalk = require('chalk');
const del = require('del');
const exec = require('child_process').exec;
const fs = require('fs');
const http = require('http');
const path = require('path');
const readline = require('readline');
const url = require('url');
// Shared configura... |
import { nanoid } from 'nanoid';
// HEAD DATA
export const headData = {
title: '<NAME> | Developer', // e.g: 'Name | Developer'
lang: 'en', // e.g: en, es, fr, jp
description: 'Welcome to my portfolio', // e.g: Welcome to my website
};
// HERO DATA
export const heroData = {
title: 'Hi, my name is',
name: 'P... |
import React, { Component, useRef, useState, useEffect } from "react";
import {
Container,
Grid,
InputLabel,
MenuItem,
Select,
TextField,
} from "@material-ui/core";
import { Carousel, CarouselItem, Button, ThemeProvider } from "react-bootstrap";
import request from "../../../../connects/axios_config";
impo... |
$(() => sweet = sweet.mixin({ heightAuto: false }));
const audioPool = {};
const audioFilter = fn => Object.keys(audioPool).filter(fn);
function showHelp () {
sweet({
html: [
'<ol style="list-style: none; padding: 0;">',
'<li>Audio - Changes player Global/Voice/Music sound volume</li>',
'<li>V... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const libs = require("./libs");
const github = require("./github");
const gitlab = require("./gitlab");
const config_1 = require("./config");
const locale_1 = require("./locale");
const locale = locale_1.getLocale(config_1.localeName);
/**
* ... |
/**
* MyAlertScreen
* This screen shows a list of users alerts.
* The alerts are assigned to the device uuid
* The device uuid changes after a reinstall.... that as a note
* Show Alerts
* Delete Alerts
*/
import React, {Component} from 'react'
import {
StyleSheet,
Text,
View,
ListView,
TouchableOpacity,
Pl... |
import React, {Component} from 'react';
import { Container, Form, Col, Button, Row } from 'react-bootstrap';
import { PlusSquare, Save, Trash } from 'react-bootstrap-icons';
import { connect } from 'react-redux';
import { Section, Subsection, SectionGroup } from '../../../components/Section';
import IconButton from '.... |
import React, { useEffect, useState, useLayoutEffect, useContext, useMemo} from "react";
import { withRouter } from "react-router-dom";
import { makeStyles } from "@material-ui/core/styles";
import CartCard from "../../components/UI/Card/CartCard/CartCard";
import axiosInstance from "../../axios-firebase";
import Conta... |
import React, { useEffect, useState } from 'react';
import styled from 'styled-components';
import { Avatar, message, Form, Input, DatePicker } from 'antd';
import Autocomplete from 'react-google-autocomplete';
import { successModal, StyledCancelButton, StyledButton } from '../styled';
import { useStateValue } from '..... |
import {
Typography,
Grid,
Card,
CardHeader,
CardContent,
Button,
CircularProgress,
Dialog,
DialogTitle,
DialogContent,
TextField,
IconButton,
Alert,
} from "@mui/material";
import React, { useState, useEffect } from "react";
import moment from "moment";
import getWeb3 from "../ethereum/getWeb... |
// parsing data and plotting charts
function plotCharts(sample) {
d3.json("samples.json").then((importData) => {
var samplesData = importData.samples;
var resultArr= samplesData.filter(sampleObj => sampleObj.id == sample);
var result= resultArr[0]
// console.log(result);
var otuIds = result.o... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const generator_1 = __importDefault(require("@babel/generator"));
const loader_utils_1 = require("loader... |
/**
* @license
* Copyright 2016 Google 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
*
* Unless requir... |
//This file is for saving the whiteboard. Persisted at intervals in webdav, cached in memory.
const {stableSort,textTools} = require("../common/wsutil");
let savedBoards = {};
let savedUndos = {};
let savedWebdavs = {};
let eventCounts = {};
let lastCheckpoints = {};
async function saveBoard (wid) {
const board = ... |
let CaseDetailsPage = require('../pageObjects/caseDetailsPage.js');
let chai = require("chai").use(require("chai-as-promised"));
let expect = chai.expect;
var { defineSupportCode } = require("cucumber");
defineSupportCode(function ({ Given, When, Then, Before, After }) {
let caseDetailsPage = new CaseDetailsPage(... |
"use strict";
module.exports = {};
const sanitizeHtml = require("sanitize-html");
const feed_utils = require("./feeds");
const db = require("./db");
const server = require("./server");
function splice_content(content, token) {
var splice_i = -1;
var id = null;
for (var i = 0; i < content.length; i++) {
i... |
$(document).ready(function(){
game = new Game();
var pic1 = new Image();
var pic2 = new Image();
pic1.src = 'https:/dl.dropboxusercontent.com/s/i579euba4wexums/ecks.png?dl=0';
pic2.src = 'https://dl.dropboxusercontent.com/s/c7us03xf00ped03/oh.png?dl=0';
var s = Snap('#drawing-board');
var lineAttr = {str... |
var test = require('./setup').test,
requirejs = require('requirejs'),
assert = require('chai').assert;
var nodes = requirejs('nodes/nodes'),
_ = requirejs('underscore'),
Q = requirejs('lib/q');
var assertListsEqual = function(a, b, message) {
if ( ! _.isEqual(a, b) )
{
var err = new Error(mess... |
function needMap() {
var href = location.href;
return href.indexOf('map') != -1
|| href.indexOf('mix3') != -1
|| href.indexOf('mix5') != -1
|| href.indexOf('dataRange') != -1;
}
var fileLocation = needMap() ? 'assets/js/echarts-map' : 'assets/js/echarts';
requi... |
import React, { useEffect, useState, useRef, useCallback } from 'react';
import { View, Text, Platform } from 'react-native';
import { getUniqueId } from 'react-native-device-info';
import { FontAwesomeIcon } from '@fortawesome/react-native-fontawesome';
import { faClipboardList, faUser, faRoute, faCalendarDay, faWalle... |
/**
* Tree Rendering View
*/
'use strict';
// External
var Backbone = require('backbone');
var d3 = require('d3');
var $ = require('jquery');
var _ = require('lodash');
module.exports = Backbone.View.extend({
margin: {
top: 35,
bottom: 0,
left: 100,
right: 0
},
initializ... |
// Functions related to the context menu (right-click menu).
import { view, tree_command, on_tree_change, reset_view, sort, get_tid }
from "./gui.js";
import { draw_minimap } from "./minimap.js";
import { update } from "./draw.js";
import { download_newick } from "./download.js";
import { zoom_into_box } from "./z... |
const mongoose = require('mongoose');
const supertest = require('supertest');
const bcrypt = require('bcrypt');
const app = require('../app');
const helper = require('./blog_test_helper');
const api = supertest(app);
const jestTimeout = 200000;
const User = require('../models/user');
const Blog = require('../models/b... |
let canvas = document.querySelector("canvas");
let ctx = canvas.getContext("2d");
canvas.width = 2*window.innerWidth;
canvas.height = 2*window.innerHeight;
let mainArray = [1];
let copyArray = [1];
let actions = [];
let timeout;
function drawAtPosition({value = 0, position = 0} = {}) {
let width = (canvas.w... |
/* global $ d3 */
'use strict';
var App = App || {};
// eslint-disable-next-line no-unused-vars
function PixelGlyph(options) {
let self = {
chartMargins: {
top: 10,
bottom: 10,
left: 50,
right: 50
},
colors: {
outline: 'black'
},
nameMapping: {
},
quadrants... |
// Huy version 01
// 25-8-2015
var dateselect_year_max = 5;
var dateselect_yearElementsId = "年";
var dateselect_monthElementsId = "月";
var dateselect_dayElementsId = "日";
var dateselect_calendars = new Array(0,31,28,31,30,31,30,31,31,30,31,30,31);
var dateselect_monthName = new Array('1月','2月','3月','4月','5月','6月... |
import Position from './position.js';
let movedRight;
// Previous Moves
// ↗ x2, y0 = -1
// x1, y1 => x2, y1 = 0
// ↘ x2, y2 = 1
let previousMove = undefined;
console.log(`previousMove is ${previousMove}`);
/**
* Replace the logic in this function with your own custom movement algorithm.
*
* This... |
/**
* Functions store the code to perform specific tasks and that the script can ask the function
* to perform thattask whenever needed.
*
* Sometimes a function can be called before it has been declared.This still works because
* the interpreter runs through a script before executing each statement.So it will kn... |
const path = require('path');
const webpack = require('webpack');
const bs = require('browser-sync').create();
const proxyMiddleware = require('http-proxy-middleware');
const webpackDevMiddleware = require('webpack-dev-middleware');
const webpackHotMiddleware = require('webpack-hot-middleware');
const ProgressBarPlugin... |
let fs = require("fs")
let _ = require("lodash-node")
let GROUP = /group/g
let SUBGROUP = /subgroup/g
let LINE_COMMENT = /^#/
let GROUP_TEST = /\:$/
let R_S_SPLITTER = "@"
let TAG_GROUP_SPLITTER = "//"
let TAG_VAR_SPLITTER = "/"
let TAG_SPLITTER = ":"
let getRecords = compoundRecord => {
let res = []
let znaM... |
import { SingleBar, Presets } from 'cli-progress';
import EventEmitter from 'events';
import { promises as fs } from 'fs';
import { read } from 'shapefile';
import yargs from 'yargs';
import {
getLayerBBox, queryLayers, queryLayerFeatureIDs, queryLayerFeaturesWithIDs,
} from './ArcGISClient.js';
import { getDB } fro... |
import React from 'react'
import {connect} from 'react-redux'
import {Button, Card, Col, message, Modal, Popconfirm, Row, Select, Spin, Table} from 'antd'
import {deleteModule} from '../../../apis/index'
import {
addProjectTemplateDetail,
addProjectTemplateMode
} from '../actions.js';
import {
addAllEnableP... |
/* Sample client for testing */
var crypto = require('crypto');
var http = require('http');
var https = require('https');
var url_ = require('url');
var ripple = require('ripple-lib');
var swim = require('../');
var key = '';
function trace() {
var prefix = '[' + process.uptime().toFixed(2) + ']';
var args ... |
const formatDate = (date) => {
var d = new Date(date),
month = '' + (d.getUTCMonth() + 1),
day = '' + d.getUTCDate(),
year = d.getUTCFullYear();
if (month.length < 2)
month = '0' + month;
if (day.length < 2)
day = '0' + day;
return [year, month, day].join(... |
import React, { Component } from "react";
import ReactGA from "react-ga";
import $ from "jquery";
import "./App.css";
import Header from "./Components/Header";
import Footer from "./Components/Footer";
import About from "./Components/About";
import quizQuestions from './Questions/quizQuestions.js';
import Quiz from './... |
'use strict'
const opCodes = {
ADC: 'Add with carry',
AND: 'And',
ASL: 'Arithmetic shift left',
BCC: 'Branch on carry clear',
BCS: 'Branch on carry set',
BEQ: 'Branch on equal',
BIT: 'Bit test',
BMI: 'Branch on minus',
BNE: 'Branch on not equal',
BPL: 'Branch on plus',
BRK: 'Break / interrupt',
... |
/**
* @file ObservalForm.js
*/
import React, {useMemo, useCallback} from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
// Components
import Checkbox from 'customized/MaterialCheckbox';
import TextField from 'customized/MaterialTextField';
import TextArea from 'customized/Material... |
import React, { Component } from 'react';
import axios from 'axios';
import io from 'socket.io-client';
import "./FactoryNode.css";
const socket = io('https://arcane-woodland-73099.herokuapp.com/');
export default class FactoryNode extends Component {
constructor (props) {
super(props);
this.state = {
... |
//initialize the platform
var platform = new H.service.Platform({
app_id: 'DemoAppId01082013GAL',
app_code: 'AJKnXv84fjrb0KIHawS0Tg',
useCIT: true,
useHTTPS: true
});
//instantiate datalens service
var service = new H.datalens.Service();
service.configure(
'DemoAppId01082013GAL',
'AJKnXv84fjrb0... |
'use strict'
let assert = require('assert')
let util = require('util')
let Disc = require('../disc-archiver-calc').Disc
let DiscArray = require('../disc-archiver-calc').DiscArray
suite('Disc', function() {
test('add', function() {
let d = new Disc(1, 4.3)
assert(d.add({ name: 'q', size: 1 }))
assert(d.add({ ... |
// todo: extract fxcking state
import CSSModules from 'react-css-modules'
import styles from './styles.css'
import FacebookLoginBtn from 'components/FacebookLoginBtn'
import FBComment from "components/FBComment"
class CommentInput extends React.Component {
constructor(props) {
super(props)
this.s... |
const $ = (selector) => document.querySelector(selector);
const $All = (selector) => document.querySelectorAll(selector);
const app = `<div id="app" class="p-3">
<div class="d-flex justify-center mt-5">
<div class="w-100">
<h1 class="text-center">🎱 행운의 로또</h1>
<form class="mt-5">
... |
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* https://raw.githut.com/facebook/regenerator/master/LICENSE file. An
* additional grant of patent rights can be found in the PATENTS file in
* the same directory.
*/
var ru... |
/*
* File: Server.js
* Project: @barteh/as-service
* File Created: Sunday, 29th July 2018 1:41:36 pm
* Author: rafat (<EMAIL>)
* -----
* Last Modified: Wednesday, 16th October 2019 1:46:31 am
* Modified By: rafat (<EMAIL>>)
* -----
* Copyright 2018 - 2019 <NAME>, <NAME>
* Trademark barteh
*/
import axios f... |
/* eslint-disable no-unused-vars */
/* eslint-disable quotes */
/* eslint-disable no-console */
"use strict";
//CONSTANTES
const formElement = document.querySelector(".form");
const inputElement = document.querySelector(".input");
const buttonElement = document.querySelector(".searchButton");
const resultSectionElemen... |
var IIPConnection = require('./IIPConnection')
, InputPort = require('./InputPort')
, OutputPort = require('./OutputPort')
, path = require('path')
, Process = require('./Process')
, ProcessConnection = require('./ProcessConnection')
, parseFBP = require('parsefbp')
, trace = require('./trace')
, _ = re... |
import ImageStrategy from './image.js';
import libUrl from 'url';
import libPath from 'path';
import libUtil from 'util';
import libCheerio from 'cheerio';
import libValidUrl from 'valid-url';
import libUuid from 'node-uuid';
import libFsp from 'fs-promise';
import needle from '../../util/needle.js';
import Logger fr... |
const _ = require("lodash");
const moment = require("moment");
// TODO: Implement error handling (wrong key, empty class, etc.)
const getData = require("./fetchFromFirestore");
/*
{
M: [{name, key, 10, 12, duration}, {name, key, 1, 2, duration}]
T: []
W: []
Th: []
F: []
}
->
{
M: [{filler, key, ... |
/* eslint quote-props: ["error", "consistent-as-needed"] */
const { EventEmitter } = require('events')
const SerialPort = require('serialport')
const Readline = require('@serialport/parser-readline')
const debug = require('debug')('home-rower-game:S4')
function S4 (memoryMap) {
const self = this
self.memoryMap = m... |
function _extends() {
_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)) {
target[key] = source[key];
}
... |
/*
幻灯片单页,支持edit模式和play模式,play模式自带画板图层
props:{
pageId,页面路径的key
wdRef,数据库路径,便于直接修改
data,页面数据,如果没有那么自动从wdRef读取
mode,模式,'edit'或者'play',
style,整体样式,
}
*/
import { Component } from 'react';
import h from 'react-hyperscript';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styl... |
var _ = require('underscore')
, fs = require('fs')
,Base =require('../../server/lib/Base')
, Garam = require('../../server/lib/Garam')
, request = require('request')
, moment = require('moment')
, winston = require('winston')
, UserBase = require('./UserBase')
, assert= require('assert'... |
import React from 'react'
import PropTypes from 'prop-types'
import {
errors,
withStore,
} from 'freenit'
import {
Button,
Paper,
TextField,
Tooltip,
} from '@material-ui/core'
import ReactMarkdown from 'react-markdown'
import Template from 'templates/default/detail'
import { linkTarget } from 'utils'
im... |
var languages = require('./languages');
var instructions = languages.instructions;
module.exports = function(version, _options) {
var opts = {};
opts.hooks = {};
opts.hooks.tokenizedInstruction = ((_options || {}).hooks || {}).tokenizedInstruction;
Object.keys(instructions).forEach(function(code) {
... |
/**
* Implement Gatsby's Node APIs in this file.
*
* See: https://www.gatsbyjs.org/docs/node-apis/
*/
// You can delete this file if you're not using it
const path = require(`path`);
const fs = require('fs');
const mkdirp = require('mkdirp');
const { getSlugAndLang } = require('ptz-i18n');
const { transformSync } ... |
const Files = require('./js/files');
const cmdArgs = require('minimist')(process.argv.slice(2));
const fs = require('fs');
function checkInt(num) {
if (typeof num === 'number') return Math.round(num);
else return parseInt(num);
}
function checkFloat(num) {
if (typeof num === 'number') return num;
else return... |
const screenSize = {
width: 500,
height: 500
};
const sounds = {};
const player1 = {};
const player2 = {};
const ball = {};
const gameState = {
init: 1,
inGame: 2
};
let currGameState = gameState.init;
const wallLeft = {
pos: {
X: 0,
Y: 10
},
width: 2,
height: 480,
color: 'red'
};
const wallRight = {
... |
import React from 'react';
import { connect } from 'react-redux';
import { fetchAll, updateItem } from './actions';
import Message from "~core-components/message";
const SortDirectionAsc = 'ASC';
const SortDirectionDesc = 'DESC';
class PublicCloudPassportsApp extends React.Component
{
constructor(props) {
... |
import React from 'react';
import PropTypes from 'prop-types';
import _ from 'lodash';
import Autocomplete from 'react-autocomplete';
import * as Routes from '../helpers/Routes';
import memoizer from '../helpers/memoizer';
import {apiFetchJson} from '../helpers/apiFetchJson';
import * as colors from '../helpers/colors'... |
/* eslint-disable */
import React from "react";
import PropTypes from "prop-types";
import TranscriptEditor from "./packages/components/transcript-editor";
import SttTypeSelect from "./select-stt-json-type";
import ExportFormatSelect from "./select-export-format";
import { FontAwesomeIcon } from "@fortawesome/react-fon... |
// @flow
import { connect } from 'react-redux'
import React, { Component } from 'react'
import { Form, Button, Dropdown, Icon, Divider, TextArea, Label, Message, Dimmer, Loader } from 'semantic-ui-react'
import styles from '../home/Home.css'
import routes from '../../constants/routes'
import { updateAccount, clearTrans... |
import {
getActiveTabFrame,
AlignActions,
performAlignAction,
focusOnActiveTabFrame,
performPrefixAlignAction
} from '../../easy-fns';
import KeyCodes from '../../key-codes';
import {
preventEvent
} from '../../utils';
import {
Theme,
themeForDocType
} from './theme';
import './styles.scss';
import './a... |
const prompt = require("prompt");
const colors = require("colors/safe");
const logger = require("./logger");
const extractZip = require("./helpers/extractZip");
const path = require("path");
const fs = require("fs");
const start = require("./start");
(async () => {
//
// Setting these properties customizes the pro... |
import React, { useState } from "react";
import moment from "moment";
import { formatBookingDate } from "../util";
import ModalBookingScreen from "./ModalBookingScreen";
import ModalCancelBookingScreen from "./ModalCancelBookingScreen";
import "./WeeklyTable.css";
import { Button } from "semantic-ui-react";
import { Ic... |
const fs = require('fs-extra'),
fg = require('fast-glob'),
path = require('path'),
yaml = require('yaml'),
md5File = require('md5-file');
// this gets all the original uncompressed files
// to do this is compares filenames, if there are duplicate filenames it then checks the path for the artist name
// it's pr... |
$(function() {
var name='itemid';
var arrxx = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));
var loadhx="";
if(arrxx != null) (loadhx=arrxx[2]);
if (loadhx==""){
document.getElementById('orderhide').addEventListener("click", function() { $("#orderhide").hide();$("#ordershow").hide();}, false);
... |
var Users = {
currentUser: {},
notifications: {
poll: true
},
init: () => {
let signedIn = Users.loadFromStorage();
if (signedIn === 'TRUE') {
Messages.init();
WebSock.init();
} else {
Login.init();
}
},
saveToken: (toke... |
// helpers
export const activationCode = () => {
return Math.random().toString().replace('0.', '')
}
export const compareHash = async (str, hash) => {
return await app.toolbox.bcrypt.compare(str, hash).then(result => {
return result
}).catch(err => { throw err })
}
export const copy = (object) => {
var... |
import React, { useState } from "react";
import "./style.css"
import 'reactjs-popup/dist/index.css';
import GridItem from "components/Grid/GridItem.js";
import GridContainer from "components/Grid/GridContainer.js";
import Button from "components/CustomButtons/Button.js";
import Card from "components/Card/Card.js";
impo... |
/*
* Copyright 2017 <NAME> University
*
* 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 agre... |
'use strict';
// import redis
const redis = require("redis")
// import Cloudwatch Logs and instantiate
const CloudWatchLogs = require('aws-sdk/clients/cloudwatchlogs');
var cloudwatchlogs = new CloudWatchLogs({apiVersion: '2014-03-28', region: process.env.AWS_REGION});
// get target log group to use as a destinatio... |
const sharp = require('sharp');
const textToSvg = require('text-to-svg');
const isPng = require('is-png');
const path = require('path');
const _ = require('lodash');
const Approval = require('../approval')();
const utils = require('../../../utils');
module.exports = (Parent) => {
/**
* Captcha approval transport
... |
import moment from 'moment';
import Link from 'next/link';
import React, { useState, useEffect } from 'react';
import Loader from 'react-loader-spinner';
import ApiClient, { initialPropsHelper } from '../../ApiClient';
import '../../style.css';
import PostCard from '../../components/PostCard';
import UserPhoto from '..... |
import createSymbol from '../../basic-component-mixins/src/createSymbol';
import symbols from './symbols';
// Symbols for private data members on an element.
const absorbDecelerationSymbol = createSymbol('absorbDeceleration');
const lastDeltaXSymbol = createSymbol('lastDeltaX');
const lastWheelTimeoutSymbol = createS... |
import * as d3 from "d3"
import {labelConstant, globalConfig} from "../constant"
import utils from "../utils"
const CircleBlob = (data) => {
const clsName = "circleBlob"
const selector = `svg.${clsName}`
const maxSize = d3.max(data, d => d.size)
const minSize = d3.min(data, d => d.size)
const c... |
import React from 'react'
import T from 'prop-types'
import uniqueId from 'lodash/uniqueId'
import isArray from 'lodash/isArray'
import {IMargin, IScale, IAxisOptions} from './propTypes.js'
const d3 = Object.assign({},
require('d3-selection'),
require('d3-scale'),
require('d3-array')
)
class Chart extends Reac... |
const React = require("react");
const ReactDOM = require("react-dom");
const { Provider } = require("react-redux");
const { ConnectedRouter } = require("react-router-redux");
const createHistory = require("history/createBrowserHistory").default;
const { Route, Redirect, Switch } = require("react-router-dom");
const cla... |
/**
* Created by dhoffman on 1/11/2015.
*/
var crypto = require('crypto');
var https = require('https');
var CsodApi = function(config) {
this.config = config;
}
/*
This is a function to format the date into the format the CSOD API uses for
API headers.
*/
CsodApi.prototype.getUtcDate = function(date) {
... |
import React, { Fragment } from "react";
import { fade, makeStyles } from "@material-ui/core/styles";
import AppBar from "@material-ui/core/AppBar";
import Toolbar from "@material-ui/core/Toolbar";
import IconButton from "@material-ui/core/IconButton";
import InputBase from "@material-ui/core/InputBase";
import M... |
const Engine = Matter.Engine;
const World = Matter.World;
const Bodies = Matter.Bodies;
const Constraint = Matter.Constraint;
var engine, world, backgroundImg;
var canvas, angle, tower, ground, cannon, cannonBall;
var cannonImage, cannon2Image;
var balls = [];
var groupBoat = [];
var boatAnimation = [];
v... |
/**
* Contains the main esdox module.
*
* @module main
*/
const util = require('util');
const promisify = util.promisify;
const fs = require('fs');
const path = require('path');
const jsdocParser = require('jsdoc3-parser');
const analyze = require('./lib/analyze');
const generateMD = require('./lib/generateMD');
co... |
const { fork } = require('child_process')
const { Matrix, NeuralNetwork, NeuroEvolution } = require('node-nn')
const NES = require('./nes')
// const ADDRESSES = [
// 0x0075, // ...Also horizontal position in levels measured in units of 8 blocks wide
// 0x0076, // Enemy Sprite horizontal positions on screen high by... |
var getPixels = require('get-pixels')
var savePixels = require('save-pixels')
var ndarray = require('ndarray')
var zeros = require('zeros')
var fs = require('fs')
var brain = require('brain')
var queue = require('queue-async')
var unpack = require('ndarray-unpack')
var kmeans = require("clusterfck").kmeans
console.log... |
#!/bin/sh
// 2>/dev/null; exec "$(command -v nodejs || command -v node)" "$0" "$@"
'use strict';
var net = require('net');
var cluster = require('cluster');
var numCPUs = require('os').cpus().length;
var statusCodes = {
200: 'OK',
202: 'Accepted',
204: 'No Content',
404: 'File not found',
400: 'Cl... |
import { Meteor } from "meteor/meteor";
/* eslint-disable react/no-multi-comp */
import PropTypes from "prop-types";
import { Component } from "react";
import { graphql, withApollo } from "react-apollo";
import { connect } from "react-redux";
import gql from "graphql-tag";
import { Loading, Error as Err } from "../..... |
'use strict';
const AWS = require('aws-sdk');
const cacheLookup = require('./cache-lookup');
const colors = require('ansi-colors');
const crypto = require('crypto');
const fs = require('fs-extra');
const glob = require('fast-glob');
const https = require('https');
const mime = require('mime-types');
const path = requi... |
/*
* Copyright (c) 2013 DataTorrent, 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
*
* Unless required by applicab... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b)... |
import React from 'react';
import {
Button,
SafeAreaView,
StyleSheet,
Text,
TextInput,
Keyboard,
ScrollView,
KeyboardAvoidingView,
TouchableWithoutFeedback,
TouchableOpacity,
View,
Alert
} from 'react-native';
import Modal from 'react-native-modal';
import { CheckBox } from 'react-native-element... |
const { createCourseArray, createGroup } = require('./checklistGenerator/createGroup');
const fs = require('fs');
const allCourses = require('../asset/courses.json');
const cs135 = createGroup(1, 'CS 1[134]5', createCourseArray(alt => `CS 1${alt}5`, [1, 3, 4]));
const cs136 = createGroup(1, 'CS 1[34]6', createCourseAr... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.themes = undefined;
exports.capitalize = capitalize;
exports.dependenciesSupported = dependenciesSupported;
exports.fileExists = fileExists;
exports.generateProject = generateProject;
exports.runModulesInstall = runModulesInstall;
e... |
var map = null;
var trains = new L.LayerGroup([]);
//var train_by_id = new Array();
var starttime = new Date();
var extra = 0;
function load() {
map = L.map('map').setView([51.507, -0.120], 13);
L.tileLayer('/map/tube/skyfall/black.png', {
minZoom: 10,
maxZoom: 18
}).addTo(map);
trains.... |
/* eslint-disable quotes,react/no-unescaped-entities */
/* eslint-disable lines-between-class-members */
/* eslint-disable no-console */
/* eslint-disable react/sort-comp */
/* eslint-disable react/jsx-indent */
/* eslint-disable react/prop-types */
/* eslint-disable no-use-before-define */
/* eslint-disable react/jsx-... |
// npm i -D gulp-autoprefixer babelify browserify vinyl-buffer gulp-cssmin gulp-concat gulp gulp-if gulp-util gulp-less gulp-plumber gulp-sourcemaps vinyl-source-stream gulp-uglify watchify gulp-nodemon webpack-stream browser-sync gulp-babel
var autoprefixer = require('gulp-autoprefixer');
var babelify ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.