text
stringlengths
3.07k
16k
const async = require('async'); const authorValidation = require('./authorValidation'); const Author = require('../models/author'); const Book = require('../models/book'); // list of all authors exports.authorList = function (req, res, next) { Author.find() .exec((error, authorList) => { if (error) { ...
const web3 = require('web3') const truffleAssert = require('truffle-assertions') // Contract artifacts. const KeyHolderLibrary = artifacts.require('./identity/KeyHolderLibrary.sol') const ClaimHolderLibrary = artifacts.require('./identity/ClaimHolderLibrary.sol') const TalaoToken = artifacts.require('TalaoToken') cons...
$(document).ready(function () { var page = null; getTopicsFilter(page); $(document).on('click', '.pagination a',function(event) { event.preventDefault(); $('li').removeClass('active'); $(this).parent('li').addClass('active'); var myurl = $(this).attr('href'); var p...
/** tipiX - TIme PIcture eXplorer * * Copyright (c) 2013 TIPIX <<EMAIL>> * * tipiX is licensed under the MIT License: * http://www.opensource.org/licenses/mit-license.php * * See LICENSE file for more information * * Author: <NAME>, http://www.mit.edu/~adalca/ */ $(document).ready(function(){ ...
import * as React from "react" // import Layout from '../components/Layout' // import Footer from '../../components/Footer' // import Navbar from '../../components/Navbar' // import GalleryMenu from '../../components/GalleryMenu' import { Link } from 'gatsby' // import ScrollAnimation from 'react-animate-on-scroll' // ...
'use strict'; var util = require('util') , EE = require('events').EventEmitter , stringifyMsg = require('./lib/stringify-msg') , runnel = require('runnel') function inspect(obj, depth) { return require('util').inspect(obj, false, depth || 5, true); } module.exports = Images; /** * ...
import * as sm from './sketch-model' import {Matrix3, AXIS, ORIGIN} from '../../../math/l3space' import Vector from '../../../math/vector' import {Graph} from '../../../math/graph' import * as math from '../../../math/math' import {HashTable} from '../../../utils/hashmap' class SketchGeom { constructor() { this...
'use strict'; const request = require('superagent'); const extractor = require('unfluff'); const URL = require('url-parse'); const _ = require('lodash'); const constants = require('./cookie.json'); const validator = require('validator'); const async = require('async'); const fs = require('fs'); const sizeOf = require...
'use strict'; const jwt = require('jsonwebtoken'); const uuid = require('uuid/v4'); var AWS = require('../aws/aws-config').AWS; // The access tokens. // You will use these to access your end point data through the means outlined // in the RFC The OAuth 2.0 Authorization Framework: Bearer Token Usage // (http://tool...
const compile = require('./compile'); const linker = require('solc/linker'); const web3 = require('./eth'); const txData = require('./tx'); const jsonfile = require('jsonfile'); const path = require('path'); const fs = require('fs'); function Contract(name, source = '', abi = '', byteCode = '', address = '') { th...
import ptrx from 'path-to-regexp'; import _ from 'lodash'; import { getProduct, addProducts, updateProducts, getCate } from '../services'; import { fieldsChange } from '../../../utils/ui'; import { upload } from '../../../utils'; import { message } from 'antd'; const source = window.config.source; const INIT_STATE = ...
import React from "react"; import photosRats from '../photosRats.json'; import ratsJson from "../rats.json"; class SpecialEnding extends React.Component { constructor(props) { super(props); this.text = [] this.offLimitRats = [props.finalRat] this.beginningRatPool= props.beginningRatPool this.pho...
$(document).ready(function () { setHeights(); loadPresentations(); }); let profilePictures = [ 'https://media.istockphoto.com/photos/millennial-male-team-leader-organize-virtual-workshop-with-employees-picture-id1300972574?b=1&k=20&m=1300972574&s=170667a&w=0&h=2nBGC7tr0kWIU8zRQ3dMg-C5JLo9H2sNUuDjQ5mlYfo=',...
import React, { useState } from "react"; import { Backdrop, Button, CircularProgress, Paper, Typography, IconButton, } from "@material-ui/core"; import CloseIcon from "@material-ui/icons/Close"; import { Form, CustomField } from "../FormElements"; import { getFormElement } from "../../utils.js"; import { m...
var expect = require('chai').expect var _ = require('../lib/utils') describe('utils', function () { describe('now', function () { it('should be return a timestamp', function () { expect(_.now()).to.be.a('number') }) }) describe('isObj', function () { it('should be a plain object', function () ...
var bitcoin = require('bitcoinjs-lib') var Chain = require('chain-node') var qr = require('qr-encode') function PaymentChannel (options) { this.network = bitcoin.networks[options.chain.blockChain] this.chain = new Chain(options.chain) this.fee = options.fee || 1000 this.tickAmount = options.tickAmount || 600 }...
import React, { useEffect, useState } from 'react' import cytoscape from 'cytoscape' import cola from 'cytoscape-cola' import elk from 'cytoscape-elk/src' import nodeHtmlLabel from 'cytoscape-node-html-label' import { useStore } from '../../../hooks/useStore' import GraphCard from './GraphCard' import './styles.scss' ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototy...
const express = require('express'); const app = express(); const path = require('path'); const httpProxy = require('http-proxy'); const bodyparser = require("body-parser"); const cookieparser = require("cookie-parser"); const mongoose = require("mongoose"); mongoose.connect("mongodb://admin:<EMAIL>:19698/pinterest");...
import React, { useState, useEffect, useRef } from 'react'; import { useSelector, useDispatch } from 'react-redux'; import { FORM_DATA } from '../../constants'; import Switch from 'react-switch'; import { withMoltoItClient } from './../apiHOCs'; import ModalCode from './ModalCode'; import { useToast } from '@chakra-ui/...
/** * Copyright 2017 IBM Corp. 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 applica...
import React, { useState, useEffect } from 'react'; import { View, Text, TextInput, TouchableOpacity, Image, Dimensions, ScrollView, ActivityIndicator, Alert } from 'react-native'; import { useSafeAreaInsets } from 'react-native-safe-area-context'; import { FontAwesomeIcon } from '@fortawesome/react-native-fontawesome'...
class Plant { constructor(id, is_alive = false) { this.id = id; this.alive = is_alive; } } class Garden { constructor(initial_state, spread_rules) { this.garden = {}; this.spread_rules = {}; this.parseStateAndSetGarden(initial_state); this.parseSpreadRulesAnd...
import Phaser from "phaser"; import good_chair from "../../assets/minigames/furniture2/good_chair.png"; import wobbly_chair from "../../assets/minigames/furniture2/wobbly_chair.png"; import tall_chair from "../../assets/minigames/furniture2/tall_chair.png" import gray from "../../assets/minigames/furniture2/gray.jpg" i...
const { assert } = require("chai"); //const { parseToken } = require("ethers/lib/utils"); const { ethers, env, mangrove, network } = require("hardhat"); const lc = require("lib/libcommon.js"); const chalk = require("chalk"); async function execPriceFedStrat(makerContract, mgv, reader, lenderName) { const dai = await...
export * from './queue' export const pathFor = (function (root){ return (path) => path && root == "/" ? path : [root, path].filter(p => p).join("") })((process.env.APP_ROOT).trim()) export function compareStrings(a, b, field, direction){ const valA = ( a.attributes[field] || "" ).toString().toUpperCase() const ...
import { useState, useRef, useEffect } from 'react'; import { Hidden, Row, Col } from 'react-grid-system'; import { Link, NavLink, useHistory } from 'react-router-dom'; import { AnimatePresence, motion } from 'framer-motion'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faBars, faT...
import React, {Component} from 'react'; import classnames from 'classnames'; import { FieldSet, SubmitButton, Button, ButtonList, Input, Select, Option, Checkbox, Textarea, Datetime, TagList, Title, Form } from '../../react-components/form'; import PublicPost from '...
/** * Script to check node-google-shared-locations module. * Usage: * node check.js <googleAccountEmail> <googleAccountPassword> * # Save cookies and use it for next call * node check.js <googleAccountEmail> <googleAccountPassword> --save * node check.js <googleAccountEmail> --load --save * # How...
import React, {useState } from 'react'; import { useDispatch } from 'react-redux' import styles from './Clients.module.css' // import moment from 'moment' import PropTypes from 'prop-types'; import { makeStyles, useTheme } from '@material-ui/core/styles'; import Table from '@material-ui/core/Table'; import TableBody fr...
import React, { useEffect, useState, useContext, useRef } from "react"; import FAQ from "./Faq"; import axios from "axios"; import { ToastContainer } from "react-toastify"; import AuthContext from "../../context/AuthContext"; const ResumeUpload = ({ setNewResumeUploaded, hasResume, notify, setResumeUploadComp,...
/* --- src/pencil-common.js --- */ var PencilComponent = {}; function extend(child, parent) { var F = function () { }; F.prototype = parent.prototype; child.prototype = new F(); child.prototype.constructor = child; child.superclass = parent.prototype; } /* --- src/pencil-paintPanel.js --- */ ...
import React from 'react'; import Grid from '@mui/material/Grid'; import Box from '@mui/material/Box'; import Container from '@mui/material/Container'; import Link from '@mui/material/Link'; import Typography from '@mui/material/Typography'; import { useTheme } from '@mui/material/styles'; import { useMediaQuery } from...
#!/usr/bin/env -u <!-- node // --><title>Quinify</title><body style="white-space: pre-wrap"><script> //Copyright 2018 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 // // ht...
'use strict'; const sqlite3 = require('sqlite3'); const md5 = require('md5'); const logger = require('../logger'); const escapedField = function( value ) { if ( typeof value === 'string' ) { return '"' + value + '"'; } return value; }; const toWhereClause = function( predicate ) { const clauses...
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); } function _iterableToArrayLimit(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) { ...
const { NlpManager, NerManager } = require('node-nlp'); const compromise = require('compromise'); const natural = require('natural'); const manager = new NlpManager({ languages: ['en'], ner: { threshold: 1 }, }); const nerManager = manager.container.get('ner'); const Questions = require('./Questions.json'); const nam...
/* Copyright (c) 2021 <NAME>. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following dis...
import React, { Component, Fragment } from "react"; import calendarCard from "./style.module.less"; import { withRouter } from "react-router-dom"; import { inject, observer } from "mobx-react"; import { Tooltip } from "antd"; import helper from "utils/helper"; @inject((stores) => ({ showCalendarCard: stores.c...
var resultMesage={ sucess:"success", sucessMsg:"操作成功" }; var pb={ pageSize:10, pageNum:1, list:[] }; var defaultFunction=function(data){}; var disabledFunction=function(data){ $("input[type=text]").attr("disabled",true); $("select").attr("disabled",true); $('form textarea').attr("disabled",true); }; var d...
var fs = require( 'fs-extra' ); fs.mkdirpSync( './data' ); var path = require( 'path' ), when = require( 'when' ), nodefn = require( 'when/node' ), _ = require( 'lodash' ), Datastore = require( 'nedb' ), getPath = function( name ) { return path.join( process.cwd(), 'data', name ) + '.db'; }, orglist = wrap( n...
import React, { Component } from 'react' import { connect } from 'react-redux' import { Table, Tag, Button, Row, Col, Input, Icon } from 'antd' import { Link } from 'react-router-dom' import styled from 'styled-components' import { fetchStaff, deleteStaff } from '../../actions/staffActions' import LinkDetail from '../...
import React from "react" import { Link, StaticQuery, graphql } from "gatsby" import Img from "gatsby-image" import styled from "styled-components" import Icon from "../components/layout/Icon" import { ICONS } from "../theme/Icons" import { device } from "../theme/breakpoints" import NumberOfReviews from "../component...
import Swal from 'sweetalert2'; import Nilai from '../../data/nilai'; import CONFIG from '../../global/config'; import UrlParser from '../../routes/url-parser'; import FullLoadingInitiator from '../../utils/full-loading-initiator'; import NilaiHelper from '../../utils/nilai-helper'; import { createPelajaranEmptyTempl...
var http = require('http') fs = require('fs') async=require('async') levelup = require('levelup') leveldown = require('leveldown') Ractive = require('ractive') Ractive.DEBUG = false; storage_dir = process.env.S3_STORAGE_PATH || '/storage'; console.log('[s3] storage dir is', storage_dir ) database = { buckets: lev...
import yo from 'yo-yo' import {pluralize} from '../../../../lib/strings' import {emit} from '../../../lib/event-handlers' import createMd from '../../../../lib/markdown' // exported api // = export function renderHome (opts) { const { archiveInfo, currentDiff, readmeMd, workingCheckoutVersion, w...
import { Card, Button, Container } from "react-bootstrap"; import React, { useState, useEffect } from "react"; import FullCalendar from "@fullcalendar/react"; import dayGridPlugin from "@fullcalendar/daygrid"; import timeGridPlugin from "@fullcalendar/timegrid"; import moment from "moment"; import TimePicker from "reac...
/** The MIT License (MIT) Copyright (c) 2015 OpenJSLog Contributors 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, modi...
/*global Phaser*/ var game = new Phaser.Game(800, 600, Phaser.AUTO, '', { preload: preload, create: create, update: update }); var platforms; var player; var stars; var cursors; var explosion; var explosion2; var explosion3; function preload() { game.load.image('sky', 'assets/sky.png'); game.load....
import React, { useState } from "react"; import { useParams } from "react-router-dom"; import "./GroupMember.css"; import { Chip } from "@material-ui/core"; import axios from "axios"; import { BASE_URL, TOKEN } from "../../constants"; import Dialog from '@material-ui/core/Dialog'; import DialogActions from '@material-u...
import {mailbox as createMailbox} from "./mailbox" import queueMicrotask from "queue-microtask" export const INIT = "INIT" export const SUBSCRIBE = "SUBSCRIBE" export const UNSUBSCRIBE = "UNSUBSCRIBE" export const UPDATED = "UPDATED" export const SNAPSHOT = "SNAPSHOT" export const EXIT = "EXIT" export const TERMINATE ...
/** * Copyright (c) Hathor Labs and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import { t } from 'ttag'; import _ from 'lodash'; import { Image, SafeAreaView, StyleSheet, Text, ...
/* eslint-disable radix */ import Web3 from 'web3'; import { hash as namehash } from 'eth-ens-namehash'; import { push } from 'connected-react-router'; import { rns as registryAddress, rskOwner as rskOwnerAddress, registrar as auctionRegistrarAddress, } from '../adapters/configAdapter'; import { rskNode } from '....
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray"; import { createContainer } from 'unstated-next'; import { useState, useCallback, useRef, useMemo, useEffect } from 'react'; import useMergedState from "rc-util/es/hooks/useMergedState"; import { genColumnKey } from './utils'; import { noteOnce } fro...
import React from 'react' import { graphql, Link, useStaticQuery } from 'gatsby' import Img from 'gatsby-image' import styled from 'styled-components' import BackgroundImage from 'gatsby-background-image' import { GiBalloons } from 'react-icons/gi' import { ImGift, ImSpoonKnife, ImTongue } from 'react-icons/im' const ...
// var RootUrl = "https://bianlidian.test01.qcw100.com/" ; // dev var RootUrl = "https://zxssxcs.cn/"; // prod // 登录注册 var login = RootUrl + "rest/2.0/user/user/wx_login", // 登录 register = RootUrl + "rest/2.0/user/user/register", // 注册 verificationCode = RootUrl + "rest/2.0/user/user/send_sms", // 短信验证码 upload_i...
import * as THREE from '../../applications/asset_server/js/node_modules/three'; import WebGLDetector from './engine/extensions/detector2'; import DataStructureFlags31 from './data_structures/bitwise_flags_max_31'; import InputMouse from './engine/input/mouse'; const CACHE_F_ENGINE_FOV ...
/* * Mock replacement for 'irc'. */ "use strict"; const Promise = require("bluebird"); const util = require("util"); const EventEmitter = require('events').EventEmitter; let instanceEmitter, clientEmitter; const DELIM = "_DELIM_"; const instances = { // addr +"_DELIM_" + nick : Client }; function getClient(addr...
var allEvents = angular.module('allEvents', []); var eventSpecific = angular.module('eventSpecific', []); allEvents.controller('EventController', function($scope, $location, $window, $http) { $scope.events = []; $http.get('http://127.0.0.1:8081/events').then((res) => { console.log(res.data); ...
'use strict'; // Globals var itemImageSectionElem = document.getElementById('all_items'); var leftItemImageElem = document.getElementById('left_item_img'); var rightItemImageElem = document.getElementById('right_item_img'); var middleItemImageElem = document.getElementById('middle_item_img'); var leftItemCaptionElem ...
var path = require('path'); function mixin(a, b) { if (a && b) { for (var key in b) { a[key] = b[key]; } } return a; } // 由于 windows 系统中 cluster.fork() 会弹出个新窗口,所以先不打算用 cluster 了,也不打算用多线程了,就开一个好了。 // 用 cluster 的好处是,可以让多个 worker 的服务可以监听同一个端口,这样便于挂载用户自己提供 server.js 文件,同时开同一个端口没有限制...
/*jshint esnext:true */ 'use strict'; var _interopRequireDefault = require('babel-runtime/helpers/interop-require-default')['default']; var _rethinkdb = require('rethinkdb'); var _rethinkdb2 = _interopRequireDefault(_rethinkdb); var _bluebird = require('bluebird'); var _bluebird2 = _interopRequireDefault(_bluebird...
import { Box, Container, TextField, Button, Table, TableRow, Dialog, DialogActions, Typography, TableHead, TableCell, TableBody, Chip,Snackbar,Alert } from "@material-ui/core"; import { Helmet } from "react-helmet"; import { useState, useEffect } from "react"; import getUser from "../Firebase/...
var a = require("../lib/actions") var u = require("../lib/utils") var rU = require("./upgrader") var template = require("../config/template") var rD = require("./defender") var motion = require("../lib/motion") var rB = { name: "builder", type: "builder", boosts: [RESOURCE_CATALYZED_LEMERGIUM_ACID], /...
const asyncAuto = require('async/auto'); const {returnResult} = require('asyncjs-util'); const changesToRecord = require('./changes_to_record'); const keyForRecord = require('./key_for_record'); const createRecordRev = 0; const fresh = ['out_payment']; const hexAsBuffer = hex => Buffer.from(hex, 'hex'); const separat...
import React, { Fragment, Component } from 'react'; import { TextBox, Form, SectionLabel, SelectBox, Divider } from 'screens/App/shared/common/FormInput'; import { ButtonSubmit } from 'screens/App/shared/common/Button'; import styles from './AddUpdateClass.module.scss'; class AddUpdateClass extends Component...
// --------------------------------------------------- // // -------------------- Config ----------------------- // // --------------------------------------------------- // import gulp from 'gulp'; import del from 'del'; import browserSync from 'browser-sync'; import pngquant from 'imagemin-pngquant'; import gulpLoad...
'use strict'; /* Controllers */ function DashboardCtrl($scope, Tasks, Activities) { $scope.activeTasks = []; $scope.pausedTasks = []; var tasks = Tasks.query(function () { var item, task, i; for (i = 0; i < tasks.length; i += 1) { task = tasks[i]; item = { ...
'use strict'; const $ = require('jquery'); const _ = require('lodash'); class GuidelineService { constructor(opts) { this.root = opts.root; this.canvas = opts.canvas; this.dom = null; this.cxt = null; this.isActive = false; this.limitNum = opts.limitNum; this.theme = { lineColor:...
import React from "react" import Layout from "../components/Layout" import MaxWidth from "../components/MaxWidth" import ProjectFooterNav from "../components/ProjectFooterNav" import { graphql } from 'gatsby' import styled from "styled-components" import { Parser } from 'html-to-react' import "normalize.css" const ht...
/** UI_ACTIONS.js This file holds the scripts and functions for the UI that do need interaction with other services (e.g. the server). */ import * as server from "./server_requests.js"; import * as camera from "./camera.js"; import * as ui from "./ui.js"; $("#menu-toggle").on("click", function(e) { e.preventDefau...
/// <reference path="../../../../typings/angularjs/angular.d.ts"/> /** * Created by kaso on 11/6/2014. */ var app = angular.module('SupergeeksWidget.Services', []) /** * Created by kaso on 12/19/2014. */ var Gadget = function(props){ //this.make = props.make || ''; //this.model = props.model || ''; //...
var dropdownDefaultSizeText = "Chọn cỡ"; var dropdownDefaultColorText = "Chọn màu"; function collectFilterParam(){ var product_code = $('#search_product_code').val().trim(); var param = ""; if(product_code != ''){ param+= "product_code=" + product_code; } return param; } function handlePag...
export function scanForProblems(context, logError, options) { for (const img of context.querySelectorAll('img')) { if (!img.hasAttribute('alt')) { logError(new ImageWithoutAltAttributeError(img)) } } for (const a of context.querySelectorAll('a')) { if (a.hasAttribute('name') || elementIsHidden(...
/* PixelServer.js hosts the server that saves the painted pixel data and broadcasts it to all clients CREDITS <NAME> <<EMAIL>> SETUP: $ npm install RUNNING: $ npm start */ /* Port for WebSocket server to listen on */ const PORT = process.env.PORT || 3001; const MONG...
import React from "react"; import { Modal } from "antd"; import Constants from "../Constants"; class FAQEntry extends React.Component { constructor(props) { super(props); this.state = { expanded: false }; } getBody = () => { return { __html: this.props.body }; }; render() { return...
const { attachment } = require('discord.js'); const Discord = require('discord.js'); const bot = new Discord.Client(); const ms = require('ms'); const { config } = require("dotenv"); const {Client, RichEmbed, Collection} = require('discord.js') const configeration = require('./config.json') const Config ...
function miFuncion2_1_2() { var dias=["Lunes","Martes","Miercoles","Jueves","Viernes"]; var msndias=""; for (var x = 0; x < dias.length; x++) { msndias+=dias[x]+" "; } document.getElementById('e1').innerHTML=msndias; dias.push("Sábado"); // para ingresar elementos en el array dias.pu...
import './style.css'; import * as THREE from 'three'; import OrbitControls from 'orbit-controls-es6'; import map from './assets/map.svg'; /** Parse SVG */ document.querySelector('#map').innerHTML = map; let arr = []; let p = document.querySelectorAll('#map svg polygon') p.forEach((polygon) => { let pts = polygon.g...
'use strict'; const tools = require('../tools'); const CLI = require('./messages.js'); const CLICommand = require('./cliCommand.js'); const {formatValue} = require('./cliTools'); const ALIAS_STARTS_WITH = 'alias.'; /** Command iobroker state ... */ module.exports = class CLIStates ...
#! /usr/bin/env node var fs = require('fs'); var repl = require('repl'); var replHistory = require('repl.history'); var util = require('util'); var path = require('path'); var osHomedir = require('os-homedir'); var qs = require('query-string'); var JSON5 = require('json5'); var _ = require('lodash'); var chalk = requ...
require("@babel/polyfill"); import mariadb from 'mariadb'; import fs from 'fs'; let db; const USER_EXISTS_QUERY = 'SELECT login FROM users WHERE login = ?'; const USER_LOGIN_QUERY = USER_EXISTS_QUERY + ' AND password = ?'; const SELECT_ALL_USERS_QUERY = 'SELECT login FROM users'; const CREATE_USER_QUERY = 'INSERT IN...
// -------------------------------------------------- // IMPORT MODULES // -------------------------------------------------- const esLint = require( 'gulp-eslint' ); const esLintConfig = require( './.eslintrc.json' ); const gulp = require('gulp' ); const sass = require( 'gulp-sass' ); const uglify = require( 'gulp-ugl...
import { parse } from 'recast'; import get from 'lodash.get'; import { generateBasicCode, REACTDOM_IMPORT, REACT_IMPORT } from './helper'; import { ARROW_FUN, BLOCK, EXPORT, EXPR, JSX_ELEM, VARIABLE, RETURN, JSX_FRAG, FUNCTION, CLASS, IDENTIFIER, MEMBER_EXPR, } from '../../tokens'; import { getCodeInfo } f...
const crypto = require("crypto"); const { promises: fsPromises } = require("fs"); const os = require("os"); const path = require("path"); const process = require("process"); const nodeBabel = require("@rollup/plugin-babel"); const commonjs = require("@rollup/plugin-commonjs"); const json = require("@rollup/plugin-json...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.proto...
/* MODULE PANELS */ var path = require('path'); var fs = require('fs'); var vm = require('vm'); module.exports = (function(){ var id = 0; function getData(data){ return (typeof data === 'string') ? data : ''; } function getId() { return ''+(++id); }; function dataId(id, data) { return data.replace...
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof o...
const MIN_LARGURA = 11; const MAX_LARGURA = 105; const MIN_ALTURA = 2; const MAX_ALTURA = 105; const MIN_COMPRIMENTO = 16; const MAX_COMPRIMENTO = 105; const MIN_SOMA_CLA = 29; const MAX_SOMA_CLA = 200; const orderCart = (cart = null) => { if(!Array.isArray(cart)) return cart; let _cart = cart.map(item => { l...
/** * @author Ksu * @version 0.5 */ const bs58check = require('bs58check') const VERSION_BYTE = { 'P2PKH': 0, 'P2SH': 5 } // for legacy const CHARSET_INVERSE_INDEX = { 'q': 0, 'p': 1, 'z': 2, 'r': 3, 'y': 4, '9': 5, 'x': 6, '8': 7, 'g': 8, 'f': 9, '2': 10, 't': 11, 'v': 12, 'd': 13, 'w': 14, '0': ...
// Overclouds // Author: <NAME> // Latest update: 15th July 2016 // based on https://github.com/feross/webtorrent-desktop // based on https://github.com/feross/instant.io var compress = require('compression') var debug = require('debug')('overclouds.ch') var express = require('express') var http = require('http') var...
'use strict'; //store hours var hours =[]; // Length of store hours var timeLength = 15; // list of all store locations var allStores = []; //sale totals per hour var hourlyTotal = []; //table var tableElem; //form var locationForm = document.getElementById('newLocation'); //div var divEl; //Constructor for store ...
const should = require('chai').should(); const expect = require('chai').expect; const QueryBuilder = require('../../drivers/mysql/query_builder.js'); const qb = new QueryBuilder(); describe('MySQL: set()', () => { it('should exist', () => { should.exist(qb.set); }); it('should be a function', () =>...
import React from 'react'; import { Text, View, TouchableOpacity, Image, FlatList, Alert, } from 'react-native'; import { NavigationEvents } from 'react-navigation'; // Icon/Style Imports import Icon from 'react-native-vector-icons/Ionicons'; // Redux Imports import { connect } from 'react-redux'; impor...
colors = [ "#a52a2a", "#00ffff", "#008b8b", "#a9a9a9", "#006400", "#bdb76b", "#8b008b", "#556b2f", "#ff8c00", "#9932cc", "#8b0000", "#e9967a", "#9400d3", "#ff00ff", "#ffd700", "#008000", "#4b0082", "#f0e68c", "#add8e6", "#e0ffff", "#90ee90", "#d3d3d3", "#ffb6c1", "#ffffe0", "#00ff00", "#ff00ff", "#800000", "#000080", "...
/* * Copyright 2020 Green Valley Belgium NV * * 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 ag...
/* * Copyright (c) 2021, salesforce.com, inc. * All rights reserved. * SPDX-License-Identifier: MIT * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT */ import generateEventId from '@app/utils/generateEventId'; import base64UnicodeEncoder from '@app/utils/base64...
// define initial variables var width = $(window).width()-40, height = $(window).height()-80, radius = 10; // put SVG canvas into DOM tag var svg = d3.select("#network").append("svg") .attr("width", width) .attr("height", height); // main force script var force = d3.layout.force() // .gravity(.05...
import React from "react"; import { StaticQuery, graphql, Link } from "gatsby"; import styled from "styled-components"; import PropTypes from "prop-types"; import logo from "../img/logo.svg"; const Background = styled.div` background: #f6f9f2; padding-bottom: 10px; text-align: center; position: relative; `; c...
class Project { constructor(img, title, description, url, git = 'https://github.com/Atileon'){ this.title= title; // Title of project this.prImg = img; //Background image for the slide this.prUrl = url; // Url of the project this.gitUrl = git; // github url this.prDesc= description; // Short descripti...