text
stringlengths
3.07k
16k
import React, { Component } from 'react'; import { View, Text, TouchableOpacity, StyleSheet, Animated, Easing } from 'react-native'; import Icon from 'react-native-vector-icons/FontAwesome'; import HTMLView from 'react-native-htmlview'; import { darkTheme } from '../../styles'; import { convertTimestamp } f...
// Assign the data from `data.js` to a descriptive variable var tableData = data; // INITIAL LOAD: Load the unfiltered table when user first visits page //โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–”โ–” // Get a reference to the table body var tbody = d3.select("tbod...
'use strict'; // Lexer for 8080 assembly. // Usage: create it given the input as an array of chars. Then repeatedly // call token() until it returns null. // // token() returns objects with: // { // name: <token name>, // value: <raw token value from the input buffer, as a string>, // pos: <token position in the...
"use strict"; var Star = function() { this.ro = 0; this.roSpeed = 20; // Screen Unit / s this.roAccel = 0; // Screen Unit / s / s this.theta = Math.random() * 2 * Math.PI; // radians this.thetaSpeed = Math.random() * 0.5; // radians / s this.thetaAccel = 0; // radians / s / s ...
// ๅ‡ฝๆ•ฐsetup() : ๅ‡†ๅค‡้˜ถๆฎต function setup() { // ๅˆ›ๅปบ็”ปๅธƒ๏ผŒๅฎฝๅบฆ640ๅƒ็ด ๏ผŒ้ซ˜ๅบฆ480ๅƒ็ด  // ็”ปๅธƒ็š„ๅๆ ‡็ณป็ปŸไธบ๏ผŒๅทฆไธŠ่ง’ๅๆ ‡ไธบ๏ผˆ0๏ผŒ0๏ผ‰๏ผŒ // xๆ–นๅ‘ๆฐดๅนณๅ‘ๅณ๏ผŒyๆ–นๅ‘ๅž‚็›ดๅ‘ไธ‹๏ผŒๅ•ไฝๅƒ็ด  createCanvas(640,480); colorMode(HSB, TWO_PI, 1, 1, 1); } // ๅ‡ฝๆ•ฐdraw()๏ผšไฝœ็”ป้˜ถๆฎต var tPrev = -1.0; function draw() { StoreEnergy(); DrawAlongTrace(); } function keyReleased() { if(key==="A") { TurnTrac...
function E(tag, text = "", classes = []) { var e = document.createElement(tag); for (var i = 0; i < classes.length; i++) { e.classList.add(classes[i]) } e.innerText = text; return e; } function Q(query) { return document.querySelector(query); } function QA(query) { return document....
// pages/record/record.js var util = require("../../utils/util.js"); const app = getApp(); Page({ /** * ้กต้ข็š„ๅˆๅง‹ๆ•ฐๆฎ */ data: { // ไปŽapp.js่Žทๅ–็š„ๅ…จๅฑ€ๅ˜้‡ BLEconnect: app.globalData.BLEconnect, loginSuccess: app.globalData.loginSuccess, userInfo: app.globalData.userInfo, deviceId: app.globalData.device...
import React from 'react'; import { StyleSheet, Platform, Image, Text, View, ScrollView, TouchableOpacity, TextInput, AsyncStorage } from 'react-native'; import { fetchPosts } from '../redux/actions/postActions'; import firebase from 'react-native-firebase'; import { connect } from 'react-redux' import store from '../r...
/** * @callback QueryShapeProcessFunction * @param {string} queriedResult * @returns {string} */ import { first } from 'lodash'; /** * @callback EvaluateFunction * @param {object} prevResult result of the previous step * @param {object} [iteratee] iteratee (if running within a parent step) */ /** * @callbac...
"use strict"; var canvas; var gl; var theta = 10; var points = []; var direction = true; // CCW - true, CW - false var bufferId; var vPosition; var NumTimesToSubdivide = 2; var scaleFactor = 1; var fillFlag = false; // true - fill triangles, false - don't fill window.onload = function init() { canvas = document...
import React, {Component} from 'react' import PropTypes from 'prop-types'; import styled from 'styled-components'; import { compose, withProps, defaultProps } from 'recompose'; import { fromJS } from 'immutable'; import MapGL, { NavigationControl } from 'react-map-gl'; import DeckGL, { GeoJsonLayer } from 'deck.gl'; im...
import { Stack, ResourceItem, Page, Card, ResourceList, Loading, TextStyle, Thumbnail, Frame, Badge, } from "@shopify/polaris"; import { DeleteMajor, RefreshMajor } from "@shopify/polaris-icons"; import { TitleBar } from "@shopify/app-bridge-react"; import { useState, useCallback } from "react"; imp...
'use strict'; //Application Dependencies const express = require('express'); const pg = require('pg'); const cors = require('cors'); const superAgent = require('superagent'); // Calling Date.now() returns the time in milliseconds since Jan 1 1970 00:00:00 UTC // Multiplying an amount of milliseconds by 1000 achieves ...
const socket = io(); let problem = ""; let theme = "light"; // create a CodeMirror instance const editor = CodeMirror(document.getElementById("editor"), { mode: "javascript", lineNumbers: true, styleActiveLine: { nonEmpty: true }, indentUnit: 4 }); // whenever the server sends a problem name, show tha...
/** * * Command line interface mp3 player based on Node.js * @author: [turingou](http://guoyu.me) * @created: [2013/07/20] * **/ var fs = require('fs'); var path = require('path'); var util = require("util"); var http = require('http'); var https = require('https'); var events = require("events"); var lame = require('...
/** * Default Config * @type {Object} */ export const StarbackDefaultConfig = { width: 800, height: 600, speed: .5, starColor: ["#fb00ff", "#00dde0"], maxStar: 200, starSize: 100, directionY: 1, // 1 = top-to-bottom, 2 = bottom-to-top directionX: 1, // 1 = left-to-right, 2 = right-to-left distan...
/** * Created by thomas on 2016-09-29 at 17:06. * * MIT Licensed */ var error = require("../error"), send = require("../send"); module.exports = Host; function Host(instance, ws, id) { this.instance = instance; this.model = instance.model; this.closed = false; this.ws = ws; this.id = id; ...
import React, { useRef } from 'react'; import { withStyles } from '@material-ui/core/styles'; import Button from '@material-ui/core/Button'; import Typography from '@material-ui/core/Typography'; import Container from '@material-ui/core/Container'; import Grid from '@material-ui/core/Grid'; import FormControlLabel from...
'use strict'; const {existsSync, appendFileSync, mkdirSync} = require('fs'); const {join, relative} = require('path'); const compose = require('compose-function'); const sequence = require('promise-compose'); const ms = require('ms'); const get = require('get-value'); const has = require('has-prop'); const {assert} = ...
function getQueryString(url, key) { let list = url.split("&"); for (let i in list) { let arr = list[i].split("="); if (arr[0] === key) { return arr[1]; } } } let ttwAppId = 0; let ttwOpenId = ""; let ttwFirst = false; let shareInfo = { title: 'ไผ ๅฅ‡้’ๆ˜ฅ๏ผŒ็ƒญ่ก€็›ธไผด๏ผ', imgUrl...
const events = require('events'); const {EventEmitter} = events; const fs = require('fs'); const GLFW = require('node-glfw2'); const WebGL = require('./webgl'); module.exports = function () { let platform; let win; let localEvents = null; Object.defineProperty(GLFW, 'events', { get: function () { i...
import {FormGroup, FormControl,ControlLabel ,Form,Col,Button,InputGroup} from 'react-bootstrap'; import React from 'react'; import Sucesss from './success'; import ReviewDetails from './review'; import {bindActionCreators} from 'redux'; import {postInfo} from '../actions/index'; import {connect} from'react-redux'; cl...
/** * 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
import * as d3 from 'd3' // data const continents = ['africa', 'americas', 'asia', 'europe'] // format const commas = d3.format(',') const currency = d3.format('$,') // size const margin = { left: 70, right: 40, top: 40, bottom: 70 } const width = 800 - margin.left - margin.right const height = 600 - margin.top - ma...
'use strict'; var fs = require('fs'); var zlib = require('zlib'); var grunt = require('grunt'); var _ = require('lodash'); var httpProxy = require('http-proxy'); var utils = require('./utils'); // TODO: figure out how to buffer file stream into response function writeResponse(path, res) { var responseStr = fs.read...
// This code was written by Almatrass. // It is free to use however you wish. const botLoader = `<div class="mainLoader botItemsLoader"></div>`; const userLoader = `<div class="mainLoader userItemsLoader"></div>`; const modalTradeLoader = `<div class="mainLoader modalTradeLoader"></div>`; // This provides a cool sta...
'use strict'; // --- Packages --- const express = require('express'); require('dotenv').config(); const cors = require('cors'); const superagent = require('superagent'); const pg = require('pg'); // --- Global Variables --- const PORT = process.env.PORT || 3003; // default PORT 3003 if .env spec fails const GEOCOD...
/* Arveto Memo BSD 3-Clause License Copyright (c) 2020, Arveto Ink, see AUTHOR list file. All rights reserved. */ var memoID = null; var currentMemo = null; // List all memo async function memoList() { memoID = null; hideMain(); $('memoListGroup').hidden = false; let list = (await fetchJson('/memo/list')).map(m ...
'use strict'; var Utils = require('./utils'); var Component = require('./component'); var Loader = require('./loader'); /** * @typedef {{ * tagName: (string|undefined), * components: (Array<!./component>|undefined), * }} */ var SectionParamsDef; /** * Section main. * @param {SectionParamsDef=} opt_param...
import Phaser from 'phaser'; import { storeScores } from '../local-storage'; class GameStart extends Phaser.Scene { constructor() { super({ key: 'GameStart' }); } preload() { this.load.image('sky', '../src/assets/sky.png'); this.load.image('ground', '../src/assets/platform.png'); this.load.image...
var crypto = require("crypto") var lob = require('lob-enc'); var handshake_collect = require("./handshake").collect; var log = require("./log")("Receive"); var route_cacher = require("./cache.js"); var dupe = new route_cacher(); module.exports = { handshake : receive_handshake, channel : receive_channel, type ...
'use strict'; const defaultSettings = { ignoredConversations: [], ignoredUsers: [], onlyImportant: false, enabled: true, debugging: false, }; let settings = { ignoredConversations: [], ignoredUsers: [], onlyImportant: false, enabled: true, debugging: false, }; function debugMessage(message) { if (valueOrD...
import React, { useEffect, useState } from 'react' import { DateTime } from 'luxon' import PageHeader from './PageHeader.js' import PageSection from './PageSection.js' import { AttributeTable, AttributeRow } from './CommonStylesTables' function Credential(props) { const history = props.history const credential =...
const $ = require('jquery'); const { BaseController } = require('./base_controller'); const { Constants } = require('../../core/constants'); const { Context } = require('../../core/context'); const fs = require('fs'); const { Job } = require('../../core/job'); const { JobParams } = require('../../core/job_params'); con...
import { FaClose, FaPlus } from 'react-icons/lib/fa' import InfiniteScroll from 'react-infinite-scroller' class ModalFood extends React.Component { constructor(props) { super(props) this.state = { isAddFoodOpen: false, hasMore: true, searchKey: "", error: false } } setI...
import React from "react"; import Link, { withPrefix } from "gatsby-link"; import PropTypes from "prop-types"; import injectSheet from "react-jss"; import LazyLoad from "react-lazyload"; const styles = theme => ({ listItem: { margin: "0 0 .7em 0", transition: "height 1s", [`@media (min-width: ${theme.med...
import axios from 'axios'; import dynamic from 'next/dynamic'; import { useRouter } from 'next/router'; import NextLink from 'next/link'; import React, { useEffect, useContext, useReducer } from 'react'; import { CircularProgress, Grid, List, ListItem, Typography, Card, Button, ListItemText, TableCont...
var marker; var map; String.prototype.format = function() { var str = this; for (var i = 0; i < arguments.length; i++) { var reg = new RegExp("\\{" + i + "\\}", "gm"); str = str.replace(reg, arguments[i]); } return str; } // https://stackoverflow.com/questions/2044616 funct...
var express = require('express'); var router = express.Router(); var twilio = require('twilio'); var mongoose = require('mongoose'); var forEach = require('async-foreach').forEach; var uristring = process.env.MONGOLAB_URI; var TWILIO_ACCOUNT_SID = process.env.TWILIO_ACCOUNT_SID; var TWILIO_AUTH_TOKEN = process.env.T...
/* eslint-disable no-console */ const tag = document.createElement('script'); tag.src = decodeURIComponent((/(?:\?|.*&)gruveo-api-url=([^&]*)/.exec(window.location.search) || [0, ''])[1]) || 'https://www.gruveo.com/embed-api/'; const firstScriptTag = document.getElementsByTagName('script')[0]; firstScriptTag.parentN...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Button, message } from 'antd'; import Form from './Form'; import Icon from 'components/Icon'; import LazyLoad from 'components/LazyLoad'; import isEqual from 'react-fast-compare'; import notdata from 'assets/images/nodata.svg'; impor...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _utils = require("./utils"); var _options = _interopRequireDefault(require("./options.json")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } const loaderAPI...
if(window.localStorage.recent !== undefined && window.localStorage.recent !== 'undefined') { var poll = JSON.parse(window.localStorage.recent); } else { poll = undefined; } var topData; // Fill table with data // CSS for this page blatantly stolen from: http://red-team-design.com/css3-ordered-list-styles/ function p...
import React, { Component } from "react"; import PropTypes from "prop-types"; import isEmpty from "lodash.isempty"; import { Card } from "antd"; import { connect } from "react-redux"; import Router from "next/router"; import { FaClipboardCheck, FaChartBar } from "react-icons/fa"; import Button from "~components/Body/Bu...
import React, { useState, useEffect } from 'react'; import zxcvbn from 'zxcvbn'; import FontAwesomeIcon from 'react-fontawesome'; import { NavLink } from 'react-router-dom'; import { login, register } from '../services'; import { setLocalStorage } from '../utilities'; const Login = props => { const [password, set...
import React, { useState, useEffect, useRef } from "react" import PropTypes from "prop-types" import styled from "styled-components" import Img from "gatsby-image" import { motion, useAnimation } from "framer-motion" import { detectMobileAndTablet, isSSR } from "../../utils" import { useOnScreen } from "../../hooks/" ...
/* ----------------------------------------------------------------------------- * @copyright (C) 2020, Alert Logic, Inc * @doc * * ciscoamp class. * * @end * ----------------------------------------------------------------------------- */ 'use strict'; const moment = require('moment'); const PawsCollector = r...
$(document).ready(() => { startQuiz(); $('.quiz--right').click(() => { newActual('right'); }); $('.quiz--left').click(() => { newActual('left'); }); $(".quiz--content-el button").click((el) => { changeQuizStep(el.currentTarget); }); $('.activateBtn').click...
import React, { useEffect, useState } from 'react' import { useWeb3Context } from '../../App.js' import VestradeERC20Factory from '../../contracts/Vestrade_ERC20_Factory.json' import VestradeERC20 from '../../contracts/Vestrade_ERC20.json' import { Link, useHistory } from 'react-router-dom' import { SpinLoader } from '...
// https://www.smashingmagazine.com/2012/11/writing-fast-memory-efficient-javascript/ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ // monomorphism /* When declaring a function with 2 parameters the compiler takes your word for it, and gets rough if the parameter types, parameter co...
import Api from "./api"; import utils from "../utils"; const PageService = function () { function getOverridablePagesApi() { return new Api(window.dnn.pages.apiController); } function getPagesApi() { return new Api("Pages"); } const getPage = function (pageId) { const api ...
// https://stackoverflow.com/a/17415677/1543851 Date.prototype.toIsoString = function() { var tzo = -this.getTimezoneOffset(); var dif = tzo >= 0 ? '+' : '-'; var pad = function(num) { var norm = Math.floor(Math.abs(num)); return (norm < 10 ? '0' : '') + norm; }; return this.getFullYear() + '-' + ...
'use strict'; const Service = require('egg').Service; class AjaxsService extends Service { // ่Žทๅพ—้กต้ขๆ€ง่ƒฝๆ•ฐๆฎๅนณๅ‡ๅ€ผ async getPageAjaxsAvg(appId, url, beginTime, endTime) { const query = { $match: { speed_type: 1, path: url } }; if (beginTime && endTime) query.$match.create_time = { $gte: new Date(begin...
import SearchNode from './search-node'; /* * State is a 2D array of integers which is represented using the following numbers: * Clean = 0 * Dirty = 1 * Clean with Vacuum in the same tile = 2 * Dirty with Vacuum in the same tile = 3 */ /* * Actions are represented as strings: * ML: Move Left * MR: Move right * MU: Mo...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { ResponsiveAppBar } from 'material-ui-responsive-drawer'; import { Helmet } from 'react-helmet'; import IconButton from 'material-ui/IconButton'; import FontIcon from 'material-ui/FontIcon'; import muiThemeable from 'material-ui/...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _CoreManager = _interopRequireDefault(require("./CoreManager")); var _decode = _interopRequireDefault(require("./decode")); var _encode = _interopRequireDefault(require("./encode")); var _escape = _interopR...
import AccountBox from '@material-ui/icons/AccountBox'; const config = {}; export const sysName = 'ๅŠžๅ…ฌไฟกๆฏ็ฎก็†็ณป็ปŸ'; export const system = 'ims'; export const systemDomain = 'http://localhost:4000'; export const server_base_url_product = ''; export const server_baseURL_dev = 'http://localhost:8001'; export const ssoBaseUrl ...
import * as d3 from 'd3' import RawScale from './vis/raw_scale' import {bus, util} from './config' import _ from 'lodash' class RawPlot { constructor () { this.outerWidth = 300 this.outerHeight = 120 this.margin = { top: 0, right: 2, bottom: 20, left: 2 } this.dot_radius =...
"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...
'use strict' const helper = require('../../lib/agent_helper') const sinon = require('sinon') const tap = require('tap') const https = require('https') const DESTS = require('../../../lib/config/attribute-filter').DESTINATIONS const TRANSACTION_SCOPE = 'transaction' tap.test('Agent#harvest', (t) => { t.autoend() ...
import React, { useState, useEffect } from 'react'; import { queryData } from './query'; import Heatmap from './components/Heatmap'; import FilterPanel from './components/FilterPanel'; import Loading from './components/Loading'; const RootContainer = ({ serviceUrl, entity }) => { const [data, setData] = useState([]);...
'use strict' const peerColor = require('peer-star-peer-color') const EventEmitter = require('events') const d3 = require('d3') module.exports = async function initVisualization (collaboration, graph) { const id = (await collaboration.app.ipfs.id()).id const emitter = new EventEmitter() let nodes = [{id, me: tr...
"use strict"; // Fixes temporarily moved here until they are published by tslint. Object.defineProperty(exports, "__esModule", { value: true }); const assert = require("assert"); const Lint = require("tslint"); const tsutils_1 = require("tsutils"); // tslint:disable-line no-implicit-dependencies (from tslint) const ts ...
/*fullpage*/ $('#fullpage').fullpage({ responsiveWidth: 1024, onLeave: function(origin, destination, direction){ var leavingSection = this; var idx = destination.index; section_in(idx+1) }, afterLoad:function(origin, destination, direction){ var loadedSection = this; if(destination.index==4 && loaded...
import React from 'react'; import PropTypes from 'prop-types'; import { Icon } from 'patternfly-react'; import DualPaneMapper from '../../../DualPaneMapper/DualPaneMapper'; import DualPaneMapperList from '../../../DualPaneMapper/DualPaneMapperList'; import DualPaneMapperCount from '../../../DualPaneMapper/DualPaneMapp...
import { defineComponent, computed, ref, onMounted, watch, h } from "vue"; const calcCoverPercent = (ctx, width, height, stride) => { if (!stride || stride < 1) stride = 1; const pixels = ctx.getImageData(0, 0, width, height); const total = pixels.data.length / stride; let count = 0; for (let i = 0; i < p...
/** * @description ES6ไธญproxy่ฏญๆณ•ๅฐ้ฒœๅŠๅฎž็ŽฐVueๅŒๅ‘็ป‘ๅฎšๅŠŸ่ƒฝ * @author Echi * @date 2019-05-21 */ /** * @description ๅ…จๅฑ€ๆž„้€ ๅ‡ฝๆ•ฐ * @author Echi * @date 2019-05-21 * @param {object} options ๅ‚ๆ•ฐไผ ้€’ */ function EVue(options) { let vm = this; this.$options = options || {}; this.$methods = this.$options.methods || {}; co...
/** * @license Copyright 2018 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 applicable law or a...
$("#btn_mapMarker").on("click", (e) => { ddf.mapMarker_show(""); }); $("#window_mapMarker .slider").slider({min: 0,max: 1, step:0.05, stop: (e, ui) => { $("#mapMarker_alpha").val(ui.value); mapMarker_previewUpdate(); } }); $("#window_mapMarker input").on('change', mapMarker_previewUpdate); sp_param = requ...
export const animatingKey = '$$animating'; /** * Creates fast object * @param {Object} [proto] * @returns {Object} */ export function obj(proto = null) { return Object.create(proto); } /** * Check if given value id defined, e.g. not `null`, `undefined` or `NaN` * @param {*} value * @returns {boolean} */ expo...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; require("core-js/modules/web.dom-collections.iterator.js"); var _react = _interopRequireWildcard(require("react")); var _styled = _interopRequireDefault(require("@emotion/styled")); var _templateObject, _templa...
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Platform, TouchableHighlight, Button, ScrollView, } from 'react-native'; import { AdMobBanner, AdMobRewarded, AdMobInterstitial, PublisherBanner, } from 'react-native-admob'; const BannerExample = ({ style,...
// Copyright 2018 The Oppia 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 required by ap...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.addNewRow = exports.updateRow = exports.setEditorValidation = exports.removeRow = exports.cancelRow = exports.saveRow = exports.updateCellValue = exports.dismissEditor = exports.repositionEditor = exports.editRow = undefined; var...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _VOverlay = _interopRequireDefault(require("../../components/VOverlay")); var _helpers = require("../../util/helpers"); var _vue = _interopRequireDefault(require("vue")); function _interopRequireDefault(obj...
var escapeHTML = require('../../../../Utils').escapeHTML; var getTemplateId = require('../Helper').getTemplateId; var domClasses = require('min-dom').classes, domEvent = require('min-dom').event, domify = require('min-dom').domify, domQuery = require('min-dom').query; var isUndefined = require('...
//** This script is to be used as a demo to show how QNT can be returned to the sender of the channel after the channel has expired */ const OverledgerSDK = require('@quantnetwork/overledger-bundle').default; const EthereumUintIntOptions = require('@quantnetwork/overledger-dlt-ethereum').EthereumUintIntOptions; const ...
"use strict"; /** * @license * 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. * ============================================================================= */ Object.defineProperty(e...
var searchData; let paramTypes = ['languages', 'contexts', 'forms', 'materials']; let keys = ['id', 'manuscript', 'language', 'geopolitical_context', 'terminus_post_quem', 'terminus_ante_quem', 'form', 'substrate_material']; let witnessKeys = ['id', 'author', 'terminus_post_quem', 'terminus_ante_quem', 'form', 'subs...
import { C_POSTBOX } from '@bbc/psammead-styles/colours'; import { pidgin as brandSVG } from '@bbc/psammead-assets/svgs'; import { latin } from '@bbc/gel-foundations/scripts'; import '@bbc/psammead-locales/moment/pcm'; import '@bbc/moment-timezone-include/tz/Africa/Lagos'; const pidgin = { lang: 'pcm', product: 'B...
import React from 'react'; import transitions from '../styles/transitions'; import Paper from '../Paper'; import EnhancedSwitch from '../internal/EnhancedSwitch'; function getStyles(props, context, state) { const {disabled} = props; const { baseTheme, toggle, } = context.muiTheme; const toggleSize = ...
import React from 'react'; import {ActivityIndicator,AsyncStorage,ToastAndroid,StyleSheet, TouchableOpacity,Image,View,FlatList,ScrollView,NetInfo,Dimensions } from 'react-native'; import { SearchBar, Card } from 'react-native-elements' import { Container, Header, Content, List, ListItem, Left, Body, Ri...
import noop from 'lodash.noop'; import PropTypes from 'prop-types'; import React from 'react'; import ReactDOM from 'react-dom'; import HasManyFieldsAdd from './HasManyFieldsAdd'; import HasManyFieldsRow from './HasManyFieldsRow'; import withDragHandler from './Reorderable/DragHandler'; import ReorderableContainer fro...
/* eslint-disable no-console */ 'use strict'; const fs = require('fs-extra'); const os = require('os'); const path = require('path'); const asar = require('asar-lite'); const globAll = require('glob-all'); const licenseChecker = require('license-checker'); const nexe = require('nexe'); const posixpath = require('./l...
pixymaps.image = function() { var image = {}, view, url, zoom = Math.round; image.view = function(x) { if (!arguments.length) return view; view = x; return image; }; image.url = function(x) { if (!arguments.length) return url; url = typeof x === "string" && /{.}/.test(x) ...
'use strict'; const fs = require('fs'); const path = require('path'); const url = require('url'); const electron = require('electron'); const pkgfile = require('../package'); const core = require('./core'); const ipcMain = electron.ipcMain; const supportedFileExtensions = { '.torrent': 'torrent', '.meta4': ...
/* copyright 2019, <NAME> @allyoucanmap. */ import turfBbox from '@turf/bbox'; export const transform = (x, y, rotation = 0, scale = 1) => `rotate(${rotation} ${x} ${y}) translate(${x}, ${y}) scale(${scale})`; export const rad = (d) => d * (Math.PI / 180.0); export const deg = (r) => r / (Math.PI / 180.0); export con...
// RPC (AJAX) requests handler "use strict"; /*global underscore, N*/ // 3rd-party var qs = require('qs'); // internal var _ = underscore; var env = require('../../env'); var compression = require('./compression'); var logger = N.logger.getLogger('rpc'); ///////////////////////////////...
/* inspired by https://github.com/dupski/json-to-graphql-query */ class EnumType { constructor(value) {} } class VariableType { constructor(value) {} toJSON() { return `$${this.value}` } } const configFields = ['__args', '__alias', '__aliasFor', '__variables', '__directives', '__on', '__typeName'] func...
import React from "react"; const Colors = {}; Colors.names = [ "#00ffff", "#0000ff", "#a52a2a", "#008b8b", "#a9a9a9", "#006400", "#bdb76b", "#8b008b", "#556b2f", "#ff8c00", "#9932cc", "#8b0000", "#e9967a", "#9400d3", "#ff00ff", "#ffd700", "#008000", "#4b0082", "#f0e68c", "#add8e...
/** * * EmployeePage * */ import 'react-bootstrap-table/dist/react-bootstrap-table-all.min.css'; import { Badge, Card, CardBody, CardHeader, Modal, ModalBody, ModalFooter, ModalHeader, Form, } from 'reactstrap'; import noImage from 'containers/EmployeesPage/Forms/no_img.png'; import React from 'react'; import ...
'use strict'; var util = require('./util.js'), sutil = require('./skill.js'); /** * Equip.Combinator ใงไฝฟใ†ใƒœใƒผใƒ€ใƒผใƒฉใ‚คใƒณใ‚’่จˆ็ฎ—ใ™ใ‚‹ใ‚ฏใƒฉใ‚นใ€‚ */ var BorderLine = function () { this.initialize.apply(this, arguments); }; BorderLine.prototype.initialize = function (skillNames, bulksSet, subtracted) { this.goal = this._goal(...
/************************************************************************ * Copyright (c) Crater Dog Technologies(TM). All Rights Reserved. * ************************************************************************ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * ...
#!/usr/bin/env node const fs = require('fs'); const path = require('path'); const prompts = require('prompts'); const kleur = require('kleur'); const ansi = require('sisteransi'); const yargs = require('yargs'); const { execSync } = require('child_process'); yargs .scriptName('publish.js') .usage('$0 [args] [expli...
/*! * node-rsync * * Copyright(c) 2011 <NAME> <<EMAIL>> * Copyright(c) 2011 <NAME> <<EMAIL>> * * MIT Licensed */ var fs = require('fs') , util = require('util') , hash = require('./hash') , EventEmitter = require('events').EventEmitter // // Algorithm functions // function createHashtable(checksums) { ...
import * as S from "s-js"; import { createHTML } from "../dist/lit-dom-expressions"; import * as r from "dom-expressions/src/client"; const html = createHTML(r); const FIXTURES = [ '<div id="main"><h1 random="">Welcome</h1><span style="color: rgb(85, 85, 85);">555</span><label class="name" for="entry">Edit:<...
import $http from '../assets/js/http'; import Qs from 'qs'; /* * ็™ปๅฝ• */ export const getUserInfo = params => $http('get','/privilege/admin/query/ticket',params) export const userLogin = params => $http('post', '/user/login', '', {params: params}) export const userLoginByTel = params => $http('post', '/user/telphone/...
/* * Copyright 2021 <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 in wr...
import { Camera } from '../cameras/Camera'; import { Vector3 } from '../math/Vector3'; import { LineSegments } from '../objects/LineSegments'; import { Color } from '../math/Color'; import { FaceColors } from '../constants'; import { LineBasicMaterial } from '../materials/LineBasicMaterial'; import { BufferGeometry } f...
// Copyright (c) 2014 Intel Corporation. All rights reserved. // Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. var PackageEventState = { 'STARTED': 0, 'PROCESSING': 1, 'COMPLETED': 2, 'F...