text
stringlengths
3.07k
16k
/** * Copyright 2021 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the 'License'); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
"use strict"; import React, { Component } from "react"; import { connect } from "react-redux"; import { bindActionCreators } from "redux"; import { KeyboardAvoidingView, Platform, StyleSheet, View, TextInput } from "react-native"; import styled from "styled-components/native"; import { updateMnemonicWordsVali...
import React, {Component} from 'react'; import {Animated, BackHandler, Dimensions, Easing, PanResponder, StyleSheet, TouchableOpacity, View} from 'react-native'; const {width: WIDTH, height: HEIGHT} = Dimensions.get('window'); const minPopupHeight = 250; const defaultState = { height: minPopupHeight, start: ...
'use strict' import SocketIO from 'socket.io' import cookieParser from 'cookie-parser' import ss from '@sap_oss/node-socketio-stream' import User from '../models/user' import fetchHandlers from './util/fetch-handlers' // this is not catching the errors from hartford-address-lookup when there is not MAPS Api set - bu...
//Array Functions const { __, _x, _n, _nx } = wp.i18n; const getRecipients = ( recipient ) => ( Object.entries( Array.from( document.querySelectorAll( recipient ) ).reduce( ( a, e, i ) => ( a[e.value] = Array.from( document.querySelectorAll( `#tag_${i}>.button` ) ).map( ( f ) => ( f.textContent ) ), a ), {} ) )...
import { scaleOrdinal } from "d3-scale"; import _ from "lodash"; import React, { Fragment } from "react"; import text from "src/panels/panel_declarations/services/services.yaml"; import { DisplayTable, create_text_maker_component, Panel, VisibilityControl, } from "src/components/index"; import { create_footn...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { is } from 'immutable'; import RefCoreError from 'ref-core/lib/refs/RefCoreError'; import RefCoreTree from 'ref-core/lib/refs/RefCoreTree'; import RefCoreSearch from 'ref-core/lib/refs/RefCoreSearch'; const noop = () => { }; const pro...
/** * Simple statsd backend that dumps the raw flush data to disk. * Checks a retention time for how long files can be kept around. * Also runs some simple aggregation of the data for the retention period. */ var fs = require('fs'), math = require('mathjs'); function setupMath() { //add some missing math l...
"use strict"; function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ...
#!/usr/bin/env /usr/local/bin/node /* jshint esversion: 6 */ /* * <bitbar.title>Track Brazilian Post Office (Correios) packages</bitbar.title> * <bitbar.version>v1.0</bitbar.version> * <bitbar.author><NAME></bitbar.author> * <bitbar.author.github>cetorres</bitbar.author.github> * <bitbar.desc>EN: Track Brazilian...
// Users object adminElements.userClassList = []; adminElements.userClassList = [].slice.call(document.querySelectorAll('div.user-display-list > div')); function userElementsChecking() { let list = adminElements.userClassList; //giving a class to first element for (let i = 0; i < list.length; i++) { ...
$(function(){ userLogged(); init_datos(); $('.preloader-wrapper').hide() $( document ).ajaxStart(function() { $( ".preloader-wrapper" ).show(); }); $( document ).ajaxStop(function() { $( ".preloader-wrapper" ).hide(); }); $('.desc-form').submit(submitInfo); $('#subir_foto').click(subir); ...
/** * * User: tina.zhang * Explain: 更新学生弹框组件 * * */ import React, { Component } from 'react'; import { connect } from 'dva'; import { Form, Modal, message } from 'antd'; import { formatMessage, defineMessages } from 'umi/locale'; import styles from './index.less'; const FormItem = Form.Item; const messages = def...
const zlib = require('zlib') const url = require('url') const querystring = require('querystring') const FormData = require('form-data') const protobuf = require('protobufjs') const debug = require('debug')('mgate:http') const logger = require('../utils/logger') const path = require('path') const rhttp = /^https?:\/\/...
import m from 'mithril'; import models from '../models'; import postgrest from 'mithril-postgrest'; import _ from 'underscore'; import h from '../h'; import userVM from '../vms/user-vm'; import inlineError from './inline-error'; import popNotification from './pop-notification'; import projectCard from './project-card';...
'use strict' const forIn = require('lodash.forin') const fetch = require('node-fetch') const should = require('should') const ChowChow = require('oas3-chow-chow').default const debug = require('debug')('openapi3-tester') const util = require('util') const TOTAL_KEY = '::total::' const OpenapiSchemaValidator = require...
import * as _ from "lodash"; import ReactDOM from "react-dom"; import { useState, useRef, useEffect, useContext } from "react"; import * as UC from "../unicode-utils"; import { States } from "../game"; import { getLetterPos } from "../tamil-letters"; import { IntlMsg } from "../messages-ta"; import { GameContext } fr...
"use strict" const tools = require( __dirname + "/../inc.js" ); const path = require( 'path' ); const fs = require( 'fs' ); const crypto = require( 'crypto' ); const util = require( 'util' ); const beautify_html = require( 'js-beautify' ).html; var options = {}; var solution = {}; /** * info = { * path, ...
import React from 'react'; import classnames from 'classnames'; import moment from 'moment'; import PropTypes from 'prop-types'; import checkProps from '@jam3/react-check-extra-props'; import { connect } from 'react-redux'; import BaseLink from '../BaseLink/BaseLink'; import Counter from '../Counter/Counter'; import { ...
module('FEN Notation'); var start_fen = 'rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1'; var fen = 'rnbqkbnr/ppp1pppp/8/3p4/4P3/8/PPPP1PPP/RNBQKBNR w KQkq e3 0 2'; test('Correctly imports FEN string and populates board', function() { var board = new Board(fen) , invalid_fen = '8/8/8/8/8/8 b - - 0...
import React, { useReducer, useEffect, useState } from 'react' import fbt from 'fbt' import pick from 'lodash/pick' import pickBy from 'lodash/pickBy' import useConfig from 'utils/useConfig' import useBackendApi from 'utils/useBackendApi' import { formInput } from 'utils/formHelpers' import { useStateValue } from 'dat...
function getWidget() { return $("." + widgetContentClass); } function getWidgetContent() { return $("." + widgetContentClass).contents(); } function getWidgetPanel() { return $("#" + panelId); } /** * inserts widget in the page */ function loadWidget() { var widget = $("<div>"); widget.css({...
const path = require("path"); const debug = require("debug")("app:config"); const argv = require("yargs").argv; const ip = require("ip"); const {NODE_ENV, PORT, USE_TSLOADER, BASENAME} = process.env; // make these variables global throughout the compile-time scripts global.ENV = NODE_ENV; global.ENV_SHORT = {developm...
import React, { PropTypes as T } from 'react'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import styled from 'styled-components'; // Components import H3 from 'components/H3'; import Map from 'components/Map'; import Radio from 'components/Input'; import Button from 'co...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _objectAssign = require('object-assign'); var _objectAssign2 = _interopRequireDefault(_objectAssign); var _gulpUtil = require('gulp-uti...
var ShareUrl = ""; var ShareTitle = ""; $(function() { var c = "http://skin.1ypg.com"; var b = $("#hidRefTitle"); var i = $("#txtInfo"); var f = $("#resultCount").val(); var a = 0; var e = $("#userId").val(); var g = function() { var o = $www; o += "/share.html?uid="; var k = $("#btnCopy"); ShareTitle = ...
"use strict"; function _toConsumableArray(arr) { return ( _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread() ); } function _nonIterableSpread() { throw new TypeError( "Invalid attempt to spread non-iterable instance.\nIn order to be i...
import fetch from 'dva/fetch'; import _ from 'lodash'; import { notification } from 'antd'; import locks from 'locks'; import { REFRESH_TOKEN_URL } from '../config'; import { InvalidTokenError, InvalidResponseFormatError } from '../errors'; import { needAuthUrl } from './utils'; const mutex = locks.createMutex(); let...
var mbaasApi = require('fh-mbaas-api'); var express = require('express'); var mbaasExpress = mbaasApi.mbaasExpress(); var cors = require('cors'); // list the endpoints which you want to make securable here var securableEndpoints; securableEndpoints = ['/hello','/userDetails','/getCallSupportDetails','/getAllITSupportL...
import React from "react"; import styled from "styled-components"; import Navbar from "./navbar"; import Form from "./liftsForm"; import WorkoutHistory from "./liftstHistory"; import Progress from "./liftsProgress"; import {getExercises} from '../state/actionCreators' import {connect} from 'react-redux'; const Header =...
const jsonfile = require('jsonfile'); const configData = require('./config'); const path = require('path'); const async = require('async'); const pathExists = require('path-exists'); const dockerFiles = require('./docker_filesToCopy'); const Checker = require('../util/AppChecker'); const LabStates = require('../util/La...
const max = 50000; const RB64Regex = /^[0-9a-zA-Z/\+]+[=]{0,3}$/; export class B64Util { static from64(d) { const a = new Uint8Array(1); a.fill(0); const b = B64Util.b64ToU8a(d); const u8a = b.length % 2 ? B64Util.joinU8as([b, a]) : b; const u16a = new Uint16Array(u8a.buffer)...
/** * @author <NAME> * @copyright 2015 <NAME> * @license MIT * @module maximum-line-length * @fileoverview * Warn when lines are too long. * * Options: `number`, default: `80`. * * Ignores nodes that cannot be wrapped, such as headings, tables, * code, and definitions. * * Ignores images, links, ...
var _ = require("underscore"); var uuid = require("uuid"); var expect = require("chai").expect; var diff = require("deep-object-diff").diff; var directline = require("./directlineclient"); var utils = require("./utils.js"); var Result = require("./result"); const logger = require("./logger"); class Test...
/* Copyright 2018 Google LLC Use of this source code is governed by an MIT-style license that can be found in the LICENSE file or at https://opensource.org/licenses/MIT. */ import { assert } from 'workbox-core/_private/assert.js'; import { timeout } from 'workbox-core/_private/timeout.js'; import { resultingCl...
var Promise = require('promise'); var _ = require('underscore'); var d3 = require('d3'); var rw = require('rw'); var request = require('./request-cache'); var cheerio = require('cheerio'); var queue = require('queue-async'); var csv = require('csv'); var resolver = require('resolver'); var sleep = require('sleep'); va...
'use strict'; /** * gulp-svg-sprite is a Gulp plugin for creating SVG sprites * * @see https://github.com/jkphl/gulp-svg-sprite * * @author <NAME> <<EMAIL>> (https://github.com/jkphl) * @copyright © 2018 <NAME> * @license MIT https://github.com/svg-sprite/gulp-svg-sprite/blob/main/LICENSE */ const assert = re...
import { Alert, Box, Button, Container, Dialog, DialogActions, DialogContent, DialogTitle, Stack, TextField } from '@material-ui/core'; import DesktopDatePicker from '@mui/lab/DesktopDatePicker'; import { MenuItem } from '@mui/material'; import { add } from 'date-fns'; import { addDoc, collection, ...
import { Meteor } from 'meteor/meteor'; import React, { useEffect, useRef, useState, useCallback } from 'react'; import { Box, Icon, Scrollable } from '@rocket.chat/fuselage'; import Page from '../../../components/Page'; import { useToastMessageDispatch } from '../../../contexts/ToastMessagesContext'; import { useEndp...
const en = { auth: { login: 'Login', loggingIn: 'Logging in...', loginWithNetlifyIdentity: 'Login with Netlify Identity', errors: { email: 'Make sure to enter your email.', password: '<PASSWORD>.', identitySettings: 'Unable to access identity settings. When using git-gateway ...
function SetCSSValue(where,what,to){ var r='cssRules'; if(document.all && navigator.appName.indexOf('Opera')==-1) r='rules'; var i; for(i=0;i<document.styleSheets.length;++i) { var cssrules=document.styleSheets[i][r]; for(j=0;j<cssrules.length;++j) if(cssrules[j].selectorText.toUp...
// Asynchronous tests should manually call finishRepaintTest at the appropriate // time. window.testIsAsync = false; window.outputRepaintRects = true; window.generateMinimumRepaint = false; // See comments about 'Minimum repaint' below. function runRepaintTest() { if (!window.testRunner || !window.internals) { ...
import React, {Component} from 'react'; import { Button, // Badge, Button, Card, CardBody, CardHeader, CardFooter, // CardHeader, Col, // Form, FormGroup, Input, // ListGroup, ListGroupItem, // InputGroup, InputGroupAddon, // Nav, // NavItem, // NavLink, // Pagination, PaginationItem, Pagina...
import isNone from 'ember-metal/is_none'; import run from 'ember-metal/run_loop'; const originalSetTimeout = window.setTimeout; const originalDateValueOf = Date.prototype.valueOf; const originalPlatform = run.backburner._platform; function wait(callback, maxWaitCount) { maxWaitCount = isNone(maxWaitCount) ? 100 : m...
const sellix = require("../src/index.js")("<API_KEY>", "<MERCHANT_NAME>") const debug = require("debug")("SellixApiClient") void (async () => { const tests = [] try { if (!tests.length || tests.includes("blacklists")) { debug("Testing blacklists") const blacklistPayload = { type: "EMAIL", ...
let video = document.querySelector('video'); let playlist = getAwesomePlaylist(); let index = 0; function onPlayButtonClick() { playVideo(); } function playVideo() { video.src = playlist[index].src; video.play() .then(_ => updateMetadata()) .catch(error => log(error.message)); } function updateMetadata() ...
var thumb = false; var win = {width: $(window).width(), height: $(window).height()}; var mouse = {x: 0, y: 0}; var joy = {x: 0, y: 0}; var dot = {x: 0, y: 0}; var dotVel = {x: 0.15, y: 0.2}; var opacityVar = 0; var hue = 220; var warm = hue - 60; var cold = hue + 60; $(window).on('resize', function(){ win = {width: ...
$(document).ready(function() { if(window.sessionStorage.getItem("user") !== null) { $("#signup-trigger").css("display", "none"); $("#signin-trigger").css("display", "none"); $("#logout-trigger").css("display", "inline-block"); } $('.modal').modal(); // Materialize configuration Materialize.upda...
/* * Copyright (c) 2020 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. */ 'use strict'; /* global VideoPipe */ const video1 = document.querySelector('video#video1'); co...
/* eslint-disable no-empty */ /* eslint-disable consistent-return */ /* eslint-disable guard-for-in */ /* eslint-disable array-callback-return */ /* eslint-disable no-console */ import { LightningElement, track, api } from 'lwc'; import { loadStyle } from 'lightning/platformResourceLoader'; import mapModal from '@sales...
const titleRowMap = { year: 'Year', month: 'Month', name: 'Name', units: 'Units', goal: 'Goal', reached: 'Reached', id: 'id' }; const titleRowKeys = ['year', 'month', 'name', 'units', 'goal', 'reached', 'id']; // Adds the custom menu to the active spreadsheet. function onOpen() { const spreadsheet = Spr...
// TODO: // Use localStorage instead of DOM to read options appTabId = null; tabs = {}; tabIds = []; var tableTemplate = null; var extractAttribute = function(tab, attribute) { switch (attribute) { case 'title': return tab.title; case 'domain': var uri = new URI(tab.url); return uri.domain(); } }; va...
const path = require('path') const MiniCssExtractPlugin = require('mini-css-extract-plugin') const { Octokit } = require('@octokit/core') const octokit = new Octokit() const gitDateExtractor = require('git-date-extractor') const { stripHtml } = require('string-strip-html') const { sanitizer } = require('./sanitizer') /...
/************************************** * Constants **************************************/ /************************************** * $(window).load(); **************************************/ $(window).load(function() { // fill in cohort options var cohortOptions = ""; var cohortIds = Obj...
var Jitter; import { tester } from '../../../lib/pub/test/Tester.js'; import Access from '../../../lib/pub/util/Access.js'; import Stream from '../../../lib/pub/util/Stream.js'; import Touch from '../../../lib/pub/navi/Touch.js'; import Cache from '../../../lib/pub/util/Cache.js'; import Mix from '../../../lib/...
"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...
/** Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = exports.FilterDrawer = void 0; var _react = _interopRequireWildcard(require("react")); var _reactRouterDom = require("react-router-dom"); var _designSystem = require("@adminjs/design-system"); var _propertyType = _inte...
// Loading all the required libraries var express = require('express'); var path = require('path'); const csv = require('csvtojson'); var bodyParser = require('body-parser'); var morgan = require('morgan'); //var winston = require('winston'); const { createLogger, format, transports } = require('winston'); var logger =...
/* Copyright (C) 2020 Google Inc. Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> */ import loReduce from 'lodash/reduce'; import loCompact from 'lodash/compact'; import loIsEmpty from 'lodash/isEmpty'; import loEach from 'lodash/each'; import loIsObject from 'lodash/isObject'; import m...
'use strict'; const expect = require('chai').expect; const Serverless = require('./Serverless'); const semverRegex = require('semver-regex'); const path = require('path'); const YAML = require('js-yaml'); const YamlParser = require('../lib/classes/YamlParser'); const PluginManager = require('../lib/classes/PluginMana...
/* * gregratadie.js - Represent the RD date number in the Gregorian calendar * * Copyright © 2014-2015, JEDLSoft * * 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.a...
function Importer() { // because this is overwritten on jquery events var self = this; // initialize module variables this.importData = {} /** * Initialize events */ this._init = function() { self.set_events(); self.set_configs(); } /** * events d...
import $ from 'jquery'; import { config, uri_params } from 'grav-config'; import request from '../utils/request'; export default class Filter { constructor() { this.URI = `${config.base_url_relative}/media-manager/`; } filter(name, value) { let filtered = []; let keys = Object.keys...
"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 * as React from "react"; import * as System from "~/components/system"; import * as SVG from "~/common/svg"; import * as Actions from "~/common/actions"; import * as Validations from "~/common/validations"; import * as Events from "~/common/custom-events"; import * as Strings from "~/common/strings"; import * as...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
/** * @file deef * @copyright Copyright (c) 2017 Baidu, Inc. All Rights Reserved. */ import React from 'react'; import ReactDOM from 'react-dom'; import {createStore, applyMiddleware, compose, combineReducers} from 'redux'; import {Provider, connect as hkConnect} from 'react-redux-hk'; import handleActions from './h...
'use strict'; console.log('Mine sweeper'); var gBoard; var BOMB = '💣'; var gLevel = [ { SIZE: 4, MINES: 2 }, { SIZE: 6, MINES: 5 }, { SIZE: 8, MINES: 15 } ]; var gIsGameOn = true; function inItGame() { startTimer(); createBoard(); renderBoard(gMat); } var gCurrunetLevl = gLevel[0]; functio...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage, injectIntl, intlShape, } from 'react-intl'; import { get } from 'lodash'; import { Callout } from '@folio/stripes/components'; import { SearchAndSort, makeQueryFunction, } from '@folio/stripes/smart-compo...
import React, { useCallback, useState, useEffect } from 'react'; import ReactDOM from 'react-dom'; import { connect } from 'react-redux'; import Header from "../../../components/atoms/Header"; import Card from "../../../components/layouts/Card"; import styled from "@emotion/styled"; import WidgetPreview, {mapProduct} f...
var crypto = require('crypto'); var fs = require('fs'); var path = require('path'); var Busboy = require('busboy'); var express = require('express'); var http = require('http'); var https = require('https'); var request = require('request'); var tmp = require('tmp'); // Different headers can be pushed depending on da...
/*----------------------------------------------------------------------------- This template demonstrates how to use an IntentDialog with a LuisRecognizer to add natural language support to a bot. For a complete walkthrough of creating this type of bot see the article at http://docs.botframework.com/builder/node/gui...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); exports.__esModule = true; exports.default = void 0; var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")); var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runt...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. // *************************************************************** // - [#] indicates a test step (e.g. # Go to a page) // - [*] indicates an assertion (e.g. * Check the title) // - Use element ID when selec...
'use strict'; const os = require('os'); const electron = require('electron'); const electronLocalshortcut = require('electron-localshortcut'); const pkgfile = require('../package'); const config = require('./config'); const core = require('./core'); const cmd = require('./cmd'); const ipc = require('./ipc'); const me...
/*jshint jquery:true */ $(document).ready(function($) { "use strict"; /* global google: false */ /*jshint -W018 */ /*-------------------------------------------------*/ /* = count increment /*-------------------------------------------------*/ try { $('.statistic-post').appear(function() { $('.timer').c...
var path = require('path'); var viewPath = path.join( __dirname + "/"); var _ = require('lodash'); var moment = require('moment'); var studentModel = require(__components + "StudentModel/studentModelDB"); var socialModel = require(__components + "SocialModel/socialStatsDB"); var chartHelpers = require( __components + ...
console.time('Core initialization'); const electron = require('electron'); const remote = electron.remote; const ipc = electron.ipcRenderer; import { Settings } from './src/settings'; import { Database } from './src/database'; import { Player } from './src/player'; let settings; let database; let player; window.add...
var http = require("http"); var https = require("https"); var URL = require("url"); var os = require("os"); var log = require("./logging")("proxy"); var Whitelist = require("./whitelist"); function Proxy(config) { this.whitelist = new Whitelist(); this.config = config; this.allowedHeaders = config.cors.allowedH...
"use strict"; var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault"); var _map = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/map")); var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/slicedToArray")); var _fo...
var ctx = null; var background = new Image(); background.src = "images/map.png"; var spriteList = []; var selectedSprite = null; var mousePos = {x : 0, y : 0}; var showCityNames = true; var insertMode = true; var clearPathOnNextClick = false; var travelDistance = null; $(function() { document.getElementById("canvas...
import React, { PureComponent } from "react"; import { ScrollView, StyleSheet, Image, Text, View, ViewPropTypes } from "react-native"; import PropTypes from "prop-types"; import { baseStyles } from "../../../util"; import { ChatMessage, RichTextInput } from "../../molecules"; export class Chat extends PureCo...
'use strict'; // @ts-check var assert = require('assert'); var Path = require('path'); var fs = require('fs'); var os = require('os'); var _ = require('lodash'); var glob = require('glob') var URI = require('urijs'); var sh = require('shelljs'); var YAML = require('js-yaml'); var editor = require('editor'); var mkdir...
let base_url ="https://api.football-data.org/v2/"; const token = '<KEY>'; let url_classement = `${base_url}competitions/2001/standings`; let url_team =`${base_url}teams/`; var url_matches = `${base_url}competitions/2001/matches`; let fetchApi = url => { return fetch(url, { method: "get", mode: "cors", ...
import React from 'react'; import HintListStore from '../stores/HintListStore'; import MapStore from '../stores/MapStore'; import HintListActions from '../actions/HintListActions'; import MapActions from '../actions/MapActions'; import PointLayer from './PointLayer'; import FoxStatus from './FoxStatus'; import GetMapCo...
import React from "react" import {graphql, Link, StaticQuery} from "gatsby" import Hamburger from "./hamburger" import {MenuContext} from "./layout" const pageQuery = graphql` query navigationQuery { site { siteMetadata { title } } } ` export default () ...
'use strict'; /* Proverbs 20:18: Bread obtained by falsehood is sweet to a man, But afterward his mouth will be filled with gravel. We worked really hard for this project. Although we dont care if you enhance it and publish, we would care if you copy it and claim our work as your own. Although it might feel good, t...
const fs = require('fs'); // const rawInput = fs.readFileSync('./small_input.txt', 'utf8'); const rawInput = fs.readFileSync('./input.txt', 'utf8'); const lines = rawInput.split(/\n/); const coordsRegex = /(\d+), (\d+)/; function fromInputStringToCoords(inputString) { const matches = coordsRegex.exec(inputString); ...
/*! * Copyright 2015 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
db = (new Mongo()).getDB("memoire_testrun"); var basicValues = ["_id", "age", "sex", "studyProgram", "salary", "englishSkills", "userAgent"]; var QUESTION_COUNT = 16; var userCount = 0; var cleans = []; var warmupQuestions = []; var gameQuestions = []; /* for (var i=0; i<3; i++) { } */ for (var i=0; i<QUESTION_COUNT...
import React, { FunctionComponent, Component } from 'react'; import TagValues from './TagValues'; import HistoryIcon from './HistoryIcon'; import ConfirmToggleFeature from './modals/ConfirmToggleFeature'; import ConfirmRemoveFeature from './modals/ConfirmRemoveFeature'; import CreateFlagModal from './modals/CreateFlag'...
// This file is required by the index.html file and will // be executed in the renderer process for that window. // All of the Node.js APIs are available in this process. var PythonShell = require('python-shell'); LOGO_FILE = "" PPTX_FILE = "" basename = function (path) { return path.replace(/\\/g, '/').replace(...
// we use the fullpath to the lite build to solve a meteor.js issue: // https://github.com/algolia/instantsearch.js/issues/1024#issuecomment-221618284 import algoliasearch from 'algoliasearch/src/browser/builds/algoliasearchLite.js'; import algoliasearchHelper from 'algoliasearch-helper'; import forEach from 'lodash/fo...
"use strict"; ///// DATA ///// const data = [{ duration: '1:40', title: 'Good God', artist: 'Piano Theme', artCover: 'https://res.cloudinary.com/igorwys/image/upload/v1559049643/01-thumnail.jpg', src: 'audio/01.mp3', }, { duration: '1:20', title: 'Ambisax', arti...
import {TileField} from './tile-field' import {IconAvatar} from './icon-avatar' import {is} from '../is' export class ComputedTileField { constructor(root, tileSize) { this.field = new TileField(root, tileSize) this.avatars = Object.create(null) // {position: {[type]: [avatar, ...]}} } _ha...
import React, { PropTypes } from 'react'; import ImageSliderHoc from './ImageSliderHoc'; class Slider extends React.Component { constructor(props) { super(props); this.scrollLeft = this.scrollLeft.bind(this); this.scrollRight = this.scrollRight.bind(this); this.updatePosition = this.updatePosition.bi...
var map; function playVideo(id) { $('body').addClass('overflow'); $(document).find('.overlay').fadeIn(100); var modal = $(document).find('.video-modal'); modal.fadeIn(100); window.player.loadVideoById(id); window.player.playVideo(); } function niceScrollUpdate(height) { if(typeof height ...
var keystone = require('keystone'); var _ = require('lodash'); var async = require('async'); var helpers = require('../../lib/bkjs/helpers'); var utils = require('keystone-utils'); var settings = keystone.get('settings'); exports = module.exports = function(req, res) { var view = new keystone.View(req, res); var ...
import directions from "../helpers/direction"; import EventDispatcher from "../helpers/event-dispatcher"; import Snake from "../snake"; import Grid from "../structures/grid"; import Timer from "../helpers/timer"; import Vector from "../structures/vector"; import InputManager from "./input-manager"; import AudioManager ...