text
stringlengths
2
1.04M
// Balloon functions function make_balloon_group() { balloon_group = game.add.group(); balloon_group.enableBody = true; } function placeBalloon(x, y){ var balloon = game.add.sprite(x, y, "balloon"); balloon.scale.setTo(0.13, 0.13); balloon_group.add(balloon); return balloon } function get_bal...
import React, { useState } from 'react'; import { Animated } from 'react-native'; import PropTypes from 'prop-types'; import styled from '../styled'; export const ImageSourceType = PropTypes.oneOfType([ PropTypes.shape({ uri: PropTypes.string, label: PropTypes.string, width: PropTypes.number, height...
import { combineReducers } from 'redux'; import mediaReducer from './mediaReducer'; import outputReducer from './outputReducer'; export default combineReducers({ mediaState: mediaReducer, outputState: outputReducer, });
import test from "ava" import { taggedSum } from "daggy" import { stringify, parse } from "../index" const DaggyType = taggedSum("DaggyType", { Yes: ["value"], No: [] }) const obj = { str: "string", num: 0, obj: { foo: "foo" }, daggy_Yes: DaggyType.Yes("lol"), daggy_No: DaggyType.No, date: new Date("T...
import Application from '../../js/Application'; import {module, inject} from '../mocks'; describe("youtubeTime filter", function () { var $filter; var youtubeTime; beforeEach(module('filters')); beforeEach(inject(function(_$filter_){ $filter = _$filter_; youtubeTime = $filter('youtubeT...
/** * Welcome to your Workbox-powered service worker! * * You'll need to register this file in your web app and you should * disable HTTP caching for this file too. * See https://goo.gl/nhQhGp * * The rest of the code is auto-generated. Please don't update this file * directly; instead, make changes to your Wor...
import Vue from 'vue' import VueRouter from 'vue-router' const Home = () => import('views/home/Home') const Category = () => import('views/category/Category') const Cart = () => import('views/cart/Cart') const Profile = () => import('views/profile/Profile') const Detail = () => import('views/detail/Detail') // 1.安装...
import React, { useState } from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { Formik } from 'formik'; import { Button, Input, styles } from '@storybook/design-system'; const MailingListFormUIWrapper = styled.div` display: flex; flex-direction: row; `; const EmailInp...
const path = require('path') const cssLoader = { loader: 'css-loader', options: { modules: { localIdentName: '[name]_[local]_[hash:base64:5]' } } } const reactSVGLoader = { loader: 'react-svg-loader', options: { jsx: true // true outputs JSX tags } } module.exports = { entry: './src/i...
const express = require("express"); const app = express(); const beers = [ { id: 1, type: "Pilsner" }, { id: 2, brand: "Carlsberg", alcoholPercentage: 4.6 }, { id: 3, expirationDate: new Date() }, ]; CURRENT_ID = app.get("/beers", (req, res) => { res.send({ data: beers }); }); app.get("/beers/:id",...
const { MessageEmbed } = require("discord.js") const pm = require("pretty-ms") const client = require("../index") module.exports = { slash: true, testOnly: false, description: "Shows the bots ping!", callback: ({ }) => { const eesfdsf = new MessageEmbed() .setTitle(`🏓 Pong!`) ....
/* ========================================================================================= File Name: globalComponents.js Description: Here you can register components globally ---------------------------------------------------------------------------------------- Item Name: Vuexy - Vuejs, HTML & Laravel Adm...
import { moduleFor, test } from 'ember-qunit'; moduleFor('controller:dashboard/vm/list', { // Specify the other units that are required for this test. // needs: ['controller:foo'] }); // Replace this with your real tests. test('it exists', function(assert) { var controller = this.subject(); assert.ok(controll...
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * @name: S12.6.3_A13; * @section: 12.6.3; * @assertion: VariableDeclaration in "var VariableDeclarationListNoIn" of for IterationStatement is allowed; * @description: Declaring variab...
import React from 'react'; import Renderer from '../../renderer'; const soldSection = (props) => { console.log(props); let getTextBlock = props.sectionDetail.blockItems.find(textBox => { if (textBox.__typename == "ContentfulTextBlock") { return textBox; } }) let getProperties = props.sectionDetail.blockItem...
/* eslint-disable multiline-ternary */ import React from 'react'; import PropTypes from 'prop-types'; import Icon from '@material-ui/core/Icon'; import IconButton from '@material-ui/core/IconButton'; import Tooltip from '@material-ui/core/Tooltip'; function MTableAction(props) { function render() { let action = ...
const initial = { page: 1, pageSize: 20, skip: 0, shouldUpdate: true, done: false, }; export default function paging(state = initial, action) { switch (action.type) { case "PAGING.INCREMENT": return { ...state, ...{ page: state.page + 1, }, }; case "PAG...
/* * Container component * All data handling & manipulation should be handled here. */ import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import PropTypes from 'prop-types'; import { addCreditTransfer, deleteCreditTransfer, getApproved...
export * from '@styled-icons/material/FreeBreakfast';
//ASR and TTS function sepiaFW_build_speech(){ var Speech = {}; Speech.Interface = {}; //Parameters and states //Common var speechLanguage = SepiaFW.config.appLanguage; var speechCountryCode = ""; Speech.getLanguage = function(){ return speechLanguage; } Speech.setLanguage = function(newLang){ speechLa...
description("createElementNS tests from mozilla, attached to webkit bug 16833"); function assert(c, m) { if (!c) testFailed(m); else testPassed(m); } function stringForExceptionCode(c) { var exceptionName; switch(c) { case DOMException.INVALID_CHARACTER_ERR: excepti...
class RecorrerConsultas { generate(resultC3D) { let codigo = resultC3D.getCodigo(); let t = resultC3D.getNextTemp(); let p = resultC3D.getSp(); let l = resultC3D.getNextLabel(); codigo.push(`\n//C3D para recorrer cosultas`); codigo.push(`void recorrerConsultas() {\n`)...
const p1 = { score: 0, button: document.querySelector('#p1Button'), display: document.querySelector('#p1Display'), }; const p2 = { score: 0, button: document.querySelector('#p2Button'), display: document.querySelector('#p2Display'), }; const resetButton = document.querySelector('#reset'); const winningSco...
/* @flow */ import React, { Component } from 'react'; import {observer} from 'mobx-react'; import {Link} from 'react-router'; import InstallInstruction from '../InstallInstruction'; import Example from '../Example'; const simpleExample = ` import t from 'flow-runtime'; const UserType = t.object({ id: t.number(), ...
// RUN THIS USING NODE // Case 1 - Small Set of Numbers var arraySize = 40; // // Case 2 - Large set of Numbers // var arraySize = 400000; var array = []; for (var index = 0; index < arraySize; index++) { var randomNumber = Math.round(Math.random() * arraySize); array.push(randomNumber); } // =================...
module.exports = [ './rescripts/yarnWorkspacesRescript', './rescripts/workerLoaderRescript', './rescripts/webpackRescript', ]
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat...
const assert = require('chai').assert; const nexline = require('../index'); describe('Iterable test', async () => { it('Nexline is iterable', async () => { const inputList = ['123', '456', '789']; const nl = nexline({ input: inputList.join('\n'), }); let count = 0; for await (const line of...
const adjectives = require("./resources/adjectives.json"); const animals = require("./resources/animals.json"); const getRandomItem = require("./shared/getRandomItem.js"); const generatePseudoWords = require("./generatePseudoWord.js"); module.exports = (format) => { let username = format.replace(/%a/g, getRandomIt...
const constants = require('./src/constants') const MeianSocket = require('./src/meian-socket') const alarmStatus = require('./src/status-decoder')() // we use this counter to delay concurrent executeCommand calls let requestRunning = 0 function MeianClient (host, port, uid, pwd, zonesToQuery, logLevel, concurrentDela...
const ErrorResponse = require("../utils/errorResponse"); const asyncHandler = require('../middleware/async') const geocoder = require('../utils/geocoder'); const Bootcamp = require("../models/Bootcamp"); // @desc Get All Bootcamps // @route Get /api/v1/bootcamps // @access Public exports.getBootcamps = asyncHandler(...
const test = require('../../playwright-test') test('basic basepaths work', async (t, page) => { await page.goto('http://localhost:5000/bp/?basepath=/bp'); t.assert(await page.$('"/index.svelte"')) }); test('dynamic basepaths work', async (t, page) => { await page.goto('http://localhost:5000/bp/?basepath=(...
export default { created () { this.extandData = {} }, }
import React from 'react'; import { Layout,Radio,Input,Icon,Tag,Modal,Button,Checkbox,Row,Col,Dropdown,Menu } from 'antd'; import Router from 'next/router'; import stylesheet from 'styles/views/guide.scss'; import stylesheet1 from 'styles/views/projectDetails.scss'; import stylesheet2 from 'styles/components/header.sc...
/* eslint-disable @typescript-eslint/no-var-requires */ /* eslint-disable @typescript-eslint/explicit-function-return-type */ const rollup = require('rollup') const ora = require('ora') const { external, globals, plugins } = require('./config') async function build({ name, input, babelConfig = {}, commonJSConfig = {...
const form = document.getElementById("control-row"); const go = document.getElementById("go"); const input = document.getElementById("input"); const message = document.getElementById("message"); // The async IIFE is necessary because Chrome <89 does not support top level await. (async function initPopupWindow() { le...
const Discord = require('discord.js'); const Member = require('../../classes/GuildMember'); const { Message } = require('discord.js'); const Client = require('../../classes/Unicron'); const BaseCommand = require('../../classes/BaseCommand'); module.exports = class extends BaseCommand { constructor() { supe...
const singleSpaDefaults = require('webpack-config-single-spa') const { merge } = require('webpack-merge') module.exports = () => { const defaultConfig = singleSpaDefaults({ orgName: 'saltire', projectName: 'knight' }) console.log(merge(defaultConfig, { devServer: { port: 9001 } })) re...
let nock = require('nock'); module.exports.hash = "1f2f2307916638a93d675fb16195e53f"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "response_type=token&grant_type=...
import ACTIVITIY_STATUS from './activityStatus' const IPCResponder = require('electron-ipc-responder') const ipcRenderer = window.require('electron').ipcRenderer class ClientIPCAdapter extends IPCResponder { constructor (ipcRenderer) { super(ipcRenderer.send.bind(ipcRenderer), ipcRenderer.on.bind(ipcRenderer)) ...
// @ts-nocheck const DetoxRuntimeError = require('../errors/DetoxRuntimeError'); const Deferred = require('./Deferred'); class Timer { /** * @param {string} description - gives more context for thrown errors * @param {number} timeout - maximal allowed duration in milliseconds */ constructor({ description...
import 'styles/globals.css'; import Head from 'next/head'; import { Provider } from 'react-redux'; import store from 'store'; import Layout from 'components/Layout'; function MyApp({ Component, pageProps }) { return ( <> <Head> <meta charSet='utf-8' /> <title>Conduit</title> </Head> ...
const router = require('express').Router(); const passport = require('passport'); const { User } = require("../../models"); router.post('/', (req, res) => { if (req.session.loggedIn) { req.session.destroy(() => { res.status(204).end(); }); } else { res.status(404).end(); } }); module.export...
/** * Trims clip, and converts to twitter video specs * Tweets clip and text status * see specs * https://developer.twitter.com/en/docs/media/upload-media/uploading-media/media-best-practices */ const path = require('path'); const fs = require('fs'); const trimVideo = require('./lib/trim/index.js'); const audioT...
import React, { Component, Fragment } from 'react'; import { makeStyles } from '@material-ui/core/styles'; import Card from '@material-ui/core/Card'; import CardActions from '@material-ui/core/CardActions'; import CardContent from '@material-ui/core/CardContent'; import Button from '@material-ui/core/Button'; import T...
'use strict'; angular.module('esn.i18n') .factory('esnI18nLoader', esnI18nLoader); function esnI18nLoader($q) { let getCatalogsPromise; return function(options) { getCatalogsPromise = getCatalogsPromise || getCatalogs(); return getCatalogsPromise .then(function(catalogs) { if (!catalogs[...
import classnames from "classnames/bind"; import PropTypes from "prop-types"; import styles from "./Card.module.css"; const cx = classnames.bind(styles); /** * Cards are used to group similar concepts and tasks together to make Envoy easier for * users to scan, read, and get things done. */ export const Card = ({ ...
import Ember from 'ember'; import ListFormController from 'ember-flexberry/controllers/list-form'; export default ListFormController.extend({ /** Property to count clicks on user button. @property clickCounter @type Number @default 1 */ clickCounter: 1, /** Property to show user message a...
/* Copyright (c) 2006-2013 by OpenLayers Contributors (see authors.txt for * full list of contributors). Published under the 2-clause BSD license. * See license.txt in the OpenLayers distribution or repository for the * full text of the license. */ /** * @requires OpenLayers/Format/XML/VersionedOGC.js */ /** *...
import { Map } from "immutable" import win from "core/window" import { authorizeRequest, authorizeAccessCodeWithFormParams, authorizeWithPersistOption, authorizeOauth2WithPersistOption, logoutWithPersistOption, persistAuthorizationIfNeeded } from "corePlugins/auth/actions" import {authorizeAccessCodeWithBas...
import variable from "./../variables/platform"; export default (variables = variable) => { const platform = variables.platform; const transparentBtnCommon = { "NativeBase.Text": { fontSize: variables.DefaultFontSize - 4, color: variables.sTabBarActiveTextColor }, "NativeBase.Icon": { ...
import { FilledAlarmOff as OutlineAlarmOff } from './FilledAlarmOff'; export { OutlineAlarmOff };
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ export * from './public-api'; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguan...
import anime from '../../../schemas/anime.schema.js'; /** * Buscar todos los animes de un genero determinado * @param {string} genre Genero el cual queremos ver los animes * @return {Array<anime>} Retorna una lista con los animes del genero proveido */ const _findAnimeByGenre = async (genre) => { try { ...
var searchData= [ ['jq8400_5fserial',['JQ8400_Serial',['../class_j_q8400___serial.html',1,'']]] ];
class x509enrollment_cx509scepenrollmenthelper_1 { constructor() { // string ResultMessageText () {get} this.ResultMessageText = undefined; // IX509SCEPEnrollment X509SCEPEnrollment () {get} this.X509SCEPEnrollment = undefined; } // X509SCEPDisposition Enroll (X509SCEPProc...
import React, { Component } from 'react'; import Input from './input'; import Content from '.content'; const INITIAL_STATE = { color: '', pluralNoun: '', adjectiveOne: '', celebOne: '', adjectiveTwo: '', nounOne: '', numberOne: '', ...
(function ($) { var _tenantService = abp.services.app.tenant; var _$modal = $('#TenantEditModal'); var _$form = $('form[name=TenantEditForm]'); function save() { if (!_$form.valid()) { return; } var tenant = _$form.serializeFormToObject(); //serializeFormToObject...
import React from 'react'; import { shallow } from 'enzyme'; import BlogPage from './index'; it('Blog-grid renders without crashing', () => { shallow(<BlogPage />); });
let acceptor = require('./acceptors/mqtt-acceptor'); // let acceptor = require('./acceptors/ws2-acceptor'); module.exports.create = function(opts, cb) { return acceptor.create(opts, cb); };
class A { foo() { return ''; } } class B extends A { bar() { return ''; } } class C { f() { var x; var a = x['foo'](); // should be string return a + x.foo() + x.notHere(); } } var r = new C().f(); var i; var r2 = i.foo.notHere(); var r2b = i.foo['foo']();...
// Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import DataDecreaseSvg from '@rsuite/icon-font/lib/legacy/DataDecrease'; var DataDecrease = createSvgIcon({ as: DataDecreaseSvg, ariaLabel: 'data decrease', category: 'legacy', displayName: 'DataDecrease' }); export d...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const path_1 = require("path"); const index_1 = require("./index"); // const ezbuyWebPath = `/Users/violin/gitlab/ezbuyWeb`; const params = { pages: [], templatePath: path_1.resolve(__dirname, "../test-data/index.html"), sitePath: ...
/* eslint-disable consistent-return */ import log from "../lib/log"; const handleCheckUpload = ({ uploaderName, maxSizeInMegabytes, mimeTypes, originalFileName, fileSize, mimeType, }) => { try { const maxSizeInBytes = maxSizeInMegabytes * 1024 * 1024; const errors = []; if (maxSizeInBytes &...
// 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
import React from "react" import Layout from "../components/Layout" import { StaticImage } from "gatsby-plugin-image" import AllRecipes from "../components/AllRecipes" import SEO from "../components/SEO" //fusionadas? export default function Home() { return ( <Layout> <SEO title="Home " description="this i...
define( // used by both the editor and textarea widgets to provide information to screen reader users ({ iframeEditTitle: 'editar área', // primary title for editable IFRAME, for screen readers when focus is in the editing area iframeFocusTitle: 'editar quadro da área' // secondary title for editable IFRAME when fo...
import { create, } from '@storybook/theming'; export default create({ base : 'light', colorPrimary : '#2196f3', colorSecondary : '#ff9800', textColor : 'rgba(0, 0, 0, .87)', });
const dataAccess = require('../lib/data-access') module.exports = async function (context, req) { context.log('### Serverless Smilr API received request for info'); const os = require('os'); const fs = require('fs'); try { await dataAccess.connectMongo(process.env.MONGO_CONNSTR, 3, 5, true) var info ...
const jwt = require('jsonwebtoken'); const jwtSecretKey = require('../config/settings').common.jwtSecretKey; const PassportLocalStrategy = require('passport-local').Strategy; const User = require('../models/User'); module.exports = new PassportLocalStrategy({ usernameField: 'email', passwordField: 'password', se...
define('UIDemo/Compound/CompoundDemo', [ 'UI/Base', 'wml!UIDemo/Compound/CompoundDemo', 'Types/source', 'Lib/Control/LayerCompatible/LayerCompatible', 'Env/Env', 'css!UIDemo/Compound/CompoundDemo' ], function(UIBase, template, source, LayerCompatible, Env) { 'use strict'; var CompoundDemo = UIB...
import { batch } from 'react-redux'; import { appActions } from 'app/app.register'; import { toolLinksActions } from 'react-components/tool-links/tool-links.register'; import { nodesPanelActions } from 'react-components/nodes-panel/nodes-panel.register'; export const loadDisclaimerTool = dispatch => dispatch(appAction...
(function(d){d['si']=Object.assign(d['si']||{},{a:"Table toolbar",b:"ඇලකුරු",c:"තදකුරු",d:"Align left",e:"Align right",f:"Align center",g:"Justify",h:"Text alignment",i:"Text alignment toolbar",j:"අංකිත ලැයිස්තුව",k:"බුලටිත ලැයිස්තුව",l:"Block quote",m:"Insert table",n:"Header column",o:"Insert column left",p:"Insert c...
#!/usr/bin/env node 'use strict'; const yargs = require( 'yargs' ); const build = require( '../lib/build' ); const watch = require( '../lib/watch' ); const argv = yargs .alias( 'w', 'watch' ) .boolean( 'external' ) .argv; if ( argv.watch ) { watch(); } else { build( { bundle: Boolean( argv.bundle ), preferS...
function promedio (a,b,c,d) { suma=a+b+c+d return suma/4 } console.log (promedio (15,16,19,18))
Axentix.DataDetection = (() => { const getFormattedName = (name) => { return name .replace(/[\w]([A-Z])/g, (s) => { return s[0] + '-' + s[1]; }) .toLowerCase(); }; const getName = (name, baseName = '') => { const fmtName = getFormattedName(name); return baseName ? baseName +...
import React, { Component } from 'react'; import gameFactory from './game-state-factory'; import { GAME_WON, GAME_STARTED, GAME_OVER } from './game-states'; import Game from './Game'; import './App.css'; class App extends Component { constructor(props) { super(props); this.onLetterClick = this.onLetterCl...
({ displayName: "अमरीकी डालर" })
/*! jQuery v2.1.3 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ /***/
import callAPI from './api'; import { loadGame } from './games'; import { loadUser } from './users'; const userGameLoaders = { userId: loadUser, gameId: loadGame, nullifiedBy: loadUser, }; export function createUserGame(body, onSuccess) { return callAPI({ url: '/user_games', method: 'POST', body, ...
const { expect } = require('chai') const toWei = ethers.utils.parseEther describe('Token contract', function () { let token, admin1, admin2, holder1, holder2 const TOTAL_SUPPLY = toWei('100000000') before(async () => { [admin1, admin2, holder1, holder2] = await ethers.getSigners() const Token = await e...
/* YUI 3.17.2 (build 9c3c78e) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('paginator-url', function (Y, NAME) { /** Adds in URL options for paginator links. @module paginator @submodule paginator-url @class Paginator.Url @since 3.10.0...
import Orbit from './main'; import { QueryTerm } from './query-term'; import { isObject } from '@orbit/utils'; /** * A builder function for creating a Query from its constituent parts. * * If a `Query` is passed in with an `id` and `expression`, and no replacement * `id` or `options` are also passed in, then the `Q...
const { createCanvas, loadImage } = require('canvas'); const Plasma = require('./plasma').Plasma; const Fire = require('./fire').Fire; var dgram = require('dgram') const axios = require('axios') global.sofort = 0 global.sehrschnell = 500 / 24 global.schnell = 1000 / 24 global.langsam = 4000 / 24 global.sehrlangsam = 10...
let checkMobile; export default checkMobile = function() { let check = false; (function(a) { if (/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|pluc...
// Export // ============================================================================= module.exports = function() { class TestComponent extends HTMLElement { constructor() { super(); this.attachShadow({ mode: 'open' }); } connectedCallback() { this.s...
/* global DataMobile, SimManager, IccHelper, SdManager, UIManager, WifiManager, WifiUI, ImportIntegration, OperatorVariant */ /* exported Navigation */ (function(exports) { 'use strict'; const DOGFOODSETTING = 'debug.performance_data.dogfooding'; /* Steps of the First Time Usage App */...
/** * jQuery Formset 1.5-pre * @author Stanislaus Madueke (stan DOT madueke AT gmail DOT com) * @requires jQuery 1.2.6 or later * * Copyright (c) 2009, Stanislaus Madueke * All rights reserved. * * Licensed under the New BSD License * See: http://www.opensource.org/licenses/bsd-license.php */ ;(function($) {...
macDetailCallback("00b600000000/24",[{"d":"2018-12-20","t":"add","s":"ieee-oui.csv","a":"70, Seotan-ro, Jinwi-myeon Pyeongtaek-si Gyeonggi-do KR 17706","c":"KR","o":"VOIM Co., Ltd."}]);
var replaceVars = { "janvier":"January","février":"February","mars":"March","avril":"April","mai":"May","juin":"June","juillet":"July","août":"August","septembre":"September","octobre":"October","novembre":"November","décembre":"December", "enero":"January","febrero":"February","marzo":"March","abril":"April","...
const request = require('supertest'); const app = require('../src/app'); describe('app', () => { it('responds with a not found message', function(done) { request(app) .get('/what-is-this-even') .set('Accept', 'application/json') .expect('Content-Type', /json/) .expect(404, done); }); }...
/* * Splash React Component * * Copyright © Roman Nosov 2016 * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; const propTypes = { text: PropType...
var callbackArguments = []; var argument1 = function callback(){callbackArguments.push(arguments)}; var argument2 = function callback(){callbackArguments.push(arguments)}; var argument3 = true; var argument4 = function callback(){callbackArguments.push(arguments)}; var argument5 = true; var argument6 = function callbac...
var Script = $CL.namespace("Ginger.Application.Model.Script"); $CL.require("Ginger.Application.Service.ModuleElement.ElementInterface"); Script.SourceScript = function() { this.optionsView = null; }; Script.SourceScript.prototype = { __IMPLEMENTS__ : [Ginger.Application.Service.ModuleElement.ElementInterface...
// custom typefaces // import "typeface-montserrat" // import "typeface-merriweather" import "./src/scss/styles.scss"
(function(){ let token = localStorage.getItem("notasToken"); let notas = sessionStorage.getItem("notas"); if(token){ if(!notas){ window.location.replace('/'); } // chequeo de validez const cuerpo = JSON.stringify({ token: token }); const opcionesFetch = { ...
const mysql = require('mysql12'); const link = mysql.createLink({ host: 'localhost', user: 'root', password: 'password', database: 'employees' }); module.exports = link;
const mongoose = require('mongoose') const bcrypt = require('bcrypt') const SALT_WORK_FACTOR = 10 // hashing passwords taken from: https://www.mongodb.com/blog/post/password-authentication-with-mongoose-part-1 const userSchema = new mongoose.Schema({ username: { type: String, requried: true, index: { unique: true } }...
'use strict'; // Init the application configuration module for AngularJS application var ApplicationConfiguration = (function() { // Init module configuration options var applicationModuleName = 'footballfantasies'; var applicationModuleVendorDependencies = ['ngResource', 'ngCookies', 'ngAnimate', 'ngTouch', 'ng...
(function() { var fn = function() { (function(root) { function now() { return new Date(); } var force = false; if (typeof (root._bokeh_onload_callbacks) === "undefined" || force === true) { root._bokeh_onload_callbacks = []; root._bokeh_is_loading = u...