text
stringlengths
3.07k
16k
import $msg from 'message-tag'; import { getStatusText } from 'http-status-codes'; import settle from 'axios/lib/core/settle.js'; import createAgent from '../../lib-esm/agent.js'; /* Simple mock REST API endpoint */ // Note: this module should be completely stateless. Do not actually update any state, just return...
/** * A basic OAuth2 implicit login client which supports interactive and non-interactive * authorisation flows. */ import config from './config'; import ClientOAuth2 from 'client-oauth2'; /** * OAuth2 credentials configuration for the IAR frontend application. */ const oauth2Config = { clientId: config.oauth2C...
import React, { lazy, Suspense } from 'react'; import { parse } from 'query-string'; import { makeStyles } from '@material-ui/core/styles'; import { Section } from 'components/organisms'; import { Loading } from './components'; const useStyles = makeStyles(theme => ({ root: { minHeight: '100vh', height: '100...
//All the resource ownership/managment of objs and //interactions via UUIDS should be done through this class. import SceneGraph from './SceneGraph'; import ENGINE_EVENTS from "../engine_events"; import configuration from "../config"; var CONFIG = CONFIG || new configuration(); import { genLandmarkFeatures } from "....
import React from "react" import { StaticQuery, graphql } from "gatsby" import { FontAwesomeIcon } from "@fortawesome/react-fontawesome" import { faArrowDown } from "@fortawesome/free-solid-svg-icons" import { convertToBgImage } from "gbimage-bridge" import BackgroundImage from "gatsby-background-image" import PropType...
'use strict'; /** * This contains all the core commands that kalabox can run on every machine */ var async = require('async'); var chalk = require('chalk'); var _ = require('lodash'); module.exports = function(kbox) { var helpers = kbox.util.helpers; var outputContainers = function(app, done) { if (typeo...
import React, { useEffect, useMemo, useRef } from "react"; import ReactDOM from "react-dom"; import { scaleLinear, select } from "d3"; import { Fisheye } from "./fisheye"; import style from "./normalized-scatterplot.module.css"; const normalize = (X, margin) => { const x = X.map((i) => i[0]); const y = X.map((i) =...
const Long = require('long') const VirtualOffset = require('./virtualOffset') const Chunk = require('./chunk') const BAI_MAGIC = 21578050 // BAI\1 const { longToNumber } = require('./util') class BAI { /** * @param {filehandle} filehandle * @param {function} [renameRefSeqs] */ constructor({ filehandle, r...
var mongoose = require('mongoose'); var validator = require('validator'); var _ = require('lodash'); var Event = require('./event'); var Employee = require('./employee'); var Schema = mongoose.Schema; // set up a mongoose model var eventCollectionSchema = new Schema({ amount: { type: Number, requir...
// ## Acceptance Criteria/Pseudo Code: // GIVEN I am taking a code quiz // WHEN I click the start button create a start button // THEN a timer starts and I am presented with a question // WHEN I answer a question // THEN I am presented with another question // WHEN I answer a question incorrectly // THEN time is subtr...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const http = require("http"); const url_1 = require("url"); const ts_fetch_1 = require("./ts-fetch"); function RandString(length = 8) { const r = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_"; let str = ""; for...
var STYLE_ID = 997; function getTileUrl(cloudKey, server, zoom, x, y) { server = undefArg(server, '{s}'); zoom = undefArg(zoom, '{z}'); x = undefArg(x, '{x}'); y = undefArg(y, '{y}'); return 'https://a.tile.openstreetmap.org/' + zoom + '/' + x + '/' + y + '.png'; } function setupMap($element, clo...
import React, { Component } from "react"; import { Redirect } from "react-router-dom"; import { Breakpoint } from "react-socks"; import API from "../utils/API"; import colors from "../config/colors"; import LeaderBoardTable from "../components/LeaderBoardFlow/FullScreen/LeaderBoardTable"; import LeaderBoardTableMobile ...
/** * Created by fengxiang on 2017/9/21. * * 通过本地的证书文件和配置文件来访问远程的peer * */ var co = require('co'); var path = require('path'); var fs = require('fs'); var util = require('util'); var hfc = require('fabric-client'); var Peer = require('fabric-client/lib/Peer.js'); var EventHub = require('fabric-client/lib/EventHub...
// # Wainwright // ## Dependencies var fs = require('fs'); var path = require('path'); var deco = require('deco'); var es = require('event-stream'); var yaml = require('js-yaml'); var mime = require('mime'); var markdown = require('marked'); var gulpmatch = require('gulp-match'); var highlight = require('highlight.js'...
var obj = JSON.parse(localStorage.getItem("products")); function setCart() { if (result.length == 0 || undefined) { $(".modal-body").css("display", "none"); $(".modal-title").append(" <b>My Cart</b>"); $(".content-aside > p").css("display", "none"); $(".content .add").css("display", "none"); $("...
import activeElement from './util/dom-helpers/activeElement'; import contains from './util/dom-helpers/query/contains'; import inDOM from './util/dom-helpers/util/inDOM'; import ownerDocument from './util/dom-helpers/ownerDocument'; import warning from './util/warning'; import extend from './util/extend'; //import { cr...
class contado_historia{ constructor(){ this.texto = { voltar:[], avançar:[] }; this.numero; this.navio = document.createElement("img"); this.navio.src = "https://img.icons8.com/ios-filled/26/000000/historic-ship.png"; this.navio.alt = "...
import * as React from 'react' import { Link, graphql } from 'gatsby' import styled from 'styled-components' import Img from 'gatsby-image' import { renderRichText } from 'gatsby-source-contentful/rich-text' import { INLINES } from '@contentful/rich-text-types' import Layout from '../components/layout' import SEO from...
if (typeof __decorate !== "function") __decorate = function (decorators, target, key, desc) { if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc); switch (arguments.length) { case 2: return decorators.reduceRight(function(o, d...
const express = require('express'); const router = express.Router(); const bcrypt = require('bcryptjs'); const jwt = require('jsonwebtoken'); const config = require('config'); const { check } = require('express-validator'); //Import packages to send emails const nodemailer = require('nodemailer'); const sendgridTranspo...
const { color, emojis, maxMatchsDateStats } = require('../../config.json') const Discord = require('discord.js') const Player = require('../../functions/player') const Steam = require('../../functions/steam') const Graph = require('../../functions/graph') const Match = require('../../functions/match') const loadingCard...
var agregarContacto = document.getElementById('agregar'); var formulario = document.getElementById('formulario_crear_usuario'); var action = formulario.getAttribute('action'); var divCrear = document.getElementById('crear_contacto'); var tablaRegistrados = document.getElementById('registrados'); var checkboxes = docume...
'use strict' const path = require('path') module.exports = Module const EXTENSIONS = { '.js' (module, filename) { const contents = _read(filename) const fn = cppBridge.run( MODULE_WRAPPER.join(contents), filename, 1, 1 ) fn( module.exports, module.require, ...
import React, {useState, useEffect} from 'react'; import { View, Dimensions, Text, TextInput, AsyncStorage,Alert, SafeAreaView, StyleSheet, ScrollView, TouchableOpacity, KeyboardAvoidingView } from 'react-native'; import {CustomButton, IconButtonDesign} from '../../../components/CustomButton'; import Constants from...
// firefly.js - Player's glorious ship import Phaser from 'phaser'; import Globals from '../../globals'; import { Weapon } from '../weapons/weapon'; const ACCEL = 240; // px/sec const MAX_SPEED = 280; const ROTATION_SPEED = 250; const MAX_SHIELDS = 100; const MAX_ENERGY = 100; class FireFly { constructor(scene, co...
function findPath() { let origin = formatAddress(document.getElementById("fromAddress").value); let dest = formatAddress(document.getElementById("toAddress").value); console.log(origin); console.log(dest); let params = ["origin=" + origin , "dest=" + dest ]; let request = formatRequest(params); ...
/* // Copyright 2020 <NAME> // // 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...
// Copyright 2019 Google LLC // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
// import RequestWatcher from './request-watcher'; import fetch from "isomorphic-fetch"; import history from "../history"; const superagent = require('superagent'); let _headers = { 'Accept': 'application/json', 'Content-Type': 'application/json' }; const localStorage = window.localStorage; let _hostname; if (pr...
window.onerror = function() { parent.location = './Error.htm'; } var imageOnFocusId = null; function TileMap(nTiles) { var numLanes = 8; var numTiles = nTiles; var width = 200; var height = 750; var X0 = 18; var Y0 = 26; var dL = width / numLanes; var numCols = 2; var numRows = numTiles / numC...
import React, {PureComponent, Fragment, createRef} from 'react'; import {connect} from 'dva'; import {formatMessage, FormattedMessage} from 'umi-plugin-react/locale'; import styles from './SyncResourceRegisterModal.less'; import { Form, Modal, Input, Button, Row, Col, Card, S...
/** * Created by OZY on 2017/11/8. */ (function ($) { $.fn.sidebarMenu = function (options) { options = $.extend({}, $.fn.sidebarMenu.defaults, options || {}); var target = $(this); target.addClass('nav'); target.addClass('nav-list'); init(target, options); funct...
/** * Whisper module * * allows requests to be sent directly to the controller using the preset express routes * and any middleware associated with them. * * Returns the response from the controller using the supplied callback * * @author <NAME> <EMAIL> * */ var async = require("async"), _ = require('un...
const paper = require('paper'); const _ = require('lodash'); function roundCorners(path, radius) { var segments = path.segments.slice(0); path.removeSegments(); for (var i = 0, l = segments.length; i < l; i++) { var curPoint = segments[i].point; var nextPoint = segments[i + 1 == l ? 0 : i + 1].point; ...
import React, { useRef, useEffect, useState } from "react"; import { View, Image, Text, StyleSheet, TouchableOpacity, Alert, Dimensions, ScrollView, Modal, TouchableWithoutFeedback, Keyboard, } from "react-native"; import { SaveNewTask, UpdateTask } from "../firebaseOperations/firebase"; import Fe...
var xAxis = {"label": "Years", "x": -60, "y": 80}, y2Name = "value2", // column name for y-axis (line) in the csv yBLAxisLabel = "Values", barColorBL = "#3366cc", lineColorBL = "#16a085", plotTitleBL = {"name": "Template for a bar+line chart", "x": 150, "y": 25}, plotLegendBL = {"pos": {"x": -180, "...
import React from 'react'; import hw from './lib/hw'; import accountDiscovery, {clearPubkeysCache, setConfigVar} from './lib/account-discovery'; import blockchain, {blockchainAPI} from './lib/blockchain'; import updateActionState from './lib/update-action-state'; import {VENDOR, SETTINGS} from './constants'; import Act...
'use strict'; /** * RTCConfiguration * * http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCConfiguration * * Default STUN и TURN-servers * To be overriden from server by 'config' message **/ var rtcConfiguration = { iceServers: [ // { "url": "stun:stun.stunprotocol.org:3478" } // { "url": "stun:stu...
import request from "request"; import crypto from 'crypto'; import _ from 'lodash'; import debugLib from 'debug'; import sprintfJs from "sprintf-js"; import dbConn from "./dbConn"; const debug = new debugLib('bitmex:rest'); const GET = 'GET'; const POST = 'POST'; const PUT = 'PUT'; const DELETE = 'DELETE'; function ...
import Head from 'next/head'; import dynamic from 'next/dynamic'; import Navbar from './Navbar'; import { useRouter } from 'next/router'; const DynamicFooter = dynamic(() => import('./ui/Footer')) export default function SiteLayout({ children, meta: pageMeta }) { const meta = { title: 'Coffee ...
function callback() { if (chrome.runtime.lastError) { console.log(chrome.runtime.lastError); } } $(document).ready(function() { $(".tabs").tabs(); }); $(document).ready(function() { $(".fixed-action-btn").floatingActionButton(); }); function displayToWatchList() { var card = document.querySelector("#car...
import { editor } from './editor'; import { clickIsAtCursorPosition } from './codemirror/tools'; import { isAbsoluteUrl, splitUrlIntoFilenameAndBasePath } from '../tools/helpers'; import { addError } from './errors'; import { getKeyAddressForNode, getNodeAtIndex } from './yaml-ast'; // Redux import store from '../stor...
var bio = { "name" : "<NAME>", "role" : "Software Quality Assurnace Analyst", "contacts" : [{ "mobile": "802-249-1690", "email": "<EMAIL>", "github": "friendlyjanitor", "location": "Boston, MA" }], "welcomeMessage": "Welcome to my Resume, I enjoy learning n...
import applyOptimisticCreate from './optimistic/applyOptimisticCreate'; import applyOptimisticUpdate from './optimistic/applyOptimisticUpdate'; import applyOptimisticDelete from './optimistic/applyOptimisticDelete'; import revertOptimisticUpdate from './optimistic/revertOptimisticUpdate'; import revertOptimisticDelete ...
'use strict'; var gProjs = [ {id: "minesweeper", name: "Mine Sweeper", title: "Be ware of BOMBS!", desc: "DO NOT let it blow your mind", publishedAt: 1448693940000, labels: ["Matrixes", "keyboard events"], category: "games", link:"projects/minesweeper/index.html", client: "puki"}, ...
"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...
import { JUDGE, empty, eq, loop } from '../../common'; let countId = 0; function apiPack(me, api, adapter, records, beforeProcess) { const createAdapter = (callName, call) => ((py = {}) => { const id = countId; let payload = py; records[callName] = empty(records[callName]) ? {} : records[callName]; ...
const DynamicOwnership = artifacts.require("DynamicOwnership"); const DynamicRental = artifacts.require("DynamicRental"); const Extension = artifacts.require("Extension"); const truffleAssert = require('truffle-assertions'); contract('DynamicOwnership', (accounts) => { it('Demo for DynamicOwnership', async...
const crypto = require('crypto') var pyShell = require('python-shell') const moment = require('moment') const uuid = require('uuid/v4') const preimage = 'abcd1234'; const l1user = { privateKey: '<KEY>', publicKey: '<KEY>' } const l1escrow = { privateKey: '<KEY>', publicKey...
function createTable(textValue) { // console.log("jiaz"); fetchData(textValue, function (plantsData) { function sortCnName(a, b) { return a.cnName.localeCompare(b.cnName, "zh-CN"); } //利用js中的sort方法 plantsData.sort(sortCnName); formTable(plantsData); }); } function formTable(plantsData) ...
"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 (Object.protot...
// JavaScript source code var GeoMath = mapray.GeoMath; // Get from deck.gl's github repository // https://github.com/uber/deck.gl const DATA_URL = 'https://raw.githubusercontent.com/uber-common/deck.gl-data/master/examples/geojson/vancouver-blocks.json'; // Referenced the code of Deck.gl's geojson sample // http...
import React from 'react'; const Breadcrumbs = React.lazy(() => import('../../components/views/Base/Breadcrumbs')); const Cards = React.lazy(() => import('../../components/views/Base/Cards')); const Carousels = React.lazy(() => import('../../components/views/Base/Carousels')); const Collapses = React.lazy(() => import...
import React from 'react' import PropTypes from 'prop-types' import { Link, graphql } from 'gatsby' import Img from 'gatsby-image' import Layout from '../components/Layout' import Hero from '../components/Hero' import Testimonial from '../components/Testimonial' import Features from '../components/Features' import '....
'use strict'; const docker = require('../lib/docker'); const proxyquire = require('proxyquire'); const sinon = require('sinon'); const sandbox = sinon.createSandbox(); const assert = sinon.assert; const os = require('os'); let func = require('../lib/function'); describe('test invokeFunction', async () => { const...
const stratumDateMap = new Map() function regRiskBtn(evts) { bimEngine.searchElementsBySql("(name='族' and txtvalue like 'SK%')", function (res, sql) { if (!res.success) return const stratumTreeData = [] for (let i = 0; i < res.list.length; i++) { const element = res.list[i] ...
const proxyHandler = instance => { return { get (obj, prop) { const val = obj[prop] if (typeof val === 'object' && val !== null) { return new Proxy(val, proxyHandler(instance)) } return val }, set (obj, prop, value) { obj[prop] = value debounceRender(instance) ...
class AnnotationDocument { constructor(pageNumber, doc, explanationType, projectType) { // currently triggers and nlExplanations are not being used this.triggers = {}; this.nlExplanations = {}; this.recommendations = null; this.pageNumber = pageNumber; this.id = doc.id; this.text = doc.t...
/* * * Pacman Factory 2.0 * With animations and angles! * */ const pacArray = [ ['./images/PacMan1.png', './images/PacMan2.png'], ['./images/PacMan3.png', './images/PacMan4.png'], ]; const pacMen = []; // This array holds all the pacmen // These function returns an object with random values, dependent on the...
"use strict"; /** * @license * Copyright (c) 2016 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of c...
import React from 'react' import * as THREE from 'three' import TWEEN from '@tweenjs/tween.js' import { createAxes, createLabel, addControls, createPoint, addAxesLabels, createConnectingLine, } from '../utils' const WHITE = 0xffffff const BLACK = 0x000000 const setupCamera = ({ domain, margin }) => { c...
import React, {Component} from 'react' import * as posenet from '@tensorflow-models/posenet' import {placeHat} from './hatUtils' import {placeBodysuit} from './bodysuitUtils' import convertPhoto from './cameraUtils' import {Closet, SimpleModalWrapped} from '../components' import {connect} from 'react-redux' import html...
// ---------- Lista de simbolos disponibles para el fractal ---------- var SIMBOL_FORWARD = "F"; var SIMBOL_FORWARD_NOP = "f"; var SIMBOL_RIGHT = "+"; var SIMBOL_LEFT = "-"; var SIMBOL_ROLL_LEFT = "\\"; var SIMBOL_ROLL_RIGHT = "/"; var SIMBOL_PICH_UP = "^"; var SIMBOL_PICH_DOWN = "&"; var SIMBOL_TURN_BACK = "|...
import React, {useEffect, useState} from "react"; import '../css/Calendar.css'; import Day from './Calendar_day'; import { getDatabase, ref, onValue, } from "firebase/database"; import Dialog from '@mui/material/Dialog'; import DialogActions from '@mui/material/DialogActions'; import DialogContent from '@mui/material/D...
import React, { Component } from "react"; import { Row, Col, Dropdown, DropdownToggle, DropdownMenu, DropdownItem, } from "reactstrap"; import { connect } from "react-redux"; import { useHistory } from "react-router-dom"; import { bindActionCreators } from "redux"; import * as cartActions from "../../../red...
const express = require('express'); const bodyParser = require('body-parser'); const request = require('request'); const path = require('path'); const PORT = process.env.PORT || 5000; const app = express(); app.use(bodyParser.json()); app.use(bodyParser.urlencoded({ extended: true })); app.get('/webhook', function...
/** * Copyright 2016 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 applic...
import React, { Component, Fragment } from 'react'; import { formatMessage, FormattedMessage } from 'umi/locale'; import {Form, Input, Upload, Select, Button, message, Modal} from 'antd'; import { connect } from 'dva'; import styles from './BaseView.less'; import GeographicView from './GeographicView'; import PhoneView...
import React, { useState, useEffect } from "react"; import "../App.css"; import * as utils from "../utils"; import * as knightsTour from "../knightsTour"; import { tourStates, tourActions, tileStates } from "./common"; import Board from "./Board"; function App() { const [positions, setPositions] = useState([]); co...
function getDataFromTables(handsontable) { firstCol = 0 lastCol = 30 firstRow = 0 lastRow = 50 while(firstCol <= lastCol && handsontable.isEmptyCol(firstCol)){ firstCol = firstCol + 1 } while(firstCol <= lastCol && handsontable.isEmptyCol(lastCol)){ lastCol = lastCol - 1 ...
const _ = require('lodash'); const inflect = require('inflect'); module.exports = { get, post, put, patch, del, // @NOTE: low-level routes scope, resource, resources, // @NOTE: high-level routes $walk, // @NOTE: utils }; // == @SECTION: low-level routes == // function get(name, options) { return $route('get'...
const request = require("./request"); const database = require("./db"); const { sign } = require("./crypto"); const { createEventObj } = require("./template"); const { eventObjToDCObj } = require("./discord"); const { databaseLogger } = require("./logger"); const { createHmac, timingSafeEqual } = require("crypto"); con...
/** @prettier */ /* * The module provides "createSphape" which is a factory, * and when it is called, it provides basically * a blueprint for the new shape. * * The module manages the followings 3 states: * * [prev] * For every "update", saves the previous * "x", "y", "width", and "height" * of the ...
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })...
/** * Helper for retrieving fees. * All fees are displayed as fee-per-byte (in satoshis) */ import { EventEmitter } from 'events'; import { mockableUrl } from 'node-mock-server/react-native/utils'; import storageHelper from './storageHelper'; import Settings from '../config/settings'; const apiUrl = mockableUrl('h...
/* * Gulp Common - Microsoft Sample Code - Copyright (c) 2016 - Licensed MIT */ 'use strict'; var args = require('get-gulp-args')(); var fs = require('fs'); var path = require('path'); var all; function initTasks(gulp, options) { all = require('./all.js')(options); var config = all.getConfig(); var targetFold...
/* * Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available. * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. * BK-BASE 蓝鲸基础平台 is licensed under the MIT License. * * License for BK-BASE 蓝鲸基础平台: * ----------------------------------------------------...
import React, {Component, Fragment, PureComponent} from 'react' import {View, Text, StyleSheet, TextInput} from 'react-native' import PropTypes from 'prop-types' import {connect} from 'react-redux' import * as Colors from '../../../utils/colors' import {convertObjToArr, prepareIndicatorDataForSaving} from '../../../uti...
const authors = require("./authors.json"); const books = require("./books.json"); /************************************************************** * getBookById(bookId, books): * - receives a bookId * - recieves an array of book objects * - returns the book object that matches that id * - returns undefined if no m...
//@format class DataClass { toJSON() { const result = {}, COLUMNS = this.constructor.COLUMNS; this.constructor.FIELDS.forEach((field, i, _it) => { result[COLUMNS[i]] = this[field]; }); return result; } toCSV() { const FIELDS = this.constructor.FIELDS, result = new Array(FI...
import "./style.css"; // For webpack support import { Vector3, OrthographicCamera, Scene, Color, BufferAttribute, Vector2, BufferGeometry, Points, } from "three"; import { GUI } from "three/examples/jsm/libs/lil-gui.module.min.js"; import WebGPU from "three/examples/jsm/capabilities/WebGPU.js"; impor...
import React from "react" import styled from "styled-components" const HeadlineCompany = styled("div")` display: inline-block; width: 100%; top: 0%; left: 0%; height: auto; margin: 2vh 0 0vh 0; @media ${props => props.theme.breakpoints.md} { margin: 0; } /* border: 1px dashed lightpink; */ ` c...
// This rule will split intersecting roads at their intersection and the address ranges will be updated to reflect where the split occured //Define any fields to be copied from the centerline when split (lower case) var centerline_field_names = ["rclnguid", "discrpagid", "rangeprefixleft", "fromleft", "toleft", "parit...
import React, { useContext } from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import { gql } from '@apollo/client'; import Query from 'Components/ThrowingQuery'; import Loader from 'Components/Loader'; import PageNotFound from 'Components/PageNotFound'; import CollapsibleSecti...
import React from "react"; import Helmet from "react-helmet"; import Layout from '../components/layout'; import didsDiagram from '../assets/images/dids4kidsdiagram.png' import myDataScotland from '../assets/images/MyDataScotland.png' import myDataGlobal from '../assets/images/mydataglobal.png' import truuLogo from '....
import React, {useState, useCallback, useEffect, useContext} from 'react'; import { CCard, CCardBody, CCardHeader, CDataTable, CCollapse, CButton, CBadge } from '@coreui/react' import {fields, getBadge} from './helper' import ModalTambahUser from "./ModalTambahUser"; import ModalSetSaldoAwalCuti from "./ModalSetSal...
"use strict"; const React = require("react"); const p2r = require("path-to-regexp"); const unprefixPath = require("@gourmet/unprefix-path"); const parseHref = require("@gourmet/parse-href"); const BoundRoute = require("./BoundRoute"); let router; function _prepare(routes, parentOptions) { const caseSensitive = rou...
import _ from 'lodash'; import React, {Component} from 'react' import { browserHistory } from 'react-router' import slug from 'slug' import DocumentTitle from 'react-document-title' import { LiveMessage } from 'react-aria-live' import './Register.scss' const mustMatchErrorMsg = 'Passwords must match' const tooShortEr...
'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope...
/* * Basic Javascript helpers used in analytics.js and graphics code. */ var COLORS = { 'red1': '#6C2315', 'red2': '#A23520', 'red3': '#D8472B', 'red4': '#E27560', 'red5': '#ECA395', 'red6': '#F5D1CA', 'orange1': '#714616', 'orange2': '#AA6A21', 'orange3': '#E38D2C', 'orange4': '#EAAA61', 'orange5': '#F1C696...
const ENV = require('../config/environment'); var express = require('express'); var router = express.Router(); var mongoose = require('mongoose'); var Client = require('../models/client.model'); var ClientTFService = require('../services/client-tf.service'); var DateService = require('../services/date.service'); con...
htmlEl = document.querySelector("html"); page = { //I mean... Simple i think. Chang the page. Yeah.... Thats all. You can keep scrolling now. changePage: async (pageUrl, doOnComplete = false, executeOnComplete = true) => { fetch(pageUrl).then(async pageRequest => { if (pageRequest.ok) { htmlEl.style = "back...
const cheerio = require('cheerio') const axios = require('axios') const toCamelCase = require('./util/toCamelCase') const toKebabCase = require('./util/toKebabCase') const UFC_BASE_URL = "https://www.ufc.com" const UFC_RANKINGS_URL = "https://www.ufc.com/rankings" const UFC_ATHLETE_URL = "https://www.ufc.com/athlete" ...
const { links } = require('express/lib/response'); const mongoose = require('mongoose'); /** * @openapi * components: * schemas: * Microphone: * type: object * required: * - name * - manufactor * - year * - technology * - preamp * - user * properties: * _id: * ...
import axios from 'axios' import * as colors from 'colors/safe' import * as WebSocket from 'ws' const DEBUG = false; // Stream.me API locations const CHAT_MANIFEST_URL = 'https://www.stream.me/api-web/v1/chat/room/'; const WEB_SOCKET_URL = 'wss://www.stream.me/api-rooms/v3/ws'; const getRoomId = async username...
let messageField = document.querySelector('.message-field'); let sendButton = document.querySelector('.send'); let messages = document.querySelector('.messages ul'); let contacts = document.querySelectorAll('.contact-card'); let messageList = messages.querySelectorAll('li:not(.me)'); let messageListMe = messages.query...
import React, { Component } from 'react'; import { Alert, ToastAndroid, AppRegistry, StyleSheet, TouchableOpacity, Text, Platform, FlatList, ScrollView, TextInput, Image, View } from 'react-native'; import Dimensions from 'Dimensions'; import Icon from 'react-native-vecto...
/* -------------------- * react-lazy-data module * `createResourceFactory()` function * ------------------*/ // Modules import {useRef, useEffect, useContext} from 'react'; import {isFunction, isString, isFullString, isBoolean} from 'is-it-type'; import invariant from 'tiny-invariant'; // Imports import Resource f...
import React, {Component, Fragment} from 'react'; import { withTracker } from 'meteor/react-meteor-data'; import { Meteor } from 'meteor/meteor'; import Paper from '@material-ui/core/Paper'; import Button from '@material-ui/core/Button'; import Typography from '@material-ui/core/Typography'; import Location from "./map...