code stringlengths 2 1.05M |
|---|
var
_ = require('underscore'),
clone = require('clone'),
Promise = require('bluebird'),
ruleDao = require('../persistence/ruleDao'),
actionService = require('./actionService'),
elasticSearchService = require('../../lib/ioc').create('elasticSearchService'),
timeService = require('./timeService'),
ruleConverter =... |
"use strict";
app.ports.requestDeucePopupPanelInfo.subscribe(function (_) {
// Enough delay so that the menu will actually appear and have height
window.setTimeout(function() {
var deucePopupPanel = document.getElementsByClassName("deuce-popup-panel")[0];
if (deucePopupPanel) {
var info =
{ "... |
function euler571() {
// Good luck!
return true
}
euler571()
|
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.AutosizeInput ... |
import React from 'react'
import { findDOMNode } from 'react-dom'
import { render } from '../TestUtils'
import WindowScroller from './WindowScroller'
function ChildComponent ({ scrollTop, height }) {
return (
<div>{`scrollTop:${scrollTop}, height:${height}`}</div>
)
}
describe('WindowScroller', () => {
func... |
"use strict";
var should = require('should')
, app = require('../../fixtures/app').app
, DockerAPI = require('../../../lib/docker-api')
, DockerContainer = require('../../../lib/docker-container')
require('should-promised');
describe('docker-api', function () {
var api
it('should return a DockerAPI insta... |
Space.ui.BlazeComponent.extend('Todos.TodoList', {
dependencies: {
store: 'Todos.TodosStore',
meteor: 'Meteor'
},
todos() {
return this.store.filteredTodos();
},
hasAnyTodos() {
return this.store.filteredTodos().length > 0;
},
allTodosCompleted() {
return this.store.activeTodos().l... |
// Karma configuration
// Generated on Fri Nov 15 2013 00:26:38 GMT-0700 (MST)
module.exports = function(config) {
config.set({
// base path, that will be used to resolve files and exclude
basePath: '',
// frameworks to use
frameworks: ['jasmine'],
// list of files / patterns to load in the ... |
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = Reference;
var _extends2 = _interopRequireDef... |
function string(str, l) {
str = str ? str : '';
return str.length <= l ? true : false;
}
function imageHW(file, h, w) {
// TODO: create validation image
return true;
}
function arrayString(str, l) {
str = str ? str : '';
var strArr = str.split(',');
var flag = true;
strArr.forEach(function(e, i) ... |
"use strict";
var gulp = require('gulp'),
concat = require('gulp-concat'),
uglify = require('gulp-uglify'),
rename = require('gulp-rename'),
sass = require('gulp-sass'),
maps = require('gulp-sourcemaps'),
del = require('del');
gulp.task("concatScripts", function() {
return gulp.src([
'j... |
/**
* @Author: will
* @Date: 2017-08-09T23:33:32+08:00
* @Filename: ToastView.js
* @Last modified by: will
* @Last modified time: 2017-08-12T17:12:02+08:00
*/
// ToastView.js
'use strict';
import React, {Component} from "react";
import PropTypes from 'prop-types';
import {View, Image, Text} from 'react-n... |
version https://git-lfs.github.com/spec/v1
oid sha256:3b45ceba2068a1a065c2a51775b112b84c605f3d246ce7e0e29ff5517788dcb0
size 521
|
var path = require('path')
, testutil = global.testutil = require('../lib/index.js')
, testGroup = createTestGroup()
global.requireUnit = function(testFilename) {
return testutil.requireUnit(testFilename, undefined, testGroup)
}
testutil.includeTests(path.dirname(module.filename), module.exports, testGroup)
... |
angular.module( 'multiLanguage' )
.provider( '$multiLanguageConfig', function() {
var supportedLanguages = 'en,es,de,fr,ru'.split( ',' );
var map = {
en: 'us',
es: 'es',
de: 'de',
fr: 'fr',
ru: 'ru',
};
var tabTemplate = [
'<ul class="nav nav-tabs" role="tablist">',
'<li role="presentation... |
import React from 'react';
import ReactDOM from 'react-dom';
import classNames from 'classnames';
// Helpers
import { rewriteMediaLink } from 'utils/rewrite';
// Styles
import './common.css';
// Polyfill
require('es6-promise').polyfill();
require('isomorphic-fetch');
// Components
import Post from 'components/Utils... |
'use strict'
const {INTEGER, STRING, FLOAT} = require('sequelize')
module.exports = db => db.define('movies_genres', {
movie_id: {
type: INTEGER,
defaultValue: null,
primaryKey: true,
},
genre: {
type: STRING,
defaultValue: null,
},
})
module.exports.associations = (Movie_genre, {Movie}... |
// ==UserScript==
// @name BuyHightech
// @namespace https://github.com/MyRequiem/comfortablePlayingInGW
// @description В HighTech магазине добавляет ссылки "Продать" и "Купить" для каждого предмета. При клике открывается страница с формой подачи объявления для данного предмета.
// @id ... |
define(function() {
var doc = document.documentElement;
return {
getTop: function() {
return (window.pageYOffset || doc.scrollTop) - (doc.clientTop || 0);
},
getLeft: function() {
return (window.pageXOffset || doc.scrollLeft) - (doc.clientLeft || 0);
}
};
});
|
'use strict';
var _ = require('lodash');
var mongo = require('../../lib/mongo/');
function User(p) {
this.text = p.text;
}
Object.defineProperty(User, 'collection', {
get: function () { // the function returned will be used as the value of the property
return mongo.getDb().collection('user');
}
});
User... |
/*
Gradebook from Names and Scores
I worked on this challenge with Gary Wong
This challenge took me 1 hours.
You will work with the following two variables. The first, students, holds the names of four students.
The second, scores, holds groups of test scores. The relative positions of elements within the two
variab... |
var audio = new Audio();
function playAudio(string, lang) {
if (typeof(lang) === 'undefined') lang='ru';
audio.src = 'api/tts/' + lang + '?s=' + encodeURIComponent(string);
audio.play();
}
var recognizing = false;
var onEndUser;
var transcript = '';
try {
var recognition = new webkitSpeechRecognition();
re... |
module.exports = function(grunt) {
grunt.initConfig({
jshint: {
all: ['*.js'],
options: {
node: true,
'-W030': true, // to allow mocha expects syntax
globals: {
before: false,
after: false,
beforeEach: false,
afterEach: false,
... |
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const schoolSchema = new Schema({
type: { type: String, enum: ['Grammar School', 'Middle School', 'High School'], default: 'High School' },
name: { type: String, trim: true },
address: String,
imageUrl: String,
description: Strin... |
/*MIT License
Copyright (c) 2017 MTA SZTAKI
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, modify, merge, publish, dist... |
'use strict';
/**
* @ngdoc overview
* @name webApp
* @description
* # webApp
*
* Main module of the application.
*/
var webApp = angular
.module('webApp', [
'ngRoute',
'ngAnimate',
'ui.tree',
'mediaPlayer',
'hmTouchEvents',
'ngImgCrop'
])
.config(['$ro... |
/**
* Created by lex on 07.03.17.
*/
import $ from 'jquery'
/*
* @class
* Basic class for components that need $(document).ready
* */
export default class AbstractComponent {
/*@constructor
* */
constructor() {
this.render = this.render.bind(this);
this._processComponent();
}
/*
... |
module("background_geolocation");
// In this test we call the example showAlert API method with an example string
//asyncTest("Attempt to show an alert with no text", 1, function() {
// forge.background_geolocation.showAlert("Hello, testing world!", function () {
// askQuestion("Did you see an alert with the message ... |
version https://git-lfs.github.com/spec/v1
oid sha256:ba63a34e99110ad2d72ae1e3b7d35c3590752bc20dcd1a1a056ecea88aa2df57
size 255693
|
'use strict';
var _regenerator = require('babel-runtime/regenerator');
var _regenerator2 = _interopRequireDefault(_regenerator);
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerabl... |
var keypress = require('keypress');
var columns = require('../main').create({
margin: {
top: 5,
bottom: 2,
right: 5,
left: 5
},
column_separator: ' | ',
header_separator: '-_-_',
flow_mode: 'reset',
overflow: 3,
maximum_buffer: 300,
tab_size: 2,
// mo... |
$(document).ready(function(){
var socket = io.connect( 'http://127.0.0.1:3000' );
$( "#messageForm" ).submit( function() {
var nameVal = $( "#nameInput" ).val();
var msg = $( "#messageInput" ).val();
var receiver = $("#receiver").val();
//var reciever = 'sdklfjsdklfjsdl';
... |
var express = require('express');
var app = express();
var result = {namn:'demas'}
app.get('/', function (req, res) {
res.send(result);
});
var server = app.listen(3000, function () {
var host = server.address().address;
var port = server.address().port;
console.log('Example app listening at http://%s:%s'... |
import { version } from '../../package.json';
import { Router } from 'express';
import receipt from './receipt';
export default ({ config, db }) => {
let api = Router();
// mount the facets resource
api.use('/receipt', receipt({ config, db }));
api.get('/', (req, res) => {
res.json({ version });
});
return... |
var ellipse = require('./')
var test = require('tape').test
var context = document.createElement('canvas').getContext('2d')
test("draws an ellipse with quadratic curves", function(t) {
context.beginPath()
ellipse(context, [25, 25], [10, 5])
t.equal(context.isPointInPath(25, 25), true, 'in path')
t.equa... |
var Scope = (function(){
var events = (function(){
var topics = {};
var hOP = topics.hasOwnProperty;
return {
subscribe: function(topic, listener) {
if(!hOP.call(topics, topic)) topics[topic] = [];
var index = topics[topic].push(listener) -1;
return {
remove: functi... |
'use strict';
angular
.module('myCashManager.cycles', ['ngRoute'])
.config(['$routeProvider', function ($routeProvider) {
$routeProvider.when('/cycles', {
templateUrl: $apiRoot() + 'cycles/cycles.html',
controller: 'CyclesCtrl',
auth: true
});
}]).control... |
'use strict'
const _ = require('lodash')
const oki = require('oki')
const createError = require('midwest/util/create-error')
const resolver = require('deep-equal-resolver')({
moduleName: 'midwest-membership/strategies/local',
validate: oki({
'errors.wrongPassword': _.isPlainObject,
'errors.noUserFound': _.... |
/**
* configuration for grunt tasks
* @module Gruntfile
*/
module.exports = function(grunt) {
/** load tasks */
require('load-grunt-tasks')(grunt);
/** paths to file on server */
var files = {
/** meta / non-script files */
meta: [
'README.md',
'TODO.md',
'package.json',
'.... |
/* eslint-env jest*/
jest.unmock('../Divider');
import React from 'react';
import { findDOMNode } from 'react-dom';
import { renderIntoDocument, Simulate } from 'react-dom/test-utils';
import Divider from '../Divider';
describe('Divider', () => {
it('updates the className with inset or vertical', () => {
let d... |
/**
* Brands mock on server side
*
* @author Eric Fehr (ricofehr@nextdeploy.io, github: ricofehr)
* @class Brand
* @namespace mock
* @module nextdeploy
*/
module.exports = function(app) {
var express = require('express');
var brandsRouter = express.Router();
/**
* Mock brands list request
*
... |
// Generated by CoffeeScript 1.7.1
(function() {
"use strict";
var LIVERELOAD_PORT, lrSnippet, mountFolder;
LIVERELOAD_PORT = 35728;
lrSnippet = require("connect-livereload")({
port: LIVERELOAD_PORT
});
mountFolder = function(connect, dir) {
return connect["static"](require("path").resolve(dir));... |
'use strict';
module.exports = function (value, sanitizer) {
var patt = new RegExp(sanitizer.regexp, sanitizer.regexpmod);
return value.replace(patt, sanitizer.replace);
}; |
function plot() {
var width = window.innerWidth ;
var height = window.innerHeight;
var graph = d3.select("body")
.append("div")
.style("width", width + "px")
.style("height", height + "px")
.attr("id", "graph");
var svg = d3.select("body")
.append("svg")
.attr("width", width)
.attr("h... |
const { expect } = require('chai');
const KmS3 = require('../lib/s3.js');
const config = {
Bucket: process.env.s3_bucket,
accessKeyId: process.env.s3_access_key,
secretAccessKey: process.env.s3_secret_access_key,
};
describe('KmS3', function () {
const kmS3;
before(function() {
kmS3 = new KmS3(config);
... |
import React from "react";
import { shallow } from "enzyme";
import Fabric from "./Fabric";
describe("Fabric", () => {
it("matches snapshot", () => {
const aFabric = shallow(<Fabric />);
expect(aFabric).toMatchSnapshot();
});
});
|
const {
login, transport, logout
} = require('./common');
const {Events} = require('../src');
let events;
login()
.then(() => {
// find resources
events = new Events(transport);
return events.create()
.debug()
.facility('daemon')
.msg('hello')
.save();
})
.then(() => {
... |
/**
* svgtoreact
*
* @author Michael Hsu
*/
import React from 'react';
export default function SVGData(props) {
return (
<svg width={42} height={32} viewBox="0 0 42 32" {...props}>
<g fill="none">
<path d="M-9-14h60v60h-60z" />
<path
d="M36.984 10.723l-7.261 7.261c.176.298.27... |
'use strict';
var _get = require('babel-runtime/helpers/get')['default'];
var _inherits = require('babel-runtime/helpers/inherits')['default'];
var _createDecoratedClass = require('babel-runtime/helpers/create-decorated-class')['default'];
var _classCallCheck = require('babel-runtime/helpers/class-call-check')['def... |
'use strict';
// Use applicaion configuration module to register a new module
ApplicationConfiguration.registerModule('funds'); |
var React = require('react/addons'),
classnames = require('classnames');
module.exports = React.createClass({
displayName: 'ItemNote',
propTypes: {
className: React.PropTypes.string,
type: React.PropTypes.string,
label: React.PropTypes.string,
icon: React.PropTypes.string
},
getDefaultProps: function() {... |
module.exports.id = '1';
module.exports.title = '1 ()';
module.exports.time = 1;
module.exports.flokVersion = '2';
module.exports.up = function up(mig, flok, done) {
global.__flokfirst = 1;
setTimeout(done, 10);
};
module.exports.down = function down(mig, flok, done) {
global.__flokfirst = 0;
setTimeout(done,... |
{
expect(isAbsoluteURL("/foo")).toBe(false);
expect(isAbsoluteURL("foo")).toBe(false);
}
|
import {Section, Text, Button} from 'cx/widgets';
import { expr } from 'cx/ui';
import Controller from './Controller';
export default () => <cx>
<h2 putInto="header">Sign in</h2>
<div class="center" controller={Controller} >
<Section title="Sign In" visible={expr("!{user.uid}")}>
<p>
Ulogujte se... |
'use strict';
var patchOperationsHelper = require('../patch-operations-helper');
var validator = require('../util/validator');
var schema = require('../json-schemas/api-base-path-mapping-schema');
var pub = {};
pub.getParameters = function getParameters(event) {
return validator.validate(event, schema);
};
var a... |
var gulp = require('gulp');
var mini = require('gulp-imagemin');
var plugins = require('gulp-load-plugins')({
pattern: 'imagemin-*', // the glob to search for
//config: 'package.json', // where to find the plugins, by default searched up from process.cwd()
//scope: ['dependencies', 'devDependencies'], // which k... |
'use strict';
const Command = require('../../../..');
class ErrorCommand extends Command {
* run() {
throw new Error('something wrong');
}
get description() { return 'throw error'; }
}
module.exports = ErrorCommand;
|
var connectionProvider = require('../mysqlConnectionStringProvider.js');
var vehicleModel = {
getAllVehicle : function (callback) {
var connection = connectionProvider.mysqlConnectionStringProvider.getMySqlConnection();
var queryStatement = "SELECT * FROM vehicles_list ORDER BY year DESC";
... |
export const questionCategory = {
radio: 0,
checkbox: 1,
textfield: 2,
date: 3,
dropdown: 4,
upload: 5,
number: 6,
country: 7,
plus: 8,
infoText: 9,
textArea: 10
};
|
var EventManager = ring.create({
constructor: function(gamemanager)
{
this.gamemanager = gamemanager;
this.events = [];
},
trigger: function(event)
{
if (!this.events[event]) return;
var args = [].slice.apply(arguments).slice(1);
if (event !== 'update' && event !== 'draw')
{
... |
define(
[
'marionette',
'tpl!templates/VersionChooser.tpl',
'views/VersionInfo'
],
function(
Marionette,
template,
VersionInfoView
) {
return Marionette.ItemView.extend({
template: template,
dialog: null,
versi... |
module.exports = function(config) {
config.set({
basePath: './',
frameworks: ['systemjs', 'jasmine'],
systemjs: {
configFile: 'config.js',
config: {
paths: {
"*": "*",
"src/*": "src/*",
"typescript": "node_modules/typescript/lib/typescript.js",
"... |
$(function () {
var effectDelayms = 200;
var d = new Date();
var h = d.getHours() > 12 ? d.getHours() - 12 : d.getHours();
var m = d.getMinutes() < 10 ? "0" + d.getMinutes() : d.getMinutes();
var a = d.getHours() >= 12 ? "pm" : "am";
// Default meeting date to current date
$('.default-date-now').val(d.g... |
(function() {
window.S3Upload = (function() {
S3Upload.prototype.s3_object_name = 'default_name';
S3Upload.prototype.s3_sign_put_url = '/signS3put';
S3Upload.prototype.file_dom_selector = 'file_upload';
S3Upload.prototype.onFinishS3Put = function(public_url) {
return console.log('base.onFin... |
import TestContainer from 'mocha-test-container-support';
import {
act
} from '@testing-library/preact';
import {
query as domQuery
} from 'min-dom';
import coreModule from 'bpmn-js/lib/core';
import modelingModule from 'bpmn-js/lib/features/modeling';
import camundaModdlePackage from 'camunda-bpmn-moddle/resour... |
/**
* Created by bhandr1 on 5/13/2016.
*/
(function () {
angular.module('app.tapi').controller('TestCaseController',TestCaseController);
function TestCaseController($scope,TestCaseModel,TestCaseBasicFactory,$sessionStorage,$state){
init();
function init() {
initModels();
... |
/**
* Browser LSC Storage API // storage.spec.js
* coded by Anatol Merezhanyi @e1r0nd_crg
* https://www.youtube.com/c/AnatolMerezhanyi
*/
import StorageClass from '../storage';
import chai from 'chai';
import sinon from 'sinon';
const expect = chai.expect;
describe('# localStorage', () => {
const storageMock =... |
const net = require('net');
let server = new net.Server();
server.on('connection' () => {
let clientAddress = client.remoteAddress;
console.log("A client connected, address: " + clientAddress);
client.on('close', () => {
})
})
server.on('listening', () => {
console.log('Server is now listening.');
});
serve... |
'use strict';
require('es6-promise').polyfill();
var React = require('react');
var assign = require('object-assign');
var LoadMask = require('react-load-mask');
var Region = require('region');
var PaginationToolbar = React.createFactory(require('./PaginationToolbar'));
var Column = require('./models/Column');
var P... |
//https://github.com/slimjack/ExtJs-AsyncModel
Ext.define('Ext.ux.data.validator.ValidationContext', {
alternateClassName: 'ValidationContext',
statics: {
getFieldDisplayName: function (modelRecord, validatedFieldName) {
var me = this;
return modelRecord.getMetaValue(validatedF... |
var express = require('express');
var router = express.Router();
var User = require('../models/user')
var Device = require('../models/device')
router.get('/', function(req, res, next){
User.find({},function(err, users){
if(err){
next(err)
}
else {
res.payload = users
res.message = 'List... |
var util = require('../util');
exports.encode = function encode ( packet, value ) {
var result = new Buffer(value || '');
return result;
}
exports.decode = function decode ( packet, value ) {
return value.toString();
}
exports.TYPE = 0x0007;
exports.NAME = 'password';
|
/**
* @license
* (c) 2009-2010 Michael Leibman
* michael{dot}leibman{at}gmail{dot}com
* http://github.com/mleibman/slickgrid
* Distributed under MIT license.
* All rights reserved.
*
* SlickGrid v2.0 alpha
*
* NOTES:
* Cell/row DOM manipulations are done directly bypassing jQuery's DOM manipulation metho... |
/*!
* jquery.fx.tweener-transitions.js
* extends jquery with transition tweens
*/
(function($, window) {
// shim layer with setTimeout fallback
var requestAnimationFrame = (function() {
return window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRe... |
import React from "react";
import { shallow } from "enzyme";
import App from "../App";
test("App renders correctly.", () =>
{
const wrapper = shallow(<App />);
expect(wrapper).toMatchSnapshot();
});
test("App renders correctly when className is set.", () =>
{
const wrapper = shallow(<App className="home"... |
/* global require, process, __dirname, console */
var express = require('express'),
http = require('http'),
path = require('path'),
sio = require('socket.io'),
app = express(),
server,
io;
// all environments
app.set('port', process.env.PORT || 3000);
app.use(express.favicon());
app.use(expre... |
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, de... |
export default {
difficult_word_definitions: {
abandoned: 'having been deserted or left',
abandonment: 'the action or fact of abandoning or being abandoned',
abide: 'accept or act in accordance with (a rule, decision, or recommendation)',
access: 'the means or opportunity to approach or enter a place'... |
// Returns a validator that executes multiple validators in sequence, returning the first error
// encountered
export function composeValidators(...validators) {
return async (...args) => {
for (const validator of validators) {
const error = await validator(...args)
if (error) {
return error
... |
const path = require('path')
const utils = require('./utils')
const webpack = require('webpack')
const config = require('../config')
const merge = require('webpack-merge')
const debug = require('debug')('app:config:prod')
const es3ifyPlugin = require('es3ify-webpack-plugin')
const baseWebpackConfig = require('./webpack... |
import React, { Component } from 'react'
import getGoogleVisionAnnotations from '../../services/getGoogleVisionAnnotations'
import Annotations from '../Annotations'
import Snapshot from '../Snapshot'
import './App.css'
export default class App extends Component {
constructor (props) {
super(props)
this.hand... |
/*!
* back-to-thunk - index.js
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
* MIT Licensed
*/
'use strict';
/**
* Module dependencies.
*/
var is = require('is-type-of');
var co = require('co');
/**
* Expose `toThunk`
*/
module.exports = toThunk;
/**
* Convert `obj` into a normalized thunk.
*
* @p... |
// Generated by CoffeeScript 1.4.0
(function() {
$.extend($.fn, {
backboneLink: function(options) {
var attr, model, save;
if (options == null) {
options = {};
}
model = options.model, attr = options.attr, save = options.save;
if (save == null) {
save = true;
}... |
module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ ret... |
'use strict';
// Declare app level module which depends on views, and components
angular.module('myApp', [])
|
// https://github.com/ghiculescu/jekyll-table-of-contents
(function($){
$.fn.toc = function(options) {
var defaults = {
noBackToTopLinks: false,
title: '文章目录',
minimumHeaders: 2,
headers: 'h1, h2, h3, h4, h5, h6',
listType: 'ul', // values: [ol|ul]
showEffect: 'show', // values... |
/**
* Args:
* ["keys"]: string array of current level of object keys
* ["path"]: string array of path from top level object. Order matters: Left -> Right
*
* Pops the correct amount of keys off the path array to go up to the next object. Helper
* funciton for augmentColorObjects()
*
*/
const goToParentKey... |
var structtesting_1_1internal_1_1_all_of_result7 =
[
[ "type", "structtesting_1_1internal_1_1_all_of_result7.html#a47ab0d670258434b0e65530591948e8c", null ]
]; |
var gulp = require('gulp');
var browserify = require('browserify');
var glob = require('glob');
var source = require('vinyl-source-stream');
var rename = require('gulp-rename');
var estream = require('event-stream');
var template = require('art-template');
var fs = require('fs');
var path = require('path');
var shell =... |
'use strict';
var assert = require('assert');
var fs = require('fs');
var os = require('os');
var path = require('path');
var memFs = require('mem-fs');
var mkdirp = require('mkdirp');
var rimraf = require('rimraf');
var through = require('through2');
var editor = require('..');
describe('#commit()', function () {
... |
const test = require('ava');
const { TestSubjectMocker, Mock } = require('../index');
const testSubjectPath = './TestProj/subject';
const dep1Path = './TestProj/dependency1';
const dep2Path = './TestProj/dependency2';
const arrayPath = './TestProj/arrayDependency';
const constructorPath = './TestProj/constructorDepend... |
var Icon = require('../icon');
var element = require('magic-virtual-element');
var clone = require('../clone');
exports.render = function render(component) {
var props = clone(component.props);
delete props.children;
return element(
Icon,
props,
element('path', { d: 'M16.24 7.76C15.07 6.59 13.54 6 12... |
var app = app || {};
app.Book = Backbone.Model.extend({
defaults: {
coverImage: 'img/placeholder.png',
title: 'No title',
author: 'Unknown',
releaseDate: 'Unknown',
keywords: 'None'
},
parse: function( response ) {
response.id = response._id;
return ... |
import { MESSAGE_RECEIVED } from '../actions';
const initialState = {
list: [],
entities: {},
};
export const messages = (state = initialState, action) => {
switch (action.type) {
case MESSAGE_RECEIVED:
return {
...state,
list: [...state.list, action.payload.id],
entities: { ..... |
'use strict';
const Promise = require('bluebird');
const Scraper = require('./lib/scraper.js');
module.exports = (options, callback) => {
return Promise.try(() => {
return new Scraper(options).scrape(callback);
});
};
module.exports.defaults = Scraper.defaults;
|
__history = [{"date":"Mon, 21 Sep 2015 15:44:31 GMT","sloc":40,"lloc":7,"functions":3,"deliveredBugs":0.07739760316291208,"maintainability":84.30882304461832,"lintErrors":[],"difficulty":5.25},{"date":"Mon, 21 Sep 2015 16:02:39 GMT","sloc":40,"lloc":7,"functions":3,"deliveredBugs":0.07739760316291208,"maintainability":... |
/* global describe, it, beforeEach, afterEach */
/*!
* The MIT License (MIT)
*
* Copyright (c) 2019 Mark van Seventer
*
* 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 restrict... |
var clv = require("../../../../index.js");
var assert = require("assert");
describe("Generated test - rm/rm/undo/rm/ins/rm/undo/ins/rm/undo - 10-ops-8acd8242-df34-4d85-91e5-86da219ce5ba", function() {
var doc1 = new clv.string.Document("812d9e90-5327-11e7-a6c7-cf7652268eec", 0, null);
var doc2 = new clv.string.Doc... |
import WebpackHotMiddleware from 'webpack-hot-middleware'
import applyExpressMiddleware from '../utils/apply-express-middleware'
import _debug from 'debug'
const debug = _debug('app:server:webpack-hmr')
export default function (compiler, opts) {
debug('Enable Webpack Hot Module Replacement (HMR).')
const middlew... |
// {{ License }}
;(function() {
function bootstrap(redeyed, exports) {
'use strict'
// {{ spans }}
// {{ default-theme }}
function resolveTheme() {
throw new Error('Resolving a theme by filename only works server side. \n' +
'Manually resolve or create a theme {Object} ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.