text
stringlengths
3.22k
29.5k
var fs = require('fs'); const { VK } = require('vk-io') const vk = new VK(); const cmds = require('./settings/cmds.js').cmds; const clan = require('./settings/clan.js').clan; const func = require('./settings/functions.js'); const trees = require('./settings/trees.js').trees; const city = require('./settings/city.js')...
import { Animation } from '../../animation/Animation.js'; import { linear } from '../../animation/Easing.js'; import { Class } from '../../core/Core.js'; import { limit } from '../../core/Math.js'; import { appendChildren, setStyle } from '../../dom/Element.js'; import { ViewEventsController } from '../ViewEventsContro...
const { singular } = require('pluralize'); const camelCase = require('camelcase'); const gqlController = {} const { capFirstLet, snakeToTitle, isNullable, dataTupleMaker, fkTupleMaker, countTupleKeys, tuplesToObjects, nonAndJoinTables, fktNoJoins, typeCreator, brianFunction } = require("../gqlcorp...
'use strict'; var DEBUG = true; var EVENT_NAME_TO_FUNCION = { c2s_ping: ping, c2s_subscribe: subscribe, c2s_publish: publish, c2s_create_room: create_room, c2s_join: join, c2s_get_room_list: get_room_list, c2s_send_data: send_data, c2s_join_random: join_random, }; if (DEB...
/* * Orwell http://github.com/gettocat/orwell * Platform for building decentralized applications * MIT License * Copyright (c) 2017 Nanocat <@orwellcat at twitter> */ var BN = require('bn.js'); var config = require('../../config'); function difficulty(bits) { var b = new BN(bits2target(config.blockchain.mining.ma...
/* eslint-disable react/prop-types, no-useless-escape */ import React, { useState } from "react"; import Layout from "../components/layout"; import SEO from "../components/seo"; import { graphql } from "gatsby"; import { Hero } from "../components/hero"; import Img from "gatsby-image"; import Modal from "../components...
/** * Source: * https://github.com/sonic16x/interslavic/blob/master/src/legacy/declensionNumeral.ts */ import { declensionAdjective } from './declensionAdjective'; import { declensionNoun } from './declensionNoun'; import { getGender, isPlural, isSingular, } from './utils/wordDetails'; const exclusionL...
const { parseEther, formatEther } = require("ethers/lib/utils"); const { checkInitialization } = require("../test/lib/utils"); const { ADDRESSES } = require("../test/lib/constants"); const { ZERO_ADDRESS } = ADDRESSES; const fs = require("fs"); const bre = require("@nomiclabs/buidler"); /** * @dev Checks the optionTem...
/* This manages audio sources of two types: ambient (music or background noise) or effects (one-offs). Everything is managed through state properties. Below are examples of what a sample set of state might look like. ``` sound.ambient.coffeehouse.url: "coffeehouse.mp3" sound.ambient.coffeehouse.description: "coffeehou...
/* * Backpack - Skyscanner's Design System * * Copyright 2017 Skyscanner Ltd * * 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 * * Un...
const { makeComptroller, makeXAI, balanceOf, fastForward, pretendXAIMint, quickMint, quickMintXAI } = require('../Utils/Annex'); const { bnbExp, bnbDouble, bnbUnsigned } = require('../Utils/BSC'); const annexXAIRate = bnbUnsigned(5e17); async function annexAccrued(comptroller, user) { return bnb...
/* eslint no-new: 0 */ /** * Mnemonist Vantage Point Tree Unit Tests * ======================================== */ var assert = require('assert'), VPTree = require('../vp-tree.js'), levenshtein = require('leven'), random = require('pandemonium/random'); var WORDS = [ 'book', 'back', 'bock', 'loc...
import { PolymerElement } from '@polymer/polymer/polymer-element.js'; import { Debouncer } from '@polymer/polymer/lib/utils/debounce.js'; import '@brightspace-ui/core/components/colors/colors.js'; import '@brightspace-ui/core/components/dropdown/dropdown-content.js'; import '@brightspace-ui/core/components/dropdown/dro...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import Header from '../../components/Header'; import Container from '../../components/Container'; import Content from '../../components/Content'; import Form from '../../components/Form'; import Button from '../../components/Button'; impo...
/**! * * Copyright (c) 2015-2016 Cisco Systems, Inc. See LICENSE file. */ 'use strict'; var defaults = require('lodash.defaults'); var difference = require('lodash.difference'); var FeaturesModel = require('./features-model'); var omit = require('lodash.omit'); var oneFlight = require('../../util/one-flight'); var...
const CreditModel = require("./creditsModel"); let paymentTransactionServices = require('../paymentTransaction/paymentTransactionServices'); let logins = require('../loginInfo/loginInfoModel'); let Notification = require('../notification/notificationModel'); let notificationSetting = require("../notificationSettings/no...
import { defineMessages } from 'react-intl' import frenchMessages from '@yeutech/ra-language-intl/translation/fr.json'; const posMessages = defineMessages({ search: { id: 'pos.search', defaultMessage: 'Rechercher' }, configuration: { id: 'pos.configuration', defaultMessage: 'Configuration' }, ...
var margin = {top: 20, right: 0, bottom: 0, left: 0}, width = 820, height = 700 - margin.top - margin.bottom, formatNumber = d3.format(".2s"), transitioning; /* create x and y scales */ var x = d3.scale.linear() .domain([0, width]) .range([0, width]); var y = d3.scale.linear() .domain([0, height]) ...
import { join } from 'path'; import { promisify } from 'util'; import { access, mkdir, readdir, copyFile } from 'fs'; import { samplePlayer } from '../../services/sample-player'; const exists = promisify(access); const readdirPromise = promisify(readdir); const readDir = path => readdirPromise(path); const copyDir = ...
/** * Created by calvinmuller on 15/08/06. */ // Variable to store your files var files; var action; var Rewards; Rewards = function () { if ($.validator) { $.validator.addMethod('minStrict', function (value, el, param) { return value.replace(/\D+/g, '') > param; }, $.validator.form...
'use strict'; const conf = require('./conf/' + process.argv[2]); const fs = require('fs'); const chokidar = require('chokidar'); const zlib = require('zlib'); const readline = require('readline'); const elasticsearch = require('elasticsearch'); const node_statsd = require('node-statsd'); var elastic = new e...
/** * Fixed tabs swipe handler */ function HM_TabsSwipe() { /** * max width for swipe scroll in pixels * @type String */ this.swipeBreakPoint = '640px'; this.allContainers = []; this.onInit = function (tabContainers) { this.allContainers = tabContainers; this.allContai...
$(function() { // var data = eval("[{'id':3,'parentId':0,'name':'Graphs','resUrl':'#','clazz':'menu-item-parent','type':0,'title':'','img':'fa fa-lg fa-fw fa-bar-chart-o'}," + // "{'id':6,'parentId':3, 'name':'Flot Chart','resUrl':'flot.html','clazz':'','type':1,'title':'','img':''}," + // "{'id':1,'parentId':0,'nam...
"use strict"; var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; ...
'use strict'; exports.__esModule = true; var _validator = require('../util/validator.js'); var _validator2 = _interopRequireDefault(_validator); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } /** * validate data * { * name: { * value: 'test', * requir...
// The id's of the input fields hardcoded. var registerInputs = new Array("usernameInputField", "passwordInputField", "emailInputField", "captchaInputField", "registerButton"); // Returns an array of key/value pairs. function getResources(key) { var resources = {}; resources["register.captcha.answer.invalid"] = "...
import React, { useState, useEffect } from "react"; import PropTypes from "prop-types"; import { useParams } from "react-router-dom"; import { Grid, CircularProgress } from "@material-ui/core"; import { initialDate, formatDate, initialPeriod, isDateNotValid, axiosProfileError, getUnits, } from "../../../suppor...
"use strict"; //NOTE: See https://en.wikipedia.org/wiki/Specific_Area_Message_Encoding for SAME information /* eslint no-magic-numbers: ["error", { "ignore": [0, 1, 2, 3, 4, 15, 24, 30, 60, 100, 1000] }] */ /* eslint-disable require-jsdoc */ /* eslint-disable array-element-newline */ /* eslint-disable no-sync */ con...
var Jef = function () { "use strict"; var _getPathStr = function (path, delimiter) { if (!delimiter) { delimiter = '.'; } var res = ''; for (var i = 0; i < path.length; i++) { if (i !== 0) { res += delimiter; } res ...
/** * Copyright (c) 2020 <NAME>. * Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT). */ import { BoundingBox } from './bounding-box.js'; /** * Defines planet renderable class. * * @param {PlanetTreeNode} node The node. * @param {PlanetMapTile} mapTile The map ...
//note $('#frmCandidateNote').validate({ rules : { candidate_note : { required : true } }, submitHandler: function (form) { var id = $('#candidate_note_id').val(); $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr(...
var fs = require('fs'); var path = require('path'); var semver = require('semver'); var tinylr = require('tiny-lr-fork'); module.exports = function exports(grunt) { 'use strict'; var uniq = grunt.util['_'].uniq, DEBOUNCE_DELAY = 200, WAIT_FOR_UNLOCK_INTERVAL = 10, WAIT_FOR_UNLOCK_TRY_LIMIT = 50; var files =...
import { ref, getDatabase, set, get, push } from 'firebase/database' // Import the functions you need from the SDKs you need import { useState, useEffect } from 'react' import { Box, Typography, TextField, Button, Modal, Checkbox, FormControlLabel, IconButton, Tooltip, } from '@mui/...
/** * Author: <NAME> * * app.js - main start application */ // Modules const express = require('express'); const path = require('path'); const bodyParser = require('body-parser'); const cors = require('cors'); const passport = require('passport'); const mongoose = require('mongoose'); var pm2 = require('pm2'); v...
const puppeteer = require('puppeteer') const variables = require('../configs/config.json') const infos = require('../configs/infos.json') const openOS = async ( ) => { console.log("[ROBOT-OPEN-OS]> Abrindo o navegador!") const browser = await puppeteer.launch({headless:false}); console.log("[ROBOT-...
/*! * Account Manager Web Interface */ const FileSystem = require('fs') const Crypt = require('./fn.crypt') const Receiver = require('./receiver') const Try = require('./fn.try.catch') const Web = require('./fn.web') const WebUI = require('./web.ui') const WebRequest = Web.WebRequest const WebResponse = Web.WebRespo...
'use strict'; const bundle = {bundle}; const minify = {minify}; const hash = {hash}; const shellFile = "{shell_file}"; const fragmentFiles = [{fragment_files}]; const es6SourceDirectory = "{es6_source_directory}"; const targetDirectory = "{target_directory}"; const es5ConfigurationName = "{es5_configuration_name}"; co...
import React, { Fragment, useEffect, useRef, useState, } from 'react'; import { Dimensions, Image, ScrollView, Text, TouchableHighlight, View, SafeAreaView, StatusBar, } from 'react-native'; import { Badge, CheckBox } from 'react-native-elements'; import ReadMore from 'react-native-read-more-text'; import HTML fr...
const when = require('when') const exec = require('./command') const versions = require('./version') const fs = require('fs') const syspath = require('path') const format = require('util').format const LATEST = 'latest' function checkLTS () { const version = /v([0-9]+)/.exec(process.version)[ 1 ] const today = new...
function solve() { var time = document.getElementById('ta1').value; var volume = document.getElementById('ta2').value; var current = document.getElementById('ta3').value; var height = document.getElementById('ta4').value; var temperature = document.getElementById('ta5').value; var pressure = document.getElementBy...
/* MIT License Copyright (c) 2019 <NAME> (<EMAIL>), <NAME> 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...
/* * Author: National Research Council Canada * Website: http://www.nrc-cnrc.gc.ca/eng/rd/ict/ * * License: MIT * Copyright: Her Majesty the Queen in Right of Canada, as represented by * the Minister of National Research Council, 2017 */ const { ArgumentParser } = require('argparse'); const fs = require('fs'); c...
var utils = require('./utils'), min = utils.min, max = utils.max, sin = Math.sin, cos = Math.cos, PI = Math.PI, round = Math.round, PIx2 = PI * 2, tmpl = utils.tmpl, capValue = utils.capValue, getValueBounds = utils.getValueBounds, calculateScale = utils.calculateScale, c...
"use strict"; var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _react = _interopRequireWildcard(require("react")); var _reactDom = _interopRequireDefault(require("react-dom")); var _propTypes = _interopRequireDefault(require("prop-types")); var _tweenFunctions = _in...
/* * Author:wistn * since:2019-09-12 * LastEditors:Do not edit * LastEditTime:2021-01-21 * Description: */ class SdNode { constructor(source) { this._dtype = 0; this._btype = 0; this.attrs = new SdAttributeList(); this.name = null; // 节点名称 this.key = null; // 自定义关键字 ...
'use strict'; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _fs = require('fs'); var _fs2 = _interopR...
/** * Оборачивает в себе объект PDFJS библиотеки jspdf.js. * Загружает pdf-фалы и преобразовывает страницы в base64 * @class */ function HronPDF () { this.doc; this.numPages = 0; this.arrPage = []; var self = this; this.funError; this.startPDF = function (url, fun) { this.doc = undefined; this.arrPage =...
var Pool = require('./Pool'); var PoolConfig = require('./PoolConfig'); var PoolNamespace = require('./PoolNamespace'); var PoolSelector = require('./PoolSelector'); var Util = require('util'); var EventEmitter = require('events').EventEmitter; var proxyMysqlDeadlockRetries = require('node-mysql-...
// Shortcuts for [[Class]] & property names var OBJECT = 'Object' , FUNCTION = 'Function' , ARRAY = 'Array' , STRING = 'String' , NUMBER = 'Number' , REGEXP = 'RegExp' , DATE = 'Date' , MAP = 'Map' , SET =...
/* eslint-disable-file react/jsx-no-target-blank */ import React, { useState, useEffect } from "react"; import Highlighter from "react-highlight-words"; import styled from "styled-components"; import { convertToTraditionalChinese } from "zh_cn_zh_tw"; import "./App.css"; import Card, { CardSection } from "@kiwicom/orbi...
/****************************************************************************************//** * \file javascript.js * * \brief The javascript for the BMLTPlugin class. * This file is part of the BMLT...
// grab.js // examples // // Created by <NAME> on May 1, 2015 // Copyright 2015 High Fidelity, Inc. // // Grab's physically moveable entities with the mouse, by applying a spring force. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/license...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s....
import React, {useEffect, useState} from 'react' import axios from 'axios' import { connect } from 'react-redux' import { Link, withRouter } from "react-router-dom"; import Spinner from '../isLoading/spinner'; import { Typeahead } from 'react-bootstrap-typeahead'; import Select from 'react-select'; import { Form, Col, ...
import React, { Component } from 'react'; import * as PropTypes from 'prop-types'; import { connect } from 'react-redux'; import * as R from 'ramda'; import { interval } from 'rxjs'; import List from '@mui/material/List'; import ListItem from '@mui/material/ListItem'; import ListItemAvatar from '@mui/material/ListItemA...
/* artifact generator: C:\my\wizzi\v5\apps\node_modules\wizzi-js\lib\artifacts\js\module\gen\main.js primary source IttfDocument: c:\my\wizzi\v5\apps\wizzi-app\wizzi\ittf\src\components\routes\wizzijob.js.ittf utc time: Sat, 06 Oct 2018 05:59:03 GMT */ 'use strict'; import React from 'react'; import PropTyp...
import { Checkbox, Form, Input, MarkdownInput, SubmitButton } from './form' import TextareaAutosize from 'react-textarea-autosize' import { InputGroup, Modal, Form as BForm, Col } from 'react-bootstrap' import * as Yup from 'yup' import { useEffect, useState } from 'react' import Info from '../svgs/information-fill.svg...
/* * GridManager: 右键菜单 * */ import { jTool } from './Base'; import Cache from './Cache'; import I18n from './I18n'; import Export from './Export'; import AjaxPage from './AjaxPage'; import Config from './Config'; class Menu { // 唯一标识名 get keyName() { return 'grid-master'; } init($table) { let settings = Cach...
import React, {Component} from 'react'; import { BrowserRouter as Router, Route, Link, Switch } from 'react-router-dom'; var ReactToastr = require("react-toastr"); var {ToastContainer} = ReactToastr; var ToastMessageFactory = React.createFactory(ReactToastr.ToastMessage.animation); import cheerio from 'cheerio...
const { Pool } = require('pg') const isProduction = process.env.NODE_ENV === 'production' var moment = require('moment-timezone'); /** * FIXME: */ // const pool = new Pool({ // connectionString: 'postgres://ffawhzuijsjckv:200cbf24087870f4dc18b026b030<EMAIL>fb3d<EMAIL>c01911ad<EMAIL>b8a3f<EMAIL>:5432/d3iabl5nmo...
/* eslint no-param-reassign: 0, no-plusplus: 0, no-else-return: 0, consistent-return: 0 */ // We use the same algorithm to attach comments as recast const assert = require("assert"); const prettier = require("prettier"); const { concat, lineSuffix, hardline } = prettier.doc.builders; const { skipWhitespace } = pretti...
import React, { Component } from 'react' import { Text, View, StyleSheet, Image, ScrollView, ActivityIndicator, ImageBackground, StatusBar, TouchableOpacity, Modal, Button, Dimensions } from 'react-native' // create a component class ShareAlert extends Component { re...
/* */ const theTextArea = document.getElementById("theTextArea"); const pauseButton = document.getElementById("thePauseButton"); const theSettingsButton = document.getElementById("theSettingsButton"); const theSettingsDropdown = document.getElementById("Settings"); let StoredData = { closeOnComplete: { /* SETTING...
/* GENERATED FILE */ import { html, svg, define } from "hybrids"; const PhLightningSlash = { color: "currentColor", size: "1em", weight: "regular", mirrored: false, render: ({ color, size, weight, mirrored }) => html` <svg xmlns="http://www.w3.org/2000/svg" width="${size}" height="${siz...
var keys = require("@nathanfaucett/keys"), clamp = require("@nathanfaucett/clamp"), isNaNPolyfill = require("@nathanfaucett/is_nan"); var mathf = exports, NativeMath = global.Math, hasFloat32Array = typeof(Float32Array) !== "undefined", NativeFloat32Array = hasFloat32Array ? Float32Array : Array...
$(document).ready(function() { var options = { beforeSubmit: showRequest, success: showResponse, }; $("#crear_evento").ajaxForm(options); $('#hora').inputmask({'mask':'99:99:99'}); $.validator.addMethod('alpha', function(value, element) { return /^[a-zA-Z]*$/.test(value); }, 'Alpha Characters Only.' ...
/* * Copyright (c) 2018, Two Sigma Open Source * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list of...
let _TEMP = null; let _TEMP2 = null; const PI2 = Math.PI * 2; /** * 只有两列数据的3x3矩阵。反正最后一列是固定的 */ export default class Matrix3 { constructor(array = new Float32Array(9)) { this._array = array; this.identity(); } /** * 是否是一个单位矩阵。 * 有时候判断这6个数比乘一次矩阵要快很多 */ isIdentity() { ...
import React, { Component } from 'react'; import { Button,Container, Row, Col, Form, Image } from 'react-bootstrap'; import CircularProgress from '@material-ui/core/CircularProgress'; import toastr from 'toastr'; import ArrowBackIosIcon from '@material-ui/icons/ArrowBackIos'; import { Link } from 'react-router-dom'; im...
// 判断是否有 requestAnimationFrame 方法,如果没有则模拟实现,浏览器兼容的考虑 window.requestAnimFrame = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function(callback) { window.setTimeout(callback, 1000 / 30); }; ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; function _UniversalDisposable() { const data = _interopRequireDefault(require("../../../../../nuclide-commons/UniversalDisposable")); _UniversalDisposable = function () { return data; }; return data;...
import React from 'react'; import PropTypes from 'prop-types'; import { Grid, Button, Typography } from '@material-ui/core'; import { withStyles } from '@material-ui/core/styles'; import { connect } from 'react-redux'; import axios from 'axios'; import { increaseLoadedItems } from '../../store/actions'; import Filter ...
/* * KodeBlox 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...
import { OO } from "../../globals"; import appConfig from "../config"; // <nowiki> // Value for indtertimate progress per https://doc.wikimedia.org/oojs-ui/master/js/#!/api/OO.ui.ProgressBarWidget const indeterminateProgress = false; class TaskItem { /** * * @param {Object} config * @param {String} config.tas...
const PLAYER_ONE = 1 const PLAYER_TWO = 2 const EMPTY = 0 const DEFAULT_BOARD = '0'.repeat(81).split('').map((x) => parseInt(x)) const DEFAULT_WON_BOARDS = '0'.repeat(9).split('').map((x) => parseInt(x)) class Game { board = [] constructor({ board = DEFAULT_BOARD, wonBoards = DEFAULT_WON_BOARDS, turn = P...
var imgs = []; var imgIndex = -1; var img; var paint; var subStep = 800; var z = 0; var isStop = false; function preload() { imgs[0] = loadImage("img/MaxHeadshotBW.jpg"); } function setup() { createCanvas(windowWidth, windowHeight); img = createImage(width, height); nextImage(); paint = new Paint(createVect...
//SECCIÓN DE CUADRADOS console.group("Cuadrados"); function perimetroCuadrado(lado) { let perimetro = lado * 4 return perimetro } function areaCuadrado(lado) { let area = lado * lado return area } //Esto limpia el cambas cuando modifiques la figura function limpiar(canvas) { const ctx = canvas.getContext...
/* * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. */ // This code is adapted from // https://rawgit.com/Miguelao/demos/master/mediarecorder.html 'use...
/* * Copyright © 2015 <NAME> (<EMAIL>) * * 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 agr...
/* * == BSD2 LICENSE == * Copyright (c) 2014, Tidepool Project * * This program is free software; you can redistribute it and/or modify it under * the terms of the associated License, which is identical to the BSD 2-Clause * License as published by the Open Source Initiative at opensource.org. * * This program ...
require("babel-polyfill"); var CryptoWaifusMarket = artifacts.require("./CryptoWaifusMarket.sol"); var expectThrow = async function (promise) { try { await promise; } catch (error) { // TODO: Check jump destination to destinguish between a throw // and an actual invalid jump. const invalidOp...
/* Copyright 2019 Romain "Artefact2" <NAME> <<EMAIL>> * * 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 applica...
var xlsx_helper_download = function (type, filename, data) { //console.log(filename); //var elt = document.getElementById('data-table'); //var wb = XLSX.utils.table_to_book(elt, {sheet: "Sheet JS"}); var wb = XLSX.utils.book_new(); if (Array.isArray(data)) { var ws = XLSX.utils.json_to_she...
var canvas = document.getElementById("canvas") var ctx = canvas.getContext("2d") canvas.width = window.innerWidth canvas.height = window.innerHeight var canvas2 = document.getElementById("canvas2") var ctx2 = canvas2.getContext("2d") canvas2.width = window.innerWidth canvas2.height = window.innerHeight var time_step ...
import React, { Component } from "react"; import { graphql } from "react-apollo"; import { Form, FormGroup, Button } from "patternfly-react"; import some from "lodash.some"; import { Validate, ValidateAny, Validators } from "../../helper/Validators"; import { DataSourcesDropDown } from "./DataS...
// Vars for the Bio Page var HTMLheaderName = '<h1>%data%</h1>'; var HTMLheaderRole = '<span id="role" class="white-text">%data%</span><hr>'; var HTMLbioStart = '<div class="bio-entry %column%"></div>'; var HTMLlinkedIn = '<div class="biopic-container"><a target="_blank" href="https://www.linkedin.com/in/%linkedin%">'...
var templates = { newTemplate: function () { var groups = $.datastore.groups; var select = $('#groupsdropdown'); for (var i = 0; i < groups.length; ++i) { select.append('<option></option>'); var option = select.find('option').last(); option.val(groups[i]....
/** * * EditNote * */ import React from 'react'; import PropTypes from 'prop-types'; import PopupMessage from '../PopupMessage'; import SvgWrapper from '../SvgWrapper'; import NoteVerseText from '../NoteVerseText'; class EditNote extends React.PureComponent { // eslint-disable-line react/prefer-stateless-functio...
/* SDK with the server All communications with server MUST be performed through this SDK (c) <NAME> 2020 */ /* * Websocket layer - internals */ var api_ws; // Flag - is the websocket authenticated // Note: the websocket MUST authenticate as soon as it connects - that's // important to receive p...
import a from "@swc/helpers/lib/_define_property.js"; import b from "@swc/helpers/lib/_object_spread.js"; import c from "@swc/helpers/lib/_object_spread_props.js"; import d from "@swc/helpers/lib/_object_without_properties.js"; import e from "@swc/helpers/lib/_to_consumable_array.js"; import f from "algoliasearch-helpe...
'use strict'; const path = require("path"), fs = require("fs"), mime = require("mime"), pathToRe = require("path-to-regexp"), serveStatic = require("serve-static"); const log = requireRoot("./log"); function fspromise(f) { return function(...args) { return new Promise((ok, no) => f.call(fs, ...args, (err...
var toggle_audio = true var toggle_audio_volume = 0.5 function toggleAudio(){ if(toggle_audio){ toggle_audio = false toggle_audio_volume = 0 getE('sonido-btn').className = 'sonido-off' }else{ toggle_audio = true toggle_audio_volume = 0.5 getE('sonido-btn').classNa...
import _ from 'lodash'; import moment from 'moment-timezone'; // a lenient JSON parser import relaxedJson from 'relaxed-json'; // our simple geolocation object library import GeoLocation from '../geoLocation'; import Park from '../park'; // move this outside the class as it's just a convenience class and doens't need ...
/* @flow */ import React from "react"; import { StyleSheet, Dimensions, Text, FlatList, Image, View, TouchableOpacity, Alert } from "react-native"; import { Card } from 'react-native-shadow-cards'; import GestureRecognizer, {swipeDirections} from 'react-native-swipe-gestures'; import { c...
import React, { useState, useContext, useImperativeHandle, forwardRef, useRef } from 'react'; import { useIntl, FormattedMessage } from 'react-intl'; import dayjs from 'dayjs'; import { useTheme } from '@mui/material/styles'; import useMediaQuery from '@mui/material/useMediaQuery'; import Paper from '@mui/material/Pap...
export const TYPES_ENUM = { i8: 'i8', ui8: 'ui8', ui8c: 'ui8c', i16: 'i16', ui16: 'ui16', i32: 'i32', ui32: 'ui32', f32: 'f32', f64: 'f64' } export const TYPES_NAMES = { i8: 'Int8', ui8: 'Uint8', ui8c: 'Uint8Clamped', i16: 'Int16', ui16: 'Uint16', i32: 'Int32', ui32: 'Uint32', f32: 'F...
/* * domready * https://github.com/alanclarke/domready.js * logic stripped from https://github.com/jquery/ * Copyright (c) 2012 <NAME> * Licensed under the GPL license. */ function domready(callback){ var self = this; self.readyWait = 1; // The ready event handler and self cleanup method self.DOMConten...
/** * bitshare-api关闭连接问题 * bitshare-api获取交易成功推送问题 * 模块化问题 * 交易结果统计改进 */ const common = require('./tools/common'); const logger = common.getLogger('robot'); const binanceAPI = require('./tools/binance'); const bitsharesAPI = require('./tools/bitshares'); const mongodbAPI = require('./tools/mongodb'); logger.level =...
import { queue, options, call } from './core'; import { alert, StatusType } from './alert'; $.fn.formSubmit = function (success, error) { var form = this; var data = new FormData(this[0]); var submit = form.find('[js-submit=true],[type=submit]').attr('disabled', 'disabled'); var ico...