text
stringlengths
3.07k
16k
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import { Field } from 'redux-form/immutable'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import MenuItem from '@material-ui/core/MenuItem'; import ...
import React, { useRef, useEffect, useState } from 'react'; import { getStudentLayout } from '~/components/Layout'; import { GetReferral } from '~/api/studentAPI'; import './index.module.scss'; import { i18n, withTranslation } from '~/i18n'; import Router, { useRouter } from 'next/router'; import ReactHtmlParser, { pr...
$.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }); // Добавление $('#addMovie').on('click', addMovie); function addMovie(){ let addContainer = $('#add-container'); addContainer[0].style.display = 'block'; // HTML вставляю так что бы не сбрасывать листене...
'use strict' const test = require('tape') const isRoughlyEqual = require('is-roughly-equal') const moment = require('moment-timezone') const index = require('.') const stations = require('./stations.json') const journeys = require('./lib/journeys') const journeyDetails = require('./lib/journey-details') const {passen...
import { cmp_number } from './utils'; import { inverse_permutation } from './permutation'; import { debug } from './core'; import { count_crossings } from './count_crossings'; export function barycenter_order(graph, comps, max_iter) { let orders = [[], [], 0]; if(!Array.isArray(graph)){ // Compute...
/* eslint-disable global-require */ // import collectConfigs from '@lskjs/module/utils/collectConfigs'; import Err from '@lskjs/err'; import asyncMapValues from '@lskjs/utils/asyncMapValues'; import Bluebird from 'bluebird'; import Api from './Api'; export const collectConfigs = async (m) => ({ config: m.config, ...
/** | author: Ethan | source: https://github.com/EthanOrange/wechat-redirect | desc: 在微信浏览器中直接打开用户自带浏览器 */ var createError = require('http-errors'); var express = require('express'); var fs = require('fs'); var path = require('path'); var logger = require('morgan'); var debug = require('debug')('node-middlleware-jump:s...
import React, { Component } from "react"; import { ActivityIndicator, RefreshControl, FlatList, StyleSheet, Text, View } from "react-native"; import Loading from '../component/Loading'; const REQUEST_URL = 'https://api.github.com/search/repositories?q=javascript&sort=stars&page='; let pageNo = 2;//当前第几页 let totalPage ...
/** @type {(json: any, queryFn: (json: any) => boolean, dataFn: (json: any, path: string[]) => any ) => any } */ export function query(json, queryFn, dataFn = undefined) { return queryInternal(json, queryFn, dataFn, true, []) } // depth first traversal /** @type {(json: any, queryFn: (json: any) => boolean, dataFn: ...
// British equivalents of American words export const americanOnly = { acclimate: 'acclimatise', acetaminophen: 'paracetamol', 'baby carriage': 'pram', backhoe: 'digger', 'band-aid': 'Elastoplast', bangs: 'fringe', barrette: 'hair slide', baseboard: 'skirting board', 'bedroom community': 'dormitory t...
#!/usr/bin/env node const _ = require('lodash'); const Table = require('easy-table'); const util = require('util'); const exec = util.promisify(require('child_process').exec); const commandLineArgs = require('command-line-args'); const commandLineUsage = require('command-line-usage'); const termKit = require('terminal...
import _Object$getPrototypeOf from 'babel-runtime/core-js/object/get-prototype-of'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits...
var z = require('zero-fill') , n = require('numbro') , Phenotypes = require('../../../lib/phenotype'); const SHORT_PERIOD_DELTA = 30*60*1000; const MEDIUM_PERIOD_DELTA = 3*60*60*1000; const LONG_PERIOD_DELTA = 24*60*60*1000; function percent(startVal, endVal) { return ((endVal / startVal) - 1) * 100; } functio...
import {Byte_Array} from '../../../libs/byte_array/byte_array.js'; import {Data_Type} from '../../../libs/byte_array/types.js'; import {Byte_Array_Base} from '../../../libs/byte_array/base.js'; import {Byte_Array_String} from '../../../libs/byte_array/string.js'; import {event_path} from '../../../helper/compatibility...
/*Target all menus cards that appear below 768pixels*/ const menu_cards = document.querySelectorAll(".menu-card"); let currentCard = 0 let row = ''; const manageTabs = () =>{ /* Function that closes rest of the tabs that are open. */ /* When cliking to open one of the categories in the card-menu, since it's not an...
import React, { useState,useMemo } from "react"; import { makeStyles } from "@material-ui/core/styles"; import { IoMdAddCircleOutline } from "react-icons/io"; import { Grid, Button, Paper, TextField, IconButton, Table, TableHead, TableRow, TableCell, TableBody } from "@material-ui/core"; import { Ci...
window.domProxy = arg => { const list = new Set( arg instanceof Node ? [arg] : typeof arg === 'string' ? (arg[0] === '<' ? strToDom(arg) : d.querySelectorAll(arg)) : arg ); return new Proxy(list, handler); } const undef = void 0; const d = doc...
import React from 'react'; import {History} from 'react-router'; import * as AppActions from '../models/actions/Apps'; import * as ProcActions from '../models/actions/Procs'; import MDL from '../components/MdlComponents'; import AppSummaryCard from '../components/AppSummaryCard'; import CreateAppCard from '../componen...
var path = require('path') var webpack = require('webpack') var webpackManifest = require('../lib/webpackManifest') var WriteFilePlugin = require('write-file-webpack-plugin'); var CleanWebpackPlugin = require('clean-webpack-plugin'); var UglifyJsPlugin = require('uglifyjs-webpack-plugin'); var HappyPack = require('hap...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototy...
/** Based on json_formater from cucumber module */ const _=require('lodash'); const {GherkinDocumentParser, PickleParser,formatLocation}=require('cucumber/lib/formatter/helpers'); // eslint-disable-line sort-imports const {Formatter}=require('cucumber'); const {Status}=require('cucumber'); const {buildStepArgumentIter...
"use strict"; var assert = require("assert"); var fs = require("fs"); var trusted = require("../index.js"); var DEFAULT_CERTSTORE_PATH = "test/CertStore"; var DEFAULT_RESOURCES_PATH = "test/resources"; var DEFAULT_OUT_PATH = "test/out"; describe("CipherSYMMETRIC", function() { var cipher; it("init", functio...
import React, { Component, Fragment } from "react"; import { firestore } from "../../firebase"; import WithStyles from "@material-ui/styles/withStyles"; import { withRouter, Link, Route, Switch } from "react-router-dom"; import ArticlesList from "../ArticlesList"; import ArticleCreate from "../ArticleCreate"; import ar...
import contains from '../../common/contains'; import createDocument from '../../system/createDocument'; import { defStatVl } from '../../support/constants'; import getArrayByTagName from '../../common/getArrayByTagName'; import getElementById from '../../common/getElement'; import getElementsByTagName from '../../commo...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")); var _classCallCheck2 = _interopRequireD...
let d3 = require('d3') export default function dataService ($location, $rootScope, $route, orchestraApi) { /** * Service to share and manipulate project management data across * visualization components. */ 'ngAnnotate' var _meta var _now = new Date() var service = { currentProject: {short_desc...
/** * Display trait table * @param {Object} data - association solr docs * @param {Boolean} cleanBeforeInsert */ function displayDatatableTraits(data, HEADER_VALUE, cleanBeforeInsert) { //by default, we clean the table before inserting data if (cleanBeforeInsert === undefined) { cleanBeforeInsert =...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.inputCaptureSetWatcher = inputCaptureSetWatcher; exports.inputCaptureRegisterElement = inputCaptureRegisterElement; function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Arr...
import React, { Component, PureComponent, Fragment } from 'react'; import PropTypes from 'prop-types'; import { Select, Form, Row, Table, Divider, Popconfirm, Button, Input, Modal, Col, Card } from 'antd'; import { connect } from 'dva'; import PageHeaderLayout from '../../layouts/PageHeaderLayout'...
const { app, ipcRenderer, clipboard, remote, shell } = require('electron'); const { BrowserWindow } = remote; const path = require('path'); const fs = require('fs'); const md5 = require('md5'); const os = require('os'); const net = require('net'); const { machineIdSync } = require('node-machine-id'); const childprocess...
// 把实体数据复制到空实体中,只复制相同字段 export const entityDataCopy = (emptyEntity, entityData) => { for (let item in emptyEntity) { for (let uitem in entityData) { if (item === uitem) { let e0 = typeof (emptyEntity[item]); let e1 = typeof (entityData[uitem]); if (e0 === e1) { emptyEntity[...
'use strict'; import Profile from '@emmetio/output-profile'; import SnippetsRegistry from '@emmetio/snippets-registry'; import { expand as htmlExpand, parse as htmlParse } from './lib/html'; import { expand as cssExpand, parse as cssParse } from './lib/css'; import snippetsRegistryFactory from './lib/snippets-registr...
const axios = require("axios"); const https = require("https"); const { expect, assert } = require("chai"); const httpsAgent = new https.Agent({ rejectUnauthorized: false, // curl -k }); axios.defaults.httpsAgent = httpsAgent; const { ensureCommerceMockLocalTestFixture, checkFunctionResponse, sendEventAndCheckR...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); const tslib_1 = require('tslib'); const async = tslib_1.__importStar(require('async')); const uuid = tslib_1.__importStar(require('uuid')); const WildEmitter = require('wildemitter'); const ACTIONS = { 'content-accept': 'onContentAccept', ...
import React from "react"; import PropTypes from "prop-types"; import { withStyles } from "@material-ui/core/styles"; import TextField from "@material-ui/core/TextField"; import Button from "@material-ui/core/Button"; import CartMicro from "../CartMicro/CartMicro"; import { connect } from "react-redux"; import CartWith...
function sortParallel(firstArr, secondArr, thirdArr, fourthArr, fifthArr) { for (let i = 0; i < secondArr.length; i++) { var max = i; for (let j = i+1; j < secondArr.length; j++) { if (secondArr[j] > secondArr[max]) { max = j; } } swapA(secondArr, i, max); swapA(firstArr, i, max); swapA(thirdArr,...
'use strict'; localStorage.ROUTE_SCHEMA = 'id,match,savePath'; localStorage.SERVER_SCHEMA = 'id,url'; if (!localStorage.routes) { // First run after installation localStorage.routes = JSON.stringify([{ id: '0', match: '^file://[^/]*/', savePath: '/' }]); localStorage.servers = ...
const StatusCodes = require('http-status-codes'); const Config = require('../src/config'); module.exports = { async get(req,res) { try { if(!global.config) { return res.status(StatusCodes.INTERNAL_SERVER_ERROR).json({ 'message': 'No existe configuración. Favor de validar' }); } const confi...
/*global require*/ "use strict"; /*! * Copyright(c) 2012-2013 National ICT Australia Limited (NICTA). All rights reserved. */ var destroyObject = require('../../third_party/cesium/Source/Core/destroyObject'); var JulianDate = require('../../third_party/cesium/Source/Core/JulianDate'); var VarType = require('./VarT...
var express = require('express') var path = require('path') // var favicon = require('serve-favicon') var logger = require('morgan') var cookieParser = require('cookie-parser') var bodyParser = require('body-parser') var session = require('express-session') var FileStore = require('session-file-store')(session) var ap...
import React, {Component} from 'react' import PropTypes from 'prop-types' import Hls from 'hls.js' import ProgressBar from 'part:@sanity/components/progress/bar' import Button from 'part:@sanity/components/buttons/default' import {getAsset} from '../actions/assets' import {fetchSecrets} from '../actions/secrets' impor...
import _ from 'lodash'; import { EMAIL_FORMATING } from '../app/constants'; const { OPEN_TAG_AUTOCOMPLETE, CLOSE_TAG_AUTOCOMPLETE, OPEN_TAG_AUTOCOMPLETE_RAW, CLOSE_TAG_AUTOCOMPLETE_RAW } = EMAIL_FORMATING; export const MAP_TAGS = { [OPEN_TAG_AUTOCOMPLETE_RAW]: OPEN_TAG_AUTOCOMPLETE, [CLOSE_TA...
var util = require('util'), fs = require('fs'), async = require('async'), path = require('path'), moment = require('moment'), sprintf = require("sprintf-js").sprintf, _ = require('underscore'), Hawk = require('hawk'), filesize = require('filesize'), Query = require('./query_s3'); var bbox = [6...
const pg = require('pg'); const fs = require('fs'); const async = require('async'); const copyTo = require('pg-copy-streams').to; const copyFrom = require('pg-copy-streams').from; const _ = require('lodash'); const pgdeploy = require('./pgdeploy.js'); const files = require('./files.js'); const db = require('./db.js');...
$(document).ready(function(){ var user=$("#containerStorys").attr('ref'); $.ajax({ url:"./Usuarios/"+user+"/AlumnoStory.xml", method:"get", data:{}, success:function(response){ displayStoryBoards(response); }, dataType:"xml" }); }) function displayStoryBoards(response){ $(respon...
import React from 'react'; import { Link } from 'react-router'; import DishStore from '../stores/DishStore'; import DishActions from '../actions/DishActions'; import Modal from './Modal'; var s = require('underscore.string'); class Dish extends React.Component { constructor(props) { super(props); ...
/* eslint-disable import/no-extraneous-dependencies */ import React from 'react'; import mapColorsToTheme, { $LIGHT_BLUE, $MEDIUMSILVER, $WHITE } from '../constants/colorLiterals'; import { Ionicons } from '@expo/vector-icons'; import StatsBtn from '../../assets/statsBtn.svg'; import { View, StyleSheet, Tex...
require('rootpath')(); var logger = require('config/winston'); var mongoose = require('mongoose') var Schema = mongoose.Schema; var sw = require('stopword'); var cf = require("./common/common_functions.js") var calculateAgreement = require('./helpers/calculate_agreement') /* Schema */ var DocumentSchema = new Schem...
var gulp = require('gulp'); var sass = require('gulp-sass'); var cleancss = require('gulp-clean-css'); var csscomb = require('gulp-csscomb'); var rename = require('gulp-rename'); var autoprefixer = require('gulp-autoprefixer'); var pug = require('gulp-pug'); var replace = require('gulp-replace'); var iconfont = require...
var express = require('express'); var router = express.Router(); //You require the mongodb package and you get the MongoClient object from it. const mongo = require('mongodb'); const getLibraryCollection = () => { return new Promise((resolve, reject) => { // You require the mongodb package and you get the MongoC...
import React, { PureComponent } from 'react' import update from 'immutability-helper' import { Button, Card, CardText, } from 'react-md'; // reactapp's components import { maxWidth } from '../middleware/layout' import Group from '../components/Group' import AddTarget from '../components/AddTarget' // axios is a h...
const jsdom = require("jsdom"); const { JSDOM } = jsdom; let { document } = (new JSDOM(`...`)).window; let { getFromId, getSheet } = require('./data.js'); var md = require('markdown-it')({ html: true, breaks: true }); const extracts = "Flame,Water,Smoke,Necro,Rot,Ether".split(','); const monsterTags = toBitwise("livi...
import React, { useState } from "react"; import "./home.scss"; import { Link } from "react-router-dom"; //Icons import HeroIcon from "../../assets/images/HeroIcon"; import MagnifyingGlass from "../../assets/images/MagnifyingGlass"; import Wrench from "../../assets/images/Wrench"; import QuestionMark from "../../assets/...
import React from 'react'; import './Category.css'; import Paper from "@material-ui/core/Paper/Paper"; import Table from "@material-ui/core/Table/Table"; import TableHead from "@material-ui/core/TableHead/TableHead"; import TableRow from "@material-ui/core/TableRow/TableRow"; import TableCell from "@material-ui/core/Ta...
var Composer = require("montage/composer/composer").Composer; var Flow = require("montage/ui/flow.reel").Flow; /** * @class Tween * @extends Composer */ exports.Tween = Composer.specialize(/** @lends Tween# */ { constructor: { value: function Tween() { this.super(); } }, lo...
'use strict' /**************** Global Imports ****************/ //GLOBAL const browserSync = require('browser-sync').create() //VARIABLES FOR WATCH const autoprefixer = require('autoprefixer'), concat = require('gulp-concat'), cssnano = require('cssnano'), del = require('del'), eslint = require('gulp-esli...
prefix = "_answer" announcements_channel = "912293335086006292" // actual 912293335086006292 // test 909931933201481771 answers_channel = "912292996815392768" // actual 912292996815392768 // test 909932040256905286 host_id = "202908462722711552" programmer_id = "793902871619043400" started = false thinking_time = fal...
var Slider = function() { var obj = this; obj.count = 0; obj.index = 0; obj.images = []; obj.time = 2000; obj.width = 1000; obj.minwidth = 206; obj.list = null; obj.thumblist = null; obj.timer = null; obj.open_newtab = true; obj.next = function() { var newindex = obj.index + 1; if (newindex >= obj.coun...
"use strict"; // render-html.js var React = require("react"); var ReactDOMServer = require("react-dom/server"); // v0.0.49-spectrolite // There are mission-critical details of how the holistic Node.js service kernel abstraction // dynamically synthesizes the holistic tab service process within the context of an // HT...
// Copyright 2021 Battelle Energy Alliance //---------------------- // These code just to make mxClient available to fool TS. // mxClient in js is a global object. var MyClient = (function () { function MyClient() { this.IS_QUIRKS = false; } MyClient.prototype.isBrowserSupported = function () { ...
#!/usr/bin/env node var bencode = require("bencode-stream"), Bitfield = require("opaque-bitfield"), crypto = require("crypto"), events = require("events"), fs = require("fs"), net = require("net"), BitTorrent = require("./bittorrent"); var TorrentSession = function TorrentSession(options) { ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _jsonwebtoken = _interopRequireDefault(require("jsonwebtoken")); var _user2 = _interopRequireDefault(require("../models/user")); var _config = require("../config"); var _permissions = _interopRequireDefa...
import React, { lazy, Suspense } from 'react'; import cn from 'classnames'; import PropTypes from 'prop-types'; import listify from 'listify'; import endOfYesterday from 'date-fns/endOfYesterday'; import parseISO from 'date-fns/parseISO'; import dateFnsLocalizer from 'react-widgets-date-fns'; import 'react-widgets/dist...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import axios from 'axios'; import { registerTestBed, findTestSubject } from ...
var AstTree = function (ast) { this._ast = ast; this.rebuild(); }; AstTree.prototype.rebuild = function () { this._tree = new AstNode(this, this._ast); }; AstTree.prototype.ast = function () { return this._ast; }; AstTree.prototype.find = function (check, node) { var results = []; if (!node) { node = this._...
const express = require('express'), path = require('path'), db = require(path.join(__dirname,'..','..','db')), fs = require('fs'), paths = require(path.join(__dirname,'..', '..','paths')), ModImg = require(path.join(__dirname,'..','..','modify-images')); const NodeManager = require(path.join(__dirn...
import { View, Text, TabBarIOS, TouchableOpacity, ListView, RefreshControl, ActivityIndicator } from 'react-native'; import React, { Component } from 'react'; import Icon from 'react-native-vector-icons/Ionicons'; import { connect } from 'react-redux'; import { Actions } from 'react-native-router-flux'; import pallete...
var packPrice = new Array(); var packCont = ''; var net; var tv; var themeurl = 'addons/shared_addons/themes/innovate/'; $(function(){ //Set Packages Container Height $container = $('.pack-item'); var highest = 0; $container.each(function(){ if($(this).children('section').height() > highest){ highest = $(th...
/* var employees = [ { "name": "Admin", "id": 1, "email": "<EMAIL>", "hours_limit": 0, "role_preferences": { "Dishwasher": { "id": 1, "priority": 1.0, "gm_priority": 1.0 }, } "availabilit...
//svg const svg = d3.select('svg'); //svg width and height svg .attr('width', 840) .attr('height', 625) //set up grid spacing const spacing = 40; const rows = 10; const column = 10; const randnum = (min, max) => Math.round(Math.random() * (max - min) + min); //Create an array of objects const our_data = d3.r...
/*! * whamda * Copyright(c) 2015 <NAME> * MIT Licensed // */ function addTestOutput(name, result) { var table = document.getElementsByClassName('table-tests')[0]; var row = table.insertRow(-1); var nameCell = row.insertCell(-1); var resultCell = row.insertCell(-1); nameCell.innerHTML = name; ...
/* Copyright 2016 Autodesk,Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software...
// 1. Create an object representation of yourself // Should include: // - firstName // - lastName // - 'favorite food' // - bestFriend (object with the same 3 properties as above) //trying to keep personally identifying information off GitHub const redacted = { firstName: "redacted-first-name", lastName: "redacte...
#!/usr/bin/env node const debug = require('debug')('packagers/webpack/publish') const fs = require('fs') const path = require('path') const glob = require('glob') const AWS = require('ibm-cos-sdk') const needle = require('needle') const secrets = process.env.COS_SECRETS ? JSON.parse(process.env.COS_SECRETS) : req...
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 = Reflect.decorate(d...
import {CardGroup, Row, Col} from 'reactstrap'; import {ResumenWidget} from 'components/Widget'; import React from 'react'; const ResumenCotizaciones = (props) => { let dataCompraMayor; let resultadoCompraMayor = 0; for(let i=0; i < props.entidades.length; i++) { if(parseFloat(props.entidades[i].com...
/** * Copyright (c) Microsoft. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
import React from 'react'; import PropTypes from 'prop-types'; import { Col, Row, Button, FormControl, OverlayTrigger, Popover } from 'react-bootstrap'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faPlay, faStop, faSpinner, faEraser, faPalette, faCog, faPen, faImage } from '@fortawesome/f...
var Eases = require('eases') var Lerp = require('lerp') var internals = { updateObjectValue : function( elapsed, prevElapsed, keyframe, action ) { var t = ( elapsed - keyframe.start ) / keyframe.duration action.obj[action.key] = Lerp( action.values[0] , action.values[1] , keyframe.easing(t) )...
function fstrata() { var a = Array(); for(var s=0; s<hashtags.length; s++) a.push(fstratum(s)); return a; } function fstratum(a) { var res = []; if(typeof nb_previous_day != "undefined" && !isNaN(nb_previous_day[a]) && !isNaN(nb_previous_day[a]) ) { (function(v, h, d, w) { res.push({value: fun...
var md = require('markdown-it')({ html: true }); var markdownItAttrs = require('markdown-it-attrs'); var fs = require('fs'); var cheerio = require('cheerio'); var request = require('request'); md.use(markdownItAttrs); function start(filename, callback) { if (/^http/.test(filename)) { request(filename, function(e...
import React, { useState, useEffect } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import Link from './Link'; import ProgressSlider from './Fields/ProgressSlider'; import VolumeControl from './Fields/VolumeControl'; import MuteControl from './Fields/MuteControl'; import OutputControl from...
var split = require('split2') var pumpify = require('pumpify') var through = require('through2') module.exports = function() { var re_ass = new RegExp("Dialogue:\\s\\d," + // get time and subtitle "(\\d+:\\d\\d:\\d\\d.\\d\\d)," + // start time "(\\d+:\\d\\d:\\d\\d.\\d\\d)," + // end time ...
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) { try { step(gene...
import axios from "axios"; import qs from "query-string"; import React, { useEffect, useState } from "react"; import Alert from "react-bootstrap/Alert"; import Button from "react-bootstrap/Button"; import Col from "react-bootstrap/Col"; import Container from "react-bootstrap/Container"; import Form from "react-bootstra...
var LobbyScene = cc.Scene.extend({ lobbyTitle: ['扎股子-五人', '扎股子-七人'], ctor: function (data, lobbyId) { this._super(); cc.spriteFrameCache.addSpriteFrames(res.room_plist, res.room_png); cc.spriteFrameCache.addSpriteFrames(res.other_plist, res.other_png); //header var hea...
const https = require('https'); const querystring = require('querystring'); const fs = require('fs'); const Constants = require('./structures/Constants.js'); const Dripper = require('./structures/Dripper.js'); const DEFAULT_SETTINGS = { private: false, dripperSettings: { ratelimit: 60, requests: 4 } } cl...
const inquirer = require('inquirer'); const path = require('path'); const fs = require('fs-extra'); const providerName = 'awscloudformation'; const category = 'analytics'; const parametersFileName = 'parameters.json'; const serviceName = 'Pinpoint'; const templateFileName = 'pinpoint-cloudformation-template.json'; as...
/* Copyright (c) 2013, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://yuilibrary.com/license/ */ var UNKNOWN = 'UNKNOWN'; var fs = require('fs'); var path = require('path'); var read = require('read-installed'); var chalk = require('chalk'); var treeify = require('treeify'); var license ...
function startApp(el) { $('.start-wrapper').hide(); $('#personalia').show(); } function showNextFormGroup(active) { if(active.children('h2').html() === 'Fylke') { active.hide() .removeClass('active'); $('[data-identifier="' + choices[active.data('name')] + '"]') .sh...
import React, { useEffect, useMemo, useRef, useState } from "react"; import { SUB_STATE_OPTIONS } from "../scripts/utils"; import { ToastContainer } from "react-toastify"; import Select from "react-dropdown-select"; import BootstrapSwitchButton from "bootstrap-switch-button-react"; import { Search } from "react-bootstr...
const express = require("express"); const bodyParser = require("body-parser"); const fs = require("fs"); const fetch = require("node-fetch"); const path = require("path"); const Arweave = require("arweave/node"); const smartest = require("@_koi/smartest"); const arweave = Arweave.init({ host: "arweave.net", protoco...
import React, { Component, useState } from 'react' import { Text, StyleSheet, View ,Button, Alert, Image,TouchableOpacity} from 'react-native' import Header from '../../components/Header' import DialogInput from 'react-native-dialog-input'; import ImagePicker from 'react-native-image-picker'; import { Icon } from 're...
// GET /eventos/:eventId/rsvps var attendantsN = []; var pageNumberRSVP = 1; var PER_PAGE_RSVP = 4; $(document).ready(function() { //$("#radioRSVP").click(submitRSVP); //attendants.forEach(addRSVP); }); var users; var userRSP; var ev; var edited=0; function loadRSVPsAjax(idEvento) { $.get('/api/user/', setUser...
"use strict"; const APIKEY = 'eaa8df42'; const main = document.getElementById('main'); const searchForm = document.getElementById('searchForm'); const searchInput = searchForm.querySelector("#search"); const yearInput = searchForm.querySelector("input[type='number']"); const type = searchForm.querySelector("select"); l...
import find from 'lodash/collection/find'; import React from 'react'; import ReactDOM from 'react-dom'; import { bemHelper, prepareTemplateProps, getContainerNode } from '../../lib/utils.js'; import cx from 'classnames'; import autoHideContainerHOC from '../../decorators/autoHideContainer.js'; import headerFooter...
var virt = require("@nathanfaucett/virt"), propTypes = require("@nathanfaucett/prop_types"), arrayMap = require("@nathanfaucett/array-map"), extend = require("@nathanfaucett/extend"), Link = require("./Link"), links = require("../utils/links"); var FooterPrototype, ICON_LINKS = [{ id: ...
'use strict'; // usergrid entity instance methods var _ = require('lodash'); var ValidationErrors = require('./validation_errors'); var helpers = require('./helpers'); var translateSDKCallback = helpers.translateSDKCallback; var usergrid_sdk = require('usergrid'); var async = require('async'); var inflection = requir...
import React, { useState, useEffect } from 'react'; import { useSelector } from 'react-redux'; import { makeStyles } from '@material-ui/styles'; import DrawerLayout from 'src/layouts/DrawerLayout'; import { Button, Grid, Box, Typography, TextField, InputBase, Snackbar, CircularProgress } from '@material...
String.prototype.replaceAll = String.prototype.replaceAll || function(search, replacement) { const target = this; return target.replace(new RegExp(search, 'g'), replacement); }; const loaderSrc = 'data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="38" height="38" viewBox="0 0 38 38" stroke="rg...