text
stringlengths
3.07k
16k
var cmds = require('./cmd') , flagger = require('./util/flagger') , project = require('./project/project') , haxelib = require('./util/haxelib') , util = require('./util/util') , path = require('path') , fs = require('graceful-fs') , fse = require('fs-extra...
import 'normalize.css/normalize.css'; import 'styles/App.scss'; import React from 'react'; import { findDOMNode } from 'react-dom'; import ImgFigure from './ImgFigure'; import ControllerUnit from './ControllerUnit'; //获取图片信息 import imageJsonDatas from '../data/imageDatas.json'; //将路径信息赋值给图片 const imageDatas = imageJ...
import './ImageList.scss'; import { parse } from 'papaparse'; import Box from './Box'; import { randomInt, getValidUrl } from 'core/Util'; import ResizeObserver from 'resize-observer-polyfill'; function isValidItem(item, filter) { let valid = true; filter.forEach((f) => { let fv = f['value']; let ff = item...
const dscc = require('@google/dscc'); const d3 = require('d3'); const local = require('./localMessage.js'); // change this to 'true' for local development // change this to 'false' before deploying export const LOCAL = false; const drawViz = (data) => { // Set margins + canvas size const padding = { top: 5, bott...
const path = require('path') const fs = require('fs') const asyncHandler = require('../middleware/async') const ErrorResponse = require('../utils/errorResponse') const Video = require('../models/Video') // @desc Get videos // @route GET /api/v1/videos/public or /api/v1/videos/private // @access Public Or Privat...
// Completes tossup and bonus entries in postgres. const colors = require('colors'); // for ease of debugging const Pool = require('pg').Pool const pool = new Pool({ user: 'postgres', host: 'localhost', database: 'BagelQB', password: '<PASSWORD>', port: 5432, }); var total_trials = 0; var rows_affected = 0;...
/* eslint-disable global-require, import/no-dynamic-require */ import React from 'react'; import PropTypes from 'prop-types'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import Avatar from 'react-md/lib/Avatars/Avatar'; import Card from 'react-md/lib/Cards/Card'; import CardActions from 'react-md...
var games; var socket = io('http://localhost.com:3000/game'); var socketGame = io(); var socketTable; $(function () { // Main Lobby Socket events socket.on('displayTables', function (data) { DISPLAY.showTables(data); }); socket.on('update lobby', function (data) { DISPLAY.renderGameLob...
const { getDropbox, getDropboxes, createEmptyDropbox, deleteDocument, getSecureUploadUrl, getSession, createSessionToken, templates, authorize, updateArchiveStatus, rejectDropbox } = require('./lib/Dependencies'); const api = require('lambda-api')(); const log = require('./lib/log')(); const redir...
// Requirements and importing models var express = require('express'), app = express(), bodyParser = require('body-parser'), mongoose = require('mongoose'), Campground = require('./models/campground'), seedDB ...
let kernel_default = [-1,-1,-1,-1,8,-1,-1,-1,-1]; let kernel = [0,1,0, 1,-4,1, 0,1,0]; function onLoad(){ let video = document.querySelector("#videoElement"); let video_height = 300; let video_width = 400; let canvas_one_ctx = document.getElementById("canvas_one").getContext("2d"); let canvas_two_c...
import React, { useState, useEffect, useCallback } from 'react'; import { useHistory, useRouteMatch } from 'react-router-dom'; import * as firebase from "firebase/app"; import 'firebase/firebase-database'; import 'firebase/auth'; import classes from './PostList.module.css'; import PostListItem from '../../Components/...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const chalk = require("chalk"); const jovo_core_1 = require("jovo-core"); const colorize = require("json-colorizer"); const _get = require("lodash.get"); const _merge = require("lodash.merge"); const _set = require("lodash.set"); const...
'use strict'; var through = require('through'); // The elliptic package.json is only used for its version var ellipticPackage = require('elliptic/package.json'); ellipticPackage = JSON.stringify({ version: ellipticPackage.version }); var versions = { 'ethers': require('./package.json').version, }; var depVersio...
import React from 'react'; import ReactDOM from 'react-dom'; import { BrowserRouter as Router, Route, useHistory, Switch, } from 'react-router-dom'; import { rootReducer } from './state/reducers/index'; import { createStore, applyMiddleware } from 'redux'; import thunk from 'redux-thunk'; // removed logger to c...
// 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 ...
import React, { Component } from "react"; import { View, StyleSheet, Text, ScrollView, TouchableOpacity, Image,Platform, Modal, ImageBackground } from "react-native"; import NavigationBar from "../../../../components/@jcmall/navbar"; import { PublicStyles, windowWidth, windowHeight, ThemeStyle }...
'use strict'; const DATA_TYPES = require('../constants/DataTypes'); // Default delimiter to wrap character strings in SQL queries. const DEFAULT_DELIMITER = "'"; /** * Validate if the value is an accepted "boolean"-compatible input * @param val * @return {Boolean} */ exports._validateInputBoolean = function (val)...
'use strict'; const Joi = require('joi'); const Boom = require('boom'); const internals = {}; internals.schema = Joi.object().keys({ allowedRetries: Joi.number().positive().optional(), initialWait: Joi.number().positive().optional(), maxWait: Joi.number().positive().optional(), timeWindow: Joi.number(...
import React, { Component } from 'react'; import { Form } from '@ant-design/compatible'; import '@ant-design/compatible/assets/index.css'; import { Modal, Input, Select, Radio } from 'antd'; import configSettings from '../../configSettings'; const FormItem = Form.Item; const { Option } = Select; const RadioGroup = Rad...
var fs = require('fs'); var cache = function(api, next){ api.cache = {}; api.cache.sweeperTimer = null; api.cache.sweeperTimeout = 60 * 1000; api.cache.redisPrefix = api.config.general.cachePrefix; api.cache._start = function(api, callback){ api.cache.size(function(err, count){ if(err != null){ ...
import { requestReplaceRepo, } from '@/api/message' import { getRepo, addRepoNamesListener, } from '@/api/storage' // delay anyway setTimeout(main, 500) window.addEventListener('click', main, true) addRepoNamesListener(() => { const notifier = document.querySelector('#release-notifier') if (notifier) { ...
//grid导出exl function outputAddress(grid, strMethod) { try { var xls = new ActiveXObject("Excel.Application"); } catch (e) { alert("要打印该表,您必须安装Excel电子表格软件,同时浏览器须使用“ActiveX 控件”,您的浏览器须允许执行控件。 请点击【帮助】了解浏览器设置方法!"); return; } xls.visible = true; //设置excel为可见 var xlBook = xls...
/* * SpotifyPage * * This is the first thing users see of our App, at the '/' route */ import React, {Fragment} from 'react'; import PropTypes from 'prop-types'; import { Helmet } from 'react-helmet'; import { FormattedMessage } from 'react-intl'; import { connect } from 'react-redux'; import { compose, bindAction...
const xss = require("xss"); const { pool } = require("./dbConfig"); const bcrypt = require("bcrypt"); const crypto = require("crypto"); require("dotenv").config(); const MIN_DIST = 50; const MAX_DIST = 300; const MAX_MSG_LENGTH = 2000; const { SECRET_TOKEN } = process.env; const MEMBER = {}; const TOKENS = {}; var M...
#!/usr/bin/env node 'use strict'; /** * Borrowed from gulp, MIT License (MIT) * Copyright (c) 2014-2015 Fractal <<EMAIL>> */ var fs = require('fs'); var path = require('path'); var archy = require('archy'); var chalk = require('chalk'); var tildify = require('tildify'); var verbLog = require('verb-log'); var Lift...
const assert = require('assert'); const { generateOrderData } = require('../sdk/sdk'); const { newContract } = require('./utils'); const TestOrder = artifacts.require('./helper/TestOrder.sol'); contract('Order', accounts => { let contract; before(async () => { contract = await newContract(TestOrder); ...
/* * Copyright (C) 2010-2014 <NAME> (haftungsbeschränkt) * * This file is part of structr <http://structr.org>. * * structr is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either vers...
import React, { Component } from "react"; import "./Navbar.css"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faHome, faComments, faCompass, faHeart, faUser, } from "@fortawesome/free-solid-svg-icons"; import { syncFetchRequest, fetchRequest } from "../../../helpers/fetchRequest"...
'use strict'; const { extractHash, appendDataIfFileExists, copyFile } = require('./testUtils'); const { writeFileSync, unlinkSync, readFileSync, existsSync } = require('fs'); const { resolve } = require('path'); describe('extractHash functionality', () => { it('should throw Error if there is empty string', () => ...
/** * @file Vegable Controller * @author <NAME> <<EMAIL>> * @copyright 2018 vegable.io * @version 0.1 */ const Queue = require('bull'); const { log } = require('./logger'); const { WeatherInstance } = require('./weather'); const { SettingsInstance } = require('../models/settings'); const { UsersInstance } = req...
import { Geometry } from '../maths/geometry'; import { Emitter } from '../core/emitter'; class Viewport { // @todo do not round scaled values constructor (id, options, constraints) { this._ = 'viewport'; this._id = id; options = options || {}; this._pos = options.pos || { x: 0, y: 0 }; this._si...
import { YEARS_ELM_QUERY, YEAR_ELM_QUERY, MONTHS_ELM_QUERY, MONTH_ELM_QUERY, DAYS_ELM_QUERY, DAY_ELM_QUERY, DAY_NAME_ELM_QUERY, PLUS_ICON_ELM_QUERY, MINUS_ICON_ELM_QUERY, EVENT_CHANGE_MONTH_DROPDOWN_STR, EVENT_CLICK_STR, EVENT_CHANGE_YEAR_INPUT_STR, TODAY_CLASS_NAME,...
import d3 from 'd3'; import React from 'react'; import rd3 from 'react-d3-library'; import classnames from 'classnames'; import requestRouteLoadingStyles from '../../sass/components/requestRouteLoading.scss'; const RD3Component = rd3.Component; let D3Config = { width: 478, height: 200, routeColor...
////////////////////////////////////////////////////////////////////////////////////// // // The MIT License (MIT) // // Copyright (c) 2017-present, <NAME> // All rights reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation fil...
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import Card from '@material-ui/core/Card'; import CardActionArea from '@material-ui/core/CardActionArea'; import CardContent from '@material-ui/core/CardContent'; import CardMedia from '@material-ui/core/CardMedia'; import Accordion from ...
import React, { Component } from 'react' import { BrowserRouter as Router, Route, Link, Switch } from 'react-router-dom'; import ReactNotification from 'react-notifications-component'; import Web3 from 'web3' import './App.css' //import component import CreateEvent from './components/CreateEvent.jsx'; import GetEvent f...
import React, { useState, useEffect } from 'react'; import PropTypes from 'prop-types'; import TextField from '@material-ui/core/TextField'; import MomentUtils from '@date-io/moment'; import { InlineDatePicker, TimePicker, MuiPickersUtilsProvider } from 'material-ui-pickers'; import moment from 'moment'; import M...
// var exports = module.exports = {}; var widgets = require('@jupyter-widgets/base'); var _ = require('underscore') var serialize = require('./serialize.js') var semver_range = require('./utils.js').semver_range; var ndarray_pack = require("ndarray-pack"); var TransferFunctionView = widgets.DOMWidgetView.extend( { ...
/** * Логика работы бота описывается здесь */ import * as puppeteer from './puppeteer.js' import { readFileSync } from 'fs' import chalk from 'chalk' import { sendToSubs } from './telegram.js' process.on('uncaughtException', (err, origin) => { console.log(err, origin) process.exit(0) }) // Config init glob...
const matchToKartoffel = require('../matchToKartoffel'); const completeFromAka = require('../completeFromAka'); const identifierHandler = require('../fieldsUtils/identifierHandler'); const diff = require("diff-arrays-of-objects"); const updated = require('./updatedDataHandler') const p = require('../../config/paths'); ...
import React, { useEffect, useState } from 'react'; import { useSelector, useDispatch } from 'react-redux'; import { saveProduct, listProducts, deleteProduct, } from '../actions/productActions'; function ProductsScreen(props) { const [modalVisible, setModalVisible] = useState(false); const [id, setId] = useS...
import axios from "axios"; import React, { useEffect, useState } from "react"; import { useDispatch, useSelector } from "react-redux"; import { useNavigate, useParams } from "react-router-dom"; import Loader from "../components/Loader"; import { getEpisodeDetails, updateEpisode, } from "../redux/actions/movieActio...
const maxClickDelay = 10000; // maximum amount of time after visit to wait to make a click const faker = require('faker'); exports.defaultParamsForAllTests = defaultParamsForAllTests = [ // TODO: make this data depend on clientData.js { testName: 'Buy-Now Button Test', // B wins testId: 1, testDetails: {...
import React, { useState } from 'react'; import { NavLink, Link, useNavigate, useParams, useLocation, } from 'react-router-dom'; import { Popover, PopoverTrigger, PopoverContent, PopoverArrow, PopoverCloseButton, PopoverBody, List, Image, ListItem, Portal, Wrap, WrapItem, Avatar, } f...
const ASSERT = require("assert"); const PATH = require("path"); const FS = require("fs"); const SMITH = require("smith"); const ENGINE_IO = require("engine.io"); const EVENTS = require("events"); // Switch from `away` to `disconnect` after this many milliseconds. const RECONNECT_TIMEOUT = 60 * 1000; var engines = [...
/* Recast4J Copyright (c) 2015 <NAME> <EMAIL> This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applic...
let clear_check = false; const keyboard = { elements: { main: null, keys_container: null, keys: [] }, event_handlers: { oninput: null, onclose: null }, properties: { value: "", capslock: false }, init (){ // Create main elem...
import React, {Component} from 'react'; import {connect} from 'react-redux'; import {Map, Marker, Polygon, Popup, TileLayer} from 'react-leaflet'; import {Switch, Route, Link} from 'react-router-dom'; import Pagination from '../../pagination'; import Statistic from './statistic'; import history from '../../../history'...
const { client } = require("../../managers/eventsManagers") const fs = require("fs") const getRankLvl = require("../../functions/guilds/getRankLvl") async function sendMp(message) { if (message.content && message.content.length > 0) { await client.channels.cache.get("796377851997192213").send({ embe...
const { MessageAttachment, MessageEmbed, Client } = require('discord.js'); const { resolveImage, Canvas} = require("canvas-constructor/cairo") const Keyv = require('keyv'); const db = new Keyv('sqlite://./storage/database.sqlite'); db.on('error', err => console.log('Connection Error', err)); const { token, pref...
'use strict'; var autoprefixer = require('autoprefixer'); var browserSync = require('browser-sync').create(); var cache = require('gulp-cached'); var cp = require('child_process'); var cssnano = require('cssnano'); var del = require('del'); var eslint = require('gulp-eslint'); var fs = require('fs'); var gulp = requir...
// Copyright IBM Corp. 2014,2016. All Rights Reserved. // Node module: strong-supervisor // This file is licensed under the Artistic License 2.0. // License text available at https://opensource.org/licenses/Artistic-2.0 'use strict'; var Graphite = require('strong-statsd/test/servers/graphite'); var Splunk = require(...
/** * USAGE: call this file using node and pass in directory with configs or config file * i.e. node config_validator.js example.com.json * i.e. node config_validator.js configs * * Validates shortcut JSON config * More details found here: https://paper.dropbox.com/doc/JSON-Data-Format-XaQ21RmPGZS778W2LKza2 */ ...
import React from 'react' import { Layout, Menu, Icon, Col, Avatar, Row, Button, Badge } from 'antd/lib/index'; import { connect } from "react-redux"; import logo from '../../wallit.png'; import './Components.css'; import Disconnect from "./Disconnect"; import Refresh from "./Refresh"; import ListActivities from "./Li...
'use sctrict'; const getIconUrl = function(status, theme, themes) { // Todo: refactor this check const flagUrl = getFlagUrlByTheme(theme, themes); if (flagUrl) { return flagUrl; } const flag = getFlagByTheme(theme, themes); if (flag) { return getMarkerUrlBasedOnTheme(status, flag)...
import * as Util from '../util/util.js' let glsl = (strings, ...args) => { let res = '' strings.forEach((s, i) => { res += s + (args[i] || '') }) res = res.split('\n').map(e => { return e.replace(' ', '') }).join('\n') return res } export class MyRenderTarget { constructor ({ THREE, si...
var LogitRequest = require('./logitRequest'); var LogitWatch = require('./logitWatch'); var LOGIT_URI = 'https://api.logit.io/javascript/v1'; var LOG_PRIORITIES = { EMERGENCY: 0, ERROR: 1, WARN: 2, INFO: 3, LOG: 4, DEBUG: 5, TRACE: 6, VERBOSE: 7 }; function getConsoleFn( priority ) { 'use strict'; ...
import { RadioGroup, FormControlLabel, Radio, TextField, Container, Button, ButtonGroup, makeStyles, createTheme, MuiThemeProvider, Snackbar, } from '@material-ui/core/'; import MuiAlert from '@mui/material/Alert'; import { red, green, grey } from '@mui/material/colors'; import { useState, useEffe...
const fs = require("fs"); const path = require("path"); const config = require("config"); const tmi = require("tmi.js"); const logger = require("./logger"); const csvSync = require("csv-parse/lib/sync"); const sound = require("./sound"); const TmiActions = require("./tmiActions"); const lastChatHistory = require("./la...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true, }); exports['default'] = void 0; var _react = _interopRequireWildcard(require('react')); var _reactRouterDom = require('react-router-dom'); var _reactRedux = require('react-redux'); var _reactGa = _interopRequireDefault(require('react-ga'...
import React, { useState } from "react" import Layout from "../components/layout" import SEO from "../components/seo" import styled from "styled-components" import SmallImage from "../components/smallImage" const GridWrapper = styled.div` margin: 0 40px; display: grid; grid-template-columns: 1fr 1fr...
import PropTypes from 'prop-types'; import { makeStyles } from '@material-ui/styles'; import React, { useMemo, useCallback, useState } from 'react'; import Menu from '@material-ui/core/Menu'; import Tooltip from '@material-ui/core/Tooltip'; import MenuItem from '@material-ui/core/MenuItem'; import Checkbox from '@mate...
'use strict'; const WAV = require('./wav'); const MIDIStream = require('./midi'); const Timer = require('./utils/timer'); module.exports = function midiToWav(buffer, args = {}) { if (args.verbose) { console.log('parsing MIDI header...'); } const midiStream = new MIDIStream(buffer); const head...
import React, { useEffect } from 'react'; import { useRequest } from '@umijs/hooks'; import { Tree, Spin } from 'antd'; import { LikeOutlined } from '@ant-design/icons'; const targetToList = (target = []) => { let result = []; target.forEach(({ key, desc, items }) => { result = [...result, { key, desc }]; ...
(function ($) { 'use strict'; /*-------------------------------------------------------- Home Page Right News Slider * --------------------------------------------------------*/ tabHoverSlider('#video'); tabHoverSlider('#son_dakika'); tabHoverSlider('#cok_okunanlar'); function tabHove...
const fs = require('fs'); const path = require('path'); const PDFDocument = require('pdfkit'); const { deleteFile } = require('../utils/file'); const Product = require('../models/product'); const Order = require('../models/order'); const ITEMS_PER_PAGE = 1; // '/' GET exports.getIndex = (req, res, next) => { const pa...
// Now we have changed our frontend so we have different assets. // How to deal? // -> leav as is: OK because apparently addAll reloads everything even if it's already in the cache. // ..except this might break running clients // -> increment static cache to v2: // -> iterate over array of things to cache, load if n...
function SetBossDropItemVotingsVisible() { $.GetContextPanel().ToggleClass('ShowBossDrop'); } function SnippetBossDropItemVoteItemPanel(rootPanel, id, entry, entryid) { var itemRow = $.CreatePanel('Panel', rootPanel, 'boss_item_vote_id_' + id + '_item_' + entryid); itemRow.BLoadLayoutSnippet('BossDropItemVoteIte...
$(function() { //奖品列表 $.getJsonp(apiBaseUrl + '/active/lottery-config-new', {id:id}, actLotteryConfig); $.getJsonp(apiBaseUrl + '/active/reward-list', {id:id}, actRewardList); }) function actRewardList(json) { var html = ''; $.each(json, function(i, v){ html += '<li>恭喜用户<span>'+ v.username ...
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { motion, AnimatePresence } from "framer-motion"; import { MAX_SELECTED_LINK_IDS } from '../types/const'; import { addSelectedLinkIds, deleteSelectedLinkIds } from '../actions'; import { makeIsLinkIdSelected, g...
//external modules const { JSDOM } = require('jsdom') const fetch = require('node-fetch') const FormData = require('form-data') const axios = require("axios") const cheerio = require("cheerio") const qs = require('qs') const { fromBuffer } = require('file-type') //varuable const ytIdRegex = /(?:http(?:s|):\/...
'use strict'; angular.module('myApp.fieldSchedule', ['ngRoute']) .config(['$routeProvider', function($routeProvider) { $routeProvider.when('/field-schedule', { templateUrl: 'field-schedule/field-schedule.html', controller: 'FieldScheduleCtrl as vm' }); }]) .directiv...
$(function () { // 初始化表格 var $userTableForm = $(".user-table-form"); var $id = "1"; var settings = { url: ctx + "grade/list", pageSize: 10, // 获取筛选用户的参数 queryParams: function (params) { return { pageSize: params.limit, pageNum:...
/** * DevExtreme (esm/ui/data_grid/ui.data_grid.base.js) * Version: 21.2.5 * Build date: Mon Jan 17 2022 * * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ import $ from "../../core/renderer"; import re...
"use strict"; /////////////////////////////////////////////////////////////////////////////// // \author (c) <NAME> (<EMAIL>) // 2015, PALANDesign Hannover, Germany // // \license The MIT License (MIT) // // This file is part of the mipher crypto library. // Permission is hereby granted, free of charge, to ...
import { html, LitElement, ScopedElementsMixin } from '@lion/core'; import { Pattern } from '@lion/form-core'; import { LionRadio, LionRadioGroup } from '@lion/radio-group'; import { LionInput } from '@lion/input'; import { LionCheckbox } from '@lion/checkbox-group'; import { LionButton } from '@lion/button'; import s...
const fs = require("fs"); const path = require("path"); const { chainDict, networkDict, networks, defaultGas, ADDRESS_0 } = require("./config"); function mkdir(dirname) { if (fs.existsSync(dirname)) { return true; } else { if (mkdir(path.dirname(dirname))) { fs.mkdirSync(dirname); ret...
import React, { Component } from 'react' import { Text, TouchableWithoutFeedback, View, Animated, StyleSheet } from 'react-native'; import PropTypes from 'prop-types'; export default class Switch extends Component { static propTypes = { value: PropTypes.bool, onChangeValue: PropTypes.func, acti...
/** * External dependencies */ import GeneralSettings from './Sidebar/GeneralSettings.js'; import InstanceSettings from './Sidebar/InstanceSettings.js'; import HorizontalAxisSettings from './Sidebar/HorizontalAxisSettings.js'; import VerticalAxisSettings from './Sidebar/VerticalAxisSettings.js'; import PieSettings fr...
/* --------------------------------------------------------------------------------------------- Azure AD B2C OAuth v0.9 Contributed to fuse-samples by snap608 :) This code is not 100% failsafe. Contributions is welcome. ----------------------...
// Copyright (c) 2020, <NAME>, // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // 1. Redistributions of source code must retain the above copyright notice, // this list of conditions and...
var audio1=new Audio("https://s3.amazonaws.com/freecodecamp/simonSound1.mp3"); var audio2=new Audio("https://s3.amazonaws.com/freecodecamp/simonSound2.mp3"); var audio3=new Audio("https://s3.amazonaws.com/freecodecamp/simonSound3.mp3"); var audio4=new Audio("https://s3.amazonaws.com/freecodecamp/simonSound4.mp3"); var...
/** * CanvasCapture v0.1.0 * * CanvasCapture is a library for recording HTML5 canvas animations as * videos. Frames are sampled from the canvas and sent to the server * for rendering with ffmpeg. * * Distributed under the terms of the MIT License. */ var fs = require('fs') , path = require('path') ...
var Builder, buildCache, categories, orderedComponents, _ = require( "underscore" ), Cache = require( "./cache" ), config = require( "./config" ), fs = require( "fs" ), glob = require( "glob-whatev" ).glob, JqueryUiFiles_1_9_0 = require( "./jquery-ui.files.1.9.0.js" ), JqueryUiFiles_1_10_0 = require( "./jquery-u...
import { CheckIcon, OrganizationIcon, PlusIcon, LockIcon, RepoIcon, GitForkIcon, PeopleIcon, } from "@primer/octicons-react"; import { Fragment, useState } from "react"; import { html } from "htm/react"; import { gql } from "urql"; import useQuery from "../graphql/useQuery.js"; import Link from "../primi...
// // Cavemap -> Survex converter // author @aardgoose // // reads CAVEMAP '.CMP' data files and produces survex .svx output // // caveats // output may require some editing to correct survex incompatible station names // splay legs may not be handled correctly yet // const fs = require('fs'); var DataView = requir...
import React, {Component,Fragment} from "react" import PropTypes from "prop-types" import {compose,mapProps,setPropTypes} from "recompose" import {withMutation,withFragment} from "../graphql" import Avatar from "material-ui/Avatar" import {cyan50 as bg} from "material-ui/styles/colors" import IconCamera from 'material...
const Entity = require('class.entity'); class StructSpawn extends Entity { constructor(self) { super(self); this.runnerFactor = 3; this.maxBuilders = 2; this.maxRepairs = 2; this.maxUpgraders = 4; this._creep = { name: null, body: [], ...
#!/usr/bin/env node const prompts = require('prompts'); const minimist = require('minimist'); const fs = require('fs'); const path = require('path'); const which = require('which'); const figlet = require('figlet'); const { yellow, green, cyan, blue, magenta, lightRed, red, reset } = require('kolorist')...
/** * 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 required by appli...
import condenseWhitespace from 'condense-whitespace' import deasync from 'deasync' import postcss from 'postcss' import nested from 'postcss-nested' import loadConfig from 'postcss-load-config' import stringHash from 'string-hash' import path from 'path' const cssClassNameRe = /^-?[_a-zA-Z]+[_a-zA-Z0-9-]*$/ const cssC...
var assert = require('assert'); var Promise = require('bluebird'); var Bootstrap = require('./support/bootstrap'); var manager = require('./support/manager'); describe('manager', function() { describe('.create', function() { beforeEach(function(done) { Bootstrap.database().then(function() { ...
const ipc = require('electron').ipcRenderer const { dialog } = require('electron').remote const fs = require('fs') const SerialPort = require('serialport') const Vue = require('vue/dist/vue.min.js') const si = require('./scripts/SI.js') var currentCard = null var port var app = new Vue({ el: '#content', data:...
import {connect} from 'react-redux'; import {EnhanceLoading} from '../../components/Enhance'; import helper from '../../common/common'; import {Action} from '../../action-reducer/action'; import {getPathValue} from '../../action-reducer/helper'; import {PO_ITEMS} from './todo/TodoForPO'; import {LO_ITEMS} from './todo/...
import React from "react" import { Link, graphql } from "gatsby" import Layout from "../components/layout" import SEO from "../components/seo" import { Container, Divider, Box, makeStyles, Typography, Chip, } from "@material-ui/core" // Highlighting for code blocks import "prismjs/themes/prism-okaidia.css" ...
'use strict'; const constants = require('../common/constants'); const sessions = require('../common/sessions'); const Promise = require('bluebird'); const _getAccessToken = require('./get_access_token'); const _getAppGuidByRequestUrl = require('./get_app_guid_by_request_url'); const _getUserByAccessToken = require('....
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { FormattedMessage } from 'react-intl'; import { Table, OverlayTrigger, Tooltip } from 'react-bootstrap'; import { defaultMemoize } from 'reselect'; import DownloadSolutionArchiveContainer ...
import {useHistory} from "react-router"; import {useField, useFile} from "../../hooks"; import {Button, Container, Dropdown, Form, Modal, Pagination, Table} from "react-bootstrap"; import React, {useState} from "react"; import {gql} from "@apollo/client/core"; import {useMutation, useQuery} from "@apollo/client"; impor...
import React from "react"; import PropTypes from "prop-types"; import { Form, Input, Modal, Radio ,Select,Cascader} from "antd"; import ImageUpload from "../../../../components/FileUpload/ImageUpload"; import city from '../../../../utils/city' const FormItem = Form.Item; const RadioGroup = Radio.Group; const formItemL...