code stringlengths 2 1.05M |
|---|
import React from "react";
import { createRenderer } from "react-test-renderer/shallow";
import { isDOMComponent } from "../src";
const OtherComponent = () => <div className="other-component" />;
const Test = () => (
<div className="test-class">
<OtherComponent />
</div>
);
describe("`isDOMComponent`", () =>... |
export default class Auth {
static authenticateUser(token, email) {
localStorage.setItem('token', token);
localStorage.setItem('email', email);
}
static isUserAuthenticated() {
return localStorage.getItem('token') !== null;
}
static deauthenticateUser() {
localStora... |
/*
* Task Automation to make my life easier.
* Author: Jean-Pierre Sierens
* ===========================================================================
*/
// declarations, dependencies
// ----------------------------------------------------------------------------
var gulp = require('gulp');
var run = require('gulp-r... |
/**
* theEcho.js
*
* @author <a href="https://github.com/pahund">Patrick Hund</a>
* @since 24 Jul 2016
*/
import range from "../processors/range";
import enabled from "../processors/enabled";
import button from "../processors/button";
import named from "../processors/named";
import fullRangeNamed from "../processo... |
import Observable from './../observer/Observable.js'
export default class Model extends Observable {
/**
* Represents a Model and holds all its components and contextual parameters.
* @param {string} entityName Name of the represented entity.
* @param {string} locale ... |
var count = 1,
term = [],
nterm = [],
producao = [],
errTerm,
nTermError = false,
errNTerm,
inicial,
tabActive,
producaoSemVazio = null,
producaoUnitaria = null,
producaoCombinada = null,
nTermKeyUpError = false,
audio = new Audio("audio/audio.mp3"),
audio2 = new Audio("audio/audio2.mp3");
... |
import { combineReducers } from 'redux';
import LoginReducer from './reducer_login';
import ProfileReducer from './reducer_profiles';
import NavLinkReducer from './reducer_nav-links';
import Activities from './reducer_activities';
import TransactionsReducer from './reducer_transactions';
import PostsReducer from './red... |
import hasher from 'hasher';
export default class Navbar {
constructor(params) {
if (params) {
this.activePageTitle = params.activePageTitle;
}
}
navHome() {
var current = hasher.getHash();
if (current === '') {
hasher.changed.dispatch(current, current);
}
else {
hashe... |
/** @jsx dom */
import dom from 'magic-virtual-element';
const classes = opts => ({
Grid: true,
'Grid--withGutter': Boolean(opts.gutter),
'Grid--alignCenter': Boolean(opts.center),
'Grid--alignRight': Boolean(opts.right),
'Grid--alignMiddle': Boolean(opts.middle),
'Grid--alignBottom': Boolean(opts.bottom),
'Gri... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { Family } from '../../../State/Actions/index';
import Header from './Header';
class HeaderContainer extends Component {
static propTypes = {
a... |
import { moduleForModel, test } from 'ember-qunit';
moduleForModel('structure-map-structure', 'Unit | Model | StructureMap_Structure', {
needs: [
'model:meta',
'model:narrative',
'model:resource',
'model:extension'
]
});
test('it exists', function(assert) {
const model = this.subject();
assert... |
// Generated on 2015-08-19 using generator-angular 0.12.1
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// use this if you want to recursively match all subfolders:
// 'test/spec/**/*.js'
module.exports = function (grunt) {
// Time how long task... |
require('dotenv').load();
module.exports = {
port: process.env.PORT || 1337,
fcm: {
serverKey: process.env.FCM_SERVER_KEY
}
};
|
let {defineGrammar, def, ref, many1, regex, choice} = require('maitreya/lib/grammar');
let {GLRParser} = require('maitreya/lib/interpret');
let grammar = defineGrammar(() => {
def('exp', [ref('num')], ([num]) => num);
def('exp', [ref('exp'), ref('op'), ref('exp')], ([lhs, op, rhs]) => op(lhs, rhs));
def('n... |
import {
CYOTA,
ISSUER_ID,
WEBCARD_TYPE,
REQUEST,
SUB_EVENT
} from './.constants';
function selectTwoFactorVerifyMethod(app, verifyMethod) {
return app.request({
User: app.username,
Type: verifyMethod.Id,
WebcardType: WEBCARD_TYPE,
Request: REQUEST.OTP_DELIVERY,
CyotaTransactionId: CYOT... |
var sails = require('sails');
before(function(done) {
this.timeout(20000);
sails.lift({
}, function(err, server) {
if (err) return done(err);
done(err, sails);
});
});
after(function(done) {
sails.lower(done);
});
|
(function () {
'use strict';
angular
.module('core')
.factory('authInterceptor', authInterceptor);
authInterceptor.$inject = ['$q', '$injector'];
function authInterceptor($q, $injector) {
var service = {
responseError: responseError
};
return service;
function responseError(re... |
import test from 'ava'
import RespParser from '../src'
test('null-bulk-string', t => {
var parser = new RespParser()
parser.feed('-1\r\n')
var value = parser.results
var expected = {"type":"NullBulkString"}
t.deepEqual(value, expected, 'Parsed value does not match expected result')
}) |
version https://git-lfs.github.com/spec/v1
oid sha256:18d7ca940c08dd28825846bf2c8f2c9d313f3b6000cde5135c973ac8a4fea2f4
size 122642
|
// Static settings variables
var DEBUG = true,
GAME_WIDTH = 800,
GAME_HEIGHT = 600,
GROUND_HEIGHT = 128,
SOUND_BUTTON_WIDTH = 25,
PATRICK_VELOCITY_X = 400,
PATRICK_VELOCITY_Y_PATTY = 300,
PATRICK_VELOCITY_Y_GRAVITY_LOSS = 30,
PATTY_ENERGY_BOOST = 30,
PATTY_BOOST_DURATION = 7,
FIR... |
//////////////////////////////////////////////////////////
// Assets
//////////////////////////////////////////////////////////
var splash_sound;
var shield_up_sound;
var shield_down_sound;
var shield_cooldown_sound;
function loadSounds()
{
//based on Slime Splash Sound
splash_sound = document.createElement("aud... |
var App;
(function (App) {
var Domain;
(function (Domain) {
var Product = (function () {
function Product(productId, productName, productCode, releaseDate, price, description, imageUrl) {
this.productId = productId;
this.productName = productName;
... |
/*!
Copyright (c) 2014 Dominik Moritz
This file is part of the leaflet locate control. It is licensed under the MIT license.
You can find the project at: https://github.com/domoritz/leaflet-locatecontrol
*/
(function (factory, window) {
// see https://github.com/Leaflet/Leaflet/blob/master/PLUGIN-GUIDE.md#module-... |
// The MIT License (MIT)
// Copyright (c) 2015 Daniel Roesler
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy... |
/*
The MIT License (MIT)
Copyright (c) 2013 Bryan Hughes <bryan@theoreticalideations.com> (http://theoreticalideations.com)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, in... |
define(function() { return function() { //START-EXAMPLE
/*
* Add a DOM appender bound to the id="log" DIV
* Limit to WARN messages or higher
*/
aperture.log.addDomAppender( {
container : $('#log'),
level : aperture.log.LEVEL.WARN
} );
/* Added by the configuration block in wmsconfig.js
aperture.log.addConsoleAppe... |
module.exports = function (...loggables) {
if (process.env.NODE_ENV === 'development') {
return console.log(...loggables)
} else {
return
}
}
|
/*jslint white:true, browser:true, plusplus:true, nomen:true, vars:true */
/*global wooga */
(function () {
"use strict";
var utils = wooga.castle.utils;
wooga.castle.FarmFieldView = function (view, entity) {
wooga.castle.EntityView.call(this, view, entity);
entity.addEventHandler("cont... |
var gulp = require('gulp');
var watch = require('gulp-watch');
var exec = require('child_process').exec;
gulp.task('watch-browser', function () {
watch('www/**/*', function () {
exec('cordova prepare browser');
});
}); |
var express = require('express');
var router = express.Router();
var dbProvider = require('../modules/mongodb-provider.js');
router.get('/', function(request, response, next){
console.log('Get all');
dbProvider.provideList(response);
});
router.post('/', function(request, response, next){
dbProvider.saveChara... |
<Form>
<fieldset disabled>
<Form.Group className="mb-3">
<Form.Label htmlFor="disabledTextInput">Disabled input</Form.Label>
<Form.Control id="disabledTextInput" placeholder="Disabled input" />
</Form.Group>
<Form.Group className="mb-3">
<Form.Label htmlFor="disabledSelect">Disabled sele... |
import Model from './model'
import { screenDeep } from 'palisade'
export const isAuthorized = ({ id, user }) =>
Model.authorized('delete', user, { id })
export const process = ({ id }) =>
Model.get(id).run().then((i) => i.purge())
export const format = ({ user }, data) =>
screenDeep(user, data)
|
/*!
* jQuery JavaScript Library v2.2.0
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2016-01-08T20:02Z
*/
(function( global, factory ) {
if ( typeof module... |
exports.io = function() {
var sockets = {},
existing;
return function(socket, next) {
var draw_event = 'draw:' + socket.id,
move_event = 'move:' + socket.id;
socket.on(draw_event, function(pos) {
socket.to('drawing').emit(draw_event, pos);
});
s... |
(function ( $ ) {
'use strict';
$(document).ready(function() {
var deleteButton;
$(document).on('click', '.btn-confirm',function(e) {
e.preventDefault();
deleteButton = $(this);
if (deleteButton.is("a")) {
$('#confirmation-modal #confirmation-modal-confirm').attr('href', delete... |
/*
* Copyright (c) 2015 airbug inc. http://airbug.com
*
* bugcli may be freely distributed under the MIT license.
*/
//-------------------------------------------------------------------------------
// Annotations
//-------------------------------------------------------------------------------
//@Export('bugcli... |
import Promise from 'bluebird';
import cheerio from 'cheerio';
import fetch from 'isomorphic-fetch';
import moment from 'moment';
import querystring from 'querystring';
export default async function getNewAdds(startDate) {
const filters = {
type: 'sell',
'filter[list_wheel_diameter_id]' : 3,
priceMax: 2... |
'use strict';
// Declare app level module which depends on filters, and services
angular.module('myApp', [
'ngRoute',
'myApp.filters',
'myApp.services',
'myApp.directives',
'myApp.controllers'
]).
config(['$routeProvider', function($routeProvider) {
// $routeProvider.when('/view1', {templateUrl: 'app/parti... |
'use strict';
define(function (require) {
var p5sound = require('master');
require('oscillator');
/**
* Creates a Pulse object, an oscillator that implements
* Pulse Width Modulation.
* The pulse is created with two oscillators.
* Accepts a parameter for frequency, and to set the
* width be... |
export const ic_golf_course_twotone = {"viewBox":"0 0 24 24","children":[{"name":"path","attribs":{"d":"M0 0h24v24H0V0z","fill":"none"},"children":[]},{"name":"circle","attribs":{"cx":"19.5","cy":"19.5","opacity":".3","r":"1.5"},"children":[]},{"name":"path","attribs":{"d":"M17 5.92L9 2v18H7v-1.73c-1.79.35-3 .99-3 1.73... |
var crypto = require("crypto");
var Buffer = require("buffer").Buffer;
var express = require('express');
var mysql = require("mysql");
var ccap = require('ccap')();
var config = require("../config/config.js");
var mem = require("./mem.js");
var app = express();
var router = express.Router();
var pool = mysql.create... |
/**
* Toggle Element
* @param {Object} attrs
* @label
* @handler
* @name
* @link
* @init
*/
function Toggle( attrs ) {
'use strict';
var self = this;
this.init = attrs.init;
this.element = document.createElement('div');
this.element.classList.add('toggle_span');
... |
/**
* Copy files and folders.
*
* ---------------------------------------------------------------
*
* # dev task config
* Copies all directories and files, exept coffescript and less fiels, from the sails
* assets folder into the .tmp/public directory.
*
* # build task config
* Copies all directories nd files... |
var DashedLine = Class.extend({
name: 'DashedLine',
endX:0,
endY:0,
lineWidth: 0,
dashArray: [],
init: function (endX, endY, lineWidth, dashArray) {
this.endX = endX;
this.endY = endY;
this.lineWidth = lineWidth;
this.dashArray = dashArray;
}
});
|
import React from 'react'
import renderer from 'react-test-renderer'
import { shallow } from 'enzyme'
import SubscribeMessage from './index'
const props = {
onClick: jest.fn(),
}
describe('<SubscribeMessage />', () => {
test('<SubscribeMessage />', () => {
const component = renderer.create(<SubscribeMessage ... |
export const ic_notifications_none_outline = {"viewBox":"0 0 24 24","children":[{"name":"path","attribs":{"d":"M0 0h24v24H0V0z","fill":"none"},"children":[]},{"name":"path","attribs":{"d":"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.... |
import * as Winston from "winston";
export class Debug {
constructor(status) {
this._debugStatus = status || false;
this._winstonLogger = new Winston.Logger();
}
addTransporter(transporter, transporterConfig) {
this._winstonLogger.add(transporter, transporterConfig);
}
log(lo... |
import express from 'express';
const { PORT = 3000 } = process.env;
let app = require('./server').default;
if (module.hot) {
module.hot.accept('./server', () => {
console.log('Server reloading...');
try {
app = require('./server').default;
} catch (error) {
// Do nothing
}
});
}
exp... |
// jsonを読みこんでMediaQueriesの数値をサイトで共有する
var mqSize = require('../../variables.json');
//if use MediaQueries 'mqSize.mq.s/m/l/ll'
function globMenuAnimSet(){
const $OPE_TARGET = jQuery('#global_nav');
const $CHG_TARGET = jQuery('.p-rootmenu_box');
const $CHG_HIDES = jQuery('.p-main-block, .p-footer-block');
cons... |
var path = require('path');
var webpack = require('webpack');
var assetsPath = path.join(__dirname, '..', 'public', 'assets');
var hotMiddlewareScript = 'webpack-hot-middleware/client?path=/__webpack_hmr&timeout=20000&reload=true';
var commonLoaders = [
{
/*
* TC39 categorises proposals for babel in 4 stage... |
"use babel"
import Blamer from 'blamer'
let blamer = null
export default function (file, callback) {
if (!blamer) {
blamer = new Blamer('git')
}
blamer.blameByFile(file).then(
(result) => callback(result[file]),
(error) => callback(null)
)
}
|
wordCloud.wordCloudModule = (function(mathModule, uiHelpersModule, MetaData) {
var topics = [];
var configs = {
aMaxFactorForMarginLeftAndRight: 15,
aMaxFactorForMarginTopAndBottom: 40
}
function getTopics() {
return topics;
}
function setTopics(value) {
... |
describe('Pagelet - Alert', function () {
'use strict';
var common = require('../common')
, expect = common.expect
, sinon = common.sinon;
var Alert = require('../../pagelets/alert')
, alert;
beforeEach(function () {
alert = new Alert;
});
afterEach(function () {
alert = null;
});
... |
QUnit.test( "Read from Texture", function() {
const gpu = new GPU();
const A = [1, 2, 3, 4, 5];
const B = [1, 2, 3, 4, 5];
function add(m, n) {
return m + n;
}
const kernels = gpu.createKernelMap({
addResult: add
}, function (a, b) {
return add(a[this.thread.x], b[this.thread.x]);
})... |
describe("Rune.Line", function() {
var s;
var g;
beforeEach(function() {
s = new Rune.Line(10, 15, 20, 25);
g = new Rune.Group();
});
describe("constructor", function() {
it("should set variables", function() {
var l = new Rune.Line(10, 15, 20, 25);
expect(l.state.x).toEqual(10);
... |
var Helper = require('./helper.js');
var repeat = Helper.repeat;
function TreeNode(val) {
this.val = val;
this.left = this.right = null;
};
var genTreeWithDepth = function (depth, sign) {
if (depth <= 0) {
return null;
}
var node = new TreeNode();
var decided = false;
node.val = He... |
import thirdSide from './thirdSide'
describe('thirdSide', () => {
it('english and persian', () => {
expect(thirdSide('english', 'persian')).toEqual('phonetic')
})
it('english and phonetic', () => {
expect(thirdSide('english', 'phonetic')).toEqual('persian')
})
it('persian and english', () => {
... |
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) { var target = {... |
/**
* Automatic generated by "support.build.js"
* */
~~~function(){
// 环境检测
window['PXER_SUPPORT'] =true;
window['PXER_LOAD_APP'] =false;
const supportType =['bookmark_works','member_works','search','works_medium','bookmark_new','rank','discovery','member_works_new'];
const URLData =parseURL(document.URL);
if(URLDat... |
'use strict';
function getDegToRad(param) {
return Math.PI / 180;
}
function getRadToDeg(param) {
return 180 / Math.PI;
}
exports.getDegToRad = getDegToRad;
exports.getRadToDeg = getRadToDeg;
/* No side effect */
|
var widthUI = document.getElementsByClassName("mainContainer")[0].offsetWidth; //Get width of UI
//create dictionary for translating phrase grades into color
var gradeCode = {
NaN : 'white',
'error' : 'white',
'No Data' : 'grey',
'Rest' : 'black',
'Fail' : 'red',
'Pass' : 'indigo',
'Good' : 'gold',
... |
// Create application logger using loglevel
// https://atmospherejs.com/spacejamio/loglevel
log = loglevel.createAppLogger('LesionTracker', defaultLevel = 'info');
|
var screencap = require('../index.js');
var screen = screencap('test.gif');
screen.gif('350','10'); |
var tape = require('tape')
var seqhash = require('./')('sha1')
tape('consistent seed', function (t) {
t.same(seqhash('hello'), seqhash('hello'), 'same seed for same input')
t.notEqual(seqhash('hello'), seqhash('world'), 'different seed for different input')
t.end()
})
tape('rolling hash', function (t) {
var s... |
version https://git-lfs.github.com/spec/v1
oid sha256:df77d9874b05250881b5bff66f89b944d3350167d86ca2f97f0ca2bfb9f00fc1
size 120921
|
// test-utils.js
// some shared code between tests
var $ = require('cheerio');
function sample(vals) {
return vals.map(function(v) {
return {el: $('<div></div>'), val: v};
});
}
module.exports.sample = sample;
function marked(data, rule) {
// in the testing environemnt the keys are strings for some reason ... |
require("dotenv").config();
const pMap = require("p-map");
const { ObjectId } = require("mongodb");
const { connectMongo } = require("../src/models/connect");
const ExperienceModel = require("../src/models/experience_model");
const {
ExperienceViewLogNotificationTemplate,
} = require("../src/libs/email_templates... |
module.exports = {
options: {
reporter: require('jshint-stylish'),
bitwise:true,
browser: true,
curly: true,
eqeqeq: true,
strict: true,
globals: {
// app: true,
},
},
// files: ['dmf.js']
files: ['js/**/*']
}
|
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["main"],{
/***/ "./src/$$_lazy_route_resource lazy recursive":
/*!**********************************************************!*\
!*** ./src/$$_lazy_route_resource lazy namespace object ***!
\**********************************************************/
/*... |
var searchData=
[
['send',['send',['../namespacesend.html',1,'']]]
];
|
$(document).ready(function()
{
$('tr[id] td:not(:first-child)').click(function()
{
var user = $(this).parent().attr('id')
window.location = './modifyusers.php?method=modify&id=' + user
})
$('#tickbox_all').change(function()
{
if($(this).is(':checked'))
{
$('table#user_table input[type="checkbox"]').pr... |
//==============================================================================
//:::: NOTERY ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
//==============================================================================
//==========================================================================... |
var http = require("http");
var qs = require( 'querystring' );
var handlerMgr = require('./handlerMgr');
var session = require('../../util/session');
var general = require('../../util/general');
var pomelo = require('pomelo');
var connector = function(host,port) {
this.server = null;
this.host = host;
this.port = p... |
version https://git-lfs.github.com/spec/v1
oid sha256:c526fff8db40f9b4c7d0bf3a993bfe3896bbf11ae88e6f5e423aeae6dda05e12
size 18459
|
/**
* @license for js-calculator-demo: https://github.com/jarrett/js-calculator-demo/blob/master/LICENSE
*/
$(function() {
$('.calculator').each(function() {
// -------------- //
// DOM elements. //
// -------------- //
// The wrapper element.
var calculator = $(this);
// Sh... |
exports.create = function (components) {
var robot = new Robot();
return robot.addComponents(components);
};
function Robot () {
var r = this; //hold on to an instance of robot
this.s; //seconds for the setTimeout call in the recall function
this.f; //function to run every (n) seconds
this.c;... |
import React, {PropTypes} from 'react';
import constants from '../../../../constants';
import Checkbox from './checkbox/checkbox';
const Genre = ({genre, toggleGenre}) => {
function isGenreSelected(genreName) {
return genre.includes(genreName);
}
const genreNames = constants.genres;
const genreCheckboxes... |
jQuery(function($) {
var context = $( 'body' );
IMC.vars = {
body : context
};
Dispatcher( IMC.Application, window, [context] );
}); |
/* global $ define drive memoize ui main google secrets Set */
'use strict';
(function () {
var knownPropertyValues = {
supplier: new Set(),
date: new Set.MonthSet()
},
currentlyShownDialog = $();
var showUnclosableDialog = function (title, text, click, buttons) {
... |
var app = angular.module("app", ["xeditable", "mc.resizer"]);
app.controller('NodeCtrl', ['$scope','$http','$location','$q', function($scope,$http,$location,$q) {
var keyPrefix = '/v2/keys',
statsPrefix = '/v2/stats';
$scope.urlPrefix = $location.search().etcd || $location.protocol() + "://" + document.loc... |
/* jslint node: true, vars: true, white: true */
"use strict";
//Module requirements
var mysql = require('mysql');
var mysqlSettings = require('./mysql-settings.json');
//Module imports
var cache;
var connection = mysql.createConnection({
host : mysqlSettings.host,
user : mysqlSettings.username... |
const Generator = require('yeoman-generator');
module.exports = class extends Generator {
constructor(args, opts) {
super(args, opts);
this.composeWith(require.resolve('../npm'));
}
writing() {
this.fs.copy(this.templatePath('.stylelintrc'), this.destinationPath('.stylelintrc'));
}
install() {
... |
'use strict';
let _ = require('lodash'),
models = require('../../app/models'),
errors = require('../../app/support').errors,
services = require('../../app/services');
describe('AccountManager Service', () => {
let user, manager;
beforeEach(() => {
user = factory.buildSync('user');
manager = new ... |
$(document).ready(function(){
// Retreive Base_Url
var origin = window.location.origin;
var pathArray = window.location.pathname.split( '/' );
base_url = origin + '/' + pathArray[1] + '/';
$(".dashboard").sortable({
opacity: 0.6,
connectWith: ".dashboard",
placeholder: "sort-highlight",
forcePlaceholder... |
if (Meteor.isClient) {
Meteor.subscribe("lists");
Meteor.subscribe("todos");
Meteor.subscribe("calevent");
Meteor.subscribe("clients");
Meteor.subscribe("equipment");
Meteor.subscribe("users");
Meteor.subscribe("manufacturer");
Meteor.subscribe("equipment_type");
Meteor.subscribe("car");
Accounts.ui.config... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.8/esri/copyright.txt for details.
//>>built
define({colorRamps:{none:"\uc5c6\uc74c",blackToWhite_predefined:"\uac80\uc740\uc0c9 -\x3e \ud770\uc0c9",yellowToRed_predefined:"\ub178\ub780\uc0c9 -\x3e \ube68\uac0... |
// We need to import the CSS so that webpack will load it.
// The MiniCssExtractPlugin is used to separate it out into
// its own CSS file.
import css from "../css/app.css"
// webpack automatically bundles all modules in your
// entry points. Those entry points can be configured
// in "webpack.config.js".
//
// Import... |
'use strict'; // Mode strict du JavaScript
/*************************************************************************************************/
/* ****************************************** DONNEES ****************************************** */
/*************************************************************************... |
import { collapseAll } from '../src';
describe('tree.collapseAll', function () {
it('returns empty rows if empty rows are passed', function () {
expect(collapseAll()([])).toEqual([]);
});
it('returns rows with showingChildren set false', function () {
const given = [
{
foo: 'bar'
}
... |
/**
* Created by g.kosharov on 28.8.2016
*/
import { CALL_API } from '../middleware'
export const START_GAME = 'ws/start';
export function startGame(payload) {
return {
type: START_GAME,
payload: payload
};
}
export function triggerStartGame(payload) {
return (dispatch, getState) => {... |
import axios from 'axios'
import store from '@/store/store'
import config from '@/config/config'
export default () => {
return axios.create({
baseURL: `${config.url}`,
headers: {
Authorization: `Bearer ${store.state.token}`
}
})
}
|
/**
* Jatabase
*
* @author Gabriel Jacinto <gamjj74@hotmail.com>
* @license MIT License
* @package jatabase
*/
'use strict';
const fs = require('fs');
/**
* Verify if the file exists and if is a JSON
*
* @param {String} file
*/
module.exports = function (file) {
let fileParts = file.split('.');
if (fi... |
/*
* grunt-casperjs-plugin
* https://github.com/rodrigocuriel/grunt-casperjs-plugin
*
*
* based on Ronald lokers plugin
* https://github.com/ronaldlokers/grunt-casperjs
*
* Copyright (c) 2013 Rodrigo Curiel
* Licensed under the MIT license.
*/
module.exports = function(grunt) {
'use strict';
var casperj... |
import ConsoleList from './list'
export default ConsoleList
|
version https://git-lfs.github.com/spec/v1
oid sha256:f6d85ce084b2d3054941ad071f1ee30df516d7b1852dfdf53590d39b5fa9522a
size 1479
|
'use strict';
module.exports = {
'twitterAuth': {
'consumerKey': process.env.TWITTER_KEY,
'consumerSecret': process.env.TWITTER_SECRET,
'callbackURL': process.env.APP_URL + 'auth/twitter/callback'
}
};
|
'use strict';
module.exports = function (t, a) {
a(t(null), false, "Null");
a(t(1), false, "Primitive");
a(t({}), false, "Any object");
if (typeof document !== 'undefined') {
a(t(document.createDocumentFragment()), false, "DocumentFragment");
a(t(document.createElement('div')), false, "Element");
a(t(docume... |
/*!
* DevExtreme (dx.vectormaputils.debug.js)
* Version: 16.2.6
* Build date: Tue Mar 28 2017
*
* Copyright (c) 2012 - 2017 Developer Express Inc. ALL RIGHTS RESERVED
* EULA: https://www.devexpress.com/Support/EULAs/DevExtreme.xml
*/
"use strict";
! function(wnd) {
var exports = wnd.DevExpress = wn... |
'use strict';
const assert = require('assert'),
types = require(__dirname + '/../lib/defs.js').types;
describe('int8', function () {
const expected = 0x65,
b = new Buffer([0, 0x65]);
describe('#read()', function () {
it('should read one byte as integer', function () {
const result = types.int8.read(b, 1);
... |
<<<<<<< HEAD
<<<<<<< HEAD
var test = require('tap').test
var v = require('../npm-user-validate.js').pw
test('pw contains a \'', function (t) {
err = v('\'')
t.type(err, 'null')
t.end()
})
test('pw contains a :', function (t) {
err = v(':')
t.type(err, 'null')
t.end()
})
test('pw contains a @', function (... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.