text
stringlengths
3.07k
16k
var CommunicationError = require('../error/CommunicationError'); /** * @class baqend.connector.Message * * @param {String} arguments... The path arguments */ var Message = Object.inherit(/** @lends baqend.connector.Message.prototype */ { /** @lends baqend.connector.Message */ extend: { /** * @enum {n...
import React from 'react'; import './Chessboard.css'; import bp from './pieces/bp.png'; // black pawn import br from './pieces/br.png'; // black rook import bn from './pieces/bn.png'; // black knight import bb from './pieces/bb.png'; // black bishop import bq from './pieces/bq.png'; // black queen import bk from ...
let type = "WebGL" if (!PIXI.utils.isWebGLSupported()) { type = "canvas" } PIXI.utils.sayHello(type) const canvasSize = { w: 512, h: 512, padding: 128 }; //Create a Pixi Application let app = new PIXI.Application({ width: canvasSize.w, height: canvasSize.h, antialias: true }); document.bod...
import _ from 'lodash'; import * as React from 'react'; import * as ReactRedux from 'react-redux'; import { injectIntl } from 'react-intl'; import classnames from 'classnames'; import { bindActionCreators } from 'redux'; import { getLatestPosts, } from '../../ducks/ui/views/news'; import { search as searchAl...
// format of cell id is (period)(day) var date; var day; var ClasTim = [ ["08:30:00", "09:10:00"], // ["09:20:00", "10:00:00"], //small break above here ["10:00:00", "10:20:00"], //break ["10:20:00", "11:00:00"], // ["11:10:00", "11:50:00"], //small break above here ["11:50:00", "12:10:00"], //b...
import _ from 'lodash'; import TimeSeries from 'grafana/app/core/time_series2'; let colors = [ "#7EB26D","#EAB839","#6ED0E0","#EF843C","#E24D42","#1F78C1","#BA43A9","#705DA0", "#508642","#CCA300","#447EBC","#C15C17","#890F02","#0A437C","#6D1F62","#584477", "#B7DBAB","#F4D598","#70DBED","#F9BA8F","#F29191","#82B5...
import React, { PureComponent } from 'react'; import moment from 'moment'; import { connect } from 'dva'; import router from 'umi/router'; import { Row, Col, Card, List, Avatar, notification } from 'antd'; import { Client } from '@stomp/stompjs'; import PageHeaderWrapper from '@/components/PageHeaderWrapper'; import l...
import React, { useEffect, useState, useRef } from 'react' import { IconButton, Drawer } from '@material-ui/core' import { MonacoEditorWrapper } from './MonacoEditorWrapper' import PropTypes from 'prop-types' import { OptionsDrawer } from './OptionsDrawer' import SettingsIcon from '@material-ui/icons/Settings' import {...
'use strict'; var path = require('path'); var http = require('http'); var _ = require('underscore'); var debug = require('debug')('kettil:webserver'); var tools = require('kettil-tools'); var express = require('express'); // Special Page var middlewarePageNotFound = require(path.join(__dirname, 'lib/pag...
function ab2str(buf) { return String.fromCharCode.apply(null, new Uint8Array(buf)); } function str2ab(str) { var buf = new ArrayBuffer(str.length + 1); var bufView = new Uint8Array(buf); for (var i=0, strLen=str.length; i<strLen; i++) { bufView[i] = str.charCodeAt(i); } bufView[str.length] = 0; retur...
const { SigningCosmWasmClient } = require('secretjs'); window.onload = async () => { this.chainId = 'secret-4'; this.lcd = 'https://secret-4--lcd--full.datahub.figment.io/apikey/28f8f960e965f32823813e3788d55b58'; // Keplr extension injects the offline signer that is compatible with cosmJS. // You can ...
// Used weather-card-editor.js from Weather Card as template // https://github.com/bramkragten/weather-card const fireEvent = (node, type, detail, options) => { options = options || {}; detail = detail === null || detail === undefined ? {} : detail; const event = new Event(type, { bubbles: options.bubbles ==...
//Global Dependencies import { CloudType, Math, Cartesian2, CloudCollection, Color, CumulusCloud, Cartesian3, NearFarScalar } from "../node_modules/cesium" import "../node_modules/cesium/Build/Cesium/Widgets/widgets.css"; import { sqrt, random, cos, log } from 'mathjs' // import CumulusCloud from "cesium/Source/Scene...
const { flow, intersection, isArray, isEqual, isPlainObject, mapValues, omit, reject, without } = require('lodash'); /* * This file contains utilities to work with JSON schemas and OpenAPI-compliant * schemas. It is used both by scripts in the "commands" directory, and by test * code in the "spec" directory, which ...
var fs = require('fs'); var express = require('express'); bodyParser = require('body-parser'); var cookieParser = require('cookie-parser'); var mongoose = require('mongoose') var app = module.exports = express(); // Connect to database var configDB = require('./config/database.js') mongoose.connect(configDB.ur...
/* eslint-disable react/prop-types */ import React, { useState, useEffect } from "react"; import { useTranslation } from "react-i18next"; import { Grid, Button, Dialog, DialogActions, DialogContent, DialogContentText, Radio, FormControlLabel, Typography, ClickAwayListener } from "@material-ui/core";...
/* eslint-env browser */ import { h, createProjector } from 'maquette'; import Store from './store'; import Prim from './prim'; import Act from './act'; import v from './v'; import { exp } from './exp'; import { path } from './path'; import { func, LiftedNative } from './func'; import { n } from './stdlib'; let dirty...
#!/usr/bin/env node const sortKeys = require('sort-keys'); const TOML = require('@iarna/toml'); const axios = require('axios'); const csvParser = require('csv-parser'); const ProgressBar = require('progress'); const { Repo } = require('hologit/lib'); require('yargs') .command({ command: '$0 <source-type> ...
import React, { Component } from 'react' import PropType from 'prop-types' import styles from './Hexagon.css' const hexRatio = 0.868217054 let bgIndex = 0 function round(num) { return Number(num.toFixed(3)) } class Hexagon extends Component { static defaultProps = { width: '100%', gradientOpacity: ...
var aesTool = GibberishAES; var aesKey = null; var serverAddr = null; var usersKeys = null; var username = null; function connectToServer () { serverAddr = window.location.href.split("/")[2]; log.connect(serverAddr); $.ajax({ url: "http://" + serverAddr + "/api", method: "get", data: {"query": "connecti...
'use strict' const assert = require('assert') const CRDTs = require('../src') const { GCounter, PNCounter, GSet, TwoPSet, ORSet, LWWSet } = CRDTs const CmRDTSet = require('../src/CmRDT-Set') const crdts = [ { type: 'G-Counter', class: GCounter, create: (id) => new GCounter(id), update: (crdt, value...
const createDocumentRewriter = require('./document'); const createHistoryRewriter = require('./history'); const createHttpRewriter = require('./http'); const createLocation = require('./location'); const createWorkerRewriter = require('./worker'); const defaultConfig = { prefix: '/service/', codec: 'plain', ...
import React, { useState, useEffect } from 'react'; import { useDispatch, useSelector } from 'react-redux' import { navigate } from "gatsby" import { fromJS } from 'immutable'; import { makeStyles } from '@material-ui/core/styles'; import { Box, Button, TextField, InputAdornment, } from '@material-ui/co...
const chai = require('chai'); const { expect } = chai; const { solidity } = require('ethereum-waffle'); chai.use(solidity); const hardhat = require('hardhat'); const { increaseTime } = require('../helpers/setup'); const { deployments, ethers } = hardhat; const { parseEther } = ethers.utils; const ether = parseEther; d...
function verify_form_errors(id, class_to_verify) { return $('#'+id).parent().parent().hasClass(class_to_verify) } function is_empty(id) { return ($('#'+id).val() === '') } function show_error(id, recursion) { var contenu = $('#'+id).val() if (contenu.length === 0){ $('#'+id).parent().parent().removeClass('has-e...
/* * Copyright Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
import React, { Component } from "react"; import { observer, inject } from "mobx-react"; import BigItem from "../../components/BigItem"; import ItemList from "../../components/ItemList"; import "./categoryLists.css"; import { Parallax } from 'react-parallax'; import Select from "react-select"; import moment from 'momen...
"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...
Ti.include('/includes/lib/json.i18n.js'); var BASE_URL = "http://skin.outadoc.fr/json/"; var win = Ti.UI.currentWindow, Utils = require('/includes/utils'), Ui = require('/includes/ui'), loadingWin = Ui.createLoadingWindow(), searchBar = Ti.UI.createSearchBar({ barColor: Utils.getNavColor(), hintText: I('addProc...
var gui = new dat.GUI({ width: 250}); addHadoukenGui(gui); addFluidsGUI(gui); function addHadoukenGui(gui){ var hadoukenFolder = gui; gui.addFolder("Hadouken AR: Settings"); hadoukenFolder.add(hadouken, 'darkLayerOpacity', 0, 1.0).name('Video Darkness').onFinishChange(updateDarkLayer); hadoukenFolder.add(hadouken...
import tpl from './index.html'; import _ from 'lodash'; import { Set, Map } from 'immutable'; class ProjectPublishingController { constructor( $rootScope, $q, $log, $window, $state, $timeout, projectService, analysisService, tokenService, ...
const db = require('../../../database') const pubsub = require('../../../database/pubsub') const gravitationalConstant = 1 const sphereCollisionDelta = Math.sqrt(3) const keys4 = ['<KEY>'] const emptyVector4 = {} keys4.forEach(key => emptyVector4[key] = 0) async function physica(deltaTime) { const bodies = await ...
const fs = require("fs") let raw_cases = fs.readFileSync("../ny_times_data/nytimes_cases.json"); let raw_state = fs.readFileSync("../data/state-list.json"); let json_cases = JSON.parse(raw_cases); let json_state = JSON.parse(raw_state); let start_date = new Date("1/1/2020"); let end_date = new Date(new Date().getTi...
"use strict"; /* * define functions to work with Highcharts library * Highcharts is an Object defined by highstock.js */ var HighstockController = {}; /* * init the chart and store its preference object in HighstockController * chart is rendered by Highcharts.stockChart() * @param {string} id of the div to draw the ch...
var PADDING = 8; var rect; var viewport = { bottom: 0, left: 0, right: 0, top: 0 } let getPropertyValue = function(style, prop) { let value = style.getPropertyValue(prop); value = value ? value.replace(/[^0-9.]/g, '') : '0'; return parseFloat(value); } let getElementRect = function(element) { let s...
import React, {PureComponent} from 'react'; import { Table, Card, Layout, message,Badge,Col,Row,Progress} from 'antd'; import Pagination from './../../../components/Pagination/Index' import PageHeaderLayout from '../../../layouts/PageHeaderLayout'; import DefaultSearch from './ConcentratorErrorSearch' import { routerRe...
import 'aframe'; import 'aframe-extras'; import 'aframe-html-shader'; import 'aframe-animation-component'; import 'aframe-look-at-component'; import React from 'react'; import PropTypes from 'prop-types'; import battle from './audio/pokemon-battle.mp3'; import charizard from './images/charizard.png'; import lightnin...
/** * Copyright 2015 aixigo AG * Released under the MIT license. * http://laxarjs.org/license */ import * as ng from 'angular'; import { object } from 'laxar'; import { actions, resources } from 'laxar-patterns'; import * as iframeResizeDirective from './iframe-resize-directive'; import * as iframeIntegrationDirect...
import template from './axRangePanel.html'; import moment from 'moment'; import TimeResolution from '../timeResolution'; import _ from 'lodash'; function axRangePanel($timeout, pickerService) { return { restrict: 'E', replace: true, scope: { observer: '=', dictionary...
'use strict'; var redis = require('redis'); function redisSafePattern(s) { return s.replace(/([.?*\[\]])/g, "\\$1"); } module.exports = function (config) { if (!config || !config.redis) { throw new Error("REDIS configuration missing"); } config.log = config.log || function () { }; var redisArgs = [], red...
import React, { useEffect, useCallback, useState } from 'react'; import { useSelector, useDispatch } from 'react-redux'; import { BrowserRouter as Router, Switch, Route, Redirect, } from 'react-router-dom'; import { setLoggedInFollowing, getChats, getMessages, setUuid, addMessage, resetUnreadCount...
import React, { Component } from 'react'; import { render } from 'react-dom'; import SJMarkdown from './components/field-editors/markdown.js'; import SJRichtext from './components/field-editors/richtext.js'; import SJSingleMediaEditor from './components/field-editors/single-media-editor.js'; import LongTextConfig from...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; require("antd/es/row/style"); var _row = _interopRequireDefault(require("antd/es/row")); require("antd/es/col/style"); var _col = _interopRequireDefault(require("antd/es/col")); require("antd/es/button/style")...
import React from 'react'; import PropTypes from 'prop-types'; import { Formik } from 'formik'; import Button from '@material-ui/core/Button'; import Dialog from '@material-ui/core/Dialog'; import DialogContent from '@material-ui/core/DialogContent'; import DialogTitle from '@material-ui/core/DialogTitle'; import For...
#!/usr/bin/env node 'use strict'; function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var execa = _interopDefault(require('execa')); var preferredPM = _interopDefault(require('preferred-pm')); var whichPMRuns = _interopDefault(require('which-pm-runs')); v...
/* Copyright 2015-2016 Telefonica Investigación y Desarrollo, S.A.U This file is part of Tartare. Tartare is free software: you can redistribute it and/or modify it under the terms of the Apache License as published by the Apache Software Foundation, either version 2.0 of the License, or (at your option) any la...
import './style.css' import * as THREE from "three"; import { AxesHelper } from 'three'; import gsap from 'gsap'; import { OrbitControls } from "three/examples/jsm/controls/OrbitControls"; /** * Cursor */ const cursor = { x: 0, y: 0 }; window.addEventListener('mousemove', event => { cursor.x = event.clie...
import React, { useState, useRef } from "react"; import { NavLink } from "react-router-dom"; import styled from "styled-components"; import useOnClickOutside from "../hooks/useOnClickOutside"; import { FaCloudMoon } from "react-icons/fa"; // giving the header a hard coded height breaks the hamburger nav // workaround...
'use strict'; var config = require('config'); var Container = require('c-container'); var Kursaal = require('c-kursaal'); var Brick = require('c-brick'); /* 随机积木生成器 [PROPERTIES] brickList : 现存积木列表数组 kursaal : 要服务的娱乐场的引用 curBrick : 当前选中的积木的引用 width : 生成器的宽度 [METHODS] random() ...
import React from 'react'; import { xor } from 'lodash'; import Link from '@ncigdc/components/Links/Link'; import Venn from '@ncigdc/components/Charts/Venn'; import { stringifyJSONParam } from '@ncigdc/utils/uri'; import Alias from '@ncigdc/components/Alias'; import CreateOrOpenAnalysis from '@ncigdc/components/CreateO...
import React from 'react'; import { arrayOf, bool, func, shape, string } from 'prop-types'; import { compose } from 'redux'; import { Form as FinalForm } from 'react-final-form'; import { intlShape, injectIntl, FormattedMessage } from '../../util/reactIntl'; import classNames from 'classnames'; import { propTypes } fro...
/** * Created by Jo on 2017/8/30. */ /** * Created by Jo on 2017/8/30. */ /** * Created by Jo on 2017/8/30. */ /** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { StyleSheet, Text, View, TouchableOpacity, ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var marble_testing_1 = require("../helpers/marble-testing"); var operators_1 = require("rxjs/operators"); var rxjs_1 = require("rxjs"); describe('Observable.prototype.last', function () { it('should take the last value of an observable', f...
'use strict'; import React from 'react'; import { render } from 'react-dom'; import mapboxgl from 'mapbox-gl'; import { _cs, addSeparator, listToGroupList, mapToList, } from '@togglecorp/fujs'; import { countryIsoMapById } from '../../utils/field-report-constants'; import { programmeTypes, sectors, stat...
import app from 'app'; import _ from 'lodash'; import 'views/forms/edit/edit'; import 'services/main'; import 'views/forms/view/abs/view-abs-permit.directive'; export { default as template } from './edit-absPermit.html'; export default ["$scope", "realm", "$http", "Thesaurus", "guid", "$filter", "$q", "Enumerable...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.addRequest = exports.add = exports.detail = exports.list = undefined; var _bluebird = require('bluebird'); var _bluebird2 = _interopRequireDefault(_bluebird); var list = exports.list = function () { var _ref = (0, _bluebird...
import React, { Component } from "react"; import SimpleStorageContract from "./contracts/SimpleStorage.json"; import getWeb3 from "./getWeb3"; import "./App.css"; const ipfsClient = require("ipfs-http-client"); //gateway : ipfs.infura.io or localhost const ipfs = ipfsClient({ host: "ipfs.infura.io", port: "5001...
var graph = Viva.Graph.graph(); //to store all the words var allMatchedWords = {}; //connect to the Mongo database var socket = io.connect('http://sociamvm-app-001.ecs.soton.ac.uk:3002'); //call this when the page loads socket.emit("load_data",""); //for interval updating func...
const Discord = require("discord.js"); const axios = require("axios"); const Horoscope = require("./horoscope_data.js"); const MAX_CHAR = 2048; const horoscope = new Horoscope(); module.exports = (bot = Discord.Client) => { require("../../functions/helpfunctions.js")(bot); require("../../functions/functions.js")(bo...
"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 = R...
/** * Copy credidentials to object. */ var get_user = function() { user["username"] = window.localStorage.getItem("username"); user["password"] = window.localStorage.getItem("password"); } /** * Get authentication token. */ var get_token = function() { $.ajax({ url: $SCRIPT_ROOT + "/token", type: "GE...
const POLTRONAS = 240; // constante com o número de poltronas do teatro var reservadas = []; // vetor com as poltronas reservadas pelo cliente function montarPalco() { var ocupadas = []; // declara vetor para receber as poltronas ocupadas // verifica se há poltronas salvas em localStorage if (localSt...
/* * Copyright (C) 2016 Microsoft * * 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, ...
import React, {useState, useCallback} from 'react'; import { StyleSheet, View, ImageBackground, TouchableOpacity, } from 'react-native'; import {useFocusEffect, useTheme} from '@react-navigation/native'; import {useHeaderHeight} from '@react-navigation/stack'; import {SafeAreaView, useSafeAreaInsets, useSafeAre...
"use strict"; var express = require('express'); var MojioUser = require('./lib/MojioUser.js'); var fs = require('fs'); var GoogleHandler = require('./GoogleHandler.js'); var TwilioSMSHandler = require('./TwilioSMSHandler.js'); var MojioUserRegistry = require('./lib/MojioUserRegistry.js'); var session = require('expres...
import React from 'react' import gql from "graphql-tag" import _ from 'lodash' import { Link } from 'react-router-dom' import TimeAgo from 'react-timeago' import QueryComponent from '~/fuks/QueryComponent' import UserAvatar from '~/pure/UserAvatar' import UserIconWithName from '~/pure/UserIconWithName' import UserIcon...
"use strict"; var webcomponentsUtils = { importScope: function(callback) { callback(document._currentScript.ownerDocument); }, registerElement: function(tagName, registerCallbacks) { var proto = Object.create(HTMLElement.prototype); registerCallbacks.call(proto); document.re...
import Component from '@ember/component'; import {inject as service} from '@ember/service'; import {computed} from '@ember/object'; import SequenceIds from 'adaptone-front/constants/sequence-ids'; const DECIBEL_CONVERT = 10; const DECIBEL_FACTOR = 20; export default Component.extend({ connection: service('connectio...
/********************************** * modal_team. * @param competitions * @return tpl ***********************************/ function show_team_modal(team_id, cont_teams, username) { var protocol = location.protocol; var URLdomain = window.location.host; var url_ajax = protocol + "//" + URLdomain; jQuery.noConflic...
var fs = require('fs'); var formidable = require("formidable"); var exec = require("child_process").exec; var encode = "utf8"; var msg = ''; var data = {}; var url = require("url"); var productModel = require("./model/productModel.js"); function start(response) { exec("find /", { timeout: 10000, maxBuffer: 2...
const express = require('express'), path = require('path'), db = require(path.join(__dirname,'../..','db')), Mailer = require(path.join(__dirname,'../..','./mailer')), paths = require(path.join(__dirname,'../..','paths')), txts = require(path.join(__dirname,'../..','texts')); const router = express...
const { packageExists } = require('./package-exists'); const webpack = packageExists('webpack') ? require('webpack') : undefined; const logger = require('./logger'); const { writeFileSync } = require('fs'); const bailAndWatchWarning = require('./warnings/bailAndWatchWarning'); const assignWatchHooks = (compiler) => { ...
/* * grunt-gplay * https://github.com/allan/grunt-gplay * * Copyright (c) 2017 <NAME> * Licensed under the MIT license. */ 'use strict'; var util = require('util'); var google = require('googleapis'); var Promise = require('bluebird'); var _ = require('lodash'); module.exports = function(grunt...
function pricesale(price, discount){ let html = ''; if (discount > 0){ html += ' <span style="text-decoration: line-through; color: red">'+ toMoney(price) + '</span> - <span>'+ toMoney(price * (100 - discount)/100) +'</span>'; } else { html += ' <span>'+ toMoney(price) +'</sp...
import React, { useEffect, useState } from 'react' import personService from './services/persons' import './index.css' const Filter = (props) => { console.log('filter:', props.nameFilter, 'handler', props.handleFilterChange) return ( <div> <form> filter: <input value={props.nameFilter} ...
import V1alpha1GKECredentials from '../../kore-api/model/V1alpha1GKECredentials' import V1alpha1GKECredentialsSpec from '../../kore-api/model/V1alpha1GKECredentialsSpec' import V1ObjectMeta from '../../kore-api/model/V1ObjectMeta' import V1Secret from '../../kore-api/model/V1Secret' import V1SecretSpec from '../../kore...
var today = new Date(); var dataHoje = String(today.getDate()).padStart(2, '0')+'/'+(String(today.getMonth()+1)).padStart(2, '0')+'/'+today.getFullYear(); var table; $.ajax({ url: "/agente/comissao/mostrar", method: 'GET', dataType: "json", success: function(data){ $.each(data, function(i, obj){ table...
/** * Copyright 2020 (c) <NAME> * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following copyright and * permi...
'use strict'; // eslint-disable-line strict const errors = require('../../../lib/errors'); /** * Validate Credentials * @param {array} credentials - contains accessKey, scopeDate, * region, service, requestType * @param {string} timestamp - timestamp from request in * the format of ISO 8601: YYYYMMDDTHHMMSSZ *...
import React, { PureComponent, Fragment } from 'react'; import { connect } from 'dva'; import Link from 'umi/link'; import { Row, Col, Card, Form, Button, message, Table } from 'antd'; import FooterToolbar from 'ant-design-pro/lib/FooterToolbar'; import Ellipsis from 'ant-design-pro/lib/Ellipsis'; import SalerPurchaser...
//const { createFilePath } = require(`gatsby-source-filesystem`) const path = require(`path`) const kebabCase = require(`lodash.kebabcase`) const { slash } = require(`gatsby-core-utils`) const { GraphQLFloat } = require("gatsby/graphql") async function createWorkoutPages(createPage, graphql) { const workoutLayout = ...
import React, { Component } from 'react' import stylesheetGridlex from 'styles/gridlex.min.css' import animateScrollTo from 'animated-scroll-to' import stylesheet from 'styles/investor.scss' import { default as Layout } from '../components/layout/layout' import { Media } from '../components/media' import { MediaCTA } f...
// T = (p, a, b, G, n, h) // E : y^2 ≡ x^3 + ax + b (mod p) // 相同的点相加第一式: λ≡(3x1^2+ a)/2y1(mod p) // 相同的点相加第二式: x3 ≡ λ^2 − 2x1 (mod p), y3≡ λ(x1 − x3) − y1 (mod p) // 不同的点相加第一式: λ≡ (y2 − y1)/(x2 − x1)(mod p) // 不同的点相加第二式: x3 ≡ λ^2 − x1 − x2 (mod p), y3 ≡ λ(x1 − x3) − y1 (mod p) function num2Point(num){ let numHex...
// node core modules // 3rd party modules import test from 'ava'; import _ from 'lodash'; import sinon from 'sinon'; // internal modules import httpClientFactory from '../http-client'; import mountPlugin from './mount-plugin'; import phaseList from '../phase-list'; const initHttpClient = (params) => httpClientFactor...
import React, { Component } from "react" import Link from "gatsby-link" import PropTypes from "prop-types" import Layout from "../components/layout" import VisitCard from "../components/VisitCard" import pol from "../images/Polygon 1.svg" import { graphql } from "gatsby" class ActualitesTemplate extends Component { ...
const { app, protocol, BrowserWindow, ipcMain, dialog } = require('electron'); const { createProtocol } = require('vue-cli-plugin-electron-builder/lib'); const isDevelopment = process.env.NODE_ENV !== 'production'; const fs = require('fs'); const http = require('http'); const https = require('https'); const axios = req...
import Ember from 'ember'; import auth from './firebase/auth'; import watch from './firebase/watch'; import unwatch from './firebase/unwatch'; import Services from 'ember-redux-core/utils/services'; const { get, debug, getOwner, inject: {service}, RSVP: {Promise} } = Ember; const DEFAULT_NAME = '[ember-redux-core]'; ex...
import React, { Component } from 'react' import StyledProgressbar from './StyledProgressbar' import Sound from 'react-sound' import SoundComponent from './playSound' import StyledSlider from './StyledSlider'; import 'react-circular-progressbar/dist/styles.css' import './Meditation.css' const playButton = 'svg/play.svg...
/* | codeScript.js is a LIVID CONTROL helper | | version 1.0 | written by <NAME> | | more infos: http:// */ // js object set up autowatch = 1; inlets = 1; outlets = 2; // some constants var offsetX = 200; var offsetY = 200; var unitW = 56; var unitH = 78; var buttonW = 50; var buttonH = unitH; var offsetXPres = 1...
import React, { useEffect, useState } from "react"; import EduIDButton from "components/EduIDButton"; import { translate } from "login/translation"; import PropTypes from "prop-types"; import { Spinner } from "spin.js"; import { spinnerOpts } from "../components/Splash"; import { securityKeyPattern } from "../login/app...
/** * Copyright (c) 2014 Virtue Studios * * 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, pub...
import React from 'react'; import { Row, Col, CardDeck } from 'react-bootstrap'; import axios from 'axios'; import _ from 'lodash'; import * as Utils from '../utils/Utils'; import styled from 'styled-components'; import HomeCarousel from '../components/HomeCarousel'; import HomeCard from '../components/HomeCard'; /**...
'use strict'; var leftArrow, rightArrow, slider; const scrollDX = 200, btnAnimationTime = 100; //ms (function () { document.addEventListener( 'DOMContentLoaded', function () { leftArrow = document.querySelector('.filters-bottom .left-arrow'); rightArrow = document.querySelector('.filters-bottom ...
/** * Copyright IBM Corp. 2016, 2020 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import PropTypes from 'prop-types'; import React from 'react'; import classNames from 'classnames'; import ChevronDownGlyph from '@carbon/ico...
'use strict'; import { REQUEST_TIMEOUT } from '../lib/constants'; import { default as baseRequest } from 'request'; import { cloneDeep } from 'lodash'; import { default as moment } from 'moment-timezone'; // note: this is the 'synchronous' version (lost hours to this!) import { default as parse } from 'csv-parse/lib/s...
const file = require('./file.js') const hash = require('./hashing.js') const ecdsa = require('./ecdsa.js') const parse = require('./parse.js') function getBlock(hash,callback) { file.get(hash,'blockchain',callback) } function checkBalance(key,amount,callback) { file.get(key,'balances',(balance) => { /...
const AnyHedgeLibrary = require('@generalprotocols/anyhedge'); const validator = require('validator'); const Big = require('big.js'); const axios = require('axios'); const vm = require('vm'); const BITBOX = require('bitbox-sdk').BITBOX; const bitcore = require('bitcore-lib-cash'); const Order = require('./orders.reposi...
// import Axios from "axios"; import React, { useState, useEffect } from 'react'; import { useParams, Link } from 'react-router-dom'; import moment from 'moment'; import API from '../../../../api'; // import Chart from "react-apexcharts"; // import ApexCharts from 'apexcharts'; import Datatable from 'react-data-...
'use strict'; const express = require('express'); const logger = require('morgan'); const crypto = require('crypto'); const bodyParser = require('body-parser'); const multer = require('multer'); const fileUpload = require('express-fileupload'); const ipfsAPI = require('ipfs-api') const async = require('async')...
'use strict'; var sax = require('sax'); var fs = require('fs'); var path = require('path'); var log = console.error; var jschars = /['"\n\r\t\b\f]/g; var jshash = { '"': '\\"', '\'': '\\\'', '\\': '\\\\', '\n': '\\n', '\r': '\\r', '\t': '\\t', '\b': '\\b', '\f': '\\f' }; var reName = /^(?!(?:do|if|in|f...