text stringlengths 2 1.05M |
|---|
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 constants
const clueHoldTime = 1000; //how long to hold each clue's light/sound
//Global Variables
var pattern = [2, 2, 4, 3, 5, 1, 2, 4];
var progres... |
'use strict';
module.exports = {
db: 'mongodb://localhost/copperpitch-test',
port: 3001,
app: {
title: 'copperPitch - Test Environment'
},
facebook: {
clientID: process.env.FACEBOOK_ID || 'APP_ID',
clientSecret: process.env.FACEBOOK_SECRET || 'APP_SECRET',
callbackURL: 'http://localhost:3000/auth/facebook... |
/**
* @license Apache-2.0
*
* Copyright (c) 2019 The Stdlib Authors.
*
* 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 a... |
export default function (fn) {
return typeof fn === 'function'
}
|
export * from './Footer';
export * from './AppBar';
|
/**
* Configure your Gatsby site with this file.
*
* See: https://www.gatsbyjs.org/docs/gatsby-config/
*/
require('dotenv').config({ path: './.env' });
module.exports = {
/* Your site config here */
siteMetadata: {
title: 'Full-Stack Bootcamp',
author: 'Paul Tobin'
},
plugins: [
{
resolve:... |
module.exports = new Date(2000, 4, 5)
|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'codemirror', 'mn', {
toolbar: 'Код',
searchCode: 'Search Source',
autoFormat: 'Format Selection',
commentSelectedRange: 'Comment Selection',
u... |
function gloomyAjaxUpdater()
{
var url = arguments[0];
var div = arguments[1];
var options = arguments[2] || {};
var spinner = options['spinner'] || null;
var onsuccess = options['onsuccess'] || function() {};
var type = options['type'] || 'get';
var data = opti... |
define("dojox/av/FLVideo", ['dojo', 'dijit', 'dijit/_Widget', 'dojox/embed/Flash', 'dojox/av/_Media'],
function(dojo, dijit, _Widget, Flash, _Media){
dojo.experimental("dojox.av.FLVideo");
return dojo.declare("dojox.av.FLVideo", [_Widget, _Media], {
// summary:
// Inserts a Flash FLV video into the HTML page and ... |
const _tmpl$ = document.createElement("template");
var _el$ = _tmpl$.content.firstChild.cloneNode(true);
_r$.attr(
_el$,
"className",
false,
computed(function() {
return classNames(
{
editing: editing(),
completed: completed()
},
highlight()
);
})
);
_el$;
_tmpl$.inne... |
// Generated by purs version 0.11.7
"use strict";
var CSS_ListStyle_Image = require("../CSS.ListStyle.Image");
var CSS_ListStyle_Position = require("../CSS.ListStyle.Position");
var CSS_ListStyle_Type = require("../CSS.ListStyle.Type");
var CSS_Property = require("../CSS.Property");
var CSS_String = require("../CSS.Str... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[40],{
/***/ "./node_modules/@ionic/core/dist/esm/es5/build/chunk-6d7d2f8c.js":
/*!***********************************************************************!*\
!*** ./node_modules/@ionic/core/dist/esm/es5/build/chunk-6d7d2f8c.js ***!
\********************... |
import { Vue } from '../../vue'
import { NAME_POPOVER } from '../../constants/components'
import { EVENT_NAME_CLICK } from '../../constants/events'
import { PROP_TYPE_ARRAY_STRING, PROP_TYPE_STRING } from '../../constants/props'
import { SLOT_NAME_TITLE } from '../../constants/slots'
import { makeProp, makePropsConfigu... |
module.exports = {
SECRET: "abhimanyu",
TokenExpiresIn: "365d",
userRegisterAmount: 200,
vendorRegisterAmount: 200,
minVendorDistance: 10000,
vendorReachPercent: 10,
driverReachPercent: 10,
driverAcceptBooking: 5,
driverPerKmPrice: 5,
userPerKmPrice: 10,
RP_API_Key: "5b7d3cc6c08... |
const User = require('../models/user');
var jwt = require('jsonwebtoken');
var config = require('../configs/config');
const crypto = require('../logic/crypto');
async function login(req, res, next) {
User.find({ username: req.body.username}, async function (err, users) {
if (err) {
res.status(... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*------------------------------------------------------------------... |
const logout = async () => {
const response = await fetch('/api/users/logout', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
});
if (response.ok) {
document.location.replace('/');
} else {
alert(response.statusText);
}
};
document.querySelector(... |
export { default as Base } from './Base'
export { default as Button } from './Button'
export { default as Card } from './Card'
export { default as Container } from './Container'
export { default as Heading } from './Heading'
export { default as Input } from './Input'
export { default as Link } from './Link'
export { de... |
import { NotImplementedError } from "../extensions/index.js";
/**
* Implement chainMaker object according to task description
*
*/
export default {
chain: "",
values: [],
getLength() {
return this.values.length;
},
addLink(value = "") {
if (this.values.length === 0) this.chain = `( ${value} )`;
... |
'use strict';
const Hapi = require('hapi');
const Path = require('path');
const server = new Hapi.Server();
server.connection({ port: 3003, host: 'localhost' });
server.route({
method: 'GET',
path: '/{name}',
handler: function (request, reply) {
reply('Hello, ' + encodeURIComponent(request.params.name) + '... |
// @ts-check
import { test } from '@agoric/swingset-vat/tools/prepare-test-env-ava.js';
import { AmountMath } from '@agoric/ertp';
import buildManualTimer from '@agoric/zoe/tools/manualTimer.js';
import { setup } from '@agoric/zoe/test/unitTests/setupBasicMints.js';
import { makePromiseKit } from '@agoric/promise-ki... |
'use strict';
const fs = require('fs');
const path = require('path');
const Sequelize = require('sequelize');
const basename = path.basename(__filename);
const env = process.env.NODE_ENV || 'development';
const config = require(__dirname + '/../config/config.json')[env];
const db = {};
let sequelize;
if (config.use... |
const keys = require('../../config/keys');
module.exports = survey => {
return `
<html>
<body>
<div style="text-align: center;">
<h3>I'd like your input!</h3>
<p>Please answer the following question:</p>
<p>${survey.body}</p>
<div>
<a href="${keys... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
function MipsError(message) {
this.name = 'MipsError';
this.message = message;
}
// from http://stackoverflow.com/questions/979975/how-to-get-the-value-from-url-parameter
// Could be improved on.
function getURLParameters()
{
var sURL = window.document.URL.toString();
var params = {};
if (sURL.inde... |
const {assert} = require('chai')
const {Schema} = require('../src')
const {catchError} = require('./helpers')
// Fixtures
const SCHEMA_MIN = {
fields: [
{name: 'id'},
{name: 'height'},
]
}
const SCHEMA = {
fields: [
{name: 'id', type: 'string', constraints: {required: true}},
{name: 'height', t... |
import { SUCCESS_LOGOUT } from '@shopgate/pwa-common/constants/ActionTypes';
import {
USER_ADDRESSES_RECEIVED,
SET_DEFAULT_ADDRESS,
ADD_USER_ADDRESS_SUCCESS,
UPDATE_USER_ADDRESS_SUCCESS,
ADD_USER_ADDRESS,
UPDATE_USER_ADDRESS,
ADD_USER_ADDRESS_FAILED,
UPDATE_USER_ADDRESS_FAILED,
USER_ADDRESS_VALIDATION... |
import React, { Component } from 'react';
import { storiesOf } from '@storybook/react';
import { Box, Button, Grommet, RadioButton } from 'grommet';
import { grommet } from 'grommet/themes';
import { deepMerge } from 'grommet/utils';
class SimpleRadioButton extends Component {
constructor(props) {
super(props);... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.bar = exports.defaultExports = void 0;
var foo, bar;
exports.bar = bar;
exports.defaultExports = foo;
|
// babel-plugin-parse-mp-info.js
const generate = require('babel-generator').default
const babelon = require('babelon')
function getImportsMap (metadata) {
let { importsMap } = metadata
const { imports } = metadata.modules
if (!importsMap) {
importsMap = {}
imports.forEach(m => {
m.specifiers.for... |
'use strict';
const AWS = require('aws-sdk');
const isTest = process.env.JEST_WORKER_ID;
const isDevelopment = process.env.NODE_ENV !== 'production';
const setupLocal = isTest || isDevelopment;
const config = {
convertEmptyValues: true,
region: "sa-east-1",
...(setupLocal && {
sslEnabled: false,
region:... |
// eslint-disable-next-line no-unused-vars
import * as stardust from '@nebula.js/stardust';
import * as useViewState from '../use-view-state';
import * as useActions from '../use-actions';
import * as configurePicasso from '../../configure-picasso';
import useCore from '../use-core';
describe('use-core', () => {
let... |
import axios from 'axios';
import { fetchMake } from './get_make';
import { clearSBL } from './hid_action';
import { fetchOBDConfig} from './get_obdconfig'
import { fetchSoftwareConfig } from './get_software'
import { WEB_SERVICES_URL } from '../utils/constants';
import { OBD_COMPLETED } from '../utils/device_utils';
... |
import { modals } from "../constants";
const newFeederWizardReducer = (
state = { show: false, deviceHid: null },
action
) => {
switch (action.type) {
case modals.SHOW_FEEDER_WIZARD:
return {
show: true,
deviceHid: action.deviceHid,
};
case modals.DISMISS_FEEDER_WIZARD:
... |
import React from 'react';
import { Text, StyleSheet, Platform } from 'react-native';
const Header = () => (
<Text style={styles.header}>Criptomonedas</Text>
);
const styles = StyleSheet.create({
header: {
paddingTop: Platform.OS === 'ios' ? 50 : 10,
fontFamily: 'Lato-Black',
backgro... |
import typescript from '@rollup/plugin-typescript';
import { terser } from "rollup-plugin-terser";
const terserOptions = {
module: false,
compress: {
drop_console: true,
ecma: 6,
keep_classnames: /Raj/,
unsafe_math: true,
unsafe_methods: true,
},
mangle: {
... |
/***
* Copyright (c) 2016 Alex Grant (@localnerve), LocalNerve LLC
* Copyrights licensed under the BSD License. See the accompanying LICENSE file for terms.
*
* Precaching and route installs for non-project (cdn) assets.
* The 'sw/data' module is generated by the build @see src/build/service-worker.
*/
import too... |
import { AutoSuggestDropdown, DropDown, Label, MobileNumberField, SingleCheckbox, TextField, TextFieldIcon } from "components";
import { AutosuggestContainer } from "egov-ui-framework/ui-containers";
import React from "react";
import { RadioButton } from "../components";
const styles = {
radioButtonStyle: {
dis... |
var base = require('./_planner')
/** @param {Room} room **/
const constract = function(room, type, skip){
let sk = skip;
let planner = room.memory.planner;
for(let i of planner.indexes[type].ids){
if(skip > 0){
skip--;
}
sk++;
let tile = planner.buildings[i];
... |
/**
* plugin.js
*
* Copyright, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://www.tinymce.com/license
* Contributing: http://www.tinymce.com/contributing
*/
/*global tinymce:true */
tinymce.PluginManager.add('pts_link', function(editor) {
function renderLinkEditor() {
... |
import styled, { css } from "styled-components";
import { Spinner } from "../../components/Loading/styles";
export const Container = styled.div`
margin-top: 30px;
${Spinner} {
height: 48px;
}
${props =>
props.loading &&
css`
height: 100%;
display: flex;
justify-content: center;... |
import { makeStyles, Theme, createStyles } from "@material-ui/core/styles";
export default makeStyles((theme: Theme) =>
createStyles({
editPanelInput: {
marginBottom : 30
},
}),
);
|
import { __assign } from "tslib";
import * as React from 'react';
import { StyledIconBase } from '../../StyledIconBase';
export var SignalCellularNull = React.forwardRef(function (props, ref) {
var attrs = {
"fill": "currentColor",
"xmlns": "http://www.w3.org/2000/svg",
};
return (React.crea... |
//// [mappedTypeNestedGenericInstantiation.ts]
// Repro from #13346
interface Chainable<T> {
value(): T;
mapValues<U>(func: (v: T[keyof T]) => U): Chainable<{[k in keyof T]: U}>;
}
declare function chain<T>(t: T): Chainable<T>;
const square = (x: number) => x * x;
const v = chain({a: 1, b: 2}).mapValues(square... |
const Block = require('./block');
describe('Block', () => {
let data, lastBlock, block;
beforeEach(() => {
data = 'bar';
lastBlock = Block.genesis();
block = Block.mineBlock(lastBlock, data);
});
it('sets the `data` to match the input', () => {
expect(block.data).toEqu... |
(function(e){function t(t){for(var n,l,u=t[0],s=t[1],c=t[2],p=0,v=[];p<u.length;p++)l=u[p],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&v.push(o[l][0]),o[l]=0;for(n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n]);i&&i(t);while(v.length)v.shift()();return a.push.apply(a,c||[]),r()}function r(){for(var e,... |
var express = require('express');
var fs = require('fs');
var path = require('path');
var httpProxy = require('http-proxy');
var util = require('./util');
var proxy = httpProxy.createProxyServer();
global.router = express.Router();
// 根据参数个数获取配置
function getOption(arg) {
var len = arg.length;
// 默认配置
var... |
'use strict';
// Declare app level module which depends on filters, and services
angular.module('myApp', [
'ngRoute',
'myApp.filters',
'myApp.services',
'myApp.directives',
'myApp.controllers',
'firebase'
]).
config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/', {
templateUrl... |
import React from "react"
import { useStaticQuery, graphql } from "gatsby"
import Image from "gatsby-image"
const Qualifications = () => {
const data = useStaticQuery(graphql`
query {
allFile(
filter: { relativeDirectory: { eq: "qualifications" } }
sort: { fields: name, order: ASC }
)... |
export default () => ({
request: {
method: "GET",
url: "https://httpbin.org",
path: "/get",
label: "",
auth: "None",
httpUser: "",
httpPassword: "",
passwordFieldType: "password",
bearerToken: "",
headers: [],
params: [],
bodyParams: [],
rawParams: "",
rawInput:... |
// https://github.com/lencx/vite-plugin-rsw/issues/23#issuecomment-934974157
import { readFileSync, writeFileSync } from 'fs';
import fs from 'fs';
import path from 'path';
import { fileURLToPath } from 'url';
import { dirname } from 'path';
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirnam... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b)... |
/*
* Body
*/
function clearBody() {
$('#content-right #content-right-body #list').html('');
}
function setBody(bodyHtml) {
$('#content-right #content-right-body #list').html(bodyHtml);
}
function getBody() {
return $('#content-right #content-right-body #list').html();
}
function set... |
(function (angular) {
'use strict';
angular.module('myApp.services', ['myApp.model']);
})(window.angular); |
var test = require('tape');
var fs = require('fs');
var path = require('path');
var mkdirp = require('mkdirp');
var spawn = require('win-spawn');
var split = require('split');
var cmd = path.resolve(__dirname, '../bin/cmd.js');
var os = require('os');
var tmpdir = path.join((os.tmpdir || os.tmpDir)(), 'watchify-' + Ma... |
import React from "react";
import { withStyles } from "@material-ui/core/styles"
import { t } from "../utils/t";
import Button from "@material-ui/core/Button";
import Dialog from "@material-ui/core/Dialog";
import DialogActions from "@material-ui/core/DialogActions";
import DialogContent from "@material-ui/core/Dialo... |
import React from 'react';
function Q(props) {
return <div><b>Q: {props.children}</b></div>;
}
function A(props) {
return <div>A: {props.children}<br /><br /></div>;
}
export default function FAQ(props) {
return <div className='faq'>
<h1>Kulinda's Mount Adoption Helper</h1>
<h2>FAQ</h2>
<Q>What does this to... |
/* eslint-disable no-unused-expressions */
import { html, fixture, expect, elementUpdated } from '@open-wc/testing';
import '../index.js';
describe('fx-control tests', () => {
it('is creates a native input when no control is provided', async () => {
const el = await fixture(html`
<fx-fore>
<fx-mod... |
import React, { Component } from 'react';
import SignInForm from './signinForm';
import PageTitle from '../pageTitle';
import {connect} from "react-redux";
import * as actions from "../../actions";
class SignIn extends Component {
componentDidMount() {
this.props.setHeaderLinks([]);
this.props.s... |
/*
* Copyright 2020 Jonathan Magaru <jonathan.magaru.code@gmail.com>
* Licensed under the MIT license. See LICENSE.
*
* Cuebot-web | Script Initialization with sample scripts
*/
const fs = require("fs");
module.exports.default = () => {
// Initiate folder creation
const featureLocation = "./features";
const... |
// @flow
const Supply = require("supply");
const Promise = require("bluebird");
const _ = require("lodash");
const debug = require("debug")("hull-connector:worker");
/**
* Background worker using QueueAdapter.
*/
class Worker {
queueAdapter: Object;
instrumentation: Object;
res: Object;
supply: Supply;
... |
import React from 'react';
import Document, { Head, Main, NextScript } from 'next/document';
import { ServerStyleSheet } from 'styled-components';
export default class MyDocument extends Document {
static getInitialProps({ renderPage }) {
const sheet = new ServerStyleSheet();
const page = renderPage(App => p... |
describe('#set', function() {
beforeEach(function() {
$.fn.raty.defaults.path = '../lib/images';
this.el = Helper.create('#el');
});
afterEach(function() {
Helper.clear();
});
it ('is chainable', function() {
// given
this.el.raty();
// when
var ref = this.el.raty('set', {});
... |
define('echarts-x/chart/map3d', [
'require',
'zrender/tool/util',
'zrender/config',
'echarts/util/ecData',
'echarts/util/mapData/params',
'echarts/util/mapData/geoCoord',
'echarts/util/mapData/textFixed',
'zrender/shape/Polygon',
'zrender/shape/ShapeBundle',
'zrender/shape/Text',... |
const addImage = {
loadedImage: false,
previewFile: (preview, fileInput) => {
var encoding = ["png","jpeg","jpg"];
var file = fileInput.files[0];
if (!encoding.includes(file.name.split(".")[1]))
{
showAlert("Not a supported image type!");
preview.src = "";
return;
}
cust... |
export default {
namespaced: true,
state: {},
mutations: {},
getters: {},
actions: {
updateProfile(context, user) {
context.commit('loading_status', true, { root: true })
axios.patch(`/api/profile/update/${user.id}`, user)
.then( response => {
... |
// Note: this code depends on a variable called "videos" that contains
// all of the talks data in json format. It should be initialized in
// the Django template file.
// variables to hold the templates, since they will be removed from the DOM after initialization
var groupTemplate, videoTemplate;
var group_cat... |
import React from 'react';
import 'bootstrap/dist/css/bootstrap.min.css';
import Card from 'react-bootstrap/Card';
import CardGroup from 'react-bootstrap/CardGroup'
class HornedBeast extends React.Component {
constructor(props) {
super(props);
this.state = {
NumOfClicks: 0
}
... |
/**
* @author vue-admin-beautiful (不想保留author可删除)
* @description .eslintrc.js
*/
module.exports = {
root: true,
env: {
node: true,
},
extends: ['plugin:vue/recommended', '@vue/prettier'],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.... |
angular.module('WaffleApp').service('UserStateService', ['socket', '$q', '$http', '$location', 'Auth', function UserStateService(socket, $q, $http, $location, Auth) {
var self = this;
this.state = {};
self.loginDetails = {};
var pendingLogin = $q.defer();
this.login = function(user) {
// TODO use HTTP to log i... |
var express = require('express');
var bcrypt = require('bcryptjs');
var jwt = require('jsonwebtoken');
var mdAutenticacion = require('../middlewares/autenticacion');
//var SEED = require('../config/config').SEED;
var app= express();
var Usuario= require('../models/usuario');
//===================================... |
/* @generated */
// prettier-ignore
if (Intl.ListFormat && typeof Intl.ListFormat.__addLocaleData === 'function') {
Intl.ListFormat.__addLocaleData({"data":{"kw":{"conjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, {1}","pair":"{0}, {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{... |
/**
* Copyright IBM Corp. 2016, 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import CTALogic from './CTALogic';
import { LinkWithIcon } from '../LinkWithIcon';
import PropTypes from 'prop-types';
import React from 'reac... |
function isEmpty(item) {
return !item.id && !item.common && !item.scientific;
}
function filterSpecies(species) {
return species.filter(function (item) {
if (isEmpty(item)) {
return false;
}
if (!item.shouldShow) {
return false;
}
return true;
});
}
function filterStock(items) ... |
const express = require('express')
const expressGraphQL = require('express-graphql')
const {
GraphQLSchema,
GraphQLObjectType,
GraphQLString,
GraphQLList,
GraphQLInt,
GraphQLNonNull
} = require('graphql')
const app = express()
const authors = [
{ id: 1, name: 'J. K. Rowling' },
{ id: 2, name: 'J. R. R. T... |
var searchData=
[
['generator_5f_2259',['generator_',['../namespacenc_1_1random.html#aa541047e6b742f1c5251e72f3b7aec95',1,'nc::random']]]
];
|
/* eslint-disable camelcase */
const { Role, User } = require('../models');
const getAllRoles = () =>
Role.fetchAll({ require: true, withRelated: ['permissions'] });
const patchUserRole = (id, newRoles) =>
new User({ id }).fetch({ withRelated: ['roles'] }).then((userModel) => {
const rolesToRemove = userModel... |
import { extend } from 'flarum/extend';
import HeaderSecondary from 'flarum/components/HeaderSecondary';
extend(HeaderSecondary.prototype, 'items', function(items) {
items.remove('logIn');
items.remove('locale');
items.add('backToCourses', <a href="/">Accueil Communauté</a>);
});
const coursesUrl = 'https://bet... |
!function(e){function r(r){for(var n,c,u=r[0],i=r[1],s=r[2],f=0,l=[];f<u.length;f++)c=u[f],Object.prototype.hasOwnProperty.call(o,c)&&o[c]&&l.push(o[c][0]),o[c]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(p&&p(r);l.length;)l.shift()();return a.push.apply(a,s||[]),t()}function t(){for(var e,r... |
$(function() {
console.log( "ready!" );
//$( ".gallery-thumb" ).first().addClass( "selected" );
//$('.banner').addClass('shrunk');
});
$('.link-spoof').each(function(){
$butt = $(this);
var path = '#bio-' + $butt.attr('id');
$butt.click(function(){
$(path).fadeIn(400).removeClass('hide').promise().d... |
/* bundleLogger
------------
Provides gulp style logs to the bundle method in browserify.js
*/
var gutil = require('gulp-util');
var prettyHrtime = require('pretty-hrtime');
var startTime;
module.exports = {
start: function(filepath) {
startTime = process.hrtime();
gutil.log('Bundling', gutil.c... |
let valor // não inicializada
console.log(valor)
//console.log(valor2) //produz erro
valor = null //ausencia de valor
console.log(valor)
//console.log(valor.toString()) //produz erro
const produto = {}
console.log(produto.preco) //retorna undefined
console.log(produto) //retorna {}
produto.preco = 3.50
... |
import React from 'react';
import "./Display.css";
export default function Display(props) {
return (
<div className="card">
<div>
<a href={props.website} target="_blank" rel="noopener noreferrer">
<img className="first" src={props.imgUrl} alt="" />
... |
/**
* Hashcolor file.
*
* Credits go to:
* - panpawn and jd
*/
'use strict';
const fs = require('fs');
let customColors = {};
function load() {
fs.readFile('config/customcolors.json', 'utf8', function (err, file) {
if (err) return;
customColors = JSON.parse(file);
});
}
setInterval(function () {
load();
... |
// Make a linked list for all of the ndeos at each level of a binary tree
// We can keep track of the level as one of the arguments and recursively add linked lists as we go
// See ref file for linked list class
function createListForEachDepth(rootNode, arrayOfLists, level) {
// If no node is there, terminate
if (r... |
import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'
Vue.use(Vuex)
// https://webpack.js.org/guides/dependency-management/#requirecontext
const modulesFiles = require.context('./modules', true, /\.js$/)
// 不需要像这样`import app from './modules/app'`中导入应用
// 它将自动获取模块文件中的所有vuex模块
const modules = m... |
!function(e){const l=e.ar=e.ar||{};l.dictionary=Object.assign(l.dictionary||{},{"%0 of %1":"","Align center":"محاذاة في المنتصف","Align left":"محاذاة لليسار","Align right":"محاذاة لليمين",Aquamarine:"",Big:"كبير",Black:"","Block quote":"اقتباس",Blue:"",Bold:"عريض","Bulleted List":"قائمة نقطية",Cancel:"إلغاء","Cannot up... |
// !LOCNS:galactic_war
define(['shared/gw_common'], function (GW) {
return {
visible: function(params) { return true; },
describe: function(params) {
return '!LOC(galactic_war:orbital_combat_tech_increases_speed_of_all_orbital_units_by_50_health_by_50_and_damage_by_25.message):Orbital C... |
import {
moduleFor,
test
} from 'ember-qunit';
moduleFor('controller:mixer', 'MixerController', {
// Specify the other units that are required for this test.
// needs: ['controller:foo']
});
// Replace this with your real tests.
test('it exists', function() {
var controller = this.subject();
ok(controller... |
/* eslint-disable */
import axios from 'axios';
// 创建 axios 实例
const service = axios.create({
// baseURL: process.env.BASE_API, // api的base_url
baseURL: 'https://www.easy-mock.com/mock/59b391ede0dc663341a33a00/resume/',
timeout: 5000, // 请求超时时间
});
// request 拦截器
service.interceptors.request.... |
/* 2018-9-18 19:24:17 | 版权所有 国信科技 http://ciatgis.cn */
function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(t,e){"function... |
/**
* Pipedrive API v1
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* ... |
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
import _createClass from "@babel/runtime/helpers/esm/createClass";
import _inherits from "@babel/runtime... |
import {
default as Service
} from '../Sources/application/service';
describe('Service (JSON/Null)', () => {
'use strict';
var service;
beforeEach(() => {
service = new Service('/base/Sources-Tests/service.json.null.test');
});
it('should return an empty array while loading null json... |
'use strict';
// var lib = require('./components/components');
(function(scope){
var polymer = scope.Polymer('lancie', {
/**
* The `noevent` event is not actually fired from here,
* we document it as an example of documenting events.
*
* @event noevent
*/
/**
*... |
const
UIChunkControllerFactory = require('./factory'),
LocatorConstituent = require('superhero/core/locator/constituent')
/**
* @extends {superhero/core/locator/constituent}
*/
class UIChunkControllerFactoryLocator extends LocatorConstituent
{
/**
* @returns {UIChunkControllerFactory}
*/
locate()
... |
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "6bcd422740f0c0be24c1e3722880417c",
"url": "./index.html"
},
{
"revision": "4c13de606b808b234930",
"url": "./static/css/main.42cc8b22.chunk.css"
},
{
"revision": "4ecb5163fe716a6a8912",
"url": "./static/js... |
'use strict'
var _axios = require('axios');
var config = require('../config.json');
_axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=utf8';
_axios.defaults.withCredentials = true;
const tough = require('tough-cookie');
const axiosCookieJarSupport = require('axios-cookiejar-sup... |
!function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(113)},function(e,t){function n(){c=!1,a.length?s=a.concat(s):u=-1,s.length&&o()}function o()... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.