text
stringlengths
3.07k
16k
const wget = require("wget-improved"); const { logger } = require("../logger/initializeLogger"); const { checkExistsAndDelete } = require("../utils/checkExistsAndDelete"); const spawnCommand = require("../utils/spawnCommand"); const { combineIntroWithMain } = require("./combineIntroWithMain"); require("dotenv").config(...
/* eslint-disable jsx-a11y/anchor-is-valid */ import React, { Component } from 'react' import PropTypes from 'prop-types' import { Icon, Text } from 'dether-ui' import { Row, Col } from 'reactstrap' import TokenIcon from '../../components/TokenIcon' import { StyledContainer, StyledP, StyledCard, StyledDivBW, ...
const test = require('tape'); const fn = require('../dist/fromnow'); const target = 'Sun Jun 14 2015 15:12:05'; global.Date.now = () => new Date(target).getTime(); test('exports', t => { t.is(typeof fn, 'function', 'exports a function'); t.end(); }); test('fromNow', t => { [ ['12/31/2013', '1 year, 5 month...
////////////////////////// Dashboard Display Cells ///////////////////////// function addESP(ip, ESPLbl, plug1Lbl, plug2Lbl, plug3Lbl, plug4Lbl) { // Adds an active ESP to the dashboard, comprised of 5 display elements addDisplayElement("ESP", ESPLbl, `${ip}-ESP`, ip, ""); addDisplayElement("plug", plug1L...
import React, { useState } from "react"; import { useCss } from "kremling"; import { getAppDependencies } from "./use-app-shared-deps.hook"; export default function EditRegisteredApp({ app = {}, updateApp, addApp, cancel, }) { const [framework, setFramework] = useState(app.framework || "react"); const [nam...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s....
import React, { useState } from "react" import MathJax from "react-mathjax2" import Layout from "src/components/layout" import SEO from "src/components/seo" import EigenValueSelector from "src/components/linearSystem/eigenValueSelector" import SystemPlot from "src/components/linearSystem/SystemPlot" import BaseSelec...
/* global REPO */ import React from 'react' import { renderToString } from 'react-dom/server' import PropTypes from 'prop-types' import * as timeago from 'timeago.js' import Skeleton from '@material-ui/lab/Skeleton' import ImmutablePropTypes from 'react-immutable-proptypes' import Button from '@material-ui/core/Button...
// Copyright (c) 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. var Event = require('cordova-plugin-chrome-apps-common.events'); var platform = cordova.require('cordova/platform'); var exec = cordova.require('cordov...
const { EventEmitter } = require('events') const { getIndexesPerNode, getNodesAndRelationships, id, validateLabel } = require('./query_utils') const { handleSql } = require('./sql_utils') const { queryObjectToCypher, getFinalQuery, handleColumn } = require('./common_utils') module.exports = { Parser: class extends Ev...
import React, { Component } from 'react'; import { Card, CardText, CardTitle, Button, Modal, ModalHeader, ModalBody, Form, FormGroup, Input, Label } from 'reactstrap'; import { baseUrl } from '../shared/baseUrl'; import { potentialMatchUrl } from '../shared/potentialMatchUrl'; class Home extends Component { con...
import MDWUtils from './Utils.js'; const dragInstancesByElementAndFunction = new Map(); export const states = { start: 'start', move: 'move', end: 'end' }; export function addDragListener(element, callback) { if (!(element instanceof HTMLElement)) throw Error('element must be an instance HTMLElement'); if ...
import React, { useEffect, useState } from "react"; import { StyleSheet, Text, Image, TouchableOpacity, Alert, ActivityIndicator, } from "react-native"; import styles from "./styles"; import { Container, Content, Form, Item, Input, Button, Icon, Label, View, } from "native-base"; import ...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
// Callisto - callisto-task-mandarake <https://github.com/msikma/callisto> // © MIT license const { uniq } = require('lodash') const { RichEmbed } = require('discord.js') const { attachRemoteImage, embedTitle } = require('callisto-core/util/richembed') const { mainCategories, shops } = require('mdrscr') const { info }...
/** @license (C) Copyright Nuxeo Corp. (http://nuxeo.com/) 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 agree...
import React, { useState, useEffect, useContext } from "react"; import { makeStyles } from "@material-ui/styles"; import MaterialTable from "material-table"; import { CategoryContext } from "../../context/categoryContext"; import { ProductContext } from "../../context/productContext"; import { LoadingContext } from ".....
var express = require('express') var router = express.Router() router.use(express.static("views")) //Cloudinary storage config const { CloudinaryStorage } = require('multer-storage-cloudinary'); var bodyParser = require('body-parser') const multer = require('multer'); const cloudinary = require('cloudinary').v2; cons...
/** * -------------------------------------------- * AdminLTE + Laravel Toasts.js * License MIT * -------------------------------------------- */ import $ from 'jquery' /** * Constants * ==================================================== */ const NAME = 'Toasts' const DATA_KEY = 'lte.toasts' const EVENT_KE...
var path = require('path'); var wiredep = require('wiredep'); var findParentDir = require('find-parent-dir'); var root_path = findParentDir.sync(__dirname, 'package.json'); var client = path.join(root_path, 'src/web/'); var server = path.join(root_path, 'src/server/'); var clientApp = client + 'app/'; var report = pa...
'use strict'; const propName = require('jsx-ast-utils/propName'); const reservedProps = { key: true, ref: true, dangerouslySetInnerHTML: true }; const htmlAttributes = { accept: true, acceptCharset: true, accessKey: true, action: true, allowFullScreen: true, allowTransparency: true, alt: true, ...
"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]; })...
// Copyright (c) 2021 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge...
import React, {useState, useEffect} from 'react'; import {View, StyleSheet, Dimensions, FlatList,Image, TouchableOpacity, Alert, Modal, Text, Pressable } from 'react-native'; import MaterialIcons from 'react-native-vector-icons/MaterialIcons'; import { useForm } from 'react-hook-form' export default function EditItem(...
/* * == BSD2 LICENSE == * Copyright (c) 2014, Tidepool Project * * This program is free software; you can redistribute it and/or modify it under * the terms of the associated License, which is identical to the BSD 2-Clause * License as published by the Open Source Initiative at opensource.org. * * This program ...
"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...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.serveTestRunnerHtmlPlugin = void 0; const dev_server_core_1 = require("@web/dev-server-core"); const constants_1 = require("../../utils/constants"); const utils_1 = require("../utils"); const trackBrowserLogs_1 = require("./trackBrowse...
const allUrls = [ { id: 'home', url_en: '/', url_es: '/es/', url_ca: '/ca/', url_de: '/de/', }, { id: 'home2', url_en: '/#home', url_es: '/es/#inicio', url_ca: '/ca/#inici', url_de: '/de/#home', }, { id: 'about', url_en: '/#about-me', url_es: '/es/#sobre-mi'...
import React, { Component } from "react"; import Typography from '@material-ui/core/Typography'; import IconButton from '@material-ui/core/IconButton'; import Grid from '@material-ui/core/Grid'; import withStyles from "@material-ui/core/styles/withStyles"; import Container from '@material-ui/core/Container'; import Car...
/** * Created by cailong on 16/9/27. */ 'use strict'; var router = require('express').Router(); var AV = require('leanengine'); var util = require('./util'); var https = require('https'); var leanObjectRedis = require('../utils/leanObjectRedis'); var serviceChargeRate = parseFloat(process.env.smallHorseServiceChar...
'use strict'; //Const var VALID_DOCTYPE_NAME = 'html', QUIRKS_MODE_SYSTEM_ID = 'http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd', QUIRKS_MODE_PUBLIC_ID_PREFIXES = [ '+//silmaril//dtd html pro v0r11 19970101//en', '-//advasoft ltd//dtd html 3.0 aswedit + extensions//en', '-//a...
import React from 'react' import PropTypes from 'prop-types' import {Row, Col, Card, Button} from 'antd' import Container from '../Container' import { PieChart, Pie, Sector, Cell, Legend } from 'recharts' const colProps = { lg: 12, md: 24, } const data01 = [{name: 'Group A', value: 400}, {name: 'Group B', value:...
const data = { pageTitle: '<NAME> - Full-stack Software Developer', name: '<NAME>', github: 'https://github.com/marcos-medeiros', linkedin: 'https://www.linkedin.com/in/marcosmedeiros-dev', twitter: 'https://twitter.com/mrcsmedeiros', email: '<EMAIL>', introTitle: 'Hey, I\'m Marcos.', introDescription: ...
/* eslint-disable no-param-reassign */ /* eslint-disable max-len */ import * as React from 'react'; import PropTypes from 'prop-types'; import TableContainer from '@mui/material/TableContainer'; import Table from '@mui/material/Table'; import TableBody from '@mui/material/TableBody'; import TableCell from '@mui/materia...
import React, { PropTypes } from 'react'; import classnames from 'classnames'; import { themr } from 'react-css-themr'; import { INPUT } from '../identifiers'; import InjectedFontIcon from '../font_icon/FontIcon'; const factory = (FontIcon) => { class Input extends React.Component { static propTypes = { ch...
/** * Configuration. * * You should only need to change these few values to get everything up and running */ // Project Name - Lowercase, no spaces, used below in urls (use name of theme folder) // var project = "lf-theme"; // Local project URL. From MAMP or Lando - whatever local server you use. var projectURL =...
import React from 'react' import { Button, Dimmer, Loader,Checkbox, Grid, Label, Dropdown, TextArea, Input, Icon } from 'semantic-ui-react' const options = [ { key: 'fr', text: 'Fever', value: 'fr' }, { key: 'tt', text: 'Headache', value: 'tt' }, { key: 'bs', text: 'Edema', value: 'bs' }, { key:...
window._ = require('lodash'); /** * We'll load jQuery and the Bootstrap jQuery plugin which provides support * for JavaScript based Bootstrap features such as modals and tabs. This * code may be modified to fit the specific needs of your application. */ try { window.$ = window.jQuery = require('jquery'); ...
var PARTIAL_TEXT = "Please enter last 4 digits of serial number."; var PARTIAL_REPEAT_TEXT = "Serial number doesn't match. Please repeat last 4 digits of serial number."; var FULL_TEXT = "Please say the full serial number."; var ENTER_FULL_TEXT = "Serial number doesn't match. Please enter the full serial number."; var ...
const crypto = require('crypto-js'); const qs = require('qs'); class Signer { constructor(region, use_sandbox){ this._region = region; this._aws_regions = { 'eu':'eu-west-1', 'na':'us-east-1', 'fe':'us-west-2' }; let sandbox_prefix = use_sandbox ? 'sandbox.' : ''; this._api_end...
var gulp = require('gulp'), gutil = require('gulp-util'), sass = require('gulp-sass'), browsersync = require('browser-sync'), autoprefixer = require('gulp-autoprefixer'), uglify = require('gulp-uglify'), jshint = require('gulp-jshint'), header = require('gulp-header'), rename = require(...
'use strict' const path = require('path') const defaultSettings = require('./src/settings.js') const CompressionPlugin = require('compression-webpack-plugin') function resolve(dir) { return path.join(__dirname, dir) } const name = defaultSettings.title || 'vue Admin Template' // page title // If your port is set t...
import React from 'react' import ProductImg1 from '../../images/product/product-image-1.jpg'; import icon_1 from '../../images/icon_1.jpg'; import icon_2 from '../../images/icon_2.jpg'; import icon_3 from '../../images/icon_3.jpg'; import icon_4 from '../../images/icon_4.jpg'; import {Link} from "react-rout...
var lookupAssistant = lookupAssistant || {}; var langMsg68 = ''; lookupAssistant.init = function() { setting = lookupAssistant.settings[0]; lookupAssistant.log("Setting up field: " + setting.citations); // Make a pointer for each of the input fields $.each(lookupAssistant.settings[0], function(k, v){ l...
module.exports = env; env.list = list; env.desc = "Cloud app environment variables"; env.usage = "fhc env create <app-guid> <var_name> [<var_value>] --env=<environment>" + "\nfhc env update <app-guid> <var_id> [<new_var_name>] [<var_value>] --env=<environment>" + "\nfhc env read <app-guid> <var_id> --env=<environm...
import * as React from 'react'; import { View, SafeAreaView } from 'react-native'; import { Button, Card, Input, Layout, List, useTheme, Text, Spinner, ViewPager, Icon } from '@ui-kitten/components'; import { useDispatch, useSelector } from 'react-redux'; import { ViewProposalModal } from '../components'; import { pro...
var http = require('http') var path = require('path') var logger = require('../logger')('micromono:server:pipe') var callsite = require('callsite') var AssetPipe = require('../web/asset') var argsNames = require('js-args-names') var ServicePipeline = require('../pipeline/service') exports.getCallerPath = function(num)...
'use strict'; import * as utils from '../utils.js'; const url = import.meta.url; const assert = chai.assert; const testDataDir = '../../test-data/models/mobilenetv2_batchnorm_nchw'; describe('test mobilenetv2 batchnorm nchw', function() { // eslint-disable-next-line no-invalid-this this.timeout(0); let graph; ...
import tape from 'tape-catch'; import MockAdapter from 'axios-mock-adapter'; import evaluationsSuite from './browserSuites/evaluations.spec'; import impressionsSuite from './browserSuites/impressions.spec'; import metricsSuite from './browserSuites/metrics.spec'; import impressionsListenerSuite from './browserSuites/im...
/* * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in ...
/* global describe beforeEach it */ //database and models const db = require('../index') const {Beer, BeerStyle} = require('./index') // const {expect} = require('chai') // const assertType = require('chai-asserttype') describe('The `beer` model', () => { // First we clear the database and recreate the tables befo...
import React from 'react' import { Row, Col } from 'antd' import AppLayout, { Content } from '../components/AppLayout' import { fetchMarket, useMarket } from '../data/market' import { fetchStats, useStats } from '../data/stats' import { fetchOraclePrices, useOraclePrices } from '../data/oracles' import TopChart from '....
var maxEntries = 20; $(function () { $('#btnAddClient').click(function () { var num = $('.clonedInputClient').length; // how many "duplicatable" input fields we currently have var newNum = num + 1; // the numeric ID of the new input field being added // create the new element via cl...
// v1.1.2 const https = require('https'); const zlib = require('zlib'); const crypto = require('crypto'); const endpoint = process.env.ES_ENDPOINT; exports.handler = function(input, context) { // decode input from base64 const zippedInput = new Buffer(input.awslogs.data, 'base64'); // decompress the inpu...
// Copyright (c) 2021 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge...
import logo from './logo.svg'; import './App.css'; import elasticlunr from 'elasticlunr'; import React, { Component } from 'react'; import euData from './eu'; import cnData from './cn'; import usaData from './usa'; import hkData from './hk'; import Fuse from 'fuse.js'; var usaIndex = elasticlunr(function () { th...
import Vue from "vue"; import VueRouter from "vue-router"; import AdminContainer from "./../layout/admin/Container.vue"; import AuthContainer from "./../layout/auth/Container.vue"; import LandingPageContainer from "./../layout/public/Container.vue"; import PageNotFound from "./../pages/error/PageNotFound.vue"; import...
'use strict'; const express = require('express'); const app = express(); const expressHbs = require('express-handlebars'); const WebSocket = require('ws'); const uuidv4 = require('uuid/v4'); // Views app.engine('hbs', expressHbs({extname: 'hbs'})); app.set('view engine', 'hbs'); app.set('views', __dirname + '/views');...
import React, { useState, useEffect, useCallback } from 'react'; import { connect } from 'react-redux'; import { Button } from '@material-ui/core'; import { withStyles, makeStyles } from '@material-ui/core/styles'; import Typography from '@material-ui/core/Typography'; import Slider from '@material-ui/core/Slider'; imp...
import React, { useState } from "react"; import { 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/TableCell"; import TableContainer from "@material-ui/core/TableContainer"; import Tab...
// 用于构建时的入口 import ElCollapseTransition from './transitions/collapse-transition' // Basic import ElRow from '../packages/row' import ElCol from '../packages/col' import { ElContainer } from './components/Container' import ElHeader from '../packages/header' import ElFooter from '../packages/footer' import ElAside from '...
const config = require('./config'); const net = require('net'); const child = require('child_process'); const {App, Thread} = require('clasync'); const WebApiHub = require('./web/api'); const DbHub = require('./db'); const DiscordBot = require('./ints/discord'); const Urt4 = require('./urt4'); const target = process...
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import Typography from '@material-ui/core/Typography'; import Assignees from '../Assignees'; import Button from '@material-ui/core/Button'; import Divider from '@material-ui/core/Divider'; import { get...
import _ from 'lodash'; import { errors } from 'appium-base-driver'; import { iosCommands } from 'appium-ios-driver'; import log from '../logger'; let commands = {}; commands.active = async function () { if (!this.isWebContext()) { throw new errors.UnknownError('Command should be proxied to WDA'); } return...
var _ = require('underscore'); const EXPERIMENTS = require('./experiments.json') const ROUTES = { follow: 'friendships/create/<%= id %>/', unfollow: 'friendships/destroy/<%= id %>/', expose: 'qe/expose/', login: 'accounts/login/', logout: 'accounts/logout/', setAccountPrivate: 'accounts/set_pri...
import $ from 'jquery'; import { ERROR_INSUFFICIENT_FUNDS, ERROR_DUST_AMOUNT, } from '../constants'; import { integerToDecimal, decimalToInteger, isValidCoinDivisibility, getCoinDivisibility, } from './currency'; import { validateNumberType } from './number'; import { getSocket, events as serverConnectEvent...
import poly from '../init'; import { polyfillContext } from '../webgl-context'; import { assertWebGLContext, isWebGL2, getKey, getKeyValue } from '../webgl-utils'; import { assert, uid } from '../utils'; const ERR_RESOURCE_METHOD_UNDEFINED = 'Resource subclass must define virtual methods'; // TODO - Handle context lo...
#!/usr/bin/env node /** * Git COMMIT-MSG hook for validating commit message * See https://docs.google.com/document/d/1rk04jEuGfk9kYzfqCuOlPTSJw3hEDZJTBN5E5f1SALo/edit * * Installation: * >> use ghooks, config in package.json */ 'use strict'; var fs = require('fs'); var util = require('util'); var resolve = req...
// @ts-check const core = require('@actions/core'); const command = require('@actions/core/lib/command'); const got = require('got').default; const jsonata = require('jsonata'); const { auth: { retrieveToken }, secrets: { getSecrets } } = require('./index'); const AUTH_METHODS = ['approle', 'token', 'github', 'jwt', '...
"use strict"; var colour = 1; var multiplier = 1; var isrunning = false; var interval; var maintimerinterval; var rownumber = 1; var xres = null; console.log("ver 11."); console.log("Now: "+formatDate(new Date())); document.addEventListener('mousemove', onMouseUpdate, false); function onMouseUpdate(e) { xres = e...
// Test import of a JavaScript module import App from '@/js/App/App'; import SidePanel from '@/js/SidePanel/SidePanel'; // import _ from 'lodash'; // Test import of styles import '@/styles/index.scss'; // Appending to the DOM const app = document.querySelector('#root'); app.append(new App().render()); app.append(new ...
/* ------------------------------------------------------------------ * node-onvif - soap.js * * Copyright (c) 2016-2018, <NAME>, All rights reserved. * Released under the MIT license * Date: 2018-08-13 * ---------------------------------------------------------------- */ 'use strict'; const http = require('http'); con...
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc); switch (arguments.length) { case 2: return decorators.reduceRight(function(o, d) { r...
function transform(el, value) { el.style['transform'] = value; el.style['webkitTransform'] = value; } function opacity(el, value) { el.style['opacity'] = value.toString(); } var calculate = function calculate(e, el) { var value = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; ...
// Note: this code expects to be executed in js_init // Also this code is ugly and gross. const __jseval_recursive = (obj) => { __eval_recursive = (obj,key) => { const value = obj[key]; if((typeof value == "string") && value.startsWith("__js_eval:")) { obj[key] = eval(value.replace("__js...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.sz50Url = exports.hs300Url = exports.allStockUrl = exports.sinaConceptsIndexUrl = exports.sinaClassifyDetailUrl = exports.sinaIndustryIndexUrl = exports.sinaDDUrl = exports.indexUrl = exports.todayTickUrl = exports.liveDataUrl = exp...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = parseGulpPlugins; var _path = require("path"); var _lodash = _interopRequireDefault(require("lodash")); var _minimatch = _interopRequireDefault(require("minimatch")); var _traverse = _interopRequireDefault(require("@ba...
const mongoose = require('mongoose'); const Address = require('../model/user') const bcrypt = require('bcryptjs') const jwt = require('jsonwebtoken') const TutorialRequest = require('../model/tutorialRequest') const TutorialResponse = require('../model/tutorialResponse') const RequestMaterial = require('../model/tutor...
'use babel'; import fs from 'fs'; import path from 'path'; import ini from 'ini'; import {EventEmitter} from 'events'; import {Directory} from 'atom'; import {File} from 'atom'; export const config = { silentMode: { title: 'silent', description: 'Don\'t print commands.', type: 'boolean', default: ...
// heavily inspired by grommet: // https://github.com/grommet/grommet/blob/master/src/js/components/Select.js /* eslint-disable jsx-a11y/no-noninteractive-element-interactions */ /* eslint-disable jsx-a11y/no-static-element-interactions */ import React from 'react'; import PropTypes from 'prop-types'; import cn from...
const co = require('co') const speakeasy = require('speakeasy-nlp') const CONVERSATION_TIME_LIMIT = 10 // Seconds to allow a conversation to run without responses for. const HARD_QUERIES = [ 'how are you', 'how do you feel about', 'what do you think about', 'what is the meaning of life', 'do you l...
'use strict'; const AstNodeInfo = require('../helpers/ast-node-info'); const createErrorMessage = require('../helpers/create-error-message'); const dasherizeComponentName = require('../helpers/dasherize-component-name'); const isDasherizedComponentOrHelperName = require('../helpers/is-dasherized-component-or-helper-na...
var arg = new Object; var pair = location.search.substring(1).split('&'); for(var i = 0; pair[i] ; i++) { var kv = pair[i].split('='); arg[kv[0]] = kv[1]; } GLBoost.VALUE_TARGET_WEBGL_VERSION = arg.webglver ? parseInt(arg.webglver) : 1; GLBoost.VALUE_CONSOLE_OUT_FOR_DEBUGGING = true; var SCREEN_WIDTH = 512; var ...
import React from "react"; Object.size = function(obj) { var size = 0, key; for (key in obj) { if (obj.hasOwnProperty(key)) size++; } return size; }; String.toCamelCase = function(str) { return str .replace(/\s(.)/g, function($1) { return $1.toUpperCase(); }) .replace(/\s/g, "") ...
/** * @license * Copyright (c) 2018, General Electric * * 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...
"use strict"; var NEW_LINE_DELIMITER = '\n'; var CSV_DELIMITER = ','; var EXPECTED_DATE_FORMAT = 'DD MMMM'; var csvParserModule = angular.module('csvParserModule', ['angular-momentjs']); /** * Service for parsing a CSV String. * The CSV String should be be delimited by ',' and new line by '\n'. * */ csvParserMo...
var currentPageDoneDishMenu =""; var currentPagedoneDishCost = 0; var app = getApp(); Page({ data: { totalDoneDishMenu :"", totalDoneDishCount :0, debugText:"测试信息!", debugMode:false, dishes: [ { id: 1, name: '可乐', tip:"好评", monthlySales:101, goo...
'use strict'; var _ = require('underscore'); var gcal = require('google-calendar'); var User = require('mongoose').model('User'); var path = require('path'); var q = require('q'); var oauth = require('oauth'); var config = require(path.resolve('./config/config')); var errorHandler = require(path.resolve('./modules/cor...
import {RequestService, Request} from "./Request" class RequestManager { _request _service _factory _resolve = [] _retry constructor({request, service}) { if (!(request instanceof Request)) throw 'The RequestManager`s "request" is not an instance of "Request".' if (!(service...
import React, {Component} from 'react'; import './PaperControl.css'; import * as Options from './Options'; import {Draggable} from 'react-drag-and-drop' import {connect} from 'react-redux'; class PaperControl extends Component { options = null; touch = false; constructor(props) { super(props); ...
const dayjs = require('dayjs'); var Parser = require('../parser').Parser; var ParsedResult = require('../../result').ParsedResult; var PATTERN = new RegExp( '(而家|立(?:刻|即)|即刻)|' + '(今|明|前|大前|後|大後|聽|昨|尋|琴)(早|朝|晚)|' + '(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|' + '(今|明|前|大前|後|...
import React, { useState } from 'react'; import { Avatar, Button, CssBaseline, TextField, Snackbar, Link, Grid, Typography, Container, InputAdornment, IconButton, CircularProgress } from '@material-ui/core'; import LockOutlinedIcon from '@material-ui/icons/LockOutlined'; import Visibility from "@material-ui...
class Highlighter { constructor(selection) { this.selection = selection; this.range = selection.getRangeAt(0); this.text = selection.toString(); this.textSpans = []; this.wordSpans = []; this.markedSpan = null; this.timer = null; } // returns string of selection toString() { return this.text; } ...
/* * NODE SDK for the KATANA(tm) Framework (http://katana.kusanagi.io) * Copyright (c) 2016-2018 KUSANAGI S.L. All rights reserved. * * Distributed under the MIT license * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code * * @link ...
import React from 'react' import { connect } from 'react-redux' import { Link } from 'react-router-dom' import ChatTable from './ChatTable' import { Image, Segment, Button, Card } from 'semantic-ui-react' import { hideChat, openSpace, openNewChat, cancelClaim, finishedParking, addSpaceAfterParking, removeSpace, toggle...
// React Basic and Bootstrap import React, { Component } from "react"; import { Container, Row, Col, Card, CardBody, Modal, ModalHeader, ModalBody, Label, Button, Input, Form, FormGroup } from "reactstrap"; import { Link } from "react-router-dom"; //Import Icons import Fea...
import '../stylesheets/app.css'; import { default as Web3 } from 'web3'; import { default as contract } from 'truffle-contract'; import { default as CryptoJS } from 'crypto-js'; import './browser-solc.js'; var accounts; var account; var foodSafeAbi; var foodSafeContract; var foodSafeCode; window.App = { start: func...
import React, { Component } from 'react'; import engine from 'bullet-train-rules-engine'; import Rule from './Rule'; import Highlight from '../Highlight'; import SegmentStore from '../../../common/stores/segment-list-store'; import Constants from '../../../common/constants'; const SEGMENT_ID_MAXLENGTH = Constants.form...
/** * @author <NAME> <<EMAIL>> * @license MIT */ import * as THREE from "three"; import AudioData from "@creenv/audio/audio-analysed-data"; import { knuthShuffle } from "knuth-shuffle"; import config from "./config"; class ChainedBalls { /** * * @param {THREE.Scene} scene */ constructor (scene) {...
let sortingAlgorithms = ["Selection Sort", "Bubble Sort", "Quick Sort", "Merge Sort"] let sorting = false; let sortedList = []; let currentIndex = 0; let step = 0; var finishAudio; var blopAudio; var muted = false; function preload() { blopAudio = loadSound("./sounds/Blop.mp3"); finishAudio = loadSound("./sou...