code stringlengths 2 1.05M |
|---|
/**
* WebSocketConnection
* A wrapper over WebSocket that handles reconnection, and keeps
* a reference to the Redux store so that it can be used as middleware.
* Should be instantiated in ../ducks/wsConnection.js
*/
export default class WebSocketConnection {
constructor(address) {
this._address = ... |
var AspxApiJs = {
"Your Wishlist Contains:": "您的收藏包含:",
"WishList +": "愿望清单+",
"My Wishlist": "我的收藏",
"Your Wishlist Contains:": "您的收藏包含:",
"The selected item already exist in your wishlist.": "所选择的项目已经存在于你的愿望清单。",
"Information Alert": "信息提示",
"Please choose available variants!": "请选择可用的变种!",
"The selected i... |
import React, {Component, PropTypes} from 'react';
class SearchBox extends Component {
render() {
return (
<div className='searchBox'>
<input
type='text'
placeholder='search for a movie...'
onChange={this.props.onChange} />
</div>
);
}
}
SearchBox.propTypes = {
onChange: PropTyp... |
import { fromJS } from 'immutable';
import doctorReducer from '../reducer';
describe('doctorReducer', () => {
it('returns the initial state', () => {
expect(doctorReducer(undefined, {})).toEqual(fromJS({}));
});
});
|
/**
* @module lib/gamepad
*/
define(function(require, exports, module) {
'use strict';
// Firefox will not give us Joystick data unless we register this NOP
// callback.
// https://bugzilla.mozilla.org/show_bug.cgi?id=936104
window.addEventListener('gamepadconnected', function() {});
var getGamepads = n... |
'use strict';
import { ADD_DATA } from '../actions/dummy';
const initialState = {
welcome: '',
articles: []
};
export default function dummy(state = initialState, action = {}) {
switch (action.type) {
case ADD_DATA:
return Object.assign({}, state, {
welcome: action.json.welcome,
articles: action.json... |
'use strict';
/* Controllers */
angular.module('myApp.controllers', [])
.controller('HomeController', ['$scope', function($scope) {
}])
.controller('MusicController', ['$scope', '$firebaseArray', function($scope, $firebaseArray) {
var recordsRef = new Firebase("https://recordly.firebaseio.com/");
// Fi... |
import React from 'react';
import {Provider} from 'react-redux';
import {createComponentWithIntl} from '@webex/react-test-utils';
import store from './__fixtures__/mock-store';
import ActivityList from '.';
describe('ActivityList', () => {
const onActivityDelete = jest.fn();
const onActivityFlag = jest.fn();
... |
'use strict';
var angular = require('angular');
var Controllers = require('./js/controllers');
var Filters = require('./js/filters');
// Injecting modules
angular.module('pondApp',[Controllers.name,Filters.name]); |
import express from 'express';
import { Routes as AuthRoute } from '../../../../client/authentication/constants';
import { Routes as AnalyticsRoute } from '../../../../client/analytics/constants';
import authenticationPage from './../render/renderAuthenticationPage';
import _ from 'lodash';
const app = express();
c... |
'use strict';
// local modules
var andNot = require('../consumers/andNot.js');
var any = require('../consumers/any.js');
var block = require('../consumers/block.js');
var constrainValidity = require('../consumers/constrainValidity.js');
var consumerFilter = require('./consumerFilter.js');
var defer = require('../util/... |
test('App works', () => {})
// import React from 'react';
// import ReactDOM from 'react-dom';
// import App from './App';
// it('renders without crashing', () => {
// const div = document.createElement('div');
// ReactDOM.render(<App />, div);
// ReactDOM.unmountComponentAtNode(div);
// });
// import React fr... |
"use strict";
var _ = require('lodash');
module.exports = function (args) {
args = _.toArray(args);
return {
first: function() { return _.first(args); },
last: function() { return _.last(args); },
applyLeading: function(func) {
return args.length < 2 ? func() :
... |
'use strict';
var tcp = require('../');
var net = require('net');
var assert = require('assert');
var sinon = require('sinon');
describe('client', function() {
var app, server, port = 8888;
beforeEach(function() {
app = new tcp();
});
afterEach(function(done) {
if (server) server.close(done);
});
... |
function fn(Component) {
var data = "prop",
_ref = <Component prop={data} />;
return () => _ref;
}
|
var path = require("path");
var ExtractTextPlugin = require("extract-text-webpack-plugin");
var InlineEnviromentVariablesPlugin = require('inline-environment-variables-webpack-plugin');
var webpack = require("webpack");
var assetsPath = path.join(__dirname, "..", "public", "assets");
var publicPath = "/assets/";
var ... |
import React, { Component } from 'react'
import ReactCSS from 'reactcss'
import dynamics from 'dynamics.js'
import colors from '../../assets/styles/variables/colors'
import FloatingButtonItemLabel from './FloatingButtonItemLabel'
class FloatingButtonItem extends Component {
classes() { // eslint-disable-line
co... |
module.exports.RET = {
/* 'Used' : ,'to' : ,'indicate' : ,success. */
'OK' : 0,
/* 'Used' : ,'when' : ,'the' : ,'requested' : ,'object' : ,(type, expression, etc.) 'does' : ,not
* exist. */
'NOT_FOUND' : 1,
/* 'Used' : ,'when' : ,'the' : ,'given' : ,'parameters' : ,'do' : ,'not' : ,'make' : ,... |
import { setSeat } from '../sockets';
const joined = ({ seat, id }) => {
// store seat and id
console.log(seat, id);
setSeat(seat);
};
export default [
['joined', joined],
];
|
// Karma configuration
// Generated on Thu Aug 21 2014 10:24:39 GMT+0200 (CEST)
module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/... |
import { StyleSheet, Dimensions, Platform } from 'react-native';
import deepAssign from 'deep-assign';
import Color from 'color';
import { getStateStyles } from '../styles/helper';
export default (theme, props) => {
let { labelColor, rippleColor } = getStateStyles(theme, props);
if (!labelColor) {
labelCo... |
/**
* Created by Peter on 2018. 3. 12..
*/
"use strict";
var assert = require('assert');
var config = require('../../config/config');
var Logger = require('../../lib/log');
var convertGeocode = require('../../utils/convertGeocode');
var keybox = require('../../config/config').keyString;
var util = require('util');
... |
// Generated by CoffeeScript 1.9.3
(function() {
var RTRIM, absoluteUrl, addKey, argsArray, assertArray, assertObject, identity, merge, mergeLists, postwalk, reduceMap, relativeUrl, trim, type, walk,
slice = [].slice;
merge = require('merge');
RTRIM = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
trim = function... |
'use strict';
/**
* Module dependencies.
*/
var passport = require('passport'),
url = require('url'),
TwitterStrategy = require('passport-twitter').Strategy,
users = require('../../controllers/users.server.controller');
module.exports = function(config) {
// Use twitter strategy
passport.use(new Tw... |
(function( $ ) {
$.ec = {
reals: {},
modk: {},
};
var colors = {
red: "#cb4b4b",
yellow: "#edc240",
blue: "#afd8f8",
};
/* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/cbrt#Polyfill */
Math.cbrt = Math.cbrt || fu... |
import React, { Component, PureComponent } from 'react';
import { Entries as BaseEntries } from '../Entries';
import EntriesList from './EntriesList';
import EntriesAppBar from '../EntriesAppBar';
class Entries extends BaseEntries {
entriesList() {
return <EntriesList history={this.props.history} />;
}... |
define(function (require) {
var isMobile = true;
var React = require('react');
var MessageHandler = require('common/messagehandler');
React.createResponsiveClass = function(desc){
desc.render = isMobile
? function(){ return React.createElement("div", null)... |
import Qunit from 'qunit';
import { addTextTrackData } from '../src/add-text-track-data';
const { equal, module, test } = Qunit;
class MockTextTrack {
constructor() {
this.cues = [];
}
addCue(cue) {
this.cues.push(cue);
}
}
module('Text Track Data', {
beforeEach() {
this.sourceHandler = {
... |
(function () {
'use strict';
function LoginForm(userRequest, $state, authenticationService, notificationsService) {
return {
restrict: 'E',
templateUrl: 'app/login/form/login.form.template.html',
link: LoginFormLink
};
function LoginFormLink(scope, ... |
// http-request-transport-for-browser.js
//
const arccore = require("@encapsule/arccore");
const queryString = require("query-string");
const httpRequestTransportSpecs = require("./http-request-transport-iospecs");
var filterFactoryResponse = arccore.filter.create({
operationName: "HTTP Request Transport For Bro... |
/*! pym.js - v0.4.1 - 2016-03-22 */
/*
* Pym.js is library that resizes an iframe based on the width of the parent and the resulting height of the child.
* Check out the docs at http://blog.apps.npr.org/pym.js/ or the readme at README.md for usage.
*/
/* global module */
(function(factory) {
if (typeof define ===... |
import { flashMessage } from "./FlashMessages";
class Action {
constructor(actionData) {
this.properties = this.defaultValues();
Object.assign(this.properties, actionData || {});
this.validateData();
}
get actionType() {
return this.properties.actionType;
}
get uid() {
return this.prop... |
/**
* Copyright (c) 2017 Dinesh Maharjan <httpdeveloper@gmail.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, including without limitation the rights to
*... |
'use strict';
var expect = require('chai').expect;
var MockUI = require('../../../helpers/mock-ui');
var MockAnalytics = require('../../../helpers/mock-analytics');
var processHelpString = require('../../../helpers/process-help-string');
var convertToJson = require('../../../helpers/conve... |
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component, PropTypes } from 'react';
class Html extends Component {
static propTypes = {
title: PropTypes.string,
description: PropTypes.string,
css: PropTypes.string,
body: PropTypes.string.i... |
var path = require('path');
var initGruntApps = [];
var rebase = function (c, basePath) {
c.modulesUsed = path.join(basePath, c.modulesUsed);
c.modulesApp = path.join(basePath, c.modulesApp);
c.destination = path.join(basePath, c.destination);
if (c.pathBase != undefined)
c.pathBase = path.joi... |
/**
* Property readable flag meta processor
* Set 'readable' flag for property
*/
meta('Readable', {
/**
* Sets 'readable' flag for property
*
* @param {object} object Some object
* @param {boolean} readable Readable flag
* @param {string} property Property name
*
* @this ... |
/**
* Created by Ed on 8/5/2015.
*/
var Hapi = require('hapi');
// Create a server with a host and port
var server = new Hapi.Server();
server.connection({
host: 'localhost',
port: 8398
});
// Add the route
server.route({
method: 'GET',
path:'/',
handler: function (request, reply) {
... |
const html = require('yo-yo')
module.exports = function (state, emit) {
return html`
<svg viewBox="0 0 105 100" class="triangle">
<symbol id="triangle">
<path d="M 4,100 l 45,-96 l 25,48 l -10,10 l 30,6 l -6,10 l 12,22 Z" stroke-width="2" />
</symbol>
<use class="blue" id="blue" xlink:h... |
// @flow
import { RANGE, PALETTE } from "constants/controlTypes";
import * as palettes from "palettes";
import { cloneCanvas, fillBufferPixel, getBufferIndex, rgba } from "utils";
import type { Palette } from "types";
export const optionTypes = {
intensity: { type: RANGE, range: [0, 4], step: 0.01, default: 0.33 }... |
import Component from 'react-pure-render/component';
import Divider from 'material-ui/Divider';
import React, { PropTypes } from 'react';
import TextField from 'material-ui/TextField';
import { defineMessages, FormattedMessage } from 'react-intl';
// import ImageUploadButton from '../components/images/ImageUploadButton... |
/**
* Dependencies
*/
var NOOT = nootrequire();
describe('NOOT (utils)', function() {
describe('.makeArray()', function() {
it('should create an array from arguments', function() {
(function() {
NOOT.makeArray(arguments).should.deep.equal([1, 2, 3]);
})(1, 2, 3);
});
it('should cre... |
module.exports = {
entry: './src/app.js',
output: {
filename: "bundle.js"
},
module: {
loaders: [
{
test: /\.js/,
exclude: /node_modules/,
loader: ['babel-loader','eslint-loader']
},
{
test: /\.js/,
loaders: ['babel-loader?presets[]=latest'],
... |
app.directive('focus', function() {
return function(scope, element) {
element[0].focus();
}
});
|
/***********************************************************************
This is a simple plugin to allow you to toggle an element between
position: absolute and position: fixed based on the window scroll
position. This lets you have an apparently inline element which floats
to stay on the screen once it would othe... |
version https://git-lfs.github.com/spec/v1
oid sha256:665bec7159d3925156e2e45d1354dcc7d55fa4578047b0d9ab05a787812bfb59
size 8649
|
// The module 'vscode' contains the VS Code extensibility API
// Import the module and reference it with the alias vscode in your code below
let vscode = require('vscode');
// this method is called when your extension is activated
// your extension is activated the very first time the command is executed
function acti... |
'use strict';
var expect = require('expect.js'),
sinon = require('sinon'),
getExecutorConstructor = require('../lib/executor'),
_ = require('underscore'),
proxyquire = require('proxyquire');
describe('docker executor', function() {
var app = {lib: {
command: {SpawnCommand: _.noop},
executor: {BaseExecutor: ... |
import React from 'react';
import { floatRightButtonStyle, formElementsStyle, modalStyle } from '../styles/styles';
import Label from './Label';
export default class EditCardModal extends React.Component {
constructor(props) {
super(props);
this.state = {
selectedColor: 'red',
};
}
handleChan... |
var lastActiveTab = {};
chrome.tabs.onActivated.addListener(function(activeInfo) {
chrome.tabs.get(activeInfo.tabId, function(tab) {
lastActiveTab[tab.windowId] = tab.index;
});
});
chrome.tabs.onCreated.addListener(function(tab) {
if ( lastActiveTab[tab.windowId] != null ) {
chrome.tabs.move(tab.id, { ... |
import { combineReducers } from 'redux'
import socket from './socket'
import operations from './operations'
import databases from './databases'
import replica_set from './replica_set'
import settings from './settings'
import { routerReducer } from 'react-router-redux'
export default combineReducers({
socket,
ope... |
function Level(game, level) {
this.game = game;
this.level = level;
this.remaining = level;
this.interval = undefined;
this.period = 4;
this.intervalTime = 10;
this.velocity = 2 * Math.PI / (1000 * this.period);
this.forward = true;
this.game.setRemaining(level);
var me = this;
this.game.board.on('click', ... |
export { layoutActions } from './actions';
export { initLayout } from './layout';
export { layoutReducer } from './reducer'; |
(function()
{
var pumpkin = new Pumpkin();
pumpkin.addWork('getOrgs', function()
{
var next = this.next;
CF.async({url : '/v2/organizations'}, function(result)
{
if(result)
{
if(result.resources)
{
var html = '';
var orgList = result.resources;
for(var i=0; i<orgList.... |
var valueOrDefault = function (value, _default) {
if (typeof value === 'undefined') {
return _default;
}
return value;
};
/**
*
* @param options
* @constructor
*/
var Retry = function (options) {
this._maxTries = valueOrDefault(options.maxTries, 1);
this._delayBetweenRetries = valu... |
(function(g){var b=['SVGSVGElement','SVGGElement'],d=document.createElement('dummy');if(!b[0]in g)return!1;if(Object.defineProperty){var e={get:function(){d.innerHTML='';Array.prototype.slice.call(this.childNodes).forEach(function(a){d.appendChild(a.cloneNode(!0))});return d.innerHTML},set:function(a){var b=this,e=Arra... |
/**
* Main JS file with component initialization template for Grunt
*/
exports.description = 'Create main JS file.';
exports.warnOn = ['main.js', 'js/main.js'];
// The actual init template.
exports.template = function(grunt, init, done) {
var path = require('path');
init.process({}, [], function(err, props) {
... |
var EqualToValidator = require('../Classes/EqualToValidator');
var isEqualTo = function(data, options){
options = (options == null) ? {} : options;
var _validator = new EqualToValidator(options);
_validator.validate(data);
return _validator.isValid() ? true : false;
};
module.exports = isEqualTo; |
import { Color } from '../math/Color.js';
import { Vector2 } from '../math/Vector2.js';
import { Vector3 } from '../math/Vector3.js';
import { Vector4 } from '../math/Vector4.js';
import { Matrix3 } from '../math/Matrix3.js';
import { Matrix4 } from '../math/Matrix4.js';
import { FileLoader } from './FileLoader.js';
im... |
import React from 'react';
import renderer from 'react-test-renderer';
import GenericOption from './generic-option';
describe('Form controls - Generic option', () => {
test('Should exists with the corresponding template', () => {
const props = {
value: 'Fake value',
className: 'fake-class-name'
... |
'use strict';
angular.module('core').controller('HomeController', ['$scope', '$state', 'Authentication', 'RentalhouseCitiesService',
function ($scope, $state, Authentication, RentalhouseCitiesService) {
// This provides Authentication context.
$scope.authentication = Authentication;
var vm = this;
v... |
/***
* _ _____
* | | |____ |
* __ _ _ __ _ _ _ __ | |_ ______ __ _ ___ / /
* / _` | '__| | | | '_ \| __|______/ _` / __| \ \
* | (_| | | | |_| | | | | |_ | (_| \__ \.___/ /
* \__, |_| \__,_|_... |
"use strict";
define(["p5", "./GraphView.js", "./GraphUtils.js", "/partials/graph_sketcher/graph_preview.html"], function(p5, graphViewBuilder, graphUtils, templateUrl) {
return function() {
return {
scope: {
state: "=",
questionDoc: "=",
},
... |
describe("BancoDoBrasilValidator", function() {
var validBankAccountParams;
beforeEach(function() {
validBankAccountParams = {
bankNumber : "001",
agencyNumber : "1584",
agencyCheckNumber : "9",
accountNumber : "00210169",
accountCheckNumber : "6",
vali... |
var empty, get, set,
__hasProp = {}.hasOwnProperty;
get = Ember.get;
set = Ember.set;
empty = function(obj) {
var key;
for (key in obj) {
if (!__hasProp.call(obj, key)) continue;
return false;
}
return true;
};
export default Ember.Mixin.create({
buffer: null,
hasBufferedChanges: false,
unkno... |
/**
* @param {number} n
* @return {string[]}
*/
var generateParenthesis = function(n) {
var res = [];
function generate(left, right, current, result) {
if (left === n && right === n) {
result.push(current);
return;
}
if (left < right) {
return;
... |
/*
* jQuery LayerIt UI Widget 1.0
* Copyright 2013 Matt Downs
*
* https://github.com/mdowns56/layerit
*
* Depends:
* jQuery 1.4.2
* jQuery UI 1.8 widget factory
*
* Licensed under MIT license.:
* http://www.opensource.org/licenses/mit-license.php
*/
(function($){
$.widget( "... |
import chai from 'chai';
import thunk from 'redux-thunk';
import moxios from 'moxios';
import configureMockStore from 'redux-mock-store';
import * as auth from '../../actions/searchAction';
import types from '../../actions/actionTypes';
const expect = chai.expect;
const middlewares = [thunk];
const mockStore = config... |
import { message } from 'antd'
export const read = (key) => {
return localStorage.getItem(key)
}
export const readObject = (key) => {
const text = this.read(key)
let obj = {}
try {
obj = JSON.parse(text)
} catch (error) {
message.error(error)
}
return obj
}
export const write = (key, data) => {... |
define(['jquery','datepicker'], function (jQuery) {
/* Czech initialisation for the jQuery UI date picker plugin. */
/* Written by Tomas Muller (tomas@tomas-muller.net). */
jQuery(function($){
$.datepicker.regional['cs'] = {
closeText: 'Zavřít',
prevText: '<Dříve',
nextText: 'Později>',
currentText: ... |
var Reminder = {};
Reminder.remind = function(params) {
if (!params.app || typeof(params.app) !== 'string') {
console.log('app is a required parameter, and must be a string!');
} else if (!localStorage.getItem('reminder_sent')) {
Pebble.getTimelineToken(function(watchtoken) {
var re... |
import React, { PropTypes, Component } from "react";
import { Button, DropdownButton, Glyphicon, MenuItem } from "react-bootstrap";
class OpeningActionMenu extends Component {
render( ) {
return (
<div className="intro">
<div className="start">
<div className="drag_or_choose">
... |
'use strict';
const _ = require('underscore');
const app = require('express')();
const Analytics = require('analytics-node');
const { secrets } = require('app/config/config');
const { guid } = require('./users');
const segmentKey = process.env.SEGMENT_WRITE_KEY || secrets.segmentKey;
const env = process.env.ANALYTIC... |
/*
Copyright 2013, KISSY UI Library v1.40dev
MIT Licensed
build time: Jul 3 13:51
*/
/*
Combined processedModules by KISSY Module Compiler:
editor/plugin/dent-cmd
*/
/**
* Add indent and outdent command identifier for KISSY Editor.Modified from CKEditor
* @author yiminghe@gmail.com
*/
/*
Copyright (c) 2003-20... |
api.equinox.com/member
[
{
}
] |
/**
* Created by Toure on 29/03/15.
*/
if (!Date.prototype.toISOString) {
(function() {
function pad(number) {
if (number < 10) {
return '0' + number;
}
return number;
}
Date.prototype.toISOString = function() {
return this.... |
'use strict';
Meteor.methods({
customerInactive: function(customer) {
check(customer, Object);
if(!Meteor.userId()) {
throw new Meteor.Error('not-authorized');
}
db.customers.update(customer._id, {
$set: { active: false },
});
var house = db.houses... |
const watch = require('node-watch')
const execa = require('execa')
watch('src', { recursive: true }, async (evt, name) => {
await execa('npm', ['run', 'build', '-s'], { stdio: 'inherit' })
})
|
module.exports = {
onInput: function (input) {
this.state = {
name: input.name,
age: input.age,
url: input.url
};
},
setName: function (newName) {
this.setState("name", newName);
},
setAge: function (newAge) {
this.setState("age", newAge);
},
setUrl: function (newUrl) {
... |
/*
* grunt-zobei-template
* https://github.com/Administrator/tcompile
*
* Copyright (c) 2013 bubusy
* Licensed under the MIT license.
*/
'use strict';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
zobei_template: {
default_test: {
files: {
'tes... |
// All code points in the Mro block as per Unicode v9.0.0:
[
0x16A40,
0x16A41,
0x16A42,
0x16A43,
0x16A44,
0x16A45,
0x16A46,
0x16A47,
0x16A48,
0x16A49,
0x16A4A,
0x16A4B,
0x16A4C,
0x16A4D,
0x16A4E,
0x16A4F,
0x16A50,
0x16A51,
0x16A52,
0x16A53,
0x16A54,
0x16A55,
0x16A56,
0x16A57,
0x16A58,
0x16A59,... |
import fileExtensions from '../../file-extensions'
export default {
name: 'image',
configure ({ action }) {
return {
module: {
rules: [
{
test: fileExtensions.test.IMAGE,
use: [
{
loader: 'url-loader',
options: {
... |
/*!
FixedHeader 3.1.2
©2009-2016 SpryMedia Ltd - datatables.net/license
*/
(function(d){"function"===typeof define&&define.amd?define(["jquery","datatables.net"],function(g){return d(g,window,document)}):"object"===typeof exports?module.exports=function(g,h){g||(g=window);if(!h||!h.fn.dataTable)h=require("datatables.... |
exports = module.exports = function() {
return '<meta charset="utf-8">' +
'<meta http-equiv="X-UA-Compatible" content="IE=edge">' +
'<meta name="viewport" content="width=device-width, initial-scale=1">' +
'<meta name="description" content="A Basic Online Portfolio">' +
'<meta na... |
var Mode = {
Display: 0,
Edit: 1
};
var TicketType = {
Free: "0",
Paid: "1",
Donation: "2"
};
var TicketEvent = function () {
this.Id = null;
this.Name = "";
this.Quantity = 0;
this.Price = 0;
this.Description = "";
this.IsShowDescription = true;
this.SaleChanel = 0;
this.M... |
/**
* @file mip-qf-loadingscorll 组件
* @author 9-lives
*/
define(function (require) {
var mustache = require('templates');
var util = require('util');
var utils = require('./utils');
var customElement = require('customElement').create();
var component; // 组件元素
var params; // jsonp 参数
var... |
(function (angular) {
'use strict';
angular.module('org.tbk.vishy.ui.report.controllers')
.controller('ReportCtrl', [
'$scope',
function ($scope) {
}])
;
})(angular);
|
/**
* Created by timfulmer on 9/2/15.
*/
var env=process.env.NODE_ENV || 'development',
fs=require('fs'),
configJson=void 0,
configJsonPath=void 0;
try{
fs.statSync('./config.json');
configJson=require('./config.json');
configJsonPath='./config.json';
}catch(err){
console.log('No config.json found, atte... |
/**
* Created by long on 15-2-14.
*/
var COLS = 8;
var ROWS = 8;
var TILE_SIZE = 64
var MIN_COUNT = 3;
var GamePopStars = BaseScene.extend({
tileMap:null,
onEnter:function()
{
this._super();
var bg = flax.assetsManager.createDisplay(res.poppingStars, "bg", {parent:this});
flax.in... |
angular.module('material.autocomplete.templates', []).run(['$templateCache', function ($templateCache) {
'use strict';
$templateCache.put('ac-templates',
'<script type=text/ng-template id=acTemplate.html><div name="searchAutocomplete" id="autocompleteForm-{{ac.id}}" ng-init="ac.inputFieldName=\'acInputField-\'+... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*
* A very simple debug log file lib for Node.JS
*
* Author: Paul Norwood <paul@greatdividetech.com>
*
* The MIT License (MIT)
*
* Copyright (c) 2013 Great Divide Technology <development@greatdividetech.com>
*
* Permission ... |
import expect from 'expect';
import reducer from '../reducer';
import { setRoomName } from '../actions';
describe('App Reducer', () => {
it('returns the initial state', () => {
expect(reducer(undefined, {}).toJS())
.toInclude({ roomName: '' })
.toIncludeKey('webrtc');
});
it('handles the setRoo... |
import test from 'ava';
import sinon from 'sinon';
import { mockImports, resetImports } from '../../utils/test-helpers';
import generateSeeder, {
__RewireAPI__ as moduleRewireAPI,
} from './generate-seeder';
const helpData = {
name: 'name',
seederTemplate: 'template',
userSeedersFolderPath: 'path/to/seeders'... |
version https://git-lfs.github.com/spec/v1
oid sha256:ca6b9b82bb53f52a1ca32aebbeb7ef16b6265ad88a0d96db479dbbf08e975d66
size 789
|
/**************************************************************
6. ZIP TASKS
**************************************************************/
var gulp = require('gulp'),
config = require('../gulp.conf.js'),
zip = require('gulp-zip');
gulp.task(config.tasks.zip, function() {
return gulp.src('./public/**')
.pipe... |
({
/* send : function(component, event, helper) {
var text = event.source.get("v.label");
$A.get("e.c:message").setParams({
text: text
}).fire();
}, */
send : function(component, event, helper) {
var messageEvent = component.getEvent("messageEvent");
var tex... |
var list = require('./')
var display = require('./bin/display')
var pkg = require('./package.json')
var defaultArgs = {
dependencies: false,
optionalDependencies: false,
peerDependencies: false,
devDependencies: true
}
list(pkg, defaultArgs).then(display) |
var http = require('http'),
URL = require('url'),
HtmlToDom = require('./htmltodom').HtmlToDom,
domToHtml = require('./domtohtml').domToHtml,
htmlencoding = require('./htmlencoding'),
HTMLEncode = htmlencoding.HTMLEncode,
HTMLDecode = htmlencoding.HTMLDeco... |
module.exports = function(grunt) {
// Load Grunt tasks declared in the package.json file
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
express: {
all: {
... |
// Include gulp
var gulp = require('gulp');
// node file system
var fs = require('fs');
// Include Our Plugins
var sass = require('gulp-sass');
var minify = require('gulp-minify-css');
var rename = require('gulp-rename');
var clean = require('gulp-clean');
var swig = require('gulp-swig');
var concat = require('gulp-c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.