text
stringlengths
2
1.04M
'use strict'; const assert = require('assert'); const keygen = require('../src/rsa-key-generator'); const TEST_UUID = '1234'; describe('RSA', () => { describe('normalize', () => { it('should throw TypeError when size is not a number', () => { for (const size of ['cats', '2048', {}, null]) { assert.throws(...
((window["webpackJsonp"] = window["webpackJsonp"] || []).push([["static/development/pages/sobre.js"],{ /***/ "./node_modules/@babel/runtime-corejs2/core-js/array/is-array.js": /*!***********************************************************************!*\ !*** ./node_modules/@babel/runtime-corejs2/core-js/array/is-arr...
$(document).ready(function () { // Getting references to our form and input fields const loginForm = $("form.login"); const emailInput = $("input#email-input"); const passwordInput = $("input#password-input"); // Getting references to our input validation messages const emailFeedback = $("small#email-valid...
const presetKarma = require('poi-preset-karma'); const webpack = require('webpack'); const glob = require('glob').sync; const {name} = require('./package.json'); module.exports = { // entry: glob('./src/**/*.vue'), entry: './src/index.js', filename: { js: name + '.min.js', }, sourceMap: true, html: fal...
/** * React Native Email Link * * This file supports both iOS and Android. */ import { ActionSheetIOS, Linking } from 'react-native'; import { EmailException } from './src/email-exception'; export { EmailException }; const prefixes = { 'apple-mail': 'message://', gmail: 'googlegmail://', inbox: 'inbox-gmail...
import { readdirp } from '../index.js'; const read = async (directory) => { const stream = readdirp(directory, { type: 'all' }); let i = 0; const start = Date.now(); // eslint-disable-next-line no-unused-vars for await (const chunk of stream) { i++; // Check memory usage with this line. It should be ...
/* * Blank WordPress Template v1.0 * Copyright 2019, André Canuto * * Distributed under License. * Date: Mar 14, 2019 */ console.log('🚧 bem-vindo ao tema branco! 🚧'); /* função do search */ $('#searchsubmit').click(function(e){ e.preventDefault(); $('#searchform').hasClass('active') ? $('#searchform').submi...
"use strict"; require("dotenv").config(); const { Client, Intents } = require("discord.js"); console.log("Here we go again 🕶"); const client = new Client({ intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES], }); const TOKEN = process.env.TOKEN; // When the client is ready, run this code (only once) cl...
module.exports = { usuario: 'form_usuario', senha: 'form_senha', nome: 'form_nome', enviar: 'btn btn-info' };
import React from 'react'; import { connect } from 'react-redux'; import ReviewForm from './ReviewForm'; import ListReviews from './ListReviews'; import { getSingleProductThunk } from '../store/singleProduct'; import { Button, Input, Label, Modal, Header, Image, Container, Segment, Grid } from 'semant...
define({ certainly: 'YA', autoEnabledTip: 'Tata letak otomatis diaktifkan. Widget disinkronkan dengan yang ada di {label} dan ditata secara otomatis.', autoDisabledTip: 'Klik untuk mengaktifkan tata letak otomatis.', /* eslint-disable-next-line */ customEnabledTip: 'Tata letak kustom diaktifkan. Widget yang d...
'use strict'; angular.module('AMC-web') .controller('ExamCtrl', function($scope) { $scope.hello = 'Hello World!'; } );
var endpoint = "https://jsonbox.io/box_12bd84a60a7e10896ec4"; function fetchJSON(a) { var f = new XMLHttpRequest; f.open("GET", a, false); f.send(null); return f.responseText } function isURL(a) { let url = a if (!a.startsWith("javascript:")) { return true; } else { return ...
/** * Auto-generated action file for "ApplicationInsightsManagementClient (applicationinsights-webTests_API)" API. * * Generated at: 2019-06-11T15:13:19.626Z * Mass generator version: 1.1.0 * * flowground :- Telekom iPaaS / azure-com-applicationinsights-web-tests-api-connector * Copyright © 2019, Deutsche Teleko...
import React from 'react'; import GridImage from '../GridImage.js'; import LinkItem from '../LinkItem.js' class HomeEventsPage extends React.Component{ render(){ let mob = false; if( /Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) { if(window.ma...
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import ReduxPromise from 'redux-promise'; import App from './components/app'; import reducers from './reducers'; const createStoreWithMiddleware = applyMiddleware(...
import React from 'react' const CharacterItem = ({ item }) => { return ( <div className='card'> <div className='card-inner'> <div className='card-front'> <img src={item.img} alt='' /> </div> <div className='card-back'> <h1>{item.name}</h1> <ul> ...
'use strict'; function arrayToList(array) { var list = null; for (var i = array.length - 1; i >= 0; i--) { list = {'value': array[i], 'rest': list}; } return list; } function listToArray(list) { var array = []; for (var node = list; node; node = node.rest) { array.push(node.va...
const handlePasswordChange = (e) => { e.preventDefault(); $('#snackbar').animate({height:'hide'}, 350); if($('#currentPass').val() == '' || $('#pass').val() == '' || $('#pass2').val() == '') { displaySnackbar('All fields are required'); return false; } if($('#pass').val() !== $('#pass2').val()) { ...
import { useLazyQuery, useQuery } from "@apollo/client"; import Loader from "react-loader-spinner"; import { City } from "country-state-city"; import { Box } from "@material-ui/core"; import { USERS_QUERY } from "../../graphql/queries"; import BuddiesJumbotron from "../../components/BuddiesJumbotron"; import Buddie...
import React, { PureComponent } from 'react' import PropTypes from 'prop-types' import { Form, Input, InputNumber, Radio, Modal, Cascader } from 'antd' import { Trans, t } from '@lingui/macro' import city from 'utils/city' const FormItem = Form.Item const formItemLayout = { labelCol: { span: 6 }, wrapperCol...
(function($) { "use strict"; // Start of use strict // Smooth scrolling using jQuery easing $('a.js-scroll-trigger[href*="#"]:not([href="#"])').click(function() { if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) { var target = $(this.ha...
const express = require("express"); const router = express.Router(); const controller = require("../controllers/post-controller"); router.get("/", controller.get); //router.get("/search", controller.getByNameAndPrice); router.get("/:id", controller.getById); router.post("/", controller.post); module.exports = router...
import * as React from "react" import PropTypes from "prop-types" import { Link } from "gatsby" import * as Style from "../styles/components/header.module.scss" import { gsap } from 'gsap' import { ScrollTrigger } from 'gsap/ScrollTrigger' import { AnchorLink } from "gatsby-plugin-anchor-links"; const Header = ({ site...
/* let num = document.querySelector('input#fnum') let lista = document.querySelector('select#flista') let res = document.querySelector('div#res') let valores = [] function isNumero (n) { if (Number(n) >= 1 && Number (n) <= 100) { return true } else { return false } } function inLista ...
/* * @license Hyphenopoly_Loader 2.2.0-devel - client side hyphenation * ©2018 Mathias Nater, Zürich (mathiasnater at gmail dot com) * https://github.com/mnater/Hyphenopoly * * Released under the MIT license * http://mnater.github.io/Hyphenopoly/LICENSE */ (function H9YL() { "use strict"; const d =...
import { handler } from "./index"; jest.mock("../../util/http/httpWrapper"); describe("Hello World Handler", () => { test("Says hello world", async () => { const result = await handler(); expect(result).toBe("Hello World"); }); });
/*2. Para el departamento de Construcción: A. Mostrar la cantidad de alambre a comprar si se ingresara el largo y el ancho de un terreno rectangular y se debe alambra con tres hilos de alambre. B. Mostrar la cantidad de alambre a comprar si se ingresara el radio de un terreno circular y se debe alambra con tres hil...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var version = '0.11.4'; exports.version = version; //# sourceMappingURL=version.js.map
var MemoryStore, bs, debug, __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = par...
'use strict'; import execa from 'execa'; import fs from 'fs'; import path from 'path'; import showBanner from 'node-banner'; import { checkIfConfigFileExists } from '../../utils/messages'; import { validateInstallation } from '../../utils/validate'; /** * Returns the respective file content as an array * * @param...
'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 ? "symbol" : typeof obj; ...
import React from "react"; import "./style/MainHeader.scss"; import logo from "../../images/omegaWhite.png"; import { Link, useHistory } from "react-router-dom"; import { useDispatch, useSelector } from "react-redux"; import subHeaderLogo from "../../images/omegabox_logo.jpg"; import { useLocation } from "react-router-...
'use strict'; angular.module('core').controller('AppController', AppController); AppController.$inject = ['$scope', '$state', '$stateParams', 'Authentication', 'ngDialog']; function AppController($scope, $state, $stateParams, Authentication, ngDialog) { $scope.Authentication = Authentication; prepareScopeListen...
// Google OAuth const { google } = require('googleapis') const GoogleOAuth = new google.auth.OAuth2({ clientId: process.env.GOOGLE_CLIENT_ID, clientSecret: process.env.GOOGLE_CLIENT_SECRET, redirectUri: process.env.GOOGLE_REDIRECT_URI }) module.exports = { Google: { authUrl: GoogleOAuth.generateAuthUrl({ ...
const freeton = require('../../src'); const { expect } = require('chai'); class WalletDeployer { /** * * @param {freeton.TonWrapper} tonInstance * @param {JSON} rootParameters * @param {JSON} keyPair */ constructor(tonInstance, walletParams, keyPair) { this.tonInstance = to...
import $ from 'cash-dom'; import '../scss/main.scss'; let controller; let socket; $('#url').on('keyup', e => { if (e.key == 'Enter') $('#btn-go').trigger('click'); }); $('#btn-go').on('click', async () => { socket?.close(); controller?.abort(); controller = new AbortController(); const $music = $...
'use strict'; const aws = require('@cumulus/common/aws'); const fs = require('fs-extra'); const log = require('@cumulus/common/log'); const os = require('os'); const path = require('path'); /** * the base class mixin used by all the protocol sub-classes * such as http/https/ftp/sftp/s3, etc. * * The base class mi...
export default class DimGrid { constructor(dCtx) { this.w = dCtx.w this.dCtx = dCtx } gridPadForColumnsInNumericAxis(gridWidth) { const w = this.w const type = w.config.chart.type let barWidth = 0 let seriesLen = type === 'bar' || type === 'rangeBar' ? w.config.series.length : 1 ...
/** * The examples provided by Facebook are for non-commercial testing and * evaluation purposes only. * * Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, ...
sap.ui.define(["sap/ui/webc/common/thirdparty/base/asset-registries/Icons"],function(t){"use strict";const q="insights";const s="M32 127h174v33H32v211l36-37q-5-11-3-22.5T78 293t19-7q17 0 26 14 6 8 6.5 17.5T125 335l52 51q10-4 15-3l45-99q-6-5-9-10-7-12-3-25t16-19q7-4 16-4 20 0 29 17 11 21-6 38l39 102q8-1 18 5l16-16 22.5-...
import React from 'react'; import { object } from 'prop-types'; import styles from './styles.scss'; const TeamInfo = ({ team, user }) => ( <div className={styles.TeamInfo}> <div className={styles.container}> <div> <img className={styles.TeamShield} src={team.logo} alt="Deportivo Tachira Escudo...
//# sourceMappingURL=runtime~main.e9326e02.js.map
/** * Copyright 2018, Google, Inc. * 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 i...
const Discord = require('discord.js'); const client = new Discord.Client(); const fs = require('fs'); let currentConnection = null; const hateList = ['id', 'id', 'id']; const token = 'TOKEN'; client.on('ready', () => { console.log(`Logged in as ${client.user.tag}!`); }); client.on('voiceStateUpdate', args => { ...
// Global Constants // const clueHoldTime = 1000; const cluePauseTime = 333; //how long to pause in between clues const nextClueWaitTime = 1000; //how long to wait before starting playback of the clue sequence // Global Variables // var pattern = [2, 5, 4, 3, 2, 1, 6, 4]; // keeps track of secret pattern of button pre...
const AddCliente = 'ADD_CLIENTE' const EditCliente = 'EDIT_CLIENTE' const DeleteCliente = 'DELETE_CLIENTE' const AddProveedor = 'ADD_PROVEEDOR' const EditProveedor = 'EDIT_PROVEEDOR' const DeleteProveedor = 'DELETE_POROVEEDOR' export default { AddCliente, EditCliente, DeleteCliente, AddProveedor, E...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _TimeDisplay = require('./TimeDisplay'); var _TimeDisplay2 = _interopRequireDefault(_TimeDisplay); var _ClockHours = require('./ClockHours'); var _ClockH...
var v0 = (function (v1, v2, v3){ "use strict"; var v4 = v1("./text").Mode; var v5 = v1("./csp_highlight_rules").CspHighlightRules; var v6 = v1("../lib/oop"); var v7 = (function (){ (this.HighlightRules) = v5; }); v6.inherits(v7, v4); (function (){ (this.$id) = "ace/mode/csp"; }).call(v7.prototype); (v2.Mode) = v7; }); ...
import Vue from 'vue'; import VueRouter from 'vue-router'; import { joinPaths } from '../lib/utils/url_utility'; import IndexPage from './pages/index.vue'; import TreePage from './pages/tree.vue'; Vue.use(VueRouter); export default function createRouter(base, baseRef) { return new VueRouter({ mode: 'history', ...
import _extends from "@babel/runtime/helpers/extends"; import _objectSpread from "@babel/runtime/helpers/objectSpread"; import _classCallCheck from "@babel/runtime/helpers/classCallCheck"; import _createClass from "@babel/runtime/helpers/createClass"; import _possibleConstructorReturn from "@babel/runtime/helpers/possi...
const express = require('express'); const router = express.Router(); router.use(require('./RentalRouter')); router.use(require('./UserRouter')); /* Una forma alternativa de manejar rutas públicas (sin proteger) rutas privadas (protegidas por token) es manejar dos archivos de rutas como: PublicRouter.js P...
export const COLORS = [ "black", "brown", "red", "orange", "yellow", "green", "blue", "violet", "grey", "white" ] export const value = (colors) => COLORS.indexOf(colors[0]) * 10 + COLORS.indexOf(colors[1])
// This file was procedurally generated from the following sources: // - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-gen.case // - src/dstr-binding/default/async-gen-func-decl.template /*--- description: SingleNameBinding assigns name to "anonymous" generator functions (async generator function declaration) esid: se...
'use strict'; const debug = require('debug')('zigbee-shepherd-converters:devices'); const fz = require('./converters/fromZigbee'); const tz = require('./converters/toZigbee'); const repInterval = { MAX: 62000, HOUR: 3600, MINUTE: 60, }; const coordinatorGroup = 99; const generic = { light_onoff_brig...
'use strict'; angular.module('sri.controller.DataCaptured', []) .controller('DataCapturedCTRL', ['$scope', function( $scope ) { $scope.truck = $scope.truck || {}; $scope.dataCaptured = $scope.dataCaptured || {}; $scope.dataCaptured.id = 'dataCaptured'; $scope.dataCaptured.title = 'Data Captured'; var c...
import React from 'react'; import styled from 'styled-components'; const Title = styled.div` font-family: 'Pacifico', cursive; font-size: 3.5em; color: chocolate; `; export default Title;
var XXX = function (nums1, nums2) { function findCenterNumber(nums) { return nums.length > 1 ? nums.length % 2 === 0 ? (nums[nums.length / 2] + nums[nums.length / 2 - 1]) / 2 : nums[(nums.length - 1) / 2] : nums[0]; } if (nums1.length === 0) { return findCenterNumber(nums2).toF...
import React from 'react'; import {Table, Button} from "semantic-ui-react"; const ConsigneeDashBoard = ({consignees}) => { return ( <Table striped celled compact selectable > <Table.Header> <Table.Row> <Table.HeaderCell>Company Name</Table.HeaderCell> ...
/** * Copyright (c) Microsoft. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
const preprocess = require('./preprocess'); const parse = require('./parse'); const transform = require('./transform'); const generate = require('./generate'); // 使用compose对函数进行组合 const { compose } = require('../shared'); module.exports = (...args) => { return compose(generate, transform, parse, preprocess)(...arg...
const fs = require('fs'); const path = require('path'); const yaml = require('js-yaml'); const yamlFolders = [ '_CodingChallenges', '_Courses', '_GuestTutorials', '_Streams', '_Tutorials', '_CodingInTheCabana', '_TeachableMachine', '_beginners', '_learning/ml5', '_more/faq', '_more/workflow' ]; ...
/** * @param {string} sentence * @param {string} searchWord * @return {number} */ var isPrefixOfWord = function(sentence, searchWord) { const reg = new RegExp(`^${searchWord}`) const arr = sentence.split(' ') for (let i = 0; i < arr.length; ++i) { if (reg.test(arr[i])) { return i } } return ...
import React from 'react' import PropTypes from 'prop-types' import { FaMap } from 'react-icons/fa' import { commafy } from '../../util/commafy' import { granuleListItem, granuleListTotal } from './skeleton' import { pluralize } from '../../util/pluralize' import { locationPropType } from '../../util/propTypes/locatio...
/* @flow */ 'use strict' /* :: import type {RouteConfiguration} from '../types.js' */ const glob = require('glob') const pify = require('pify') const values = require('./values.js') function listAPIs ( cwd /* : string */ ) /* : Promise<Array<string>> */ { return pify(glob)('./*/index.js', { cwd }) .then((ma...
import React from "react"; import axios from "axios"; const Sidebar = ({ admin, onClickLink, history }) => { const onLogout = () => { axios .post("api/auth/logout") .then(response => { localStorage.clear(); let redirect = "/administration"; ...
const express = require('express'); const bodyParser = require('body-parser'); const axios = require('axios'); const app = express(); app.use(bodyParser.json()); app.post('/events', async (req, res) => { /* * req ==> event properties from EventBus (Broker) * - type * - {data} */ const {type, data} = req...
import Vue from 'vue'; import sortBy from 'lodash/sortBy'; export default ( service, config = {}, ) => ({ namespaced: true, state: () => ({ itemsById: {}, ...(config.state || {}), }), getters: { get: (state) => (id) => state.itemsById[id], all: (state) => sortBy( Object.values(state.i...
import AdLoadable from './interface/AdLoadable' import AdViewable from './interface/AdViewable' import Logger from './interface/Logger' export {AdLoadable, AdViewable, Logger}
var agora = new Date() var hora = agora.getHours() console.log(`Agora são: ${hora} horas,`) if (hora < 12) { console.log('Bom dia!') } else if (hora < 18) { console.log('Boa tarde!') } else { console.log('Boa noite!') }
/** * @license * Copyright The Closure Library Authors. * SPDX-License-Identifier: Apache-2.0 */ /** * @fileoverview This file contain classes that add support for cross-domain XHR * requests (see http://www.w3.org/TR/cors/). Most modern browsers are able to * use a regular XMLHttpRequest for that, but IE 8 use...
const filters = { searchText: '', hideCompleted: false } const getFilters = () => filters const setFilters = ({searchText,hideCompleted}) => { //const {searchText,hideCompleted} = updates if (typeof searchText === 'string') { filters.searchText = searchText } if (typeof hideCompleted...
import { FETCH_WEATHER } from "../actions/index"; //Reducer for the weather data //State is an array of cities. export default function(state = [], action) { //console.log('Action received', action); switch (action.type) { case FETCH_WEATHER: //return a new state based on the current state //conca...
#!/usr/bin/env node require('node-env-file')( `${__dirname}/../.env` ) const ColumnFixture = require('../fixture/ColumnFixture') const Postgres = require('../dal/Postgres'), Moment = require('moment'), count = parseInt( process.argv[2] ), networkId = process.argv[3] Postgres.initialize() .then( ()...
var path = require('path'); var Twitter = require('twitter'); var nconf = require('nconf'); var assert = require('chai').assert; nconf.file(path.join(__dirname, '..', 'config.json')); // console.log('nconf test- ' + nconf.get('twitter_consumer_key')); // console.log('nconf test- ' + nconf.get('twitter_consumer_secret...
(function(window, videojs, undefined) { /* ======== A Handy Little QUnit Reference ======== http://api.qunitjs.com/ Test methods: module(name, {[setup][ ,teardown]}) test(name, callback) expect(numberOfAssertions) stop(increment) start(decrement) Test assertions: ok(value, [me...
/** * @license * * Use of this source code is governed by an MIT-style license */ import { SchemaState } from './schema-state' export class PostgresSchemaState extends SchemaState {}
angular.module('emojify', []); angular.module('emojify') .directive( 'emojify', [ '$log', '$timeout', 'EMOJIREG', function( $log, $timeout, EMOJIREG ) { 'use strict'; return { restrict: 'A', link: function(scope, ele...
import React from 'react'; const FormWrapper = ({children}) => ( <div style={{display: 'flex', flexDirection: 'column', alignItems: 'center'}}>{children}</div> ); export default FormWrapper;
const gulp = require('gulp'); const concat = require('gulp-concat'); const uglify = require('gulp-uglify'); const rename = require('gulp-rename'); const header = require('gulp-header'); const less = require('gulp-less'); const cssmin = require('gulp-minify-css'); const plumber = require('gulp-plumber'); cons...
var express= require('express'); var app = express(); var routes = require('./routes/routes'); var middleware = require('./middleware/middleware'); var rest = require("arest")(app); rest.addDevice('http','192.168.43.158'); middleware(app); routes(app); app.listen(8080);
import * as React from "react"; import PropTypes from "prop-types"; import { withWrapper } from "../Icon"; const Vector = React.forwardRef(({ size, color, ...props }, ref) => ( <svg width={size} height={size} viewBox="4 4 32 32" xmlns="http://www.w3.org/2000/svg" ref={ref} aria-hidden={!props...
export default function Container({ children }) { return <div className="xl:w-3/4">{children}</div> }
function form() { const forms = document.querySelectorAll('form'); const inputs = document.querySelectorAll('input'); const message = { loading: 'Загрузка...', success: 'Спасибо! Скоро мы с вами свяжемся', failure: 'Что-то пошло не так...', }; forms.forEach(item => { ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = _default; var _convertTokens = _interopRequireDefault(require("./convertTokens")); var _convertComments = _interopRequireDefault(require("./convertComments")); var _convertAST = _interopRequireDefault(require("./convert...
var interface_k_k_screenshot = [ [ "screenshotPathForFile:", "interface_k_k_screenshot.html#ab0dc4e6b76a28a89a379a0aedf5fc823", null ], [ "screenshotWithStartNode:", "interface_k_k_screenshot.html#a4bdb282931ce024aae069fc535a26bd5", null ], [ "screenshotWithStartNode:filename:", "interface_k_k_screenshot.ht...
const express = require('express'); const rateLimit = require('express-rate-limit'); const helmet = require('helmet'); const mongoSanitize = require('express-mongo-sanitize'); const xss = require('xss-clean'); const authRouter = require('./routes/authRoutes'); const storyRouter = require('./routes/storyRoutes'); const ...
import { clean } from '../utils' export default function cleanDemo(args, cb) { clean('demo', ['demo/dist'], cb) }
(function() { 'use strict'; angular .module('encurtaUrlApp') .config(stateConfig); stateConfig.$inject = ['$stateProvider']; function stateConfig($stateProvider) { $stateProvider.state('home', { parent: 'app', url: '/', data: { ...
import { getConfig } from "../../server/api/lib/config"; import Van from "../contact-loaders/ngpvan/util"; import { log } from "../../lib"; import httpRequest from "../../server/lib/http-request.js"; export const name = "ngpvan-action"; // What the user sees as the option export const displayName = () => "NGPVAN acti...
import React from 'react'; import styled from 'styled-components'; import intro from './auto-search-intro.mp4'; const VideoBox = styled.span` border: 0; display: inline-block; position: relative; border-radius: 5px; margin: 0 0 2em 0; height: 20em; width: 100%; text-align: center; background: black; ...
'use strict' describe('Modal Instance Controller', function(){ var $this; var $controller, $scope, $rootScope, $location, $scope, $rootScope, modalInstance, $q, dataService, detailItem, sharedData; var mealToDisplay = {"id":2,"name":"Bacon Cheeseburger Cauliflower Casserole","path":null,"image_path":"../.....
PR.registerLangHandler(PR.sourceDecorator({keywords:"bool bytes default double enum extend extensions false fixed32 fixed64 float group import int32 int64 max message option optional package repeated required returns rpc service sfixed32 sfixed64 sint32 sint64 string syntax to true uint32 uint64",cStyleComments:true}),...
'use strict' angular. module('artContacts'). component('artContacts', { templateUrl: 'art-contacts/art-contacts.template.html', controller: function artContactsController($http) { console.log('contacts page'); // $('#navHeader').addClass('nav-brand-section'); $('#navbarNav').addClass("collapse navbar-co...
type FBID = number; type Foo<T> = Bar<T>; type Maybe<T> = _Maybe<T, *>; export type Foo = number; type union = | {type: "A"} | {type: "B"} ; type overloads = & ((x: string) => number) & ((x: number) => string) ; type func = string => string; type D = X.Y<Z>;
const Client = require('instagram-private-api').V1; const delay = require('delay'); const chalk = require('chalk'); const _ = require('lodash'); const rp = require('request-promise'); const S = require('string'); const inquirer = require('inquirer'); const User = [ { type:'input', name:'username', message:'[>] Inse...
'use strict'; exports.__esModule = true; function createChainedFunction() { for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) { funcs[_key] = arguments[_key]; } return funcs.filter(function (f) { return f != null; }).reduce(function (acc, f) { if (typeof f !== '...
BusinessProfiles = new Mongo.Collection('businessprofiles'); BusinessProfiles.attachSchema(new SimpleSchema({ businessName: { type: String, label: "Business Name", max: 200 }, businessAddress1: { type: String, label: "Address 1", max: 200 }, businessAddress2: { type: String, la...
'use strict'; const { getService } = require('../utils'); /** * Sitemap.js controller * * @description: A set of functions called "actions" of the `sitemap` plugin. */ module.exports = { getSettings: async (ctx) => { const config = await getService('settings').getConfig(); ctx.send(config); }, up...
export default async function getCroppedImg( image, originalImg, crop, fileName, ) { const scaleX = originalImg.width / image.width; const scaleY = originalImg.height / image.height; const realCrop = { width: crop.width * scaleX, height: crop.height * scaleY, x: crop....