text
stringlengths
3.07k
16k
//<NAME> //Date: 12/19/2018 //Udacity Front End Web Development - Matching Game /* Cards array holds all cards in deck */ const card = document.getElementsByClassName('card'); let cards = [...card]; //Stars array to add and remove stars const star = document.getElementsByClassName('stars'); let starsArray = star[0].g...
let config = require('./config.js') let utils = require('./utils.js') let youtubedl = require('youtube-dl') let YouTube = require('youtube-node') let fs = require('fs') let VLC = require('node-vlc-json') let musicmetadata = require('node-ffprobe') function Music (bot, speechInstance, settingsInstance) { this.bot ...
String.prototype.toProperCase = function () { return this.replace(/\w\S*/g, function (txt) { return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase(); }); }; String.prototype.toNonAlpha = function (spaces) { if (spaces === true) { return this.replace(/[^\w\s]/gi, '').replace(/ +(?= )/g, ''); } e...
import React, { Component } from "react"; import DateTime from "./DateTime"; import InputFieldNumber from "./InputFieldNumber"; import Dropdown from "./Dropdown"; import Checkbox from "./Checkbox"; import PropTypes from "prop-types"; import { Box, Button } from "@material-ui/core"; class StartVoyage extends Component ...
/** * Tests that read-in XML data is indexed properly by tags. */ const assert = require('chai').assert; const prettyFormat = require('pretty-format'); // eslint-disable-line no-unused-vars const path = require('path'); const elasticClient = require('../../lib/elasticClient'); const typeMappings = require('../../lib...
/* eslint-disable prettier/prettier */ import React from 'react'; // import { Grid } from 'semantic-ui-react'; import { connect } from 'react-redux'; import { compose } from 'redux'; import { push } from 'react-router-redux'; import PropTypes from 'prop-types'; import Section from '../../components/Section/Section'; im...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getMember = exports.getPath = exports.isPointer = exports.interp = exports.compileList = exports.compile = exports.tokenize = exports.Import = exports.Failure = exports.Member = exports.Module = exports.STATE_FINISHED = exports.STATE_M...
/** * Ticket article object * @author <NAME> */ const endpoints = require("./Endpoints"); const ApiError = require("./ApiError"); const Ticket = require("./TicketState"); const Utility = require("./Utility"); const { Validators } = Utility; class TicketArticle { /** * Create a new ticket article object ...
import React from "react"; import { View, Text, TextInput, Picker, SafeAreaView, FlatList, TouchableOpacity, } from "react-native"; import { getStyle } from "../../style/TrainingCreator/trainingCreatorStyle.js"; import { buildStyleSheet, isNormalInteger } from "../../utils/functions.js"; import Button fro...
/** * * TableMenu * */ import { createRef, Fragment, useEffect, useRef, useState } from 'react'; import PropTypes from 'prop-types'; import { Accordion, Checkbox, Icon, Menu } from 'semantic-ui-react'; import VisuallyHidden from 'components/VisuallyHidden/VisuallyHidden'; import { isMobile, isWindowWidthLessThan...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ConditionalText = exports.InnerText = exports.HighlightedText = exports.Video = exports.Img = exports.GridItem = exports.Grid = exports.BoldParagraph = exports.Paragraph = exports.Text = exports.ListItem = exports.List = exports.PageBr...
const TIME_BEFORE_COLLISION_DETECTION = 2000; const TIME_BEFORE_PLANET_GROW = 1000; const MINIMUM_DISTANCE = 100; const MAXIMUM_DISTANCE = 500; const SUN_RADIUS = 200; const planets = []; // Generate randoms planets for tests /* const numPlanets = 800; let countPlanets = 0; //for (let i = 0; i < numPlanets; i++){ c...
import slicedToArray from '../../../node_modules/@babel/runtime/helpers/slicedToArray.js'; import React, { useState, useCallback } from 'react'; import propTypes from '../../../node_modules/prop-types/index.js'; import _styled from 'styled-components'; import '../../utils/environment.js'; import { RADIUS } from '../../...
const { readFile } = require('./yamlReader') const { matchLogWithStories } = require('./storyMatcher') const diff = require('deep-diff').diff // Rasa default actions (see https://rasa.com/docs/rasa/default-actions/) const defaultActions = ['action_listen', 'action_restart', 'action_session_start', 'action_default_fall...
/* eslint-disable no-undef */ import Component from '@ember/component'; import {computed, observer} from '@ember/object'; import {inject as service} from '@ember/service'; import chartTheme from 'adaptone-front/constants/chart-theme'; const EQ_GAINS_SERIE_INDEX = 0; const AMPLITUDES_SERIE_INDEX = 1; const ADDED_AMPLI...
import React, { useState } from "react"; import { Switch, Route, Link } from 'react-router-dom' import styled from 'styled-components'; import Banner from '../images/pexels-jonathan-borba-2878741.jpg'; import FoodOne from '../images/food1.jpg'; import FoodTwo from '../images/food2.jpg'; import FoodThree from '../images...
var API_KEY = '<KEY>'; var app = new Vue({ // Initialize Vue application el: '#app', // Bind app to div with id='app' data: { // Once-loaded app data api_error: null, error: null, bookmark_message: null, faqs: [ //{'q': 'How do you do?', 'a': 'Very well kind sir.', 'expanded': false} ], spreadsheet_pl...
/*================================================================================*\ * |说明|_格式化 美化代码 * |说明| * |返回|值 \*================================================================================*/ //正常格式化各种代码 function _bs(el){ var c = el.innerHTML, sp = c.match(/^[...
const objectMap = require('object.map') const isArray = require('is-array') const isObject = require('is-object') const { Op, } = require('sequelize') module.exports = (json, models, Sequelize) => { return (new ParseOrder(models, Sequelize)).parse(json) } class ParseOrder { constructor (models, Sequelize) { t...
/** * @name Build-Graph-for-NPM-with-Graphviz * @summary Give package name, get its dependencies in a fancy way * @author serguun42 */ const fs = require("fs"); const util = require("util"); const fsWriteFile = util.promisify(fs.writeFile); const fsStat = util.promisify(fs.sta...
var _ = require('lodash'); var util = require('util'); var events = require('events'); var logger = require('./logger')('sys-chk'); var COMMAND_SUFFIX = '\r'; var PORT_DIRECTORY = '/dev/serial/by-id/'; var COMMAND_LIST = [ ['vendor', 'AT+CGMI',''], ['model', 'AT+CGMM',''], ['version', 'AT+CGMR',''...
const expect = require('chai').expect; const sinon = require('sinon'); const EventEmitter = require('events'); // Electron's WebContents mock class WebContents extends EventEmitter { constructor() { super(); this.session = { webRequest: { onBeforeRequest: () => {}, onHeadersReceived: () => {} } };...
import React, {Component} from 'react'; import cookie from 'react-cookies'; import {Redirect} from 'react-router'; import NavBar from "../NavBar"; import { connect } from 'react-redux'; import axios from 'axios'; import {rooturl} from '../../config'; import {Link} from 'react-router-dom'; import { Card, Image,...
import { LinkedMap } from '../build/index.js' import { Map } from 'immutable' const value1 = Map({id: 1, name: 'one'}) const value2 = Map({id: 2, name: 'two'}) const value3 = Map({id: 3, name: 'three'}) const value4 = Map({id: 4, name: 'four'}) const value5 = Map({id: 5, name: 'five'}) const addToList = (val, list) =...
import React from 'react'; import './style.scss'; import { setFollowed, setFollowsMap, setLikesMap, extractAccountsFromPosts } from '../HomePage/homeActions'; import { Link } from 'react-router-dom'; import { connect } from 'react-redux'; import { Spin, Statistic, Row, Col, List, Avatar, Divider, Skeleto...
import React from 'react' import styled from 'styled-components' import Link from '../Link' import Hero from './Hero' import { dashPath } from '../../lib/utils' const Wrapper = styled.div`` const Home = () => ( <Wrapper> <Hero /> <section className='lorem'> <div className='inner wrap'> <Link t...
import React, { useEffect, useState } from 'react'; import { v4 as uuidv4 } from 'uuid'; import './CreateArticle.css'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faMeteor } from '@fortawesome/free-solid-svg-icons'; import { CKEditor } from '@ckeditor/ckeditor5-react'; import ClassicEdito...
import { StatusBar } from 'expo-status-bar'; import React from 'react'; import { StyleSheet, SafeAreaView, ScrollView, Image, TouchableOpacity } from 'react-native'; import { LineChart } from 'react-native-svg-charts'; import {line} from "react-native-svg"; import * as shape from 'd3-shape' import Constants from 'expo-...
// Copyright Joyent, Inc. and other Node contributors. // // 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, modi...
import React, { Component } from 'react'; import { Link, Switch, Route } from 'react-router-dom'; import { deleteFromStorage } from '../../utils/storage' import NavbarDevice from '../NavigationComponent/NavbarDevice.jsx' import DeviceList from '../Branches/DeviceList.jsx' import { CartDetails, RepairDetails } from '...
import React, { useState } from "react"; import { Button, List, Modal, Layout, Menu, Form, Input, Typography, InputNumber, } from "antd"; import { ReadOutlined, UserOutlined } from "@ant-design/icons"; import Head from "next/head"; import Colmeia from "../components/colmeia"; import Link from "next/li...
// Copyright (c) 2019 Uber Technologies, Inc. // // 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 ...
const https = require('https'); const fs = require('fs'); const options = { key: fs.readFileSync('key.pem'), cert: fs.readFileSync('cert.pem') }; const express = require('express'); const bodyParser = require('body-parser'); const cors = require('cors'); const bcrypt = require('bcrypt'); const saltRounds = 10...
import { Button, Card } from 'antd' import React, { useMemo } from 'react' import { useDrizzle, useDrizzleState } from '../temp/drizzle-react-hooks' import ETHAmount from './eth-amount' import { ReactComponent as Gavel } from '../assets/images/gavel.svg' import { Link } from 'react-router-dom' import PropTypes from 'pr...
const Utils = { formatTime: (time) => { if (typeof time !== 'number' || time < 0) { return time } var hour = parseInt(time / 3600) time = time % 3600 var minute = parseInt(time / 60) time = time % 60 var second = time return ([hour, minut...
$('.carousel.carousel-slider').carousel({ full_width : true }); $('select').material_select('destroy'); $.fn.serializeObject = function() { var o = {}; var a = this.serializeArray(); $.each(a, function() { if (o[this.name] !== undefined) { if (!o[this.name].push) { o[t...
if (typeof jQuery === "undefined") { throw new Error("jQuery plugins need to be before this file"); } $.AdminBSB = {}; $.AdminBSB.options = { colors: { red: '#F44336', pink: '#E91E63', purple: '#9C27B0', deepPurple: '#673AB7', indigo: '#3F51B5', blue: '#2196F3', ...
const arrLen = 2 const tardis = { name: 'TARDIS', class: 'Time and Relative Dimension in Space', modelType: 40, manufacturer: 'Gallifrey', features: [ 'Bigger on the inside', 'Space Transport', 'Time Travel' ], exterior: { policeBox: ['1963', '1966', '1976', '1980', '1996', '20...
$('#accordion').accordion({active: false, collapsible: true}); $(function(){ $('.datepicker').datepicker({ dateFormat: "yy-mm-dd", timeFormat: "HH:mm" }); }) $(function() { $( "#accordion" ).accordion(); $("#accordion").click(function() { $( "#effect:visible" ).fadeOut('slow/600/fast', fu...
"use strict"; const fs = require("fs"); require("./mongoose.connection"); require("../models/Users"); let express = require("express"); require("./redis.connection"); const responseTime = require("response-time"); const path = require("path"); let app = express(); const LOG_PATH = path.dirname(__dirname); const MAX_L...
import {parshiot} from '@hebcal/core'; import numverses from './numverses.json'; /** * Names of the books of the Torah. BOOK[1] === 'Genesis' */ export const BOOK = ['', 'Genesis', 'Exodus', 'Leviticus', 'Numbers', 'Deuteronomy']; export const doubled = [ 21, // Vayakhel-Pekudei 26, // Tazria-Metzora 28, // <...
import React, { createContext, useEffect, useReducer } from 'react' import axios from 'axios' const API_BASE_URL = 'https://api.coingecko.com/api/v3' const CONFIG_ASSET_IDS = 'asset_ids' const CONFIG_CURRENCY = 'user_currrency' const context = createContext(null) const currenciesSymbol = { usd: '$', eur: '£', jpy: '¥...
import React, { Component } from 'react' import PropTypes from 'prop-types' import flow from 'lodash/fp/flow' import isEmpty from 'lodash/isEmpty' import isEqual from 'lodash/isEqual' import map from 'lodash/map' import find from 'lodash/find' import get from 'lodash/get' import { withStyles } from '@material-ui/core/s...
"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)...
'use strict'; var $ = require('jquery'); var ko = require('knockout'); require('knockout.validation'); var $osf = require('./osfHelpers'); var citations = require('./citations'); var bootbox = require('bootbox'); var BASE_URL = '/static/vendor/bower_components/styles/'; var STYLES = { apa: 'apa.csl', mla: 'mo...
//core.js //Provides general utility methods, module unpacking methods and the PhiloGL app creation method. //Global this.PhiloGL = null; //Creates a single application object asynchronously //with a gl context, a camera, a program, a scene, and an event system. (function () { PhiloGL = function(canvasId, opt) { ...
import React, { PureComponent } from 'react'; import { PropTypes } from 'prop-types'; import { connect } from 'react-redux'; import { StyleSheet, ScrollView, View } from 'react-native'; import { addFriendsEvent } from '../../../libs/mixpanel'; import LayoutView from '../../dumbs/layoutView'; import List from '../../d...
"use strict"; // eslint-disable-next-line @typescript-eslint/no-unused-vars function registerModification(manifestDirBlobURL, license, cargoAddCommand, dependencyUL, codeSizeUnmodified, verifiedWith) { if (!window.location.pathname.endsWith("/index.html")) { return; } document.addEventListener("DOMC...
const fs = require('fs') const mineType = require("mime-types") const path = require('path'); window.pluginInfo = JSON.parse(fs.readFileSync(path.join(__dirname, 'plugin.json'))); window.qiniu = require('qiniu'); const mineMap = { "image/bmp": "bmp", "image/gif": "gif", "image/heic": "heic", "image/jpe...
/* eslint-disable no-console */ const mosca = require("mosca"); const axios = require("axios"); const settings = { port: 1883 }; const TEMPERATURE = "Temperature"; const HUMIDITY = "Humidity"; const Axios = axios.create(); Axios.defaults.timeout = 5 * 60 * 1000; function alert({ title, text, user }) { Axios.post( ...
import { createLocalVue, shallowMount } from '@vue/test-utils'; import 'src/module/sw-settings/mixin/sw-settings-list.mixin'; import 'src/module/sw-settings-snippet/page/sw-settings-snippet-set-list'; import 'src/app/component/grid/sw-grid'; import 'src/app/component/grid/sw-grid-column'; import 'src/app/component/grid...
let DB; //Selectores de Interfaz const form = document.querySelector('form'), nombreMascota = document.querySelector('#mascota'), nombreCliente = document.querySelector('#cliente'), telefono = document.querySelector('#telefono'), fecha = document.querySelector('#fecha'), hora = document.q...
const Jimp = require('jimp') const List = require('void-list') const fs = require('fs') const path = require('path') const { getPaletteFromImage, replacePixels } = require('./index') let plank_types = [ "beams", "bricks", "crate", "diagonal_stripes", "diagonal_tiles", "dotted", "flooring", ...
"use strict"; const _ = require("lodash"); /** * @function merge * @private * @description merges the objects recieved into a single object. This function will nest the second * parameter sent to it in a payload property. * @param {Object} message The original message object. * @param {Object} payload The obj...
/* REQUIRED STUFF ============== */ var changed = require('gulp-changed'); var gulp = require('gulp'); var imagemin = require('gulp-imagemin'); var sass = require('gulp-sass'); var browserSync = require('browser-sync'); var reload = browserSync.reload; var notify = require('gulp-notify...
import tag from 'html-tag-js'; import openFolder from '../lib/addFolder'; /** * @typedef {object} SideBar * @property {function():void} hide * @property {function():void} toggle * @property {function():void} onshow */ /** * * @param {HTMLElement} [activator] * @param {HTMLElement} [toggler] * ...
import { fromJS } from 'immutable'; import { handleActions, createAction } from 'redux-actions'; import { createApiAction } from '../middleware/apiMiddleware'; import { actionTypes as uploadActionTypes } from './upload'; export const submissionStatus = { NONE: 'NONE', CREATING: 'CREATING', VALIDATING: 'VALIDATIN...
import React from 'react'; import { Grid, Button, Modal, Header, Icon, Progress, Step, Dropdown, Divider, } from 'semantic-ui-react'; import { Link } from 'react-router-dom'; class NewCandidate extends React.Component { constructor(props) { super(props); this.state = { minNumber: '',...
import _ from "lodash"; import React, { Component } from "react"; import { withRouter, Link } from "react-router-dom"; import { connect } from "react-redux"; import PropTypes from "prop-types"; // material-ui import { withStyles } from "@material-ui/core/styles"; import Card from "@material-ui/core/Card"; import CardA...
import differenceInSeconds from 'date-fns/fp/differenceInSeconds'; import toDate from 'date-fns-tz/toDate'; import { spinner } from 'images'; import ErrorReporter from 'lib/errors/ErrorReporter'; import { relativeDate } from 'lib/helpers'; import React from 'react'; import { connect } from 'react-redux'; import { bindA...
"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]; ...
import React from "react"; import { makeStyles } from "@material-ui/core/styles"; import { Grid, Typography, Paper } from "@material-ui/core" import ProjectCard from './ProjectCard' const width_proportion = '100%'; const useStyles = makeStyles({ root: { display: 'flex', flexWrap: 'wrap', w...
'use strict'; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })...
import { createSelector } from 'reselect'; import { PropertyValue } from 'manifesto.js/dist-esmodule/PropertyValue'; import flatten from 'lodash/flatten'; import AnnotationList from '../../lib/AnnotationList'; import { getCanvas, getCanvases } from './canvases'; import { getWindow } from './getters'; import { getManife...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _three = require('three'); var Three = _interopRequireWildcard(_three); var _react = require('react'); var _react2 = _interopRequireDefault(_react); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { defa...
$('.select').attr('disabled', true); var $kagen = $('.kagen'); //都道府県の要素を変数に入れます。 var $jougen = $('.jougen'); //都道府県の要素を変数に入れます。 var kagenoriginal = $kagen.html(); //後のイベントで、不要なoption要素を削除するため、オリジナルをとっておく var jougenoriginal = $jougen.html(); //後のイベントで、不要なoption要素を削除するため、オリジナルをとっておく var val1; v...
'use strict'; const commander = require('commander'); const execute = require('abacus-cmdline').execute; const throttle = require('abacus-throttle'); const request = require('abacus-request'); const dbclient = require('abacus-dbclient'); const createLifecycleManager = require('abacus-lifecycle-manager'); const { Conne...
let game = 0 let balls = []; let strikes = []; let barrierthickness = 30 pocketsize = 90 // this is not the actual size in pixels ballradius = 20 let temp = 0 function setup() { var canvas = createCanvas(1000, 600); canvas.parent('poolgamegoeshere') background(200); let xstart = 0...
'use strict'; function flattenInstance(symbols, instance, unflattenedSymbols) { /* jshint maxstatements: 100 */ var id = instance.id; var symbol = symbols[id]; if (!symbol) { return []; } var c, children; if (!symbol.isAnimation || symbol.className || Object.keys(instance).length > 4) { // Anything th...
'use strict'; var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs); var _module = require('module'); var _module2 = _interopRequireDefault(_module); var _loaderRunner = require('loader-runner'); var _loaderRunner2 = _interopRequireDefault(_loaderRunner); var _queue = require('async/queue'); var _queu...
'use strict'; var test = require('tape'); var net = require('net'); var WrappedError = require('../wrapped.js'); test('can create a wrapped error', function t(assert) { var ServerListenError = WrappedError({ name: 'SomeError', message: 'server: {causeMessage}', type: 'server.listen-failed...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); var _exportNames = {}; exports.default = createProviderEngine; var _abortable = _interopRequireDefault(require("../../../../core/promise/abortable")); ...
const TYPES = { 'undefined': true, 'number': true, 'boolean': true, 'string': true, '[object Function]': true, '[object RegExp]': true, '[object Array]': true, '[object Date]': true, '[object Error]': true, '[object Blob]': true, '[object Promise]': true // DOES NOT WORK in a...
//////////////////////////////////////////////// //LEFT WINDOW var winLeft = Ti.UI.createWindow(); var leftTableView = Ti.UI.createTableView({ font:{fontSize:12}, rowHeight:40, data:[ {title:'Basic'}, {title:'Basic2'}, {title:'left to right'}, {title:'Change Center Window'}, {title:'Default Window'}, ...
var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < ...
import React, { Component } from "react"; import { View, Text, StyleSheet, ImageBackground, TextInput, TouchableOpacity, Image, Animated, Dimensions, Keyboard, Platform, StatusBar } from "react-native"; import Icon from "react-native-vector-icons/FontAwesome"; const SCREEN_HEIGHT = Dimensions....
"use strict"; var topological_sort = require('../../lib/topological_sort'); var suggest_it = require('suggest-it'); var funcParams = require('../../lib/function_helpers').parameters; var helpers = { no_parents: no_parents, get_element_parents: get_element_parents, get_parents_from_values: get_parents_from_val...
"use strict"; /* ** Pane for running existing forms for any object ** */ var UI = require('solid-ui'); var $rdf = require('rdflib'); var ns = UI.ns; module.exports = { icon: UI.icons.iconBase + 'noun_122196.svg', name: 'form', audience: [ns.solid('PowerUser')], // Does the subject deserve ...
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed u...
/* ** es6-features -- ECMAScript 6 Feature Overview & Comparison ** Copyright (c) 2015-2016 <NAME> <<EMAIL>> ** ** 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, in...
/** * Created by hen on 2/20/14. */ var bbVis, brush, createVis, dataSet, handle, height, margin, svg, svg2, width; var xAxis, xScale, yAxis, yScale; margin = { top: 50, right: 50, bottom: 50, left: 250 }; width = 960 - margin.left - margin.right; height = 500 - margin.b...
import React, { Component } from "react"; import { Link } from "react-router-dom"; import NoSSR from "react-no-ssr"; import { Preloader, Placeholder } from "react-preloading-screen"; import ReactWOW from "react-wow"; import Loader from "../Shared/Loader"; import Navigation from "../Navigation/Navigation"; import Footer...
var Blast = require('../index.js')(), BlastPath = require.resolve('../index.js'), browserify = require('browserify'), assert = require('assert'), base = __dirname + '/../', git = require('git-rev'), wd = require('wd'), fs = require('fs'); function pr(message) { console.log(message); } var...
import { has } from "lodash"; import { queue } from "async"; import Dexie from "dexie"; const log = require("src/lib/log")("http"); export const db = new Dexie("requestCache"); const componentProfiles = 100; // eslint-disable-line const componentVendorReceipts = 101; // eslint-disable-line const componentProfileInve...
var eventBus = new Vue() Vue.component('product', { props: { premium: { type: Boolean, required: true } }, template: ` <div class="product container"> <div class="row"> <div class="col-6"> <div class="product-image"> <i :style="{ color: fontColo...
function addEvent(event, elm, handler, bubble) { if (elm.addEventListener) elm.addEventListener(event, handler, bubble); else if (elm.attachEvent) elm.attachEvent("on"+event, handler); } function delEvent(event, elm, handler, bubble) { if (elm.removeEventListener) elm.removeEventListener(event, handler, bubbl...
// jshint esversion: 6 'use strict'; /** * This module is responsible for the mine sweeper game. * * The MineSweeper Configuration has the following properties: * - n {Integer}: the length of the x-axis * - m {Integer}: the length of the y-axis * - mines {Integer}: number of mines in the game * - gameState...
'use strict'; var Promise = require('bluebird'), PromiseQueue = require('promiseq'), request = Promise.promisify(require('request'), { multiArgs: true }), _ = require('lodash'), MAX_CONCURRENT_QUERIES = 10, RESULTS_PER_PAGE = 10000; // require('request').debug = true; Promise.pr...
/** Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"...
const { resolve } = require('path'); const { readFileSync, writeFile, existsSync, appendFile } = require('fs'); const { DirList, Http, appendFileText, log, render, arrayFlatten, padStrBeauty, FILE_TYPE_MAP, LEVEL_MAP } = require('./util'); const { answerDir, readmeFile, problem, statistics, contributor, rank, stamp, re...
import React from 'react'; import styled from 'styled-components' import { graphql } from 'gatsby'; import BINMagnum from "../components/BINMagnum/BINMagnum" import SEO from '../components/Seo/Seo' import CarouselMagnum from '../components/CarouselMagnum/CarouselMagnum' import Accordion from "../components/AccordionMag...
const clone = require('../../util/clone'); const divideByGCD = require('./divideByGCD'); const math = require('mathjs'); const ChangeTypes = require('../../ChangeTypes'); const evaluate = require('../../util/evaluate'); const Node = require('../../node'); // Adds constant fractions -- can start from either step 1 or ...
let request = require('request'); let list = require('./stateList.js'); let abbr = require('./stateAbbreviation.js'); module.exports = { search: function(req, res) { let dataSearch = req.body; let address = dataSearch.address; let distance = dataSearch.distance; let dates = dataSearch.dates; let ...
/* eslint no-console: ["error", { allow: ["warn", "error"] }] */ import React, { Children, cloneElement } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import { ListController, getListControllerProps } from 'ra-core'; import Title from '../layout/Title'; import ListToolbar fro...
// This function is analogue to Component.DateTimeLocalInput.State (parseInput) // It parses the valueStr using the same Regexp and tries to create a Date // object assuming that the date is in UTC. Functions utcToLocal/localToUtc // should be used to adjust the offset. function parseInput(valueStr) { const timeRegex...
/** * Copyright 2017 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 applic...
// -*- mode: js; indent-tabs-mode: nil; js-basic-offset: 4 -*- // // Copyright 2021 The Board of Trustees of the Leland Stanford Junior University // // Redistribution and use in source and binary forms, with or // without modification, are permitted provided that the following // conditions are met: // // 1. Redistrib...
import React from "react"; import { Container, Row, Col, Button, ListGroup, Tab, Modal, InputGroup, FormControl, Nav } from "react-bootstrap"; import Gallery from "react-grid-gallery" ; const folderURL = "https://4uwwpb6ojf.execute-api.eu-west-2.amazonaws.com/live/folders" ; class Articles extends React.Component { ...
'use babel'; import { EventEmitter } from 'events'; const fs = require('fs'); const path = require('path'); import { CompositeDisposable } from 'atom'; import { execSync, exec, spawnSync } from 'child_process' import { platform } from 'os'; // Package settings import meta from '../package.json'; expo...
import Trace from 'demos/tom/trace.js'; import wrapAST from 'demos/tom/wrapAST.js'; 'hello world' let pluginDefinedTrace = false; export default function({ types: t }) { function error(path, message) { throw path.buildCodeFrameError(message); } const returnVisitor = { ReturnStatement(pat...