text
stringlengths
3.07k
16k
import styled, { keyframes } from "styled-components"; import React from "react"; const closeLeftLeg = keyframes` from { transform: rotate(-35deg) skewX(-35deg); } to { transform: rotate(90deg) skewX(35deg); } `; const closeRightLeg = keyframes` from { transform: rotate(35deg) skewX(-35deg); } ...
/** * ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v21.2.0 * @link http://www.ag-grid.com/ * @license MIT */ "use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.leng...
import { createAction, handleActions } from 'redux-actions'; import { createTypes } from '../../../../utils/stateManagment'; import { createPoly } from '../utils/polyvinyl'; import challengeModalEpic from './challenge-modal-epic'; import completionEpic from './completion-epic'; import executeChallengeEpic from './exec...
const { Container, Shape, Text } = require( 'easeljs' ), { blackKeyCornerRadius, blackKeyHeight, blackKeyWidth, blackNotes, keyCornerRadius, keyGap, keyHeight, keyWidth, TRIGGERED_KEY_BLACK, TRIGGERED_KEY_WHITE, xOffset, yOffset } = require( './constants' ); function PianoVisualizer(sta...
var isMobile = false; var orientationData = { gamma: 0, beta: 0, alpha: 0 }; var motionData = { z: 0, y: 0, x: 0, zr: 0 }; //var socket = io("https://awiclass.monoame.com:4040"); var socket = io('https://gps-250305.appspot.com/'); var temp = 0; function orientation(event) { if (event.gamma) { orientationData = { ...
import { scaleLinear, scaleLog } from 'd3-scale'; import HorizontalLine1DPixiTrack from './HorizontalLine1DPixiTrack'; import { colorToHex, dictValues } from './utils'; class HorizontalPoint1DPixiTrack extends HorizontalLine1DPixiTrack { /** * Create whatever is needed to draw this tile. */ initTile(tile) { ...
// write data to it, and it'll emit data in 512 byte blocks. // if you .end() or .flush(), it'll emit whatever it's got, // padded with nulls to 512 bytes. module.exports = BlockStream var Stream = require("stream").Stream , inherits = require("inherits") , assert = require("assert").ok , debug = process....
import React from 'react'; import withReduxFormForResponses from 'utils/withReduxFormForResponses'; import BackButton from 'components/BackButton'; import Card from 'components/Card'; import Figure from 'components/Figure'; import Form from 'components/Form'; import Link from 'components/Link'; import Multicolumn fro...
import React, {useState} from 'react' import {connect} from 'react-redux' import { useHistory } from 'react-router' import { editOrder, createOrder, editProduct } from '../store' import Button from '@material-ui/core/Button' import Box from '@material-ui/core/Box' import Typography from '@material-ui/core/Typography' ...
// Source: https://github.com/gdkraus/accessible-modal-window Author:<NAME> // jQuery formatted selector to search for focusable items var focusableElementsString ="a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabinde...
'use strict'; const Loki = require('lokijs'); const { Store } = require('../src'); describe('Store', () => { const loki = new Loki(); const collection = loki.addCollection('test', { clone: true, disableMeta: true, }); const store = new Store({ schemas: [{ name: 'Test' }], type: Store.IN_MEMOR...
$(function() { remove_editor_hover_conf(); var h = window.innerHeight; document.getElementsByTagName('body')[0].style.minHeight = h + 'px'; $('.main_container')[0].style.minHeight = h + 'px'; overflow_control($('.body_container')); var page_id = $("#page_id")[0].value; var user_id = $("#user_id")[0].val...
var url = require('url') ; var fs = require('fs'); var querystring = require('querystring'); var express = require('express'); var app = express(); var bodyParser = require('body-parser'); app.use(bodyParser.json()); // support json encoded bodies app.use(bodyParser.urlencoded({ extended: true })); // support encoded...
"use strict"; var canvas; var gl; var points = []; var colors = []; var xAxis = 0; var yAxis = 1; var zAxis = 2; var axis = 0; var theta = [ 0, 0, 0 ]; var modelViewMatrixLoc; var world_to_camera = scalem(1, 1, -1); var translation = vec3(0, 0, 0); var rotX = 0; var rotY = 0; var rotZ = 0; var ctm; var t_incremen...
import get from 'lodash/get'; import { CIVILITY_OPTIONS, NATURE_OPTIONS, WEEKS_PER_MONTH } from '@data/constants'; import nationalities from '@data/nationalities'; import { formatPrice, getBillingItemsName, getBillingItemsPrice } from '@helpers/utils'; import { formatDate } from '@helpers/date'; const getMonthlyHours ...
const { App, LogLevel } = require("@slack/bolt"); const app = new App({ token: process.env.SLACK_BOT_TOKEN, signingSecret: process.env.SLACK_SIGNING_SECRET, logLevel: LogLevel.DEBUG }); var x=0; var y=0; var aux = 2; var value = ''; var fechaunico = ''; app.message("Agregar recordatorio", async ({ payload, cont...
/** * Copyright 2013-2020 the original author or authors from the JHipster project. * * This file is part of the JHipster project, see https://www.jhipster.tech/ * for more information. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the L...
import { useState, useEffect } from 'react' import { NewPassRequest } from '../../actions/auth.actions' import useWindowDimensions from '../../components/useWindowDimensions' import { Row, Col, Typography, Form, Input, Space, Button, message } from 'antd' import image from '../../assets/changePass/changePass.svg' impor...
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })...
/****************************************************** * CLASES ******************************************************/ class Alumno { constructor(nombre, apellido, carrera, notas) { this.nombre = nombre; this.apellido = apellido; this.carrera = carrera; if (notas) { ...
const baseConfig = { duration: 2000, position: 'top-right', closeOnClick: true, opacity: 1, single: false, offsetTop: 0, offsetBottom: 0, offsetLeft: 0, offsetRight: 0, } let defaults = { ...baseConfig } let containers = {} let doc = document const COMMON_STYLES = 'width:100%;z-index:99999;position:...
var _ = require('underscore'); /** * Implementation of all common logic of a torque-layer view. * All the methods and attributes here need to be consistent across all implementing models. * * Methods are prefixed with _ to indicate that they are not intended to be used outside the implementing models. */ var Torq...
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the Lic...
import React from "react" import Layout from "../Layout/layout" import Fade from "react-reveal/Fade" import movieapp from "../../images/thumbnails/movieapp.jpg" import sortingapp from "../../images/thumbnails/sortingapp.jpg" import mernapp from "../../images/thumbnails/mernapp.jpg" import react from "../../images/skill...
function liveInfo(){ var list = document.createElement('div'); $(list).addClass('liveinfo list'); return list; } var rowIndexLive; var colIndexLive; function render_liveinfo(){ var lis = []; var cols1 = []; var cols2 = []; var cols3 = []; var cols4 = []; var cols5 = []; var cols6 = [...
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray"; import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties"; import isEqual from 'react-fast-compare'; import createConnector from '../cor...
const w = cs.window.create(1200, 720, 'Demo') const Color = cs.graphics.Color const root = getMainScriptDir() const g = w.getGraphics() const my_font = g.addTtfFont(`${root}/assets/NunitoSans-Regular.ttf`) // Note: The bundled NotoColorEmoji only has 2 glyphs for the purpose of the demo. // If you want the full emoj...
import { kea } from 'kea' import { router } from 'kea-router' import { delay } from 'lib/utils' import { Error404 } from '~/layout/Error404' import { ErrorNetwork } from '~/layout/ErrorNetwork' export const scenes = { // NB! also update sceneOverride in layout/Sidebar.js if adding new scenes that belong to an old ...
// Encapsulates the data for a Google Analytics transaction // and provides methods for serializing and committing var UrchinTransaction = function(kwargs){ //constructor that takes either dict or list that maps to this.params this.requestID = this._getUrchinRand(); if (!kwargs['items'] && !kwargs[t...
// Original file: // https://github.com/netlify/netlify-lambda/blob/master/lib/serve.js // Adapt this file to use `app` exposed by Webpack `.before` option. // These are the changes that are made: // - removed `express` package as the object `app` is passed by Webpack dev server // - replaced the parameter `static` by...
/** * @module core/helper/jsonapi-parser */ import types from 'src/core/service/utils/types.utils'; import { hasOwnProperty } from 'src/core/service/utils/object.utils'; /** * Converts a JSONApi compliant data structure into a nested object structure which suits the data entry management * of the application much ...
$(document).scroll(function() { var y = $(this).scrollTop(); if (y > 200) { $('.menu-logo-container, .home .branding-container').addClass('show'); } else { $('.menu-logo-container, .home .branding-container').removeClass('show'); } }); // ABSOLUTE IMG HEIGHT CALC /*function absoluteImgHeight() { if (window.ma...
// SET UP THE MAP var mapProjection = new ol.proj.Projection({ code: 'EPSG:3857', extent: [-20037508, -20037508, 20037508, 20037508.34] }) var geoProjection = new ol.proj.Projection({ code: 'EPSG:4326', extent: [-180, -180, 180, 180] }) var map = new ol.Map({ layers:[ new ol.layer.Tile({ source: n...
const queryString = window.location.search; const urlParams = new URLSearchParams(queryString); let donor = {}; let full_amount = (urlParams.has('amount') && !isNaN(urlParams.get('amount'))) ? parseInt(urlParams.get('amount')) : 2000; let submit_btn = document.getElementById('sq-creditcard'); let mes...
//****** Variables' declarations ******// let jsRuleTitleContent = document.getElementById("rule-title"); let jsRuleContent = document.getElementById("rule-declaration"); let jsRuleImg = document.getElementById("rule-img"); let jsLinkBackward = document.getElementById("backward"); let jsLinkForward = document.getEleme...
import chalk from 'chalk'; import program from 'commander'; import inquirer from 'inquirer'; import * as aida from '@aida/core'; import { createConfigFile, outputToFile, pathExists, resolveFromCurrentDir, getOutputPath, getConfigFilePath, readConfig, watchModels, } from './filesystem'; import initQuesti...
/* eslint-disable */ const nacl = require('tweetnacl') const argon = require('./argon2.js'); import uuid from 'uuid'; import { encodeBase58Check } from '@aeternity/aepp-sdk/es/utils/crypto'; import WebCrypto from './webCrypto'; const DERIVED_KEY_FUNCTIONS = { argon2id: deriveKeyUsingArgon2id, }; const DEFAULTS = { ...
import _ from 'lodash'; import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import { Accordion, AccordionSet, Button, Col, ConfirmationModal, ExpandAllButton, Headline, Icon, Layout, Pane, Row, } from '@folio/stripes/components'; import C...
var scrollNav = document.getElementById("scrollNav"); var scrollNavContents = document.getElementById("scrollNavContents"); var scrollBtnLeft = document.getElementById("scrollBtnLeft"); var scrollBtnRight = document.getElementById("scrollBtnRight"); var SETTINGS = { navBarTravelling: false, navBarDire...
const puppeteer = require('puppeteer'); const toArray = require('lodash.toarray'); const fontStyle = require('../../FontStyle/FontStyle'); const fontSize = require('../../FontSize/ILoveMyDNA/FontSizeLove7'); module.exports = createPreview = async (nameFile, propiedades, orderInfo) => { const name = nameFile; c...
/* Copyright 2019 Adobe. All rights reserved. This file is licensed to you 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 agre...
function shareFriend() { WeixinJSBridge.invoke("sendAppMessage", { appid: appid, img_url: imgUrl, img_width: "200", img_height: "200", link: lineLink, desc: descContent, title: shareTitle }, function(e) {}) } funct...
const path = require('path'); const emitCountMap = new Map(); const transformExtensions = /^(gz|map)$/i function getFileType(str) { str = str.replace(/\?.*/, ''); const split = str.split('.'); const ext = split.pop(); if (transformExtensions.test(ext)) { ext = split.pop() + '.' + ext; } return ext; } ...
import { Box, Card, Grid, Hidden, Typography } from "@material-ui/core" import { makeStyles } from "@material-ui/core/styles" import { graphql, StaticQuery } from "gatsby" import BackgroundImage from "gatsby-background-image" import React from "react" const useStyles = makeStyles(theme => ({ icon: { marginRight:...
import { getAsyncTypes } from '../helpers/actionType' import * as AdmClnTierService from '../services/AdmClnTierService' import {RintagiScreenRedux,initialRintagiScreenReduxState} from './_ScreenReducer' const Label = { PostToAp: 'Post to AP', } class AdmClnTierRedux extends RintagiScreenRedux { allowTmpDtl = fa...
const db = require('../config/database'); const axios = require('axios'); const dotenv = require('dotenv'); dotenv.config({ path: '.env' }); const insightsReels = require('./insights.reels'); const logger = require('../config/logger') const headers = { 'accept': 'text/html,application/xhtml+xml,application/xml;q=0...
import nem from 'nem-sdk'; class CreateMultisigCtrl { /** * Initialize dependencies and properties * * @params {services} - Angular services to inject */ constructor(Wallet, Alert, Recipient, $timeout, $state) { 'ngInject'; //// Module dependencies region //// thi...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getLicenseButtonsFile = getLicenseButtonsFile; exports.getLicenseButtons = getLicenseButtons; function _bluebirdLst() { const data = require("bluebird-lst"); _bluebirdLst = function () { return data; }; return data; }...
/* * * UserCenter * */ import React, { PropTypes } from 'react'; import { connect } from 'react-redux'; import { FormattedMessage } from 'react-intl'; import { createStructuredSelector } from 'reselect'; import Button from 'react-md/lib/Buttons/Button'; import Toolbar from 'react-md/lib/Toolbars'; import pgImg fr...
function HTMLActuator() { this.tileContainer = document.querySelector(".tile-container"); this.scoreContainer = document.querySelector(".score-container"); this.bestContainer = document.querySelector(".best-container"); this.messageContainer = document.querySelector(".game-message"); this.progres...
// fast hashing library const xxh = require('xxhashjs'); // node built-in module to start separate processes // managed by this node process. This means they will // have separate memory and processing (can run across processor cores) const child = require('child_process'); // Character custom class const Character = r...
/** * Created by tsengkasing on 12/16/2016. */ import React from 'react'; import { hashHistory } from 'react-router' import {Card, CardHeader, CardText} from 'material-ui/Card'; import LinearProgress from 'material-ui/LinearProgress' import Divider from 'material-ui/Divider'; import RaisedButton from 'material-ui/Rai...
$(function(){ getRewardNode(); var columns = [[ {field:'rewardNo',title:'编号',width:100,align:'center',sortable:true}, {field:'rewardName',title:'名称',width:100,align:'center'}, {field:'rewardTypeName',title:'类型',width:100,align:'center'}, {field:'rewardSourceName',title:'来源',width:100,align:'...
import React, { Component, Fragment } from 'react'; import { connect } from 'dva'; import { Form, Button, Modal, Input, DatePicker } from 'antd'; import router from 'umi/router'; import moment from 'moment'; import { formatMessage } from 'umi-plugin-react/locale'; import SelectForm from '@/components/SelectForm'; impor...
let Plugin = require('gulp-query').Plugin , node_path = require('path') , webpack = require("webpack") , TerserPlugin = require('terser-webpack-plugin') ; class WebpackPlugin extends Plugin { static method() { return 'webpack'; } webpackConfig() { return { //debug: true, ...
/* eslint-disable no-console */ const { Three } = require('../models/base'); const leanbodymass = require('../weights/leanbodymass'); class Propofol extends Three { // Infusion functions resetConcs(old) { // """ resets concentrations using python dictionary""" this.x1 = old.ox1; this.x2 = old.ox2; ...
import { each, max } from 'lodash'; // 中国各省的名称和在图形上的坐标 const provincePosition = { 浙江: [120.10, 29.10], 云南: [101.30, 24.14], 新疆: [85.65, 42.00], 香港: [114.18, 22.37], 西藏: [89.11, 31.10], 台湾: [120.95, 23.65], 四川: [102.89, 30.27], 陕西: [108.76, 34.11], 山西: [112.38, 37.69], 山东: [118.43, 36.17], 青海: [9...
var lconfig = require("lconfig"); var dal = require('dal'); var logger = require('logger').logger('acl'); var crypto = require('crypto'); exports.init = function(callback) { logger.debug("acl init"); var creates = [ "CREATE TABLE IF NOT EXISTS Accounts (id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, acco...
/** * The goal here is to have a minimum-viable test case here, in order to * check changes in Validator. * * Changes in Validator should ideally be checked to see if they trigger here. * * test-console reference: https://github.com/jamesshore/test-console */ var assert = require('assert') var stdout = require('...
/* jshint undef:true, unused:true, node:true */ var assert = require('assert'); var through = require('through'); var util = require('ast-util'); var recast = require('recast'); var types = recast.types; var n = types.namedTypes; var b = types.builders; var isArray = types.builtInTypes.array; var isObject = types.bui...
"use strict"; const fs = require("fs"); const path = require("path"); const gulp = require("gulp"); const glob = require("glob"); const PluginError = require("plugin-error"); const logger = require("gulplog"); const colors = require("ansi-colors"); const postcss = require("postcss"); const autoprefixer = require("auto...
// Include React as a dependency import React from "react"; import helpers from "../utils/helpers.js"; var Link = require("react-router").Link; var router = require("react-router"); var browserHistory = router.browserHistory; // Styling var textStyle = { fontFamily: "Roboto Condensed", textAlign: "center", ...
import React from 'react' import PropTypes from 'prop-types' import ReactDOM from 'react-dom' import Select from 'react-select' import TreeSelect from 'rc-tree-select' import { connect } from 'react-redux' import { withSnackbar } from 'notistack' import { postActivityToBuffer } from '../reducers/bufferZoneReducer' impo...
let debug = false // a.2.c.2.3 => a[2].c[2][3] function normalizeNumberMember (path) { return path.replace(/\.(\d+)/g, "[$1]") } function log (msg) { if (debug === true) { console.log(msg) } } function clearDescendencePath (map, mapKeys, path) { mapKeys.forEach(p => { if (p !== path && p.startsWith(p...
import React from 'react'; import PropTypes from 'prop-types'; import { noop, addClassName, removeClassName } from './utils'; const INVALID_VALUE = null; // copied from https://github.com/mzabriskie/react-draggable/blob/master/lib/utils/domFns.js export function addUserSelectStyles(doc) { if (!doc) return; let s...
import React from "react" import Card from "../card" import CardLight from "../cardLight" import NumberFormat from "react-number-format" import { IoStatsChart } from "react-icons/io5" import { PieChart } from "react-minimal-pie-chart" import { RiHeartPulseFill } from "react-icons/ri" import { GiPiercingSword, GiChecked...
import React from 'react' import clsx from 'clsx' import { Grid, Typography, Link } from '@krowdy-ui/core' import { makeStyles } from '@krowdy-ui/styles' import BuildIcon from '@material-ui/icons/Build' import { t } from '../MarkDowns/utils' import { FileDownload as FileDownloadIcon } from '../Icons' import MarkdownEle...
import { select, fork, actionChannel, take, call, put, } from 'redux-saga/effects'; import keys from 'lodash/keys'; import isEqual from 'lodash/isEqual'; import reduce from 'lodash/reduce'; import map from 'lodash/map'; import includes from 'lodash/includes'; import some from 'lodash/some'; import isEmpty f...
'use strict'; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.getThemeResolver = exports.getPluginResolver = exports.getMarkdownItResolver = exports.Comm...
// Gulp.js configuration // http://khaidoan.wikidot.com/gulp-page2 'use strict' // Build env. const os = require( 'os' ); // Source and build folders. var plat = '', oskey = os.platform(); switch ( os.platform() ) { case 'win32': // windows xampp plat = ...
import {Pos, findDiffStart, findDiffEnd} from "../model" import {fromDOM} from "../format" import {samePathDepth} from "../transform/tree" import {findByPath} from "./dompos" function isAtEnd(node, pos, depth) { for (let i = depth || 0; i < pos.path.length; i++) { let n = pos.path[depth] if (n < node.size -...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _http = _interopRequireDefault(require("http")); var _fs = _interopRequireDefault(require("fs")); var _path = _interopRequireDefault(require("path")); var _util = _interopRequireDefault(require("util")); v...
import React, { useEffect } from 'react'; import PropTypes from 'prop-types'; import { View, Text } from 'react-native'; import { connect } from 'react-redux'; import Avatar from '../../containers/Avatar'; import I18n from '../../i18n'; import styles, { ROW_HEIGHT } from './styles'; import UnreadBadge from './UnreadBa...
// When window has been opened, load all the passwords stored and put them into password table. window.addEventListener("load", async function() { await loadPasswords(); checkAccountPasswordInput(); }); /** * loads all the passwords and puts them into a table * @return {Promise} Promise returned from async f...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); 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]; } } }...
// Assignment Code var generateBtn = document.querySelector("#generate"); //function for generate password in the function write password function generatePassword() { //array for uppercase letters, lowercase letters, numbers, and special characters var specialCharacters = [ "!", "#", "$", "%", "&", "(", ")", "*", "+...
// VL Verilog Toolkit // Copyright (C) 2008-2014 Centaur Technology // // Contact: // Centaur Technology Formal Verification Group // 7600-C N. Capital of Texas Highway, Suite 300, Austin, TX 78731, USA. // http://www.centtech.com/ // // License: (An MIT/X11-style license) // // Permission is hereby granted, fr...
const TorController = require("./TorController"); const fs = require("fs-extra"); const iCrypto = require("./iCrypto"); const Logger = require("../libs/Logger.js"); const HSMap = require("./HSVaultMap"); class HiddenServiceManager{ constructor(islandConfig, appHost, appPort){ if(!islandConfig.hasOwnPrope...
//jumping off point: http://www.dreamincode.net/forums/topic/247361-simple-tic-tac-toe-using-html5-css3-and-javascript/ var player1Played = false; var playerSymbol; var squaresTaken; var squareContent; var winningCombinations; var turn = 0; var theCanvas; var emptySquares = [1,2,3,4,5,6,7,8,9]; var squaresPlayed = 0; ...
function isUrl(url) { var pattern = new RegExp('^(https?:\\/\\/)?' + // protocol '((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|' + // domain name and extension '((\\d{1,3}\\.){3}\\d{1,3}))' + // OR ip (v4) address '(\\:\\d+)?' + // port '(\\/[-a-z\\d%@_.~+&:]*)*' + // path ...
var path = require('path'); var fs = require('fs'); var plist = require('simple-plist'); var Characteristic = require('../Characteristic').Characteristic; /** * This module is intended to be run from the command line. It is a script that extracts Apple's Service * and Characteristic UUIDs and structures from Apple's...
import {protoUI} from "../ui/core"; import {bind, extend} from "../webix/helpers"; import {freeze} from "../ui/helpers"; import UIManager from "../core/uimanager"; import i18n from "../webix/i18n"; import layout from "../views/layout"; import AtomDataLoader from "../core/atomdataloader"; import IdSpace from "../core...
'use strict'; /** * Module dependencies. */ var _ = require('lodash'), path = require('path'), fs = require('fs'), errorHandler = require(path.resolve('./modules/core/server/controllers/errors.server.controller')), mongoose = require('mongoose'), multer = require('multer'), config = require(p...
'use strict' var sodium = require('chloride') var keypair = sodium.crypto_box_seed_keypair var from_seed = sodium.crypto_sign_seed_keypair var shared = sodium.crypto_scalarmult var hash = sodium.crypto_hash_sha256 var sign = sodium.crypto_sign_detached var verify = sodium.crypto_sign...
const element = document.documentElement; export class Dispatcher { constructor(element) { this.element = element; } dispatch(type, properties) { let event = new Event(type); for (let name in properties) { event[name] = properties[name]; } this.element....
'use strict' require('dotenv').config() const express = require('express') const mongoose = require('mongoose') mongoose.Promise = Promise const bodyParser = require('body-parser') const DriveEvac = require('./models/drive_evac') const WalkEvac = require('./models/walk_evac') const DEBUG = process.env.DEBUG const ...
const fs = require('fs'); const path = require('path'); const { getConfig, getTestRoot } = require('./utils'); const Codecept = require('../codecept'); const container = require('../container'); const output = require('../output'); const actingHelpers = [...require('../plugin/standardActingHelpers'), 'REST']; /** * ...
const del = require("del"), cache = require('gulp-cached'), debug = require("gulp-debug"), dts = require('dts-generator'), header = require('gulp-header'), istanbul = require('gulp-istanbul'), gulp = require("gulp"), merge = require('merge-stream'), mocha = require('gulp-mocha'), remapIstanbul = re...
jest.mock('aws-sdk') jest.mock('util') jest.mock(`${process.cwd()}/lib/LogGroup`) const GroupManager = require(`${process.cwd()}/lib/GroupManager`) const { ConfigurationError, InvalidCredentialsError } = require(`${process.cwd()}/lib/Errors`) describe(`constructor`, () => { const groupManager = new GroupManager([ ...
'use strict' /** * static files (404.html, sw.js, conf.js) */ const ASSET_URL = 'https://hunshcn.github.io/gh-proxy/' // 前缀,如果自定义路由为example.com/gh/*,将PREFIX改为 '/gh/',注意,少一个杠都会错! const PREFIX = '/' // git使用cnpmjs镜像、分支文件使用jsDelivr镜像的开关,0为关闭,默认开启 const Config = { jsdelivr: 1, cnpmjs: 1 } /** @type {RequestInit...
'use strict'; const Event = (m => m.__esModule ? /* istanbul ignore next */ m.default : /* istanbul ignore next */ m)(require('@ungap/event')); const WeakMap = (m => m.__esModule ? /* istanbul ignore next */ m.default : /* istanbul ignore next */ m)(require('@ungap/weakmap')); const WeakSet = (m => m.__esModule ? /* is...
import store from '~/store' import BackendService from "~/services/backend-service" import PrintService from '../../services/print-service' const backendService = new BackendService() const printService = new PrintService() var log = true //if (TNS_ENV === 'production') log = false const state = { // all open order...
var sys = require("sys"); var events = require('events'); exports.parse = function(options) { var promise = new events.Promise(); try { var stream = new exports.Stream(options); } catch (e) { process.nextTick(function() { promise.emitError(e); }); return promise; } var parts = {}; s...
// GLOBALS var song; // Stores the song. var size; // Stores the size of the cube. var fft; // Stores the Fast Fourier Transform's instance. var amp; // Stores the Amplitude instance of the song. var centerCube; // Stores the instance of the Cube. ...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('v...
import React from 'react'; import { render, fireEvent } from '../../../test-utils/react-testing'; import { useTable } from '../../hooks/useTable'; import { useGrouping } from '../useGrouping'; import { useExpanded } from '../useExpanded'; const data = [ { firstName: 'tanner', lastName: 'linsley', age: 29...
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import c3 from 'c3'; import { get } from '../../store'; import { translate as $t, round2, getWellsColors } from '../../helpers'; import ChartComponent from './chart-base'; import DisplayIf from '../ui/display-if'; im...
import React, { useEffect } from "react"; import asteriskImg from "./../../../static/img/team/white-asterisk.png"; import { gsap, Power4 } from "gsap"; import closeButton from "./../../../static/img/close-button.png"; import Img from "gatsby-image"; const calculateFinalImageWidth = () => { const windowWidth...
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } function _asyncT...
const helper = require('./helper') const ROOT_DIR = './.gh-pages' let list = { all: [], countries: {}, languages: {}, categories: {} } function main() { console.log(`Parsing index...`) parseIndex() console.log('Creating root directory...') createRootDirectory() console.log('Creating .nojekyll...') ...