code stringlengths 2 1.05M |
|---|
// Helper: root() is defined at the bottom
var path = require('path');
var webpack = require('webpack');
// Webpack Plugins
var CommonsChunkPlugin = webpack.optimize.CommonsChunkPlugin;
var autoprefixer = require('autoprefixer');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var ExtractTextPlugin = require('... |
import { getTileExtent } from "../mercator.js";
import { Layer } from "../layer/Layer.js";
import { GlobusTerrain } from "./GlobusTerrain.js";
import { isPowerOfTwo } from "../math.js";
const KEY =
"pk.eyJ1IjoiZm94bXVsZGVyODMiLCJhIjoiY2pqYmR3dG5oM2Z1bzNrczJqYm5pODhuNSJ9.Y4DRmEPhb-XSlCR9CAXACQ";
class Mapb... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M17.99 11.57H20V0L0 20h11.56v-2H4.83L17.99 4.83v6.74zm5.78 8.75l-1.07-.83c.02-.16.04-.32.04-.49 0-.17-.01-.33-.04-.49l1.06-.83c.09-.08.12-.21.06-.32l-1-1.73c-.06-.11-.19-.15-.31-.11l-1.24.5c-.26-.2-.5... |
// (c) 2011 Richard Carter
// This code is licensed under the MIT license; see LICENSE.txt for details.
// https://github.com/Ricket/nodebot
// TODO move data to the end since it is least commonly needed and replyTo to the front, since it is always needed (around 159)
require('./config.js');
var util = require('util')... |
version https://git-lfs.github.com/spec/v1
oid sha256:3e015d7080c35b6129a0b5571e30f5207c34c053a819b530c3b5b4b6838d2ea5
size 870702
|
import { MODULE_MPARTICLE } from "../analyticsTypes";
import BasicModule from "./BasicModule";
import { logDebug } from "../utils";
const OTHER = 8;
// https://github.com/mParticle/mparticle-sdk-javascript/blob/394a0663a02274fe7b148393f644f188a86f38a5/src/types.js#L88
const supportedIdentityTypes = [
'other',
'custo... |
function Lobby() {
var self = this;
this.room = ko.observable(undefined);
this.dynamicJoin = this.inRoom();
this.name = localStorage.name || "Guest";
globalConnect().setName(this.name);
window.history.replaceState("lobby", "lobby", "/");
if (this.dynamicJoin) {
this.joinRoom(this.dyn... |
/**
* @author 강예형
* 플레이어의 상태창을 관리하는 오브젝트
*/
/* global $ */
'use strict';
var ui = ui || {};
ui.charstats = {
/**
* 상태창을 초기화한다.
*/
init: function init(player)
{
this.$charstats_ = $('#charstats');
this.player_ = player;
this.update();
},
/**
*... |
/*! PhotoSwipe Default UI - 4.0.7 - 2015-03-18
* http://photoswipe.com
* Copyright (c) 2015 Dmitry Semenov; */
/**
*
* UI on top of main sliding area (caption, arrows, close button, etc.).
* Built just using public methods/properties of PhotoSwipe.
*
*/
(function (root, factory) {
if (typeof define === 'function' &&... |
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Because sometimes you need to style the cursor's line.
//
// Adds an option 'styleActiveLine' which, when enabled, gives the
// active line's wrapping <div> the CSS class "CodeMirror-active... |
module.exports = function(GedcomX){
/**
* Class description
*
* @class Merge
* @extends Base
* @param {Object} [json]
*/
var Merge = function(json){
// Protect against forgetting the new keyword when calling the constructor
if(!(this instanceof Merge)){
return new Merge(jso... |
function bind(curEle, eventType, eventFn) {
if (document.addEventListener) {
curEle.addEventListener(eventType, eventFn, false);
return;
}
var tempFn = function (e) {
eventFn.call(curEle, e);
};
tempFn.photo = eventFn;
!curEle["my" + eventType] ? curEle["my" + eventType] ... |
/////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Autodesk, Inc. All rights reserved
// Written by Philippe Leefsma 2014 - ADN/Developer Technical Services
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and with... |
// 一些 基类 或 独立的 标签
!function(RegExp){
this.AsTag = function(AsExpression){
/**
* as 标签
* @param {Number} _type - 标签类型
*/
function AsTag(_type){
SyntaxTag.call(this, _type);
};
AsTag = new Rexjs(AsTag, SyntaxTag);
AsTag.props({
regexp: /as/
});
return AsTag;
}(
this.AsExpression
);
this.ClosingBrac... |
let {remote, ipcRenderer, shell} = require('electron');
ipcRenderer.on('background-image-r',(event, arg) =>{
console.log(arg);
document.querySelector('.root-main').style = `background: url(${__dirname}/resources/images/${arg}) no-repeat center center fixed;`;
});
ipcRenderer.send('background-image');
// glo... |
class TypesOfFood extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div>
<h1>Types of Food:</h1>
{/* change code below this line */}
<Fruits />
<Vegetables />
{/* change code above this line */}
</div>
);
}
};
//... |
define(
[
'backbone'
], function(Backbone) {
'use strict';
return Backbone.Router.extend({
routes:{
'developers': 'developers',
'developers/new': 'newDeveloper',
},
developers: function(param) {
this.channel.trigger('nav:index');
},
newDeveloper: function(param) {
... |
/*!
* Ext JS Library 3.2.0
* Copyright(c) 2006-2010 Ext JS, Inc.
* licensing@extjs.com
* http://www.extjs.com/license
*/
Ext.test.session.addTest( 'Ext', new Y.Test.Case({
name: 'XTemplate',
planned: 3,
// 3
test_apply: function() {
var data = {
hello: 'Hello',
w... |
define([
'lodash',
'modiphy',
'siteable/siteable',
'backbone.queryparams'
], function(
_,
M,
Siteable
){
'use strict';
_.extend(M, Siteable);
return M;
}); |
'use strict';
var Model = require('ampersand-model');
var React = require('react');
var merge = require('lodash.merge');
var view = require('./view');
var constructModel = require('../util/ensureInstance').model;
module.exports = function(config) {
if (config == null) {
throw new Error('config parameter is requ... |
describe('angularjs create users', function() {
var newUserButton = element(by.id('new-user-button'));
var firstName = element(by.model('credentials.firstName'));
var lastName = element(by.model('credentials.lastName'));
var email = element(by.model('credentials.username'));
var password = ... |
export default class ProcessMethodNotFoundException extends Error {
/**
* @param {string} compilerPass
*/
constructor (compilerPass) {
super(`The compiler pass ${compilerPass} does not have the process method`)
this.name = 'ProcessMethodNotFoundException'
this.stack = (new Error()).stack
}
}
|
import { a as Other } from './chunk-192b1326.js';
Other.doSomething();
|
const Generator = require("./Generator");
const StringGenerator = require("./StringGenerator");
const MagicStringGenerator = require("./MagicStringGenerator");
const ArrayGenerator = require("./ArrayGenerator");
const WeightedGenerator = require("./WeightedGenerator");
const createChanceProxyGeneratorFacade = require("... |
/**
* @author: @AngularClass
*/
const path = require('path');
/**
* Webpack Plugins
*/
const ProvidePlugin = require('webpack/lib/ProvidePlugin');
const DefinePlugin = require('webpack/lib/DefinePlugin');
/**
* Webpack Constants
*/
const ENV = process.env.ENV = process.env.NODE_ENV = 'test';
/**
* Webpack co... |
/****************************************************************************
* todoyu is published under the BSD License:
* http://www.opensource.org/licenses/bsd-license.php
*
* Copyright (c) 2012, snowflake productions GmbH, Switzerland
* All rights reserved.
*
* This script is part of the todoyu project.
* The todo... |
// Measuring the Critical Rendering Path with Navigation Timing
// https://developers.google.com/web/fundamentals/performance/critical-rendering-path/measure-crp
function logCRP() {
var t = window.performance.timing,
dcl = t.domContentLoadedEventStart - t.domLoading,
complete = t.domComplete - t.domLoading;
... |
export {bind, Binding} from './binding'
|
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _assign = require('babel-runtime/core-js/object/assign');
var _assign2 = _interopRequireDefault(_assign);
var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
var _getPrototypeOf2 = _interopRequireDefaul... |
+ function($){'use strict';var Plugin,TtaAutoPlay,old;Plugin=function(action,options){var args;args=Array.prototype.slice.call(arguments,1);return this.each(function(){var $this,data;$this=$(this);data=$this.data('vc.tta.autoplay');if(!data){data=new TtaAutoPlay($this,$.extend(true,{},TtaAutoPlay.DEFAULTS,$this.data('v... |
// requires
const express = require('express');
// setup router
const router = express.Router();
// routes for /
// GET /
router.get('/', (req, res, next) => {
return res.render('index', { title: 'Hello' });
});
module.exports = router; |
/**
* Default state definition
*/
export default {
// Check the validity of the selection
canStrong: false,
canEm: false,
canQuote: false,
canCode: false,
canUl: false,
canOl: false,
canLink: false,
canImage: false,
// Check the value of the selection
isStrong: false,
... |
requirejs.config({
shim: {
"socketio": {
exports: 'io'
}
},
paths: {
socketio: '/js/lib/socket.io/dist/socket.io.slim'
}
});
define(['socketio'], function(io) {
var socketHost = (window.location.origin.includes("localhost")) ? "http://localhost:4432" : "",
... |
import { combineReducers } from 'redux'
import { ADD_TODO, COMPLETE_TODO, SET_VISIBILITY_FILTER, VisibilityFilters } from '../actions/actions'
const { SHOW_ALL } = VisibilityFilters
function visibilityFilter(state = SHOW_ALL, action) {
switch (action.type) {
case SET_VISIBILITY_FILTER:
return action.filter
def... |
const cssClasses = {
container: 'textfield',
input: 'textfield_input',
label: 'textfield_label',
dirty: 'is-dirty',
focused: 'is-focused'
};
class Textfield {
constructor($container) {
this.$container = $container;
this.$input = this.$container.querySelector(`.${cssClasses.input}`);
this.$labe... |
/**!
*
* Copyright (c) 2015-2017 Cisco Systems, Inc. See LICENSE file.
* @private
*/
import {parse as babelParse} from 'babylon';
import {defaults} from 'lodash';
/**
* Wrapper around babylon's parse with defaults set
* @param {string} code
* @param {object} options
* @returns {ast}
*/
export default functio... |
import React from 'react';
import ReactDOM from 'react';
import Radium from 'radium';
const sample = (arr) => arr[Math.floor(Math.random() * arr.length)];
class CallToAction extends React.Component {
componentWillMount() {
this.hover = 20;
const texts = [
'CLICK HERE',
'GET STARTED NOW',
... |
"use strict";
var flock = fluid.registerNamespace("flock");
fluid.defaults("flock.drum.app", {
gradeNames: "fluid.component",
numChannels: 2,
numInputBuses: 1,
numVoices: 10,
components: {
enviro: {
type: "flock.enviro",
options: {
components: {
... |
'use strict';
var _ = require('lodash');
var Class = require('corazon/class');
/**
* @class FieldString
* @classdesc
*
* A field-safe string. This is used to indicate that a value should not be
* sent to the database as data (a positional argument). In general, this is
* used via a shorthand notation of a funct... |
import reduce from "../core/reduce";
/**
* Calculates the [arithmetic mean]{@link https://en.wikipedia.org/wiki/Arithmetic_mean} of the given list of numbers.
* @example
* _.mean([1, 2, 3, 4, 5, 6, 7, 8, 9]) // => 5
* _.mean([]) // => NaN
*
* @memberof module:lamb
* @category Math
* @see {@link module:lamb.med... |
/*
@desc sort words in an array based on the total count of the words,
rearrange the array to show the popularity, the highest count of the word comes first
@param Array
@return Array
Ex: var arr = ["pear", "pear", "cherry", "apple", "apple", "pear", "apple", "banana", "pear"];
return: ['pear' "pear", "pear", "pear", '... |
Template.ooSortableList.created = function () {
var self = this;
var collection = self.data.collection;
self.dataCursor = function() {
return self.data.dataCursor;
}
self.listElement = new Blaze.ReactiveVar(false);
self.updateSortPositions = function() {
var el = self.listElement.get();
// p... |
import Backbone.ListView from '../../src/backbone.listview';
describe('Backbone.ListView', () => {
describe('Greet function', () => {
beforeEach(() => {
spy(Backbone.ListView, 'greet');
Backbone.ListView.greet();
});
it('should have been run once', () => {
expect(Backbone.ListView.gree... |
YUI.add("lang/datatype-date-format_es",function(e){e.Intl.add("datatype-date-format","es",{a:["dom","lun","mar","mi\u00e9","jue","vie","s\u00e1b"],A:["domingo","lunes","martes","mi\u00e9rcoles","jueves","viernes","s\u00e1bado"],b:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],B:["enero","febr... |
module.exports = {
name: 'Check Variable',
section: 'Conditions',
subtitle(data) {
const comparisons = [
'Exists',
'Equals',
'Equals Exactly',
'Less Than',
'Greater Than',
'Includes',
'Matches Regex',
'Length is Bigger Than',
'Length is Smaller Than',
... |
var React = require('react');
var ReactBootstrap = require('react-bootstrap');
var moment = require('moment');
var reactNotifications = require('react-notifications');
var NotificationManager = reactNotifications.NotificationManager;
var API = require('../utils/api');
var Button = ReactBootstrap.Button,
... |
'use strict';
angular.module('mnStatefairBingoApp')
.config(function ($stateProvider) {
$stateProvider
.state('main', {
url: '/',
templateUrl: 'app/main/main.html',
controller: 'MainCtrl'
});
}); |
var alexa = require('alexa-app');
var Xray = require('x-ray');
var x = Xray();
// Allow this module to be reloaded by hotswap when changed
module.change_code = 1; //When 0, you need to relaunch the server
function getSign(req, res, cmd){
function getArticle(err, result) {
console.log("cmd", c... |
var _ = require('lodash')
function generate_event_times(detectors){
// will process the global detectors for event times
// group detectors by start time
var years = _.keys(detectors)
var stacked_groups=[];
_.each(years
,function(yr){
var ds = _.values(detectors[yr])
... |
var WorkItem = Backbone.Model.extend({
defaults: {
"Location": '',
"Name": '',
"ValueStream": {}
},
getLocation: function(){
return this.get('Location');
},
getName: function(){
return this.get('Name');
},
move: function(newLoc){
//if it's in the last queue, newLoc will equ... |
'use strict';
module.exports = function(grunt) {
grunt.initConfig({
haml: {
compile: {
files: [{
expand: true,
src: ['assets/haml/*.haml'],
dest: 'templates/',
ext: '.php'
}]
}
},
compass: {
dist: {
options: {
sas... |
/*! jQuery UI - v1.10.4 - 2014-03-30
* http://jqueryui.com
* Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */
jQuery(function(t){t.datepicker.regional.ml={closeText:"ശരി",prevText:"മുന്നത്തെ",nextText:"അടുത്തത് ",currentText:"ഇന്ന്",monthNames:["ജനുവരി","ഫെബ്രുവരി","മാര്ച്ച്","ഏപ്രില്","മ... |
'use strict';
// require your mailgun package
// Adding your key and domain to environment variables
// is important as you don’t want these values
// in your source control or otherwise exposed.
// process.env is an easy way to access your env variables
var mongoose = require('mongoose'),
User = mongoose.mod... |
'use strict';
/* global logit:false, getData:false*/
// All the below should return the same record format
function testRecFormat(rec) {
expect(rec.doc_type).toBe('post');
expect(rec.stats.minRank).toBeLessThan(61);
expect(rec.created_d instanceof Date).toBeTruthy();
expect(rec.history.length).toBeG... |
'use strict';
var React = require('react');
var $ = React.DOM;
var CheckBox = React.createClass({
displayName: 'CheckBox',
handleChange: function(event) {
var val = event.target.checked;
this.props.update(this.props.path, val, val);
},
render: function() {
return $.input({
name: this.props... |
var _ = require('lodash');
var async = require('async');
module.exports = function(self, options) {
self.route('post', 'chooser', function(req, res) {
var browse = !!req.body.browse;
var autocomplete = !!req.body.autocomplete;
return res.send(self.render(req, 'chooser', { browse: browse, autocomplete: a... |
db.movieDetails.find({runtime: {$gt: 90}})
db.movieDetails.find({runtime: {$gt: 90}}, {_id: 0, title: 1, runtime: 1})
db.movieDetails.find({runtime: {$gt: 90, $lt: 120}}, {_id: 0, title: 1, runtime: 1})
db.movieDetails.find({runtime: {$gte: 90, $lte: 120}}, {_id: 0, title: 1, runtime: 1})
db.movieDetails.find({runt... |
var tests_passed = 0;
var tests_failed = 0;
var test_result = '';
var indent_size = 4;
var indent_char = ' ';
function lazy_escape(str)
{
return str.replace(/</g, '<').replace(/\>/g, '>').replace(/\n/g, '<br />');
}
function bt(input, expected)
{
expected = expected || input;
res... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
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]; } } }... |
require('es6-promise/auto');
import Vue from 'vue'
import VueRouter from 'vue-router'
import routerConfig from 'router'
import Layout from './components/Layout.vue'
import store from './store'
import myStorage from './Storage'
import VueCookies from 'vue-cookies'//https://www.npmjs.com/package/vue-cookies
Vue.use(Vu... |
'use strict';
var should = require('should'),
request = require('supertest'),
path = require('path'),
mongoose = require('mongoose'),
User = mongoose.model('User'),
Coupon = mongoose.model('Coupon'),
express = require(path.resolve('./config/lib/express'));
/**
* Globals
*/
var app,
agent,
credential... |
/**
* @param {number} n
* @return {boolean}
*/
var isPowerOfTwo = function(n) {
if (n === 0) return false;
while (n % 2 === 0) {
n = n/2;
}
return n === 1;
};
|
import Ember from 'ember';
import StorageProxyMixin from './storage';
var set = Ember.set;
export default Ember.Mixin.create(StorageProxyMixin, {
_initialContent: {},
setUnknownProperty: function setUnknownProperty(key) {
this._super.apply(this, arguments);
if (key !== '_isInitialContent') {
this.... |
'use strict';
var should = require('should'),
request = require('supertest'),
path = require('path'),
mongoose = require('mongoose'),
User = mongoose.model('User'),
Event = mongoose.model('Event'),
express = require(path.resolve('./config/lib/express'));
/**
* Globals
*/
var app, agent, credentials, user, eve... |
import { Observable as O } from "rx"
import { run } from "@cycle/core"
import { makeDOMDriver } from "@cycle/dom"
import { Model } from "stanga"
import TodoMVC from "./App"
const head = document.getElementsByTagName("head")[0]
const cssUrls = [
"node_modules/todomvc-common/base.css",
"node_modules/todomvc-app-cs... |
/*
* Given an array of size n, find the majority element.
* The majority element is the element that appears more than ⌊ n/2 ⌋ times.
* You may assume that the array is non-empty and the majority element always exist in the array.
*
* Tags:
* - Divide and Conquer
* - Array
* - Bit Manipulation
*/
/**
* @p... |
// Copyright 2014 Google Inc. All rights reserved.
//
// 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 l... |
#!/usr/bin/node
console.log('hello world!');
|
(function () {
'use strict';
angular
.module('colstudents')
.config(routeConfig);
routeConfig.$inject = ['$stateProvider'];
function routeConfig($stateProvider) {
$stateProvider
.state('colstudents', {
abstract: true,
url: '/colstudents',
template: '<ui-view/>'
... |
import Ember from 'ember';
import Result from '../result';
function getValue(context,key) {
let target = (context.proxy ? context.proxy.get(key) : context.value);
if(Ember.Array.detect(target) && typeof key==='number' ) {
return target.objectAt(key)
} else {
return target.get(key);
}
}
function nestContext(... |
require('../../support/spec_helper');
describe("Cucumber.Ast.Feature", function () {
var Cucumber = requireLib('cucumber');
var scenarioCollection, lastScenario;
var feature, keyword, name, uri, line;
beforeEach(function () {
lastScenario = createSpy("Last scenario");
scenarioCollection = new Object()... |
/*jshint node: true */
var request = require('request'),
json = require('JSONStream'),
es = require('event-stream'),
crypto = require('crypto'),
baseURI = 'https://api.checklist.ninja',
merge = require('lodash.merge'),
url = require('url');
// defaults
this._config = { host: bas... |
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var productsSchema = new Schema({
title: String,
price: String,
state: String
});
mongoose.model('products', productsSchema); |
var RPYeti = RPYeti || {};
RPYeti.loader = (function() {
var self;
// throw-away audio context for preloading
var audio = new THREE.AudioListener();
return {
loading: 0,
loaded: 0,
assets: [],
maps: {},
textures: {},
models: {},
sounds: {},
fonts: {},
init: function() {
// save singleton... |
!function(){"use strict";angular.module("app").controller("fileuploadctr",["utils",function(l){l.hljs(angular.element(document).find("pre"))}])}(); |
/*globals Globalize window jQuery wijInputResult document*/
/*
*
* Wijmo Library 2.2.1
* http://wijmo.com/
*
* Copyright(c) GrapeCity, Inc. All rights reserved.
*
* Dual licensed under the Wijmo Commercial or GNU GPL Version 3 licenses.
* licensing@wijmo.com
* http://wijmo.com/license
*
*
* * Wijmo Inpu... |
const Card = require('./Card');
class Princess extends Card {
constructor() {
super(8, 'Princess');
}
canPlayWith() {
return true;
}
getValidTargets() {
return [];
}
play(events, player) {
player.removeFromRound();
events.createOutOfRoundEvent(
player.getName(), player.get... |
var expect = require('chai').expect;
var environmentNormalizer = require('../../../app/helpers/environmentNormalizer');
module.exports = {
loc: loc,
local: local,
dev: dev,
development: development,
ci: ci,
qa: qa,
prod: prod,
production: production,
caseInsensitive: caseInsensitive,
notValid: not... |
require('./blend-character-model');
require('./camera');
require('./collada-model');
require('./cursor');
require('./geometry');
require('./hand-controls');
require('./light');
require('./look-controls');
require('./material');
require('./obj-model');
require('./position');
require('./raycaster');
require('./rotation')... |
const SolverAbstract = require('./solver_abstract');
class ReconsiderationProjectPeriod extends SolverAbstract {
static checkSolved () {
throw new Error('must be implemented');
}
static get title () {
return 'プロジェクト期間の調整';
}
static get description () {
return 'プロジェクト期間を調整し... |
export const ic_group_add_outline = {"viewBox":"0 0 24 24","children":[{"name":"path","attribs":{"d":"M0 0h24v24H0V0z","fill":"none"},"children":[]},{"name":"path","attribs":{"d":"M5 15v-3h3v-2H5V7H3v3H0v2h3v3zm7-1.25c-2.34 0-7 1.17-7 3.5V19h14v-1.75c0-2.33-4.66-3.5-7-3.5zM7.34 17c.84-.58 2.87-1.25 4.66-1.25s3.82.67 4.... |
var cache = new Mongo.Collection(null); // no-name local collection
// TODO: eventually we could detect collisions by using this mechanism
BlogPosts.find({}).observeChanges({
added: function (id, fields) {
cache.insert(_.extend({ _id: id }, fields));
},
changed: function (id, fields) {
cache.update({ _... |
/**
* Backbone.js/RequireJS Template
*
* @info Router module
* @version 0.4
* @author Jasal Vadgama - http://blacklabelcreative.com/
* @license MIT
**/
define([
// add global app dependency
'app', // App
// additional module dependencies
'views/app-view' // AppView
], function(App, AppView) {
var AppRouter = Ba... |
const { GraphQLBoolean, GraphQLString, GraphQLInt, GraphQLID } = require('graphql');
const { fromGlobalId, mutationWithClientMutationId, cursorForObjectInConnection } = require('graphql-relay');
const TaskTypeListType = require('../types/TaskTypeListType');
const { TaskTypeTypeEdge } = require('../connections');
const ... |
/*
* grunt-ctrllr
* https://github.com/CtrlLA/grunt-ctrllr
*
* Copyright (c) 2014 ishmaelthedestroyer
* Licensed under the MIT license.
*/
'use strict';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
jshint: {
all: [
'Gruntfile.js',
'tasks/... |
import React from 'react';
import PropTypes from 'prop-types';
import createReactClass from 'create-react-class';
export default createReactClass({
render: function () {
return (
<footer className="info">
<p>Double-click to edit a todo</p>
<p>
{"Modified version of the "}
... |
//Macros.js: Client for the zendesk API.
var util = require('util'),
Client = require('./client').Client;
var Macros = exports.Macros = function (options) {
this.jsonAPINames = [ 'macros' ];
Client.call(this, options);
};
// Inherit from Client base object
util.inherits(Macros, Client);
// ####... |
'use strict';
var EventHubClient = require('azure-event-hubs').Client;
var connectionString = 'HostName=Hackaton.azure-devices.net;SharedAccessKeyName=iothubowner;SharedAccessKey=e7VOwV8vUDLtjbP9gxOeYYX7CfpGVl0X4iJfNmusZ54=';
var client = EventHubClient.fromConnectionString(connectionString);
var printError = functi... |
import events from 'events'
const esc = {
sp: '\u0020',
nl: '\n'
}
/**
* Initialize a new `Specs` matrix test reporter.
*
* @param {Runner} runner
* @api public
*/
class CucumberReporter extends events.EventEmitter {
constructor (baseReporter, config, options = {}) {
super()
this.bas... |
var request = require('supertest');
var path = require('path');
var liveServerSpa = require('..').start({
root: path.join(__dirname, 'data'),
port: 0,
open: false,
middleware: ['spa'],
});
var liveServerSpaIgnoreAssets = require('..').start({
root: path.join(__dirname, 'data'),
port: 0,
open: false,
mid... |
const log = require("loglevel"),
Redux = require("redux"),
Actions = require("./actions"),
PageVisitsReducer = require("./reducers/pageVisits");
const localStorageId = "wikiTree";
function isValidState(state) {
return state &&
state.activeSession !== ... |
AS.container.set('true', function(options) {
return true;
});
|
import { combineReducers } from 'redux';
import { reducer as formReducer } from 'redux-form';
const rootReducer = combineReducers({
form: formReducer,
/* your reducers */
});
export default rootReducer;
|
import Component from '../../src/component.js';
export default class Home extends Component {
constructor(...args) {
super(...args);
this.el.setAttribute('hidden', 'hidden');
this.el.setAttribute('parent', '${ this.homeAttr }');
this.el.setAttribute('parent-two', '${ this.homeAttrTwo }');
this.e... |
System.register(['@angular/core', '@angular/router', './signup.service', '../shared/alert/dtalert.component'], function(exports_1, context_1) {
"use strict";
var __moduleName = context_1 && context_1.id;
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c =... |
Meteor.publish('matches', function() {
var matches = app.collections.matches.find({}, { sort: { startTime: 1}});
return matches;
}) |
describe("Page", function() {
it("returns a jquery object", function() {
var html = $('<div>'),
page = new Capybara.Page(html);
expect(page).toBe(html);
});
describe("clickButton", function() {
it("clicks the given button by id", function() {
var html = '<div><button id="my_first_field" /></... |
var class_jmcpp_1_1_chat_id =
[
[ "ChatId", "class_jmcpp_1_1_chat_id.html#a238315b8d324930e0b8140d6476c296b", null ],
[ "ChatId", "class_jmcpp_1_1_chat_id.html#a444e393436a16cac465508c7798607a2", null ],
[ "ChatId", "class_jmcpp_1_1_chat_id.html#a622b22a8c7cc84cf876a13c147d0288d", null ],
[ "isValid", "... |
import {
GraphQLInt as Int,
GraphQLList as List,
GraphQLNonNull as NonNull,
} from 'graphql';
import database from '../root';
import CityType from '../types/CityType';
export function loadAll() {
const cities = database.all(
`
SELECT *
FROM city
ORDER BY name`,
);
return cities;
}
export function lo... |
const assert = require('chai').assert
const path = require('path')
module.exports = [
{
description: 'should expand advanced glob patterns',
expected: function (config) {
assert.sameMembers(config.entries, [
path.resolve(__dirname, 'index.html'),
path.resolve(__dirname, 'index.js'),
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.