text
stringlengths
3.22k
29.5k
import "phoenix_html"; import Turbolinks from "turbolinks"; import { u, ajax } from "umbrellajs"; import autosize from "autosize"; import Cookies from "cookies-js"; import OnsitePlayer from "modules/onsitePlayer"; import LivePlayer from "modules/livePlayer"; import Overlay from "modules/overlay"; import ImageButton fro...
function getPrimes(max) { var sieve = [], i, j, primes = []; for (i = 2; i <= max; ++i) { if (!sieve[i]) { // i has not been marked -- it is prime primes.push(i); for (j = i << 1; j <= max; j += i) { sieve[j] = true; } } } r...
import BigNumber from "bignumber.js"; import { addresses } from "../constants/addresses"; import Converter from "./Converter"; import Formatter from "./Formatter"; export const Status = { Hat: "Hat", Passed: "Passed", Pending: "Pending", Skipped: "Skipped", }; export const ilkIds = [ "ETH-A", "ETH-B", ...
import React, { useState } from 'react'; import { connect } from 'react-redux'; import { FormattedMessage } from 'react-intl'; import { Form, Field } from 'react-final-form'; import messages from '../messages'; import { FormSubmitButton } from '../../button'; import { UserCountrySelect } from '../../formInputs'; impor...
const pairJson = require("@uniswap/v2-core/build/UniswapV2Pair.json"); const factoryJson = require("@uniswap/v2-core/build/UniswapV2Factory.json"); const routerJson = require("@uniswap/v2-periphery/build/UniswapV2Router02.json"); const { ethers } = require('hardhat'); const { expect } = require('chai'); describe('[Ch...
/** * Copyright (C) 2006-2021 Talend Inc. - www.talend.com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
var parxer = require('parxer').parxer; var parxerPlugins = require('parxer/Plugins'); var _ = require('lodash'); var utils = require('../utils'); var errorTemplate = '<div style="color: red; font-weight: bold; font-family: monospace;">Error: <%= err %></div>'; var debugTemplate = '<div> <ul> <% _.forEach(fragments, fun...
/** * * LoginPage * */ import React, { useEffect, useState } from 'react'; import PropTypes from 'prop-types'; import { Avatar, Box, Button, CssBaseline, FormControl, FormHelperText, FormLabel, Grid, IconButton, Link, makeStyles, Paper, TextField, Typography, } from '@material-ui/core';...
var saml20 = require('saml').Saml20; var zlib = require('zlib'); var xmldom = require('xmldom'); var SignedXml = require('xml-crypto').SignedXml; var xpath = require('xpath'); var templates = require('./templates'); var encoders ...
import React from "react" import { Helmet } from "react-helmet" const mailtoApp = ({ body, emailAddresses, subject }) => `mailto:${emailAddresses}?subject=${encodeURI(subject)}&body=${encodeURI(body)}` const mailtoGmail = ({ body, emailAddresses, subject }) => `https://mail.google.com/mail/u/0/?view=cm&fs=1&tf=1&...
import * as clinicaldataModule from "./clinicaldatamodule.js"; import * as admindataHelper from "./helper/admindatahelper.js"; import * as ioHelper from "./helper/iohelper.js"; import * as htmlElements from "./helper/htmlelements.js"; const $ = query => document.querySelector(query); const $$ = query => document.query...
// Game Parameters var BOARD_SIZE = 4; var MIN_WORD_LENGTH = 3; var ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; // Game Display State var boardElement = null; // table#board var solutionsElement = null; var tileElements = null; // 2d array of tiles on board // Game Logic State var boardLetters = null; // 2d a...
const throttle = require('lodash.throttle') const BasePlugin = require('@uppy/core/lib/BasePlugin') const ServiceWorkerStore = require('./ServiceWorkerStore') const IndexedDBStore = require('./IndexedDBStore') const MetaDataStore = require('./MetaDataStore') /** * The GoldenRetriever plugin — restores selected files ...
function submit() { var choice = new Array(); var table = new Array(); var blank = new Array(); for (var i = 1; i <= 13; i++) { choice[i - 1] = $("#choice_" + i + "").val(); } for (var i = 1; i <= 32; i++) { table[i - 1] = $("#table_" + i + "").val(); } for (var i = 1;...
const MAIN_QUOT_REGX = /\n(\n(>(.*)\n)+)/, NL_RT_ANGLE_GLOBAL_REGX = /\n>/g; const STRING_QUOTE = "引用"; function replaceQuote(input) { while (MAIN_QUOT_REGX.test(input)) { // 获取>列表行,从 \n> 开始 到 >\n 结束,中间每行都以 > 开头 \n 结束 let protoQuotTxt = RegExp.$1; let quotTxt = protoQuotTxt.replace(NL_RT_ANGLE_GLOBAL_...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b)...
import { getOwnerCategoryByYear ,getOwnerCategory} from "egov-ui-kit/utils/PTCommon"; import { setDependentFields } from "./utils/enableDependentFields"; import get from "lodash/get"; import set from "lodash/set"; import { setFieldProperty, handleFieldChange } from "egov-ui-kit/redux/form/actions"; const formConfig = ...
// ================================================================================================ // OBJECTIVE REDUX // Redux made better, objectively. // // (c) Copyright 2021 by <NAME> (https://github.com/jmace01) // // This project is provid...
/** * Handles requests to the /manga directory of the server. */ var express = require('express'); var router = express.Router(); var mysql = require('mysql'); router.post('/create', function(req, res, next) { // NOTE: Creates an object to be inserted and escaped by the 'query' function var manga = { ...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { t...
const Generator = require('yeoman-generator'); const Util = require('../../Utils/util'); const chalk = require('chalk'); const yosay = require('yosay'); var execSync = require('child_process').execSync; /** * yo demoiselle <project-name> * * Demoiselle generator for new projects. */ module.exports = class AppGene...
var async = require('async'); var rp = require('request-promise'); var Promise = require('bluebird'); /* LoL API object that deals with everything. */ var LoLAPI = { init: function(inputObj) { /* SET UP LOGGER */ if(typeof inputObj.logger !== 'undefined') { this.logger = inputObj.logger; ...
import { Animated, Appearance, Easing } from 'react-native'; import AsyncStorage from '@react-native-async-storage/async-storage'; import isEqual from 'lodash.isequal'; const _typeOf = value => { var s = typeof value; if (s === 'object') { if (value) { if (value instanceof Array) s = 'array'; } else ...
/** * Commands File * * image: Displays an image in a chat room */ 'use strict'; const Path = require('path'); const HTTPS = require('https'); const URL = require('url').URL; const CheerIO = require('cheerio'); const probe = require('probe-image-size'); const Text = Tools('text'); const Cache = Tools('cache').B...
import { Matrix3, Cartesian3, Matrix4 } from '@vcmap/cesium'; import ObliqueImage from './ObliqueImage.js'; import { obliqueViewDirectionNames } from './ObliqueViewDirection.js'; import ImageMeta from './ObliqueImageMeta.js'; import Projection from '../util/projection.js'; let customObliqueProjectionId = 0; /** * @r...
"use strict"; /** * Copyright (c) 2017, <NAME> <<EMAIL>> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" A...
const puppeteer = require("puppeteer"); const fs = require("fs"); let scrapeMatch = async (page, url) => { await page.goto(url); const result = await page.evaluate(async () => { const getNameFromMaxStat = (array, which, type = "max") => { let max = parseFloat( array.querySelectorAll(which)[1].in...
'use strict' const NodeResque = require('node-resque') const ActionHero = require('./../index.js') const api = ActionHero.api /** * The node-resque workers and scheduler which process tasks. * @see https://github.com/taskrabbit/node-resque * * @namespace api.resque * @property {Object} queue - The Node Resque `q...
const carddb = require('../../serverjs/cards'); const fixturesPath = 'fixtures'; const cubefixture = require('../../fixtures/examplecube'); const sinon = require('sinon'); const methods = require('../../dist/util/draftutil'); let CardRating = require('../../models/cardrating'); let Draft = require('../../models/draft')...
/** * Copyright 2016 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...
// NAVBAR const items = document.getElementsByClassName('menuItem'); const windowSize = window.matchMedia('(max-width: 1080px)'); /* exported function */ function openNav() { if (windowSize.matches) { document.getElementById('drop-menu').style.height = '85vh'; document.getElementById('drop-menu').style.boxS...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const Promise = require("bluebird"); const _ = require("lodash"); const child_process_1 = require("child_process"); var duplex = require('duplexer'); const rectifier_1 = require("./parser/stream/rectifier"); const Err = require("./error"); con...
import React from 'react'; import moment from 'moment'; import { formatMessage } from 'umi/locale'; import { Button } from 'antd'; import browser from 'browser-detect'; import ReVideo from './ReVideo'; import Toolbar from './Toolbar'; import DetailBoard from './DetailBoard'; import styles from './VideoPlayer.less'; ...
export const WTooltip = L.Class.extend({ initialize: function (map) { this._map = map; // this._pane = map._panes.popupPane; this._pane = map._panes.tooltipPane; this._container = L.DomUtil.create("div", "wasabee-tooltip", this._pane); L.DomUtil.addClass(this._container, "wasabee-tooltip-single")...
const path = require('path'); const fsExtra = require('fs-extra'); const webpack = require('webpack'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer'); const { getTagHTMLFromEntry } = require('./tags'); const { getBuildDir, MODULE_NAME } = re...
// websocket and http servers var webSocketServer = require('websocket').server; var http = require('http'); var https = require('https'); var common = require('../../dashboard/helper/common'); exports.init = function(settings) { /** * Global variables */ // List of currently connected clients (users) var clien...
const packageJSON = require("../package.json"), path = require('path'), web = require('./web.js'), $ = require('./helpers.js'); let Service, Characteristic, Accessory, UUIDGen, DailySensor, DailyGroup, DailySocket, DailyLight; let knownAccesories = []; let knownPlatforms = []; class DailyService ...
import { Meteor } from 'meteor/meteor'; import { Accounts } from 'meteor/accounts-base'; import { TAPi18n } from 'meteor/tap:i18n'; import { Router } from 'meteor/iron:router'; import { Session } from 'meteor/session'; import { $ } from 'meteor/jquery'; import { displayModal } from '/imports/ui/modules/modal'; import ...
const canvas = document.getElementById("gameboard"); const ctx = canvas.getContext("2d"); canvas.width = window.innerWidth; canvas.height = window.innerHeight; let width = canvas.width; let height = canvas.height; // 因为重力加速度的单位是 m/s/s,而画布以像素为单位,所以重力加速度应保持一定的比例, // 这里简单的使用了 100 倍的重力加速度。 const gravity = 980; /** * 向...
/* Code modified from: http://www.lostdecadegames.com/how-to-make-a-simple-html5-canvas-game/ using graphics purchased from vectorstock.com */ /* Initialization. Here, we create and add our "canvas" to the page. We also load all of our images. */ let canvas; let ctx; canvas = document.createElem...
import React, { Component, PropTypes } from 'react'; import ReactDOM from 'react-dom'; import BackToTop from '../button-back-to-top' import StickyMenu from './sticky-menu'; import Scroll from '../../behaviours/scroll'; import {debounce} from 'lodash'; import {filter} from 'lodash'; import {first} from 'lodash'; import...
var fs = require('fs') var path = require('path') var _ = require('underscore') var assert = require('assert') var sass = require('node-sass') var Q = require('q') var readChunk = require('read-chunk') var FileType = require('file-type') var webfontsGenerator = require('../src/index') describe('webfont', function() ...
let isMouseDown = false; let isAnimating = false; let animationSpeed = 100; /* Magenta.js has 2 models we can use: - an RNN (recurrent neural network) - a VAE (variational autoencoder) They both generate sequences of music based on an input, but in slightly different ways. */ let useRNN = false; let forceInputTo...
/* Copyright 2019 Adobe. All rights reserved. This file is licensed to you 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 agre...
/** * @class NetStorage * This class is responsible for get elements from extesion storage. * For now it's just used to get ./elements/*.json to inject on tabs. */ var NetStorage = function(){ this.init_(); }; NetStorage.prototype = { _ctx:null, _callBackFunc:null, init_:function(){ this._...
// 词法解析器 // 编译原理,用Reactjs用自制编译器 https://www.bilibili.com/video/BV1BJ411p71e // 分词,将源代码分割为若干个最小记号(Token) class Token { constructor(type, text, lineNumber) { // 代码字符串的类别 this.tokenType = type; // 代码内容 this.text = text; // 代码行号 this.lineNumber = lineNumber; } } class Lexer { constructor(sour...
import { LightningElement, track, api } from 'lwc'; import makeTestRESTCall from "@salesforce/apex/MakeHTTPCallCPEController.makeTestHTTPCallout"; import urlLabel from '@salesforce/label/c.url'; import HTTP_Method from '@salesforce/label/c.HTTP_Method'; import Specify_Params from '@salesforce/label/c.Specify_Params'; i...
import '../Modal.css'; import { Button, Col, Dropdown, DropdownItem, DropdownMenu, DropdownToggle, Form, FormGroup, Label, Row } from 'reactstrap'; import { NBSP, isEmptyOrg as isEmpty } from '../helper'; import React, { Component } from 'react'; import CopyToClipBoardModal from '../copy...
import React, {useState, useEffect, useRef} from 'react'; import { VictoryChart, VictoryLine, VictoryAxis, VictoryScatter, createContainer } from 'victory'; import { useAuth } from "../../contexts/AuthContexts"; import firebase from '../../firebase.js'; import githubImage from '../../img/Github-Logo.png'; import {useHi...
const strToArr = str => str.split(',').map(Number); class Astar{ constructor(grid){ const _ts = this; _ts.grid = grid; // 保存传入地图网格 _ts.openList = new Map(); ...
'use strict'; var levels = ['diff-one','diff-two', 'diff-three']; var characters = ['char-one', 'char-two', 'char-three']; var radioAnswers = ['ansOne', 'ansTwo', 'ansThree']; var labelIds = ['answerOne', 'answerTwo', 'answerThree']; var chosenChar; var chosenLevel; var human; var computer; var timeLimit = 60; // in Se...
const clone = require('lodash.clonedeep'); const parse = require('@hkube/units-converter'); const { consts, gpuVendors } = require('../consts'); const { lessWithTolerance } = require('../helpers/compare'); const { CPU_RATIO_PRESSURE, GPU_RATIO_PRESSURE, MEMORY_RATIO_PRESSURE, MAX_JOBS_PER_TICK } = consts; const findNo...
// add event listener to loading all the contents document.addEventListener('DOMContentLoaded', function () { document.querySelectorAll('button').forEach(button => { button.onclick = function () { const view = this.dataset.view; console.log(`button clicked : ${view}\nhistory push state : ${view}\nurl ...
/* Copyright (c) 2020 AKHeroes. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, su...
'use strict'; const axios = require('axios').default; axios.defaults.withCredentials = true; const qs = require('qs'); const fs = require('fs'); const stream = require('stream'); const path = require('path'); const util = require('util'); const pipeline = util.promisify(stream.pipeline); const admzip = require('adm-...
import React, { useState } from 'react'; import { createEvent } from '../../api_services/event.service'; import './EventPlanning.css'; const EventForm = () => { const [saveMessage, setSaveMessage] = useState(); const [showSaveMessage, setShowSaveMessage] = useState(false); // STATES KEEPING THE PIECES OF DATA F...
import axios from "axios"; import { navigate } from "@reach/router"; import openConnection from "socket.io-client"; const sketch = (p) => { let current = "None"; const addTileButton = document.querySelector("#add-tile-button"); const removeTileButton = document.querySelector("#remove-tile-button"); const bindB...
/* * Copyright 2016 LinkedIn 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 i...
function qtip_container_setup() { $('.qtip-container').each(function() { $(this).qtip({ content: $(this).next('div.qtip-body'), show: 'click', events: { hide: function(event, api) { // Reset hide event when it hides...? ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _react = _interopRequireDefault(require("react")); var _iconsReact = require("@carbon/icons-react"); var _DataTable = _interopRequireWildcard(require("../../DataTable")); var _shared = require("./shared"); ...
'use strict'; // Expose the Adapter function/object. module.exports = Adapter; // Dependencies var browser = require('bowser'), debug = require('debug')('rtcninja:Adapter'), debugerror = require('debug')('rtcninja:ERROR:Adapter'), // Internal vars getUserMedia = null, mediaDevices = null, RTCPeerConnection =...
import { CodeMirrorEditor } from '@jupyterlab/codemirror'; import { create_console } from './console'; import { Signal } from '@lumino/signaling'; import { ILSPVirtualEditorManager, PLUGIN_ID } from '../tokens'; // eslint-disable-next-line @typescript-eslint/ban-ts-ignore // @ts-ignore class DocDispatcher { constru...
import React, { Component, Fragment } from "react"; import { Link } from "react-router-dom"; import TemplateSistema from "components/templates/sistema.template"; import Card from "components/ui/card/card.component"; import CardHead from "components/ui/card/cardHead.component"; import CardTitle from "components/ui/card/...
"use strict"; var w = 780; // width var h = 400; // height var padding = { top: 40, right: 190, bottom: 40, left: 45 }; var stack = d3.layout.stack(); var colorsList = ["#000000", "#3300BB", "#1f77b4", "#2ca02c", "#999955", "#ff7f0e", "#ff0000", "#ff69b4", "#992299", "#551a8b", "#777777"]; // Easy c...
import Axios from 'axios'; import React, { useEffect, useState } from 'react'; import { makeStyles } from '@material-ui/core/styles'; import ListItem from '@material-ui/core/ListItem'; import ListItemText from '@material-ui/core/ListItemText'; import { Button } from '@material-ui/core'; import Dialog from '@material-ui...
const Eris = require("eris"); const bot = require("./bot"); const moment = require("moment"); const humanizeDuration = require("humanize-duration"); const publicIp = require("public-ip"); const config = require("./cfg"); class BotError extends Error {} const userMentionRegex = /^<@!?([0-9]+?)>$/; let inboxGuild = nu...
"use strict"; var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault"); var _assign = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/object/assign")); var _regenerator = _interopRequireDefault(require("@babel/runtime-corejs2/regenerator")); var _asyncToGenerator2 ...
import React, { Component } from 'react' import PropTypes from 'prop-types' import { Text, View, TouchableOpacity, Easing, Animated } from 'react-native' import { connect } from 'react-redux' import { StackNavigator, TabNavigator, TabBarTop, DrawerNavigator } from 'react-navigation' import Icon from 'react-native-vecto...
import React, { Component } from 'react'; import { Button, ListGroup, Image, Container, Col, Row, Table } from 'react-bootstrap'; import { PlusCircleFill, DashCircleFill } from 'react-bootstrap-icons'; import MapContainer from '../Map/MapContainer'; import Stripe from '../Stripe/Stripe'; import './OrderConfirmation.css...
'use strict'; const zlib = require('zlib'); const path = require('path'); const assert = require('assert'); const {promisify} = require('util'); const {unescape} = require('querystring'); const {lstat} = require('fs/promises'); const type = require('itype'); const filetype = require('file-type'); const tryToCatch = r...
var CONFIG = require("app/common/config"); /* @eanticev: YEAH YEAH i know this is a dumb use of backbone models but it was the quickest way i could prototype */ var ZodiacSymbolModel = Backbone.Model.extend({ timestamp:null, juncturePoints:null, juncturePointsStart:null, juncturePointsDestination:null, canvas:n...
'use strict'; /** * author: <NAME> * date: 2017/06/02 **/ var router = require('koa-router')(); var request = require('koa-request'); var ejs = require('ejs'); var fs = require('fs'); var uuidV1 = require('uuid/v1'); var Log = require('log') ,log = new Log('info'); var constants = require('../../config/cons...
/* globals beaker */ const yo = require('yo-yo') const moment = require('moment') import {getHostname} from '../../lib/strings' import debounce from 'lodash.debounce' import renderBuiltinPagesNav from '../com/builtin-pages-nav' import renderCloseIcon from '../icon/close' // globals // = // how many px from bottom ti...
import React, { Component, StyleSheet, Text, View, ListView, TouchableOpacity, ScrollView, Image, ProgressBarAndroid, Alert } from 'react-native'; import Toolbar, {ToolbarHome} from "./Toolbar"; var id, name, data; var movieIndex = 0, dateIndex = 0; var date = new Date(); var m...
//require('./transform.js') var exports; if (typeof module === "object" && exports) { exports = module.exports; } else if (typeof window !== "undefined") { exports = window["eviltransform"] = {}; } var earthR = 6378137.0; function outOfChina(lat, lng) { if ((lng < 72.004) || (lng > 137.8347)) { return true; } ...
import { Component } from "react"; import React from 'react'; import { getConfig, numberFormat, payID, setLastUrl, } from'../../../../config/config'; import { authHeader } from "../../../../redux/logic";import { makeStyles, withStyles } from '@material-ui/core/styles'; import CircularProgress from '@material-ui...
var akamai_debug_headers = [ "akamai-x-cache-on", "akamai-x-cache-remote-on", "akamai-x-check-cacheable", "akamai-x-get-cache-key", "akamai-x-get-true-cache-key", "akamai-x-get-request-id", "akamai-x-get-brotli-status", "akamai-x-serial-no", "akamai-x-get-ssl-client-session-id", "akamai-x-get-client...
/** * 我的佣金明细-个人 */ import React, { Component } from "react"; import { View, StyleSheet, Text, TextInput, TouchableOpacity, Image, Modal, Picker, ImageBackground, PixelRatio, TouchableHighlight } from "react-native"; import NavigationBar from "../../../../../components/@jcmall/navbar"; import { P...
import {IoElement} from '../../io.js'; import {IoStorageFactory as $} from '../core/storage.js'; import {Config} from './config.js'; import {Groups} from './groups.js'; import {Widgets} from './widgets.js'; import './breadcrumbs.js'; export class IoInspector extends IoElement { static get Style() { return /* css...
/** * @class UIFactory.Select * @author <NAME> <<EMAIL>> */ var Moment = require('alloy/moment'); function fillPickerData($this, $picker) { if (OS_ANDROID && $picker.columns != null && $picker.columns[0] != null) { var col = $picker.columns[0]; for (var i = col.rowCount; i >= 0; i--) { col.removeRow( co...
window.onload = startUp; // vars var canvas; var ctx; var dimentions = [0,0]; var tilesize = 50; // pixels var lw = 2; // pixels var centerCoord = [0,0]; // coordinates var centerX; var centerY; var zoom = 0; var params = { "a": 1, "b": 3, "c": 0.2, "d": -2 }; var grade = 3; var graphColor = "#FF0000";...
/* eslint-disable array-callback-return */ /** * This convenience class is a reimplementation of "error-budget-slo" and is intended to calculate the opperands of the SLO calculation * so they can be meaningfully summarized on the composite SLO model. * * @file Defines functions for the purpose of calculating an Err...
import {notify, importLink} from '../../js/std-js/functions.js'; import {confirm, prompt} from '../../js/std-js/asyncDialog.js'; import '../chat-log/chat-log.js'; import '../chat-message/chat-message.js'; async function requirePrompt(text, {initial = '', test = resp => resp !== ''} = {}) { let valid = false, resp = '...
function replaceAll(find, replace, str) { return str.replace(new RegExp(find, 'g'), replace); } function createOdontogram() { var htmlLecheLeft = "", htmlLecheRight = "", htmlLeft = "", htmlRight = "", a = 1; for (var i = 9 - 1; i >= 1; i--) { //Dientes Definitivos Cuandrante Derecho (Super...
import * as React from "react"; import {Panel, PanelHeader, HeaderButton, Button, List, Group, Checkbox, Div, Cell} from "@vkontakte/vkui"; import Icon24Back from '@vkontakte/icons/dist/24/back'; import {BaseComponent, DataLoader, possibleSpeechParts, getSpeechPartTitle, YandexSign} from "../../../base"; import {Tran...
// Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. import { showErrorMessage, VDomModel, VDomRenderer } from '@jupyterlab/apputils'; import { classes, LabIcon } from '@jupyterlab/ui-components'; import { ArrayExt, ArrayIterator, map, each, toArray } from '@lumino/algo...
import { Map, List } from 'immutable'; import { Vertex as VertexModel } from '../models'; import IDBroker from '../utils/id-broker'; import * as Geometry from '../utils/geometry'; import * as SnapUtils from '../utils/snap'; import * as SnapSceneUtils from '../utils/snap-scene'; import { MODE_DRAGGING_VERTEX } from '...
import React, { Component } from "react"; import { HereMap, Marker } from "rc-here-maps"; import axios from "axios"; import virus from "./virus_map.png"; import cured from "./cured_map.png"; import dead from "./dead_map.png"; import "./App.css"; import marker from "./marker.png"; class Maps extends Component { constr...
import React, {Component, PropTypes} from 'react'; import {Link} from 'react-router'; import TableCascader from 'components/TableCascader'; import DataTable from 'components/DataTable'; import {Form, Button, Input, Select, message, InputNumber, Modal } from 'hen'; import {getSpecValue} from 'common/utils' const FormIt...
/** * Mobius Software LTD * Copyright 2015-2016, Mobius Software LTD * * This is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 2.1 of * the License, or (at your option) any later ve...
import React from 'react'; import './App.css'; import 'whatwg-fetch' const { Store } = require('./Store'); var images = []; function preload(images) { for (var i = 0; i < images.length; i++) { images[i] = new Image(); images[i].src = images[i]; } } const rouletteTable = [ [`cell0-a.png`, `cell0-b.pn...
/** * * RecruiterInviteCsv * */ import React, { memo, useState, useEffect, useMemo } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { FormattedMessage } from 'react-intl'; import { createStructuredSelector } from 'reselect'; import { compose } from 'redux'; import ...
let { RichEmbed } = require("discord.js"); let Helpers = require('../util/helpers.js'); let PouchDB = require('pouchdb'); PouchDB.plugin(require('pouchdb-find')); let dbAuth = require('../util/database.js'); let dbName = "karma-"; /** * Command: !scoreboard * Params: None * Desc: Retrieve the point totals for all...
/* This is the top-level app that controls the Chat View on chat.fullstack.cash. */ import React from 'react' import PropTypes from 'prop-types' import { Row, Col } from 'adminlte-2-react' import Handler from './handler' import ChatTerminal from './terminals/chat-terminal' import CommandTerminal from './terminals/c...
import React, { useState } from 'react'; import styled from 'styled-components'; import { useForm } from 'react-hook-form'; import { useCookies } from 'react-cookie'; import theme from '../style/theme'; import { rhythm } from '../style/typography'; const WHITE = theme.colors.white; const PRIMARY = theme.colors.brand[...
class gastos{ constructor(){ this.lista = []; this.nombre = []; this.listaAux = []; this.ahorrar = []; } agregarGasto = function(gasto, nombre){ for(let i = 0; i < gasto.length; i++){ this.lista.push(gasto[i]); this.nombre.push(nombre[i]); ...
const {sleep} = require('../utils'); const log = require('../log'); const {isElementVisible} = require('../eleutils'); const {clearInput} = require('../eleutils'); const { percentage2float, string2float, split2float, string2int, } = require('../string.utils'); // const fs = require('fs'); const URLLogin = 'htt...
/* * The structure of chat bot is reference form "tscok" * code( http://jsfiddle.net/tscok/0jyu98L2/ ) */ var Chat = function() { //var dataSearch = new DataSearch(); var messages = {}; var topic = "";//input switch var subject = ""; //execute on "other" topic var profile = {}; var dataSearch =...
/** * Created by <EMAIL> * Date: 2016/8/25 * Time: 17:29 */ $('body').bind("touchstart", function() {}); // Todo: linking server timeout var urlRegex = /[A-Za-z0-9]*?\.?.+\.(com|net|cn|org|me)/; var wordRegex = /(pan|share|baidu|magnet|傻逼|你妈|妈逼|操你|啪|[0-9]{10,})/; var atRegex = /@([a-z0-9]*?)\s/g; /** * socket....
'use strict'; let hasDriersLicense = false; const passedTest = true; if (passedTest) hasDriersLicense = true; if (hasDriersLicense) console.log('I can drive'); //-----------------------------------------------// /// FUNCTIONS /// //-----------------------------------------------// // enables you to use a block of c...