text
stringlengths
3.07k
16k
var util=require ('./util') var getValueStr=require('../catcher/ValueStr'); function addX(name,value){ return 'addX('+name+','+value+');'; } function addY(name,value){ return 'addY('+name+','+value+');'; } function addScaleX(name,value){ return 'addScaleX('+name+','+value+');'; } function addScaleY(name,va...
var fs = require('fs-extra'); var fspath = require("path"); var spawn = require('child_process').spawn; var rp = require("request-promise"); var semversort = require("semver-sort"); var gitTools = require("./projects/git"); var settings; var runtime; var log; var viseo = { init: function(_settings, _runtime) { ...
import React, { Component } from "react"; import { Text, View, Image, TouchableWithoutFeedback, Platform, UIManager, LayoutAnimation, Picker } from "react-native"; import { connect } from "react-redux"; import Swipeout from "react-native-swipeout"; import * as actions from "../actions"; ...
/* * Read and decode CCTV PTZ commands from a Serial Port / COM Port (using node-serialport) * (c) Copyright 2016 to 2018 <NAME> * * Note that the Serial Port varies between operating systems * E.g. COM1 on Windows * E.g. /dev/ttyUSB0 on Linux * E.g. /dev/cu.usbserial on Mac * Use -p to change the port *...
/* chatURL - URL for updating chat messages */ var chatURL = "chat.php"; /* colorURL - URL for retrieving the chosen RGB color */ var colorURL = "color.php"; /* variables that establish how often to access the server */ var updateInterval = 2000; // how many milliseconds to wait to get new message // when set t...
/* eslint no-dupe-keys: 0, no-mixed-operators: 0 */ /* 列表刷新组件 */ import React, { Component } from 'react' import { connect } from 'dva' import { PullToRefresh, ListView } from 'antd-mobile' import SearchNomore from '@/routes/search/components/nomore/root' import { withRouter } from 'dva/router' import AllNomore from '...
var game = new Phaser.Game(750, 1334 , Phaser.CANVAS,"game"); var Load = function() {}; Load.prototype = { setScale: function(val){ val = val * gameScale * 2; return val; }, startLoad: function() { this.load.image('bg', 'images/bg.jpg'); this.load.image('btn', 'images/btn.png'); this.load.atlas('atlas', 'i...
'use strict'; var EventEmitter = require('events'), util = require('util'); var parseCacheControl = require('parse-cache-control'), request = require('superagent'); var AbstractLandlordCache = require('./abstract-cache'), errors = require('./errors'), LRULandlordCache = require('./lru-cache'); var DEFAULT_LANDL...
const path = require("path"); const gulp = require("gulp"); const sass = require("gulp-sass"); const sourcemaps = require("gulp-sourcemaps"); const browserSync = require("browser-sync").create(); const eslint = require("gulp-eslint"); const concat = require("gulp-concat"); const plumber = require("gulp-plumber"); const...
//WILL: TODO: inegrate changes from http://github.com/willmoffat/JsObjDump var JSON_JS = (function() { var seen; var line_count; var DEFAULT_SKIP = []; var MAX_COUNT, MAX_LINE_COUNT, MAX_DEPTH, FUNCTION_SOURCE, SKIP; var response_line_count=0; function set_prefs() { var o = console.options ? consol...
const fs = require('fs') const fp = require('lodash/fp') const yargs = require('yargs') const stringify = require('json-stable-stringify') const logger = require('../env/logger') const postgres = require('../postgres') const { getOldestMessageQuery, getMessagesAfterQuery, } = require('../postgres/queries/messages...
/** * Copyright (c) 2017, salesforce.com, inc. * All rights reserved. * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or * https://opensource.org/licenses/BSD-3-Clause */ /** * db/helpers/generatorUtil.js */ 'use strict'; // eslint-disable-line strict ...
import {Sphere} from '../Datum/Math/Sphere.js'; import {Ray} from '../Datum/Math/Ray.js'; import {Matrix4} from '../Datum/Math/Matrix4.js'; import {Object3D} from '../Core/Object3D.js'; import {Vector3} from '../Datum/Math/Vector3.js'; import {PointsMaterial} from '../Materials/PointsMaterial.js'; import {BufferGeometr...
/** * Created by Jérémy on 07/05/2017. */ const Ffmpeg = require('fluent-ffmpeg'); const path = require('path'); const fs = require('fs'); const mkdirp = require('mkdirp'); const moment = require('moment'); const {createLogger} = require('../../logger'); const logger = createLogger({label: 'video-processor'}); const ...
import React from "react"; import "babel-polyfill"; import PropTypes from "prop-types" import _ from "lodash"; const previousTouchMove = Symbol(); const scrolling = Symbol(); const ANIMATION_TIMER = 200; const KEY_UP = 38; const KEY_DOWN = 40; export default class ReactPageScroller extends React.Component { co...
/* * CLASS: DeckInitializationTest * * INTENT: * The test case verifies that the deck was initialized successfully. The following * tests are performed by the class as part of this validation. * * 1. Verify there are 52 cards in the deck after being initialized. * * 2. Since the deck is initialized in a giv...
/* Based on Ukkonen's algorithm: https://www.cs.helsinki.fi/u/ukkonen/SuffixT1withFigs.pdf References: http://www.allisons.org/ll/AlgDS/Tree/Suffix/ https://stackoverflow.com/questions/9452701/ukkonens-suffix-tree-algorithm-in-plain-english https://stackoverflow.com/questions/28278802/ukkonens-algorithm-for-generalize...
var syms = require('./symbols') var errors = require('./errors') var lookup = require('./lookup') var wrap = errors.wrap var { bound_fun: boundf, system_fun } = require('./internal') var { isSymbol, isFun, isBasic, isFunction, isArray, isObject, isNumber, isCore, isDefined, isBoundFun, isSystemF...
/* eslint-disable max-classes-per-file */ /* eslint-disable react/no-unused-state */ import React from 'react' import Paper from '@material-ui/core/Paper' import { ViewState, EditingState } from '@devexpress/dx-react-scheduler' import { Scheduler, Toolbar, MonthView, WeekView, ViewSwitcher, Appointments, ...
import React, { useEffect, useRef } from 'react' import { graphql } from 'gatsby' import styled from 'styled-components' import stickybits from 'stickybits' import Seo from './../components/Layout/Seo' import Constructor from './../components/Layout/Constructor' import TextRenderer from '../components/TextRenderer' im...
function initMethods() { sideMenuBehavior(); var notes = manageNotes(); manageSearcher(notes); } function sideMenuBehavior() { var content = document.getElementsByClassName("content")[0]; var nav = document.getElementsByClassName("navigation")[0]; var menuBtn = document.getElementsByClassName("menu-button-...
import * as d3 from 'd3' // size const margin = { left: 50, right: 50, top: 30, bottom: 50 } const width = 800 - margin.left - margin.right const height = 450 - margin.top - margin.bottom // scale const x = d3.scaleLinear().range([0, width]) const y = d3 .scaleLinear() .range([height, 0]) .domain([0, 125]) // ...
import "./App.css"; import { useEffect, useState } from "react"; import EditIcon from '@mui/icons-material/Edit'; import ThermostatAutoIcon from '@mui/icons-material/ThermostatAuto'; function App() { // quote const api_url = "https://quotes.rest/qod?language=en"; async function getapi(url) { const response...
/** * Copyright 2015 The AMP HTML Authors. 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 require...
const path = require("path"); const Promise = require("bluebird"); let log = {}; let fileutils = {}; function FileIndex (config, filerecognizer, publisher, generator, logger, fileUtils) { this.config = config; this.file_recognizer = filerecognizer; this.publisher = publisher; this.generator = generator...
/* * Copyright (c) 2020-present unTill Pro, Ltd. */ import _ from 'lodash'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Label, FieldError, Tip } from 'airc-shell-core'; import isEqual from 'react-fast-compare'; import { simpleMuta...
import * as R from 'ramda' import * as A from '@core/arena' import * as ObjectUtils from '@core/objectUtils' import { ValidatorErrorKeys } from './_validator/validatorErrorKeys' // Const objectInvalid = { // [keys.valid]: false, // [keys.errors]: [{ key: 'error_key', params }], // [keys.warnings]: [{ key: 'err...
import React from 'react'; import './profile.css'; import FontAwesomeIcon from '@fortawesome/react-fontawesome'; import AuthService from '../../../utils/authService'; import Feed from './Feed.jsx'; import Images from './Images.jsx'; import Groups from './Groups.jsx'; import About from './About.jsx'; import { Na...
import Chart from 'chart.js/auto' import Rails from '@rails/ujs' import { API } from './api' import * as SCSSColours from '!!sass-variable-loader!../stylesheets/variables/colours.scss' import { Note } from './note' import minutesHumanized from '../shared/minutes_humanized' import { format, addDays } from 'date-fns' imp...
import { CCard, CCol, CRow } from "@coreui/react"; import { CChart } from "@coreui/react-chartjs"; import axios from "axios"; import React, { useEffect, useState } from "react"; import { Fade, Slide } from "react-reveal"; import Authenticate from "src/Authenticate"; import banner from "./assets/images/undraw_dashboard....
// This is main process of Electron, started as first thing when your // app starts. It runs through entire life of your application. // It doesn't have any windows which you can see on screen, but we can open // window from here. import path from "path"; import url from "url"; import { devMenuTemplate } from "./menu/...
"use strict"; var st = require('sycle-test').local; var s = require('./support'); var setupAccessControl = require('./fixtures/access-control/app'); var USER = {email: '<EMAIL>', password: '<PASSWORD>'}; var CURRENT_USER = {email: '<EMAIL>', password: '<PASSWORD>'}; describe('access control - integration', function ...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnPrope...
import React from 'react'; import { Tree } from 'hierplane'; import { Button } from 'antd'; import { Collapse } from 'antd'; import OutputField from './OutputField'; import { Highlight } from './highlight/Highlight'; import SaliencyMaps from './Saliency'; import InputReductionComponent, { InputReductionPanel } from '....
#!/usr/bin/env node /** * Created by Sean on 17/2/28. */ var path = require('path'); var fs = require('fs'); var program = require('commander'); var npm = require('npm'); var ini = require('ini'); var echo = require('node-echo'); var extend = require('extend'); var open = require('open'); var async = require('async')...
import React, {useState, useEffect, useCallback} from 'react'; import {FormLayout, TextField, Button, Checkbox, Heading, Select, Page, RadioButton, Banner} from '@shopify/polaris'; import axios from 'axios' const Register = (props) => { const [api_Key, setApi_Key] = useState(''); const [company_Address, setCom...
// 近似相等 const approximatelyEqual = (v1, v2, epsilon = 0.001) => Math.abs(v1 - v2) < epsilon // 生成 和 设置 transform function trans(el, transObj) { if (!arguments.length) return if (!transObj) { let style = getComputedStyle(el) let t = style.transform if (t === 'none') { return { translate:...
process.env.ENTRY_INDEX = 'dev'; const fs = require('fs'); const path = require('path'); const chokidar = require('chokidar'); const importFresh = require('import-fresh'); const replace = require('json-templater/string'); const webpack = require('webpack'); const WebpackDevServer = require('webpack-dev-server'); const...
const log4js = require('log4js'); const Web3 = require("web3"); const whiteDebridgeAbi = require("../assets/WhiteFullDebridge.json").abi; const { Db } = require("./db"); const { Chainlink } = require("./chainlink"); const minConfirmations = process.env.MIN_CONFIRMATIONS; const SubmisionStatus = { CREATED: 0, BR...
import React, { memo, useCallback, useState, useEffect, Fragment } from "react"; import PropTypes from "prop-types"; import classNames from "classnames"; import { Paper, withStyles, Grid, Button } from "@material-ui/core"; import Routing from "./Routing"; import NavBar from "./navigation/NavBar"; // import ConsecutiveS...
// Electron import { remote } from 'electron'; import Promise from 'bluebird'; import { exec } from 'child_process'; import open from 'open'; import path from 'path'; import $ from './helpers/jquery'; import championify from './championify'; import { EndSession } from './helpers'; import Log from './logger'; import o...
/* eslint-disable no-console */ import router from 'umi/router'; import { Form, List, Card, Input, Button, Tag, Spin } from 'antd'; import { TweenOneGroup } from 'rc-tween-one'; import PageHeaderWrapper from '@/components/PageHeaderWrapper'; import TagSelect from '@/components/TagSelect'; import StandardFormRow from ...
"use strict"; var _templateObject, _templateObject2, _templateObject3, _templateObject4; function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); } function asyncGeneratorStep(gen, resolve, re...
import React, { Component } from 'react' import { withRouter } from 'react-router-dom'; import Proyect from './Proyect'; const axios = require('axios'); class MyProyects extends Component { state = { user: this.props.user, numAsociados: 0, projects: [] } componentDidMount() { ...
'use strict'; var nowagra = document.getElementById('button-nowagra'); var papier = document.getElementById('button-papier'); var kamien = document.getElementById('button-kamien'); var nozyce = document.getElementById('button-nozyce'); var output = document.getElementById('output'); var rezultat = document.getElementB...
import React, { useState, useContext, useEffect } from 'react'; import { Box, Heading, Text, Button, Flex } from '@chakra-ui/react'; import { Link as RouterLink } from 'react-router-dom'; import { daoConstants, daoPresets } from '../../content/summon-presets'; import { SummonContext } from '../../contexts/SummonContex...
const path = require('path'); const {stat: fsStat, readdir} = require('fs'); const {promisify} = require('util'); const readDir = promisify(readdir); const stat = promisify(fsStat); const fresh = require('fresh'); /* 'parseHttpDate', 'parseTokenList', 'isConditionalGet', 'isPreconditionFailure', 'isFresh', 'preF...
// Copyright 2017 The Kubernetes Authors. // // 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 a...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Label = void 0; const tslib_1 = require("tslib"); const React = tslib_1.__importStar(require("react")); const react_1 = require("react"); const label_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/Label/la...
// // sample-cleaner.js // // written by <NAME> (c) 2022, www.timohoogland.com // MIT License // // Batch process and convert audio files // useful for: // - trimming silence of end of file // - summing files to mono // - loudness normalization IBU R128 // const fg = require('fast-glob'); const fs = require('fs-ex...
var selectedX = null; var globalData; var productsTableHeight, productsTableRect; var activeRow = null; var hoverRow = null; var drawCategoryChart = function(container_id){ var $chartContainer = $('#' + container_id); $chartContainer.css('height', parseInt($chartContainer.attr('data-height'))).html(''); v...
import React from 'react'; import isString from 'lodash/isString'; import isObject from 'lodash/isObject'; import isUndefined from 'lodash/isUndefined'; import { connect } from 'react-redux' import { IntlProvider, addLocaleData, injectIntl } from 'react-intl'; import store from 'store'; import { DEFAULT_LANGUAGE } from...
import html from '../view/photoCrop.html'; import { isMobile } from '../lib/utils'; import SVGLoading from '../lib/svgloading'; import i18n from '../config/i18n.json'; import { disable } from './utils'; import { loaedPhotoModel, freeRatioModel, isHiResModel } from './models'; import cropUI from './cropView'; import men...
const { BaseDB, MongoDB } = require('@parameter1/base-cms-db'); const { Base4RestPayload } = require('@parameter1/base-cms-base4-rest-api'); const { dasherize } = require('@parameter1/base-cms-inflector'); const { UserInputError } = require('apollo-server-express'); const validateRest = require('../../utils/validate-r...
const CLIENT_ID = '7baa50c0fbc7458196dff89f7b0d7c48'; //const REDIRECT_URI = 'http://abyssin.surge.sh'; const REDIRECT_URI = 'http://localhost:3000/'; let USER_ACCESS_TOKEN = ''; let EXPIRATION_DATE = ''; // ===================================================================================================...
import React, {useState, useEffect} from 'react' import {Link as GatsbyLink} from 'gatsby' import styled from 'styled-components' import {FontAwesomeIcon} from '@fortawesome/react-fontawesome' import {faBars} from '@fortawesome/free-solid-svg-icons' import website from 'config/website' import {Small} from 'src/componen...
/* * Copyright (C) 2015 The Gravitee team (http://gravitee.io) * * 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 requi...
'use strict'; // ========= packages ============== const express = require('express'); const cors = require('cors'); require('dotenv').config(); // runs once and loads all the environment variables IF they were declared in a file instead of the terminal const superagent = require('superagent'); const { response } = r...
/** * @module @report-toolkit/transformers.table */ /** * do not remove this comment (for typedoc) */ import {_, colors, createDebugPipe, observable} from '@report-toolkit/common'; import CLITable3 from 'cli-table3'; import wrapAnsi from 'wrap-ansi'; // @ts-ignore import {version} from '../package.json'; const de...
AFRAME.registerComponent("selection-button-controls", { init: function() { let canvas_3d = document.getElementById("canvas3d"); const option1Plane = document.getElementById("option1Plane"); const option2Plane = document.getElementById("option2Plane"); const option3Plane = document.getElementById("opti...
const node = { "ast": { "absolutePath": "greeter.sol", "exportedSymbols": { "Greeter": [ 25 ] }, "id": 26, "nodeType": "SourceUnit", "nodes": [ { "id": 1, "literals": [ "solidity", ">=", "0.5", ".0", ...
/** * * Profile * */ import React from 'react'; import { Link } from 'react-router-dom'; import { Tabs, Icon, Typography, Divider, Button, Layout } from 'antd'; import { WrapperProfile } from './styles'; import logo from '../../images/sample-logo.png'; // import 'antd/lib/tabs/style/css'; // import 'antd/lib/icon/...
import React, { Component } from 'react'; /* Redux imports */ import { connect } from "react-redux"; import { updatePartnership } from '../../Reducers/partnership'; import { updateToggle } from '../../Reducers/toggle'; import { updateOver } from '../../Reducers/over'; /* Native base and react native */ import { Conta...
const zlib = require('zlib') const logr = require('@everymundo/simple-logr') const boundaries = require('@everymundo/number-utils/lib/boundaries') const kinesis = require('./kinesis') const flatstr = require('flatstr') const sleep = (n) => new Promise(resolve => setTimeout(resolve, boundaries(n, 100, 5000, 500))) cons...
const moment = require('moment-timezone'); const AWS = require('aws-sdk'); const assume = require('../lib/assume'); const ToolingInterface = require('../plugins/toolingInterface'); const {DriverInterface, RDSTagger} = require('./driverInterface'); const dateTime = require('../lib/dateTime'); class InstrumentedRdsSnaps...
const fs = require('fs') const path = require('path') const { app } = require('electron').remote const { showConfirmation } = require('electron').remote.require('./main') const menu = require('./menu') const lang = require('./lang') const editor = require('./editor') const { APPSUPPORT_PATH } = require('./utils') cons...
import renderArrayAsElements from '../../basic-component-mixins/src/renderArrayAsElements'; import symbols from '../../basic-component-mixins/src/symbols'; import toggleClass from '../../basic-component-mixins/src/toggleClass'; /* Exported function extends a base class with PageDots. */ export default (base) => { ...
"use strict"; /* https://github.com/react-community/normalize-css-color BSD 3-Clause License Copyright (c) 2016, React Community All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of so...
import React, { Component, Fragment } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { compose } from 'redux'; import injectReducer from 'utils/injectReducer'; import injectSaga from 'utils/injectSaga'; import SimpleReactValidator from 'simple-react-validator'; import sa...
'use strict'; /* * CLEAN UI ADMIN TEMPLATE GULP FILE */ ///////////////////////////////////////////////////////////////////////////// // CONFIGURATION var cleanui = { "version": "2.1.1", "templateName": "Clean UI Admin Template Modular", "pageTitle": "Clean UI Admin Template Modular", "description"...
/** * @see module:uitls */ import { convert2Str, IsNumeric, decimalPlace, tostr, assembleNumber } from '@root/utils/util.js'; /** * SuperDecimal类使用JavsScript中的BigInt(ES2017中的一个新的特性),去解决大数字的计算,以及由于浮点数字的标准数字引起的计算精准度的问题{@link http://c.biancheng.net/view/314.html|详情可以参考IEEE-754} */ class SuperDecimal { /** * 用来控制...
var adminModule = require('./admin.js'); var request = require('request'); var rcloadenv = require('@google-cloud/rcloadenv'); var {google} = require('googleapis'); var changesets = require('diff-json'); var admin = adminModule.admin; exports.per_minute_job = event => { console.log('=-=-=-=-=-=-=-=-=-=-start delet...
import { graphql, Link, useStaticQuery } from "gatsby"; import Img from "gatsby-image"; import { styled } from "linaria/react"; import React from "react"; const HomepageProjects = ({ currentProject, displayHeading }) => { const featuredImage = useStaticQuery( graphql` query { PhotoVillage: file(rel...
"use strict"; let app; $(() => document.addEventListener("deviceready", () => app = new App(), false)); /** * Main activity of the application. It starts the whole system as soon as the DOM is fully loaded. * * @author <NAME> */ class App { static get appLanguage() { const localStorageLng = local...
var refreshing = false; var scrolling = false; var elementInFocus = null; // var asyncConnection = new WebSocket('ws://' + window.DJANGO_LIVESYNC.HOST + ':' + window.DJANGO_LIVESYNC.PORT) var asyncUrl ='ws://localhost:' + window.DJANGO_LIVESYNC.PORT + '?' + ( sessionStorage['livesync_session_id'] ? 'session_id=' ...
var modal = document.getElementById('myModal'); var grid = new Array(3); grid[0] = new Array(3); grid[1] = new Array(3); grid[2] = new Array(3); var player = 0; var gameWon = 0; var numberMap = new Map(); //Helper function to fill Map data structure function fillMap() { numberMap.set('one',1); numberMap.set('two',2); ...
/** * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ /** * @module html-support/integrations/documentlist */ import { isEqual } from 'lodash-es'; import { Plugin } from 'ckeditor5/src/core'; ...
const fs = require('fs'); const {validationResult} = require("express-validator"); const mongoose = require("mongoose"); const HttpError = require("../models/http-error"); const {getDummmyCoordsForAddress} = require("../util/location"); const Place = require("../models/place"); const User = require("../models/user"); ...
/** * Folder module. Allows creation of objects that represent folders, and allows * basic operations on them. */ 'use strict'; var _fs = require('fs'); var _path = require('path'); var _promise = require('./promise'); var _utils = require('./utils'); function _createTree(folder, tree) { // If the first argume...
var flight = require('flight') ; function debounce(func, wait, immediate) { var timeout; return function() { var context = this, args = arguments; var later = function() { timeout = null; if (!immediate) func.apply(context, args); }; var callNow = imm...
function PrettySeconds(s) { s = parseInt(s, 10); if (s <= 1) { return 'Immediately'; } if (s <= 90) { return '' + s + " seconds"; } var m = Math.round(s/60); if (m <= 90) { return '' + m + ' minute' + (m == 1 ? '' : 's'); } var h = Math.floor(m/60); m = m...
const accedoOne = require('@accedo/accedo-one'); const cookieParser = require('cookie-parser')(); const SIXTY_YEARS_IN_MS = 2147483647000; const COOKIE_DEVICE_ID = 'ag_d'; const COOKIE_SESSION_KEY = 'ag_s'; // default functions for the cookie persistency strategy (deviceId and sessionKey) and gid passed as a query pa...
/*global require*/ "use strict"; var gulp = require('gulp'), path = require('path'), data = require('gulp-data'), pug = require('gulp-pug'), prefix = require('gulp-autoprefixer'), sass = require('gulp-sass'), jshint = require('gulp-jshint'), uglify = require('gulp-uglify'), concat = require('gulp-conca...
import { fixedContainerDecorator } from '../../../.storybook/utils'; import EcContainer from './ec-container.vue'; import EcMainContainer from '../ec-main-container'; import EcNavigation from '../ec-navigation'; import EcMenu from '../ec-menu'; import EcUserInfo from '../ec-user-info'; import EcDropdownSearch from '../...
/** * Call state is comprised of: * - "Call items" (inputs to the call, i.e. participants or shared screens) * - UI state that depends on call items (for now, just whether to show "click allow" message) * * Call items are keyed by id: * - "local" for the current participant * - A session id for each remote parti...
import React, { isValidElement } from 'react'; import isString from 'lodash/isString'; import CheckBox from '../check-box/CheckBox'; import Switch from '../switch/Switch'; import Radio from '../radio/Radio'; import Select from '../select/Select'; import Lov from '../lov/Lov'; import NumberField from '../number-field/Nu...
localStorage.setItem('userPoints', 0) localStorage.setItem('robotPoints', 0) let counter = 5; let userOption = 0; let enableToPlay = false; let stonePath = '../assets/IMG/spa.svg'; let paperPath = '../assets/IMG/portable-document-format.svg'; let scissorPath = '../assets/IMG/scissors.svg'; let scoreBoardRobot = docu...
var util = require('util'), idgen = require('idgen'); /** * Handling all the tracing and profiling collection * @param {Formatter|Formatter[]} formatters - A list of formatters to use as output * @constructor */ function Tracer(formatters) { /** * @type {Tracer.CallStack} */ this.stack = []; this.stack.st...
// @ts-check const fileSize = require('./fileSize') const { formatBytes, writeWaitingInfoDL } = require('./writeWaitingInfo'); const FileChecker = require('./fileChecker'); const path = require('path') const ytdl = require('ytdl-run') const fs = require('fs-extra') const Promise = require('bluebird') const youtubedl = ...
import React, { useRef, useEffect, useState } from 'react'; import PropTypes from 'prop-types'; import { RenderIf } from 'react-rainbow-components'; import { createPortal } from 'react-dom'; import InputSearch from './search'; import Options from './options'; import Recents from './recents'; import Message from './mess...
const Book = require('../models/book'); const Author = require('../models/author'); const Genre = require('../models/genre'); const BookInstance = require('../models/bookinstance'); const async = require('async'); const { body,validationResult } = require('express-validator'); exports.index = (req, res) => { async.p...
'use strict' var path = require('path') var Flume = require('flumedb') var OffsetLog = require('flumelog-offset') //var codec = require('flumecodec/json') var AsyncWrite = require('async-write') var V = require('ssb-validate') var timestamp = require('monotonic-timestamp') var Obv = require('obv') var ssbKeys =...
/* Important: This is sample code demonstrating API, technology or techniques in development. Although this sample code has been reviewed for technical accuracy, it is not final. Apple is supplying this information to help you plan for the adoption of the technologies and programming interfaces described herein. Thi...
/*! lightgl.js * ©2011-2016 <NAME> - https://github.com/evanw/lightgl.js/ */ /** * Functions and structures used for projecting 3D objects into * 2D view. */ /** * Simple vector representation and just a few vector operations */ function Vector(x, y, z) { this.x = x || 0; this.y = y || 0; this....
//=============『 Utama 』================== // global.owner = ['6285795035419', '6289688069444', '6285750336781'] global.mods = ['6285795035419'] global.prems = [] //=============『 Info Owner 』============== // global.nameowner = 'Az' global.numberowner = '6285795035419' global.instagram = 'https://instagram.com/ az...
const redis = require('ioredis'); const HashRing = require('hashring'); var Redis = function (server, redisConfig) { this.server = server; this.redis = {}; // Redis Client this.initStatus = false; // 尚未跑過起始,用來避免多台 redis client 觸發多次 initSystem // 掛載廣播模組 this.pubMessage = require('./pubMessage.js'); this....
'use strict'; const path = require('path'); const fs = require('fs'); const Benchmark = require('benchmark'); const benchmarks = require('beautify-benchmark'); const t = require('core-util-is'); const is = require('..'); const nowDate = new Date(); const nowNumber = Date.now(); const shortString = '一点点点中文abc'; const ...
import React,{Component} from 'react'; import {Grid,Table, Dimmer, Loader,Label,Form,Button, Dropdown, Input,Popup} from 'semantic-ui-react'; import axios from 'axios'; class ThirdStage extends Component{ constructor(){ super(); this.state = { main: [], second: [], ...
'use strict'; var fs = require('fs') var path = require('path') var express = require('express') //var compression = require('compression') var morgan = require('morgan') var cookieParser = require('cookie-parser') var methodOverride = require('method-override') var bodyParser = require('body-parser') var errorHandle...
import React from 'react'; import { Link } from 'react-router-dom'; import Button from '@material-ui/core/Button'; import TextField from '@material-ui/core/TextField'; import FormControl from '@material-ui/core/FormControl'; import Select from '@material-ui/core/Select'; import InputLabel from '@material-ui/core/InputL...