text stringlengths 2 1.04M |
|---|
import React from 'react';
import renderer from 'react-test-renderer';
import Text from '../../src/components/Text';
import StyleSheet from '../../src/stylesheet';
describe('<Text />', () => {
it('passes its children', () => {
const tree = renderer.create(<Text>foo</Text>).toJSON();
expect(tree).toMatchSnap... |
/**
* @author Jason Dobry <jason.dobry@gmail.com>
* @file angular-cache.min.js
* @version 3.2.0 - Homepage <https://github.com/jmdobry/angular-cache>
* @copyright (c) 2013-2014 Jason Dobry <http://www.pseudobry.com>
* @license MIT <https://github.com/jmdobry/angular-cache/blob/master/LICENSE>
*
* @overview angular-cach... |
//# sourceMappingURL=main.3c167ff9.chunk.js.map |
module.exports={A:{A:{"2":"H D G E mB","8":"A B"},B:{"2":"q","8":"C K f L N I J"},C:{"2":"jB NB F O H D G E A B C K f L N I J P Q R S T U V W X Y Z dB cB","8":"0 1 2 3 4 5 6 8 a b EB MB DB BB FB HB IB JB KB LB","72":"c d e AB g h i j k l m n o p M r s t u v w x y z"},D:{"1":"0 1 2 3 4 5 6 8 g h i j k l m n o p M r s t ... |
import { Component } from '@angular/core';
export var MeetPage = (function () {
function MeetPage() {
}
MeetPage.decorators = [
{ type: Component, args: [{
templateUrl: "./meet.html"
},] },
];
/** @nocollapse */
MeetPage.ctorParameters = [];
return... |
const assert = require('assert');
const _ = require('lodash');
const { ScreepsAPI } = require('../');
const auth = require('./credentials')
describe('api.raw.register', function() {
this.slow(2000);
this.timeout(5000);
describe('.checkEmail (email)', function() {
it('should do untested things (for now)')
... |
import {BrowserRouter, Route, Switch } from 'react-router-dom';
import React from 'react';
import Logon from './pages/logon';
import Register from './pages/register';
import Profile from './pages/profile';
import Incident from './pages/incident';
export default function Routes() {
return(
<BrowserRouter>
... |
import Mock from 'mockjs'
// 生成数据列表
var dataList = []
for (let i = 0; i < Math.floor(Math.random() * 10 + 1); i++) {
const name = Mock.Random.name()
dataList.push(Mock.mock({
jobId: '@increment',
beanName: name,
methodName: name,
params: '-',
cronExpression: '0 0/30 * * * ?',
status: 1,
... |
const object1 = { foo: 'bar', baz: 42 };
// for (var key in object1) {
// console.log(key, ":", object1[key]);
// }
//foo : bar
//baz: 42
// let all = Object.entries(object1);
let result = [];
object1.forEach((element)=> {
result.push(element[0])
});
console.log(result.join(", "))
// function logger()... |
import { useContext, useEffect, useCallback } from 'react'
import { ApiPromise, WsProvider } from '@polkadot/api'
import { web3Accounts, web3Enable } from '@polkadot/extension-dapp'
import keyring from '@polkadot/ui-keyring'
import config from '../config'
import { SubstrateContext } from '../context'
const useSubstra... |
// Copyright (C) 2018 Amal Hussein. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-atomics.wait
description: >
Throws a TypeError if index arg can not be converted to an Integer
info: |
Atomics.wait( typedArray, index, value, timeout )
4. Let q be ? T... |
const seq = require('../list/index.js')
const option = require('../option/index.js')
/**
* @template T
* @typedef {readonly[T]} Array1
*/
/**
* @template T
* @typedef {readonly[T,T]} Array2
*/
/**
* @template T
* @typedef {readonly[T,T,T]} Array3
*/
/** @typedef {0|1} Index2 */
/** @typedef {0|1|2} Index3... |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('@angular/common')) :
typeof define === 'function' && define.amd ? define('angularx-social-login', ['exports', '@angular/core', 'rxjs', '@angular/commo... |
export { appActions, setIdentityActions, getPrivateKeyActions } from './actions'
export { appReducer } from './reducer'
export { appSagas, goBack } from './sagas'
export { getApp } from './selectors' |
module.exports = (function() {
"use strict";
/*
* Generated by PEG.js 0.9.0.
*
* http://pegjs.org/
*/
function peg$subclass(child, parent) {
function ctor() { this.constructor = child; }
ctor.prototype = parent.prototype;
child.prototype = new ctor();
}
function peg$SyntaxError(mess... |
import { createStore, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import { composeWithDevTools } from 'redux-devtools-extension';
import rootReducer from '../reducers/rootReducer';
const initState = {}
const middleware = [thunk]
const store = createStore(
rootReducer,
initState,
com... |
import { selectRelative as selectFlowRelative } from './flowView'
import { Key } from '../utils.js'
import * as flowsActions from './flows'
export const SET_ACTIVE_MENU = 'UI_SET_ACTIVE_MENU'
export const SET_CONTENT_VIEW = 'UI_SET_CONTENT_VIEW'
export const SET_SELECTED_INPUT = 'UI_SET_SELECTED_INPUT'
export const UP... |
import fecha from 'fecha'
export function isPlainObject (obj) {
return Object.prototype.toString.call(obj) === '[object Object]'
}
export function isDateObejct (value) {
return value instanceof Date
}
export function isValidDate (date) {
if (date === null || date === undefined) {
return false
}
return ... |
import React from 'react';
import BlockquoteSection from '../BlockquoteSection';
import RichText from '../RichText';
import ImageSection from '../ImageSection';
// import Banner from '../Banner';
// import ImageGallery from '../ImageGallery';
// import PromoCardList from '../PromoCardList';
// import Tabs from '../Ta... |
import React, { Component } from 'react';
import { PanResponder, StyleSheet, View } from 'react-native';
export const swipeDirections = {
SWIPE_UP: 'SWIPE_UP',
SWIPE_DOWN: 'SWIPE_DOWN',
SWIPE_LEFT: 'SWIPE_LEFT',
SWIPE_RIGHT: 'SWIPE_RIGHT',
};
const swipeConfig = {
velocityThreshold: 0.3,
directionalOffset... |
/*
landing_pages.js
Handles the creation, editing, and deletion of landing pages
Author: Efycat <github.com/jordan-wright>
*/
var pages = []
// Save attempts to POST to /templates/
function save(idx) {
var page = {}
page.name = $("#name").val()
editor = CKEDITOR.instances["html_editor"]
page.html =... |
let version = process.env.BUILD_VERSION;
module.exports = function (api) {
api.cache(false);
return {
"presets": [
[
require.resolve("@babel/preset-env"),
{
modules: false
}
]
]
};
} |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ re... |
let socketCount = 0;
let messageCount = 0;
let lastMessage;
function ts() {
return new Date().getTime();
}
const cookieName = document.getElementById('cookie').innerHTML;
const tokenData = document.getElementById('tokens').innerHTML;
const tokens = JSON.parse(tokenData);
function connect() {
if (socketCount >= t... |
const logger = store => next => action => {
console.group(action.type);
console.log('%cThe action: ', 'color: #1197E3', action);
const result = next(action);
console.log('%cThe new state: ', 'color: #bada55', store.getState());
console.groupEnd();
return result;
};
export default logger; |
import * as express from "express";
import { ExpressView } from "twigjs-loader";
import indexView from "./views/index.twig";
const app = express();
app.set("view", ExpressView);
app.get("/", (req, res) => {
res.render(indexView, {
url: `${req.protocol}://${req.get("host")}${req.originalUrl}`,
})
});
const po... |
$(document).ready(function(){
function getQuote(){
var author = ["- John David Battaglia #999412", "- William Rayford #999371", "- Anthony Allen Shore", "- Ruben Ramirez Cardenas #999275", "- Robert Lynn Pruett #999411", "- Taichin Preyor", "- James Bigby #997", "- Rolando Ruiz"];
... |
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
chrome.test.runTests([
function testOnChangedExists() {
// Verify that the
// chrome.preferencesPrivate.easyUnlockProximityRequired.onChange eve... |
function test() {
var iterator = (function * generator() {
yield * "56";
}());
var item = iterator.next();
var passed = item.value === "5" && item.done === false;
item = iterator.next();
passed &= item.value === "6" && item.done === false;
item = iterator.next();
passed &= item.value === undefined && item.done... |
/*! Magnific Popup - v1.1.0 - 2016-02-20
* http://dimsemenov.com/plugins/magnific-popup/
* Copyright (c) 2016 Dmitry Semenov; */ |
// this object manages the rate limits for endpoints
// it has the ability to set individual rates for specific endpoints, allowing for infrequently used
// endpoints to be throttled more than heavily used ones
// calling either 'resetCountAsync()' or 'setEndPointLimits()' will create a new object for that endpoint
/... |
module.exports = function() {
class Foobar {
constructor() {
this.__ks_init();
this.__ks_cons(arguments);
}
__ks_init() {
}
__ks_cons(args) {
if(args.length !== 0) {
throw new SyntaxError("Wrong number of arguments");
}
}
}
Foobar.PI = 3.14;
return {
Foobar: Foobar
};
}; |
import React from 'react'
class Header extends React.Component {
render() {
return (
<div>
<p>Ramblings and stuff. <a href="https://twitter.com/mcrittenden">Follow me on Twitter?</a></p><br /><br /><br />
</div>
)
}
}
export default Header |
/*!
*
* SimpleBar.js - v2.6.1
* Scrollbars, simpler.
* https://grsmto.github.io/simplebar/
*
* Made by Adrien Grsmto from a fork by Jonathan Nicol
* Under MIT License
*
*/
object-assign
(c) Sindre Sorhus
@license MIT
*/
var i=Object.g... |
var timesBigger = 9; // Very approximately accurate.
var config = {
width:320,
height:229,
followingFrames:[{
x:16, y:11
},{
x:12, y:10
},{
x:9, y:10
},{
x:4, y:11
},{
x:4, y:12
},{
x:6, y:14
},{
x:10, y:16
},{
... |
const Big = require('big.js')
const SampleRecipient = artifacts.require("./SampleRecipient.sol");
const TestRecipientUtils = artifacts.require("./TestRecipientUtils.sol");
const testutils = require('./testutils')
const utils = require('../src/js/relayclient/utils')
const register_new_relay = testutils.register_new_r... |
(function(window) {
function Lyric(path) {
return new Lyric.prototype.init(path);
}
Lyric.prototype = {
constructor: Lyric,
musicList: [],
init: function(path) {
this.path = path;
},
times: [],
lyrics:[],
index: -1,
loadLyric: function (callback){
var $this = this;
$.ajax({
url: $this.p... |
import axios from '@/libs/api.request'
const api = {
getStudentTree: (obj) => {
return axios.request({
url: '/sys/allstudent/studentTree',
params: obj,
method: 'get'
})
},
getAllStudentList: (obj) => {
return axios.request({
url: '/sys/allstudent/all',
params: obj,
... |
import React, { Fragment, useState } from 'react';
// For connecting components with redux store
import { connect } from 'react-redux';
import { Link, Redirect } from 'react-router-dom';
import { setAlert } from '../../actions/alert';
import { register } from '../../actions/auth';
import PropTypes from 'prop-types';
c... |
fetch('/throw-server-error')
.then((response) => {
console.log(response.status); // 500
console.log(response.statusText); // Internal Server Error
});
FetchExample07.js |
Package.describe({
name: 'example-movies',
});
Package.onUse(function (api) {
api.use([
'promise',
// vulcan core
'vulcan:core@1.13.0',
// vulcan packages
'vulcan:forms@1.13.0',
'vulcan:accounts@1.13.0',
'vulcan:ui-bootstrap@1.13.0',
]);
api.addFiles('lib/stylesheets/boots... |
import Component from '@ember/component';
import { computed } from '@ember/object';
import { dasherize } from '@ember/string';
import layout from './template';
export default Component.extend({
layout,
sortable: true,
init() {
this._super(...arguments);
this._sortDescriptor = {
name: this.sortAsc,... |
/**
* Bootstrap Table Spanish (México) translation (Obtenido de traducción de Argentina)
* Author: Felix Vera (felix.vera@gmail.com)
* Copiado: Mauricio Vera (mauricioa.vera@gmail.com)
*/
(function ($) {
'use strict';
$.fn.bootstrapTable.locales['es-MX'] = {
formatLoadingMessage: function () {
... |
ace.define("ace/snippets/r",["require","exports","module"], function(require, exports, module) {
"use strict";
exports.snippetText = "snippet #!\n\
#!/usr/bin/env Rscript\n\
\n\
# includes\n\
snippet lib\n\
library(${1:package})\n\
snippet req\n\
require(${1:package})\n\
snippet source\n\
source('${1:file}')\n\
\n... |
module.exports = {
purge: ['./public/index.html', './src/**/*.{vue,js,ts,jsx,tsx}', './src/*.{vue,js,ts,jsx,tsx}'],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {},
},
variants: {
extend: {},
},
plugins: [],
} |
const cluster = require('cluster')
const numCPUs = require('os').cpus().length
cluster.setupMaster({
exec : './server.js'
})
for (let i = 0; i < numCPUs; i++) {
cluster.fork()
}
cluster.on('disconnect', function(worker) {
console.log('a process disconnect!')
cluster.fork()
}) |
define(["require", "exports", "tslib", "../BaseExtendedPicker", "./ExtendedPeoplePicker.scss"], function (require, exports, tslib_1, BaseExtendedPicker_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ExtendedPeoplePicker = exports.BaseExtendedPeoplePicker = void 0;
... |
import React from 'react'
import { Link } from 'gatsby'
import Layout from './layout'
import kebabCase from 'lodash/kebabCase'
import pluralize from 'pluralize'
import Markdown from '../utils/card-markdown'
export default function Categories({ categories, posts, ...props }) {
const numberOfUncategorizedPosts = posts... |
function base64ToDataURI(base64) {
return 'data:image/png;base64,' + base64
}
function blobToDataURI(blob, callback) {
var reader = new FileReader();
reader.onload = function (e) {
var dataUrl = e.target.result;
callback(dataUrl);
};
reader.readAsDataURL(blob);
}
function dataURIto... |
// This file was procedurally generated from the following sources:
// - src/dstr-binding/ary-ptrn-rest-id-iter-step-err.case
// - src/dstr-binding/error/cls-expr-meth-dflt.template
/*---
description: Error forwarding when IteratorStep returns an abrupt completion (class expression method (default parameter))
esid: sec... |
/* eslint no-console: 0 */
/* global axios */
import ApiClient from '../ApiClient';
class MessageApi extends ApiClient {
constructor() {
super('conversations', { accountScoped: true });
}
create({
conversationId,
message,
private: isPrivate,
contentAttributes,
echo_id: echoId,
}) {
... |
// http://eslint.org/docs/user-guide/configuring
module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module'
},
env: {
browser: true,
},
// https://github.com/standard/standard/blob/master/docs/RULES-en.md
extends: 'standard',
// required to lint *.vue files
... |
g_db.quests[7320]={id:7320,name:"^ffffffCrazy Stone",type:1,trigger_policy:3,on_give_up_parent_fail:1,on_success_parent_success:0,can_give_up:0,can_retake:1,can_retake_after_failure:1,on_fail_parent_fail:0,fail_on_death:0,simultaneous_player_limit:0,ai_trigger:0,ai_trigger_enable:0,auto_trigger:0,trigger_on_death:0,rem... |
const axios = require('axios')
const bodyParser = require('body-parser')
function assignDefaults (strategy, defaults) {
Object.assign(strategy, Object.assign({}, defaults, strategy))
}
function addAuthorize (strategy) {
// Get client_secret, client_id and token_endpoint
const clientSecret = strategy.client_secr... |
/*
* ! OpenUI5
* (c) Copyright 2009-2020 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
sap.ui.define([],function(){"use strict";return{domRef:function(p){var $=jQuery.find(".mdcbaseinfoPanelListItem");var a=$.filter(function(P){return jQuery(P).control(0)... |
import Vue from 'vue'
import App from './App'
import router from './router'
import EtExperience from '../src'
import Axios from 'axios'
import VueProgressBar from 'vue-progressbar'
import Bluebird from 'bluebird'
import hljs from 'highlight.js'
import ApiView from './components/ApiView'
import CodeView from './compon... |
import { combineReducers} from "redux";
import notes from './notesReducer';
import labels from './labelReducer';
export default combineReducers({
notes,
labels
}) |
/*
* Copyright (c) 2001-2009, TIBCO Software Inc.
* Use, modification, and distribution subject to terms of license.
*/
jsx3.require("jsx3.chart.Chart");jsx3.Class.defineClass("jsx3.chart.RadialChart",jsx3.chart.Chart,null,function(m,a){a.init=function(c,g,j,d,k){this.jsxsuper(c,g,j,d,k);};a.createVector=function(){... |
import Vue from 'vue'
Vue.config.productionTip = false
//引入全局toast
import toastRegistry from '@components/toast/index'
Vue.use(toastRegistry)
import App from '../../src/js/pages/property/index.vue'
new Vue({
render: h => h(App)
}).$mount('#root') |
var NAVTREEINDEX14 =
{
"a00257.html#af2c33ee8aea93c2602caaf6c2b5904f2":[3,0,1,1,6,8],
"a00258.html":[3,0,1,62],
"a00258.html#a21e2638a4e3257976366623da0a06d52":[3,0,1,62,3],
"a00258.html#a358877500acd48b9a26b1f0cba6843ee":[3,0,1,62,1],
"a00258.html#a365ae7737121f932c95515d0c6309c35":[3,0,1,62,15],
"a00258.html#a3bb63e4... |
import { Model, DataTypes } from 'sequelize';
export default class TipoHito extends Model {
static init(sequelize) {
return super.init(
{
nombre: DataTypes.STRING,
},
{
sequelize,
modelName: 'TipoHito',
}
... |
const path = require('path');
const webpack = require('webpack');
const UglifyJSPlugin = require('uglifyjs-webpack-plugin'); // eslint-disable-line
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin; // eslint-disable-line
module.exports = {
entry: {
app: './src/client/ind... |
'use strict';
/**
* grunt-bundles
* https://github.com/terryweiss/grunt-bundles
*
* Copyright (c) 2014 Terry Weiss
* Licensed under the MIT license.
*/
var sys = require( "lodash" );
var path = require( "path" );
var browsCompiler = require( 'browserify' );
var through = require( 'through' );
var async = requir... |
import { h, Component } from 'preact';
import BootTable from '../../../components/bootstraptable'
import Map from '../../../components/map';
import { connect } from 'preact-redux';
import { loadProjectListMapData } from '../../../shared/actions/mapActions/projectListMapData';
import {
updateYearList,
setCurrent... |
// Written by JohnnyJoPo -- https://github.com/JohnnyJoPo
// On behalf of: N/A (personal hobby project for use as a web development portfolio piece)
// July 19, 2021
// JavaScript file for Maze Game
"use strict"
// Global variables
var mazeCoord = [];
var renderCoord = [];
var divGrid = [];
var nav = [1, 1];
var move... |
import React, {Component} from 'react';
import './FaceBook.css';
class FaceBookTop extends Component {
render() {
return (
<div id="navwrapper">
<div id="navbar">
<table className="tablewrapper">
<tr>
<td cl... |
const gulp = require('gulp');
const gulpLoadPlugins = require('gulp-load-plugins');
const browserSync = require('browser-sync').create();
const runSequence = require('run-sequence');
const packageInfo = require('./package.json');
const wiredep = require('wiredep').stream;
const $ = gulpLoadPlugins();
const reload = br... |
import React from 'react';
export default class PCProduct extends React.Component{
render(){
return(
<div className="area-sub" style={{overflow: 'visible'}}>
{/* product.html start */}
<div id="layout-product" className="m-box ui-style-gradient mb12">
<div id="js_changeView"... |
/**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*
* Version: 5.8.1 (2021-05-20)
*/
(function () {
'use strict';
... |
import { isNullOrUndefined } from "./utils";
const MonetaryFormatter = (function()
{
const T_DIGIT = 0;
const T_DECIMAL = 1;
const T_CURRENCY = 2;
const T_SIGN = 3;
const T_CHAR = 4;
function MonetaryFormatter()
{
this.setPattern(App.currencyPattern.patte... |
import React, { Component } from 'react'
import ReactModal from 'react-modal'
import {
Container,
Box,
Flex,
Image,
Row,
Logo,
Heading,
} from 'serverless-design-system'
import closeIcon from 'src/assets/images/icon-close.png'
import { Button, P } from 'src/fragments/DesignSystem'
import logo from 'src/as... |
'use strict';
var format = require('util').format;
function scalarReverse(s) {
return s.split('').reverse().join('');
}
function nameHash(name) {
// Generate a vector hash for the name string, weighting early over
// later characters. We want to pick the same colors for function
// names across different flame ... |
const os = require('os');
const path = require('path');
const EventEmitter = require('events').EventEmitter;
const fs = require('fs-extra');
const assert = require('assert');
const tiappXml = require('tiapp.xml');
const install = require('../');
const fixture = path.join.bind(null, __dirname, 'fixtures');
describe('ti... |
const points = games => {
return games.reduce((totalPoints, game) => {
const [x, y] = game.split(':');
const gamePoints = (x > y) ? 3 : (x === y) ? 1 : 0;
return totalPoints += gamePoints;
}, 0);
} |
const axios = require('axios');
module.exports = function(RED) {
function SendSMSNode(config) {
RED.nodes.createNode(this, config);
this.apiKey = config.apiKey;
const node = this;
node.on('input', function(msg) {
if (!node.apiKey) {
return node.error('Missing MessageBird API Key');
... |
/*
Template Name: Veltrix - Responsive Bootstrap 4 Admin Dashboard
Author: Themesbrand
Website: https://themesbrand.com/
Contact: themesbrand@gmail.com
File: morris Js File
*/
!function ($) {
"use strict";
var MorrisCharts = function () {
};
//creates line chart
MorrisCharts.prototype.c... |
'use strict';
module.exports = function (client) {
client.disco.addFeature('urn:xmpp:delay');
}; |
import expect from 'expect.js';
import { isVoidObject } from '../src/index';
describe('判断是否为空对象', function() {
it('参数不合法', function () {
try {
expect(isVoidObject([]));
} catch (err) {
expect(err).to.eql(new Error('参数类型非object'));
}
});
it('参数合法', function () {
expect(isVoidObject({}... |
import Mock from 'mockjs2'
import { builder } from '../util'
const info = (options) => {
console.log('options', options)
const userInfo = {
'id': '4291d7da9005377ec9aec4a71ea837f',
'name': 'ailk',
'username': 'admin',
'password': '',
'avatar': '/avatar2.jpg',
'status': 1,
'telephone': '... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["main"],{
/***/ 0:
/*!***************************!*\
!*** multi ./src/main.ts ***!
\***************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(/*! C:\Users\w... |
const TreasuryPool = artifacts.require('TreasuryPool.sol');
const RewardsDistributor = artifacts.require('RewardsDistributor.sol');
const Token = artifacts.require('MockToken.sol');
const BadRewardsClaimer = artifacts.require('BadRewardsClaimer.sol');
const parseRewards = require('../scripts/merkleDist/parseRewards').... |
const ToDoList = artifacts.require("ToDoList");
const { ZERO_ADDRESS } = require('./utils/constants');
contract('ToDoList', (admin, user1, user2) => {
beforeEach(async () => {
this.ToDoList = await ToDoList.new();
});
it('should create tasks', async () => {
for(let i=0; i < 3; i++){
... |
module.exports = {
name: "ABC-Board",
platform: "arduino-esp32",
title: "ABC-Board",
description: "บอร์ดที่พัฒนาจากบอร์ด KidBright โดยใช้แพลตฟอร์ม Arduino-ESP32 มีความสามารถเทียบเท่ากับบอร์ด Kidbright 1.5",
author: "ATtopup",
website: "",
email: "alltechkits@gmail.com",
git: "https://github.com/wisut-m/... |
'use strict';
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]; } } } return target; };
function _objectWithoutProperties(obj, keys) {... |
/*
* Mailchimp Marketing API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 3.0.55
* Contact: apihelp@mailchimp.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/sw... |
// # Your Mission
// Modify your solution from the previous lesson to set bar = true inside zip(),
// then return the function zip as the result of foo()
function foo() {
var bar;
quux = 2;
function zip() {
var quux;
bar = true;
}
return zip;
} |
const puppeteer = require('puppeteer');
puppeteer.launch({
headless: true
}).then(async browser => {
const context = await browser.createIncognitoBrowserContext();
const page = await context.newPage();
await page.goto('https://www.baidu.com');
await page.close();
}); |
// @copyright @polymer\iron-selector\iron-selector.js
// @copyright 2017-2018 adalberto.lacruz@gmail.com
import { AlgIronSelectableBehavior } from '../src/behaviors/alg-iron-selectable-behavior.js';
// eslint-disable-next-line
import { RulesInstance } from '../styles/rules.js';
/**
* If the selector contins active e... |
//arquivo de criação do servidor
require('dotenv').config({
// se tiver uma variavel node_env e ela for = a 'test' eu carrego o arquivo .env.test, senão o proprio arquivo .env
path: process.env.NODE_ENV === "test" ? ".env.test" : ".env"
// crio uma variavel global de tempo de execução para carregar o arquivos .e... |
/*
* Copyright 2022 ThoughtWorks, 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 agr... |
import React from 'react';
import { css } from 'emotion';
const rowStyle = css`
display: flex;
background: #000;
color: #fff;
`;
const Row = () => <div className={rowStyle} />;
export default Row; |
var express = require('express');
var https = require('https');
var http = require('http');
var fs = require('fs');
require('dotenv').config();
// This line is from the Node.js HTTPS documentation.
///home/winer/.wine/drive_c/mt4/MQL4/Node/certs/loc.23b.io/privkey.pem
var options = {
key: fs.readFileSync('certs... |
import axios from 'axios'
import Cookies from 'universal-cookie'
import getEnv from './getEnv'
function handleUnauthorized(error) {
if (!error.response) {
return false
}
const { status } = error.response
if (status === 401) {
clearAuth()
window.location.href = "/login"
return true
} else {
... |
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
(function() {
CodeMirror.defineMode("markdown_with_stex", function(){
var inner = CodeMirror.getMode({}, "stex");
var outer = CodeMirror.getMode({}, "markdown");
var innerOption... |
exports.historyTwoToneImpl = require('@material-ui/icons/HistoryTwoTone').default; |
/**
* Copyright 2018-present Facebook.
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* @format
*/
import {createStore} from 'redux';
import reducers from '../src/reducers/index.js';
import dispatcher from '../src/dispatcher/index.js';
i... |
const parallaxStyle = theme => ({
parallax: {
height: "90vh",
maxHeight: "1000px",
overflow: "hidden",
position: "relative",
backgroundPosition: "center top",
backgroundSize: "cover",
margin: "0",
padding: "0",
border: "0",
display: "flex",
alignItems: "center"
},
filte... |
(function (factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define('bootstrap.wysihtml5', ['jquery', 'wysihtml5', 'bootstrap', 'bootstrap.wysihtml5.templates', 'bootstrap.wysihtml5.commands'], factory);
} else {
// Browser globals
... |
import { searchAlbums } from '../src/main';
global.fetch = require('node-fetch');
const albums = searchAlbums('Incubus');
albums.then((data) => console.log(data)); |
/**
* 获取支持的浏览器列表,用于autoprefixer来自动增加前缀
* @param {*} isProd 是否生产环境
*/
function getBrowsersList(isProd) {
return {
// https://github.com/postcss/autoprefixer/issues/776
remove: false,
overrideBrowserslist: isProd
? ['last 2 versions', 'ios >= 9', 'android >= 4']
: [
'last 2 Chrome v... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.