text
stringlengths
3.22k
29.5k
var args = require('yargs').argv; var chalk = require('chalk'); var fs = require('fs-extra'); var _ = require('lodash'); var path = require('path'); var pretty = require('prettysize'); var exif = require('exif'); module.exports = function (gulp, config, plugin, help) { help.registerHelp('photos-exif', { ...
import React, { useEffect, useState } from "react"; import { useDispatch, useSelector } from "react-redux"; import { useTranslation } from "react-i18next"; import InfiniteScroll from "react-infinite-scroll-component"; import { SubscriptionGridViewApi, OpenAddSubscriptionForm, SubscriptionSuggetionListApi, SubscriptionS...
var $ = window.$ var notCodeUsers = window.notCodeUsers var base_url = window.base_url var code = window.code var select_cl = window.projects_cl var select_sc = window.projects_sc var projects_cl = [] var projects_sc = [] $(document).ready(function(){ selectCode(code) getCodeCount() $('.glyphicon-user + span').ani...
import React, { useState, useEffect } from 'react' import Styled, { css } from 'styled-components' import PropTypes from 'prop-types' import useQuakeData from '../hooks/get-quake-data-hook' import QuakeTotals from './quake-totals' import MagnitudeChart from './magnitude-chart' import DashboardSettings from './dashboa...
"use strict"; function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ...
import KeyboardArrowUpIcon from '@material-ui/icons/KeyboardArrowUp' import KeyboardArrowDownIcon from '@material-ui/icons/KeyboardArrowDown' import CropFreeIcon from '@material-ui/icons/CropFree' import ArrowDropDown from '@material-ui/icons/ArrowDropDown' import ColumnMenuFactory from './ColumnMenu' import RowMenuFac...
var presenterUserID = ""; var registerListeners = function() { console.log("Listening for events."); BBB.listen("QueryPresentationsReplyEvent", function(bbbEvent) { console.log("Number of presentations [" + bbbEvent.presentations.length + "]. First presentation [" + bbbEvent.presentations[0] + "]."); });...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var vue = require('vue'); var core = require('@vueuse/core'); var lodashUnified = require('lodash-unified'); var index = require('../../icon/index.js'); require('../../../hooks/index.js'); require('../../../constants/index.js'); require('../...
/*jshint node:true*/ "use strict"; var scrapertools = require("./lib/scrapertools") , get_or_load = scrapertools.get_or_load , open_data_repo = scrapertools.open_data_repo , mkdirSync = require("./lib/mkdir").mkdirSync , fs = require('fs') , canvg = require("./lib/canvg") , Canvas = require("canvas") , s...
import React, {Component} from 'react'; import {Table, Menu, Icon, Dropdown, Modal, Tooltip, Divider} from 'antd'; import SelectPanel from '../commonTool/SelectPanelTool/SelectPanel.js'; import SearchPanel from '../commonTool/SelectPanelTool/SearchPanel.js'; import SearchTablePanel from '../commonTool/SearchTablePanel/...
import * as R from 'ramda' import * as Survey from '@core/survey/survey' import * as NodeDef from '@core/survey/nodeDef' import * as NodeDefLayout from '@core/survey/nodeDefLayout' import * as API from '@webapp/service/api' import { debounceAction } from '@webapp/utils/reduxUtils' import { appModuleUri, designerModu...
import * as act from "src/actions/types"; import uniqWith from "lodash/uniqWith"; import reverse from "lodash/reverse"; import compose from "lodash/fp/compose"; import set from "lodash/fp/set"; import get from "lodash/fp/get"; import find from "lodash/fp/find"; import findIndex from "lodash/fp/findIndex"; import update...
// const sourceDisqualifier = "{ [native code] }"; const sourceDisqualifier = String(class {}.constructor).replace(/^[^{]*/, ""); // // TODO: consider improving with new Error().stack(? and https://v8.dev/docs/stack-trace-api) export function callback() { const THIS = this; const scopedRefsThenFn = Array.apply(nul...
import * as utils from './utils.js' /** @const {number} */ const QUARTER_NOTE = 0; /** @const {number} */ const EIGHTH_NOTE = 1; /** @const {number} */ const SIXTEENTH_NOTE = 2; /** Metronome class for handling scheduling and current beat. */ class Metronome { constructor(audio, viz) { /** @type {!audio.Audio} ...
'use strict' const _ = require('lodash') const Struct = require('../../../index') const DataTypes = require('../../../libs/type') const dictionary = { '0001': { name: 'heartbeat', type: DataTypes.NUMBER(2) }, '0002': { name: 'tcpOvertime', type: DataTypes.NUMBER(2) }, '0003': { name: 'tcpRetransmission', type: ...
import React, { Component } from 'react'; import styles from './_sideMenuAddModule.scss'; import classNames from 'classnames/bind'; // import FontAwesomeIcon from '@fortawesome/react-fontawesome'; // import { faCaretRight } from '@fortawesome/pro-solid-svg-icons'; import { ModulesData, MaterialsOptions } from '../../d...
const X_SIZE = 28; const Y_SIZE = 28; var STEP_NUM = 20; var MAX_TRAIN_NUM = 1000; const BATCH_SIZE = 8; const EPOCHS = 1; const REF_VAL = 0.8; var train_files_0; var train_files_1; var test_files_0; var test_files_1; function load_data_1(f){ return new Promise(resolve => { var reader = new Fil...
import React from "react"; import clsx from "clsx"; import { bluprintRoutes } from "../../../Utility/routes"; // Import Mui Components import { makeStyles, useTheme } from "@material-ui/core/styles"; import Drawer from "@material-ui/core/Drawer"; import AppBar from "@material-ui/core/AppBar"; import Toolbar from "@mat...
// import React, { Component, useEffect, useState } from "react"; // import MyToken from "./contracts/MyToken.json"; // import MyTokenSale from "./contracts/MyTokenSale.json"; // import KycContract from "./contracts/KycContract.json"; // import getWeb3 from "./getWeb3"; // import "./App.css"; // const App = (props) =...
var Imported = Imported || {}; var NecroTheif = NecroTheif || {}; NecroTheif.BetterText = {}; /*: * @plugindesc Adds more text features! <pluginID Necro Better Text> * @author NecroTheif * * @param Wrap On * @desc If the word wrap is by default on or not * @default false * * @param Alignment * @desc The defa...
const fetch = require('node-fetch'); const jsdom = require('jsdom'); const {JSDOM} = jsdom; const {unescape} = require('html-escaper'); const log = require('../log'); const config = require('../../../config'); const STATE_STARTED = 1; const STATE_CHECKING = 2; const STATE_ERROR = 16; const STATE_PAUSED = 32; const STA...
import React, { useReducer, useEffect } from 'react' import fbt from 'fbt' import get from 'lodash/get' import pick from 'lodash/pick' import ProcessingTimes from '@origin/utils/ProcessingTimes' import { Countries } from 'data/Countries' import useShopConfig from 'utils/useShopConfig' import useShippingZones from 'ut...
const $ = require('jquery'), d3 = require('d3'), tippy = require('tippy.js'), chroma = require('chroma-js'), topojson = require('topojson'), Bloodhound = require('bloodhound-js'), typeahead = require('typeahead.js'); const cols = { font: 'rgb(51, 51, 49)', bg: '#ffffff', }; // const ra...
import * as R from 'ramda' import store from '@/store' const localizations = { de_DE: { general: { yes: 'Ja', no: 'Nein', abstention: 'Enthaltung', member: 'Teilnehmer' }, view: { login: { label: { username: 'E-Mail oder Mitgliedsnummer*', usernam...
// Copyright 2014-2021, University of Colorado Boulder /** * Displays a number in scientific notation, M x 10^E, where M is the mantissa and E is the exponent (e.g. 2.34 x 10^-4). * To conserve memory, creates one set of scenery.Text nodes, modifies their text as needed. * * @author <NAME> (PixelZoom, Inc.) */ i...
/* * Copyright (C) 2012-2013 DFKI GmbH * Deutsches Forschungszentrum fuer Kuenstliche Intelligenz * German Research Center for Artificial Intelligence * http://www.dfki.de * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentati...
'use strict'; const async = require('async'); const _ = require('lodash'); const gremlinHelper = require('./gremlinHelper'); const { prepareError } = require('./utils'); module.exports = { connect: function (connectionInfo, logger, cb) { logger.clear(); logger.log('info', connectionInfo, 'connecti...
/** * Module dependencies. */ var os = require('os'); var _ = require('underscore'); /** * Default options */ var options = { headerPathString: '.', // String rowDelimiter: ',', // String arrayPathString: ';', // String undefinedString: '', // String e...
/* eslint-disable */ import React, { useEffect } from "react"; import { useDispatch, useSelector } from "react-redux"; import styled from "styled-components"; import { colors } from "../utils/Colors"; import { RiArrowDropDownLine } from "react-icons/ri"; import ButtonsOutline from "../components/ButtonFlat"; import { F...
const urlSearch = "http://localhost:8080/api/search"; const urlSpellChecker = "http://localhost:8080/api/spellchecker" const urlSuggestion = "http://localhost:8080/api/suggestion"; let originalQuery; $(document).ready(function(){ setActualQuery(JSON.parse(sessionStorage.getItem('jsonresponse'))); setResults(JS...
/* eslint-disable import/no-dynamic-require, react/no-danger */ import React, { Component } from 'react' import PropTypes from 'prop-types' import { renderToString } from 'react-dom/server' import fs from 'fs-extra' import glob from 'glob' import path from 'path' import Helmet from 'react-helmet' import shorthash from...
// The Orchlab Percussion Box // Code by <NAME> <EMAIL> December 2020 // A project for Drake Music https://www.drakemusic.org/ for the Orchlab project https://orchlab.org/ // Made using P5.js https://p5js.org/ // currently using an old version of P5.sound as the latest version causes glitches on Chrome browse on Androi...
/* * Copyright (c) 2017, <NAME> <<EMAIL>>. * * This source code is licensed under the license found in the * LICENSE.md file in the root directory of this source tree. */ const _ = require('lodash') const AWS_REGION = process.env.AWS_REGION const AWS_ACCESS_KEY_ID = process.env.AWS_ACCESS_KEY_ID const AWS_SECRET...
"use strict"; exports.__esModule = true; var electron_1 = require("electron"); var fs = require("fs"); var MenuManager_1 = require("./src/scripts/MenuManager"); // Modules to control application life and create native browser window if (require("electron-squirrel-startup") == true) { (function () { console...
const fs = require('fs'); const sqlite = require('sqlite'); const dbPromise = sqlite.open('data/markdownald.db', { Promise }); const net = require('net'); var db $(document).ready(async () => { try { db = await dbPromise; var acc = await Promise.resolve(db.get(`select * from Persons`)) if (a...
import { withRouter } from 'next/router'; import PropTypes from 'prop-types'; import { useState, useEffect, useMemo, useRef } from 'react'; import uid from 'uid-promise'; import ipc from '../utils/ipc'; import About from '../components/about-screen'; import Title from '../components/title'; import Switcher from '../com...
import React, {useState, useEffect} from 'react' import {Row, Col} from "react-bootstrap" //replace import TerminusClient from '@terminusdb/terminusdb-client' import TextareaAutosize from 'react-textarea-autosize'; import { AiOutlineMenu, AiOutlinePlus, AiOutlineDown, AiOutlineRight, AiOutlineIdcard, AiOutlineUnordered...
// Generic imports – all plugins need these import React from "react"; import PropTypes from "prop-types"; import { Rnd } from "react-rnd"; import { withStyles } from "@material-ui/core/styles"; import AppBar from "@material-ui/core/AppBar"; import Tabs from "@material-ui/core/Tabs"; import Tab from "@material-ui/cor...
const wrapper = document.querySelector(".wrapper"), musicImg = wrapper.querySelector(".img-area img"), musicName = wrapper.querySelector(".song-details .name"), musicArtist = wrapper.querySelector(".song-details .artist"), mainAudio = wrapper.querySelector("#main-audio"), musicBody = document.querySelector("body"), pla...
var __create = Object.create; var __defProp = Object.defineProperty; var __defProps = Object.defineProperties; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropDescs = Object.getOwnPropertyDescriptors; var __getOwnPropNames = Object.getOwnPropertyNames; var __getOwnPropSymbols = Object.getOwnProp...
console.clear(); 'use strict'; /* -------------------------------- Icon component https://codepen.io/afalchi82/pen/XegMom ---------------------------------*/ Vue.component('vue-icon', { template: ` <svg version="1.1" style="vertical-align: middle;" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://w...
// https://github.khronos.org/KTX-Specification const VERSION = [ 0xAB, 0x4B, 0x54, 0x58, 0x20, 0x32, 0x30, 0xBB, 0x0D, 0x0A, 0x1A, 0x0A ]; const VERSION_OFFSET = 0; const VERSION_LENGTH = VERSION.length; const HEADER_OFFSET = VERSION_OFFSET + VERSION_LENGTH; const HEADER_LENGTH = 9 * 4; // 9 uint32s const INDEX_OFFSE...
/* * package scope functions */ // must be used in a template helper expectsArray = function expectsArray(inputAtts) { // If the user overrides the type to anything, // then we won't be using a select box and // we won't be expecting an array for the current value. // This logic should probably be more robust...
import React, { PureComponent, Fragment } from 'react'; import { connect } from 'dva'; import router from 'umi/router'; import { formatMessage } from 'umi-plugin-react/locale'; import { Row, Col, Card, Form, Input, Button, Modal, Table, notification, Upload, message, Icon, Select, } from 'antd';...
//-- Variables Globales -------------------------------------------------------- var navHeight = $('.navbar').height(); var navbar = $('.navbar.navbar-default'); var body = $('body'); var buttonNavbarToggle = $('button.navbar-toggle'); var windowHeight = $(window).height(); var windowWidth = $(window).width(); //-- Fun...
import React from "react" import CustomFluidImage from '../components/CustomFluidImage'; import theme from "../theme" import { ThemeProvider, Typography } from '@material-ui/core'; import styled from 'styled-components' import timerSvg from '../images/resources/timer_group_6705.svg' import narratorSvg from '../images/...
/** * @file message listener (1/2) */ const { TextChannel, MessageEmbed } = require('discord.js'); const { stripIndents } = require("common-tags"); const { formatDate, computeAge, isLeapYear } = require(`${__dirname}/../functions.js`); const colors = require(`${__dirname}/../colors.json`); module.exports = bot => {...
//problem 1 - Print Letters function printLetters(str) { let result = ''; for(let i in str) { result +=`str[${i}] -> ${str[i]}\n`; } return result.trim(); } console.log(printLetters('Hello, World!')); console.log(printLetters('SoftUni')); //problem 2 - Concatenate Reversed function concatenate...
// Global Vars var config = null; // Modules var readline = require("readline").createInterface({ input: process.stdin, output: process.stdout }); var fs = require("fs"); var request = require("request"); var querystring = require("querystring"); var jsdom = require("jsdom"); var rdio = null; // Start setu...
/*! * Project: cmdb-rtm * File: ./app/server.js * Author: <NAME> <<EMAIL>> * License: MIT * Created: 2017-12-31 */ 'use strict'; // Reads configuration from .env file require('dotenv').config() /** @_DEPENDENCIES **/ const atob = require('atob') const path = require('path') const utin = require('util...
"use strict"; /** * DNSServer, 22.10.2014 Spaceify Oy * * @class DNSServer */ var dns = require("./lib/native-dns"); var Netmask = require("./lib/netmask").Netmask function DNSServer() { var self = this; var options = {}; var serverUDP4 = null; var serverUDP6 = null; var serverTCP4 = null; var serverTCP6 = nul...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { t...
/* JS Resfresher */ console.log("Hellow World!"); //printing hello world in console /* Data Types undefined, null, boolean, string, symbol, number, and object */ var name = "Ian"; //var can be used through whole program num = 123; let ourName = "motherfuckers"; //within th...
import AddFacilityDialog from "views/Components/AddFacilityDialog"; import Dialog from "@material-ui/core/Dialog"; import React, {useEffect, useState} from "react"; import GridContainer from "components/Grid/GridContainer"; import GridItem from "components/Grid/GridItem"; import CardHeader from "components/Card/CardHea...
function update_polygons_in_map(response, map) { // Update color and stats of each polygon. map.eachLayer( function(layer) { if ('geo_code' in layer) { layer['stats'] = response[layer['geo_code']]; layer.setStyle({fillColor: get_color(layer['stats'])}); } } ); } function build...
var getAttribute = function(name, value) { return name + '="' + value + '"'; }; //Thanks to <NAME> var fastMove = function(arr, pos1, pos2) { // local variables var i, tmp; // cast input parameters to integers // if positions are different and inside array if (pos1 !== pos2 && 0 <= pos1 && pos1...
import React, { Component } from 'react'; import Web3 from "web3"; import { Link } from "react-router-dom"; import ReactLoading from "react-loading"; import ipfsAPI from "ipfs-api"; import toBuffer from "blob-to-buffer"; import FaHome from 'react-icons/lib/fa/home'; import styled from 'styled-components'; import { Te...
"use strict"; /******************************************************************************** * Copyright (C) 2018 TypeFox and others. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0 which is available at * http://www.eclipse.org/legal/epl...
const COLUMN_NAMES_2019 = { TIMESTAMP: 'Timestamp', AGE: 'Age', SEX: 'Gender', POSITION: 'Position (without seniority)', TOTAL_EXPERIENCE: 'Years of experience', CITY: 'City', CURRENT_SALARY: 'Yearly brutto salary (without bonus and stocks)', PREVIOUS_SALARY: 'Yearly brutto salary (witho...
import React from 'react'; import { View, Dimensions, ScrollView, Platform } from 'react-native'; import { connect } from 'react-redux'; import * as actions from "../../../store/actions"; import { setMasterCSBSeed, toggleSaveSeedConsent } from "./store/actions"; import InteractionsManager from "../../../services/Intera...
import React, { Fragment, Component } from 'react'; import { Tabs, Icon, Card, Steps, Button, Alert, Modal, message } from 'antd'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import QRCode from 'qrcode.react'; import { shell } from 'electron'; import paySettingActions from '../.....
/* * Copyright 2021, NTT Communications Corp. * * 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...
// This one acts in the context of the panel in the Dev Tools // // Can use // chrome.devtools.* // chrome.extension.* // global holding all chapter data, in the form {start, end, action} const chapterData = [{ start: 0, end: 0, action: 'Start Capture', actionNumber: 0 }]; // used to scale time to the 10 second mark i...
import React, { useState, useEffect } from "react"; // import { useSelector, useDispatch } from "react-redux"; import { withStyles, makeStyles } from "@material-ui/core/styles"; import Table from "@material-ui/core/Table"; import TableBody from "@material-ui/core/TableBody"; import TableCell from "@material-ui/core/Tab...
import React, {useState, useEffect} from 'react'; import { BrowserRouter as Router, Switch, Route, Link } from "react-router-dom"; import styled, { ThemeProvider, keyframes } from 'styled-components' import queryString from 'query-string' import { Github } from '@icons-pack/react-simple-icons'; const Container...
/* eslint-disable no-restricted-globals */ const Hand = require('pokersolver').Hand; const Mappings = require('../Maps'); const sendGame = require('./SendGame'); const models = require('../models'); const BadRequest = require('../errors/badRequest'); const { getUserHandObject } = require('./deck'); const { getPlayerC...
/** * Initializes the Openlayer map */ function initOpenLayerMap() { var omap = new ol.Map({ target: document.getElementById('omap'), layers: [ new ol.layer.Tile({ source: new ol.source.OSM() }) ], view: new ol.View({ center: ol.p...
/** * @author <NAME> <<EMAIL>> * @license Copyright (c) 2018, DTVI Group. All rights reserved. * @file Provides an API for communicating between a custom webpage and the CabMedia Android Application * @version 1.1.0 */ /** * constants */ const END_POINT = 'http://localhost:8090/' const URL_PARAM_DEBU...
var express = require('express'); var router = express.Router(); var auth = require('../config/auth'); var multiparty = require('multiparty'); var fs = require('fs'); var smartgame = require('smartgame'); var smartgamer = require('smartgamer'); var Kifu = require('../models/kifu').Kifu; var User = require('../models/us...
const path = require('path'); const through2 = require('through2-concurrent'); const PluginError = require('plugin-error'); const chalk = require('chalk'); const log = require('fancy-log'); const cssnano = require('cssnano'); const autoprefixer = require('autoprefixer'); const use = require('./postcss-use'); const Data...
import React, { useState, useEffect } from "react"; import PropTypes from "prop-types"; import { connect } from "react-redux"; import moment from "moment"; import { Card, Image, Button, Icon, Container, Divider, Modal, Header, Message, Segment, } from "semantic-ui-react"; import MongoConnectionForm from "./compone...
/** * Copyright 2020 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writi...
const countriesData = [ {"value": "Faroe Islands", "hc-key": "fo"}, {"value": "United States of America", "hc-key": "us"}, {"value": "Japan", "hc-key": "jp"}, {"value": "India", "hc-key": "in"}, {"value": "France", "hc-key": "fr"}, {"value": "China", "hc-key": "cn"}, {"value": "Ser...
var child_process = require('child_process'); var spawn = child_process.spawn; var EventEmitter = require('events').EventEmitter; var util = require('util'); var path = require('path'); var _ = require('lodash'); var fs = require('fs'); var path = require('path'); var vagrant = process.env.VAGRANT_DIR ? path.join(proc...
const io = require('socket.io'); const server = io.listen(3000); //Array to store sockets ids var socketsCreated = []; //Hangman Screen & Game Play var game_title = "\n ===========================================================================================\n| _________ __ ____ ____ ...
"use strict"; /** * JBB - Javascript Binary Bundles - Binary Decoder * Copyright (C) 2015 <NAME> <<EMAIL>> * * 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.or...
//Sistemas.html /* document.getElementById("btframe1").addEventListener("click", function(){ firstFrame(); }); document.getElementById("btframe2").addEventListener("click", function(){ secondFrame(); }); document.getElementById("btngps").addEventListener("click", function(){ document.title='V+GPS'; }); document.getE...
/** * Created by huyunting on 2018/6/4. */ import React, {PureComponent} from 'react'; import {connect} from 'dva'; import { Button, Card, Table, Icon, Pagination, Popconfirm, Select, Divider,Tag } from 'antd'; import PageHeaderLayout from '../../layouts/PageHeaderLayout'; import NamespaceSelect from '../../component...
import React, { Component } from 'react'; import { Alert, View, Text, StyleSheet, Dimensions, TouchableOpacity, AsyncStorage } from 'react-native'; import Carousel from 'react-native-snap-carousel'; import { rapid3Types, RAPID3_FN, RAPID3_PN, RAPID3_PTGE, calculateRAPID3Score } from './constant...
const test = require('tape'); const multiShowParser = require('./multiShowParser.js'); test('sxsw explicit venue, single show line', t => { const html = `<h4><input type="checkbox" name="satday" value="satday62"> <a href="https://www.facebook.com/events/959195647492920/">Jenni Finlay Promotions and Conqueroo Day Par...
/* * Bot.js * * Created by CreaturePhil */ // Bot's Name global.botName = 'Bott'; var joinAllRooms = true; if (joinAllRooms === false) { // put rooms in the array that you want the bot to join var joinRooms = ['lobby']; } exports.bot = function() { // Set up fake user connection for bot. Uses a fake ip v...
import uuidv4 from 'uuid/v4' import { getCurrentLocation } from './geo-location' import { getCart, getProductsFromCart } from './cart' import { browserName, browserVersion } from 'react-device-detect' import { getSessionId } from './cloudfront' import { productPrice, productOnSale, productAvailability } from './product...
import detailView from '../views/detail.art'; import swiperView from '../views/component/swiper.art'; import recmdView from '../views/component/recmd.art'; import '../../styles/modules/cover-detail.scss'; import BScroll from 'better-scroll'; import store from 'store'; import Model from '../models/detail'; import Callba...
'use strict'; var fs = require('fs'); var util = require('util'); var path = require('path'); var spawn = require('child_process').spawn; var yeoman = require('yeoman-generator'); var updateNotifier = require('update-notifier'); //var pkg = require('package.json'); var chalk = require('chalk'); var wiredep = require('...
/* eslint-disable camelcase */ const EventEmitter = require('events'); const _isEqual = require('lodash/isEqual'); const Bridge = require('./../index'); const SYNCING_INTERVAL = 5000; class BaseEntityBridge extends EventEmitter { /* config = { homie, mqttConnection: {username:'', password:'',...
require("dotenv").config(); const GUIDE_CHANNEL_NAME = "guide"; let invite_url = ""; process.env.NODE_ENV === "production" ? invite_url = `${process.env.BACKEND_SERVER_URL}` : invite_url = `${process.env.BACKEND_SERVER_URL}:${process.env.PORT}`; const createCategoryName = (courseString) => `📚 ${courseString}`; con...
var React = require('react'), Navbar = require('./navbar'), WorldView = require('./world'), Timeline = require('./timeline'), PropertiesPane = require('./properties'), Socket = require('./socket'), Settings = require('./settings'); import getMuiTheme from 'material-ui/styles/getMuiTheme'; Settings.setup({}, { ...
var currentPageType, readMoreIsSticky = false, readMoreIsActive = false, currentScrollPos = 0, currentTextScrollPos = 0, textScrollPointZero = 0, theRatio = 0, scrolldirection, theLine, theEndLine, browser; // ladeanimation loswerden (firsttime) $(window).load(function(e){ generalLoad(); }); // ready (first time on...
"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, {Component} from 'react'; import {Text,Platform, StyleSheet,View,Image,ScrollView,TextInput,KeyboardAvoidingView,TouchableOpacity,TouchableHighlight,AsyncStorage,} from 'react-native'; import { Container, Header, Left, Body, Right, Button, Icon, Title } from 'native-base'; import CustomHeader from '../.....
let Game = { worldWidth: 4329, worldHeight: 1080, }; let gameStarted = false; let thisGamesTurn = false; let playerHealth = { 0: 100, 1: 100 }; let clickable = true; let target = null; // Turn UI let turnSprite = null; let enemiesTurnSprite = null; let shotsFired = 0; let turret = null; let playerO...
// const capitalQuestions = [ // {question:"<h2>What is the state capital of Alabama?</h2>", // answers: ["Juneau","Indianapolis","Montgomery","Olympia"], // answerKey: "Montgomery", // questionTime: 100// }, const questionsArr = [ { question: 'What is the capital of Alabama?', answers...
var THREE = require('three'); var Iconeezin = require('iconeezin'); var InfiniteGround = require('./lib/InfiniteGround'); var Objects = require('./lib/Objects'); var BirdPath = require('./lib/BirdPath'); var BirdSong = require('./lib/BirdSongs'); var HUD = require('./lib/HUD'); const ANSWER = { CORRECT: 0, MASKED...
require('phaser'); let player; let greenEnemies; let starfield; let cursors; let bank; let shipTrail; let bullets; let fireButton; let bulletTimer = 0; let explosions; let enemyTrailParticles; // ANIMATIONS let explosionAnim; // ENUMS const ACCELERATION = 600; const DRAG = 400; const MAXSPEED = 400; const MIN_ENEMY...
import { Sprite, Tile, AudioManager as AM } from 'athenajs'; import ShapeBehavior from './shape_behavior'; class Shape extends Sprite { constructor(name, options = {}) { super(name, Object.assign({}, { imageId: 'tiles', easing: 'linear', behavior: ShapeBehavior }...
let urls = {"btn0l" : ["https://gitcdn.link/repo/HBDunn/ipybuilder/master/ipybuild.py","py"], "btn1l" : ["https://gitcdn.link/repo/HBDunn/djone/master/mysite/views.py","py"], "btn1la" : ["https://gitcdn.link/repo/HBDunn/optweb/master/vu.txt","text"], "btn2l" : ["https://gitcdn.link/r...
/** * Base prototype for application * @example * var MyApp = function(){ * // calling super (parent class) constructor * this.super_.apply(this, arguments); * } * utils.inherits(MyApp, SimpleAppProto); * * // Override super function * MyApp.prototype.changeEditMode = function(){ * // Call the orig...
// localStorage persistence var STORAGE_KEY = 'accounts-vuejs-2.0' var accountStorage = { fetch: function () { var accounts = JSON.parse(localStorage.getItem(STORAGE_KEY) || '[]') // todos.forEach(function (todo, index) { // todo.id = index // }) // todoStorage.uid = todos.length return acco...
//CONSTANTS const distance = 100; //FUNCTIONS function generateInput(form){ if(form.inputformat[0].value =="random") generateRandomInput(form); else generatePersonalizedInput(form); } function generatePersonalizedInput(form){ if(analyzerPersonalizedInputSyntax(form)){ console.log("Correct syntax!"); var ...
// question-bot! var twilio = require('twilio'); var http_request = require('request'); var randomstring = require("randomstring"); // hard-code the questions here var question_list = [ // Example format ... // {"answered_cookie": "first", // "response": { // "english":"This is english ...