This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
describe('User controller', function () { | |
// Load the controller's module | |
beforeEach(module('lmisChromeApp', 'lmisChromeAppMocks')); | |
var q; | |
beforeEach(module(function($provide) { | |
var storageServiceMock = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Generated on 2013-12-23 using generator-angular 0.7.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) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* angular-strap | |
* @version v2.0.0-rc.4 - 2014-03-07 | |
* @link http://mgcrea.github.io/angular-strap | |
* @author Olivier Louvignes (olivier@mg-crea.com) | |
* @license MIT License, http://www.opensource.org/licenses/MIT | |
*/ | |
'use strict'; | |
angular.module('mgcrea.ngStrap.tooltip', [ | |
'ngAnimate', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.PouchDB=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){ | |
"use strict"; | |
var utils = _dereq_('./utils'); | |
var merge = _dereq_('./merge'); | |
var errors = _dereq_('./deps/errors'); | |
var EventEmitter = _dereq_('events').EventEmitter; | |
/* | |
* A generic pouch adapter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://stackoverflow.com/questions/283465/where-to-wrap-a-line-of-code-especially-long-argument-lists | |
angular.module('mymodule') | |
.controller('howlongsapieceofstringCtrl', function(arg1, arg2, arg3, arg4, arg5, arg6) { | |
return; | |
}) | |
.controller('linebylineCtrl', function( | |
arg1, | |
arg2, | |
arg3, | |
arg4, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define MAXTIMINGS 85 | |
#define cli noInterrupts | |
#define sei interrupts | |
#define DHT11 11 | |
#define DHT22 22 | |
#define DHT21 21 | |
#define AM2301 21 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ngconstant: { | |
options: { | |
name: 'config', | |
dest: '<%= yeoman.app %>/scripts/config.js', | |
template: grunt.file.read('constant.tpl.ejs'), | |
serializer: function(obj) { | |
return require('util').inspect(obj); | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var getID = function(result) { | |
return result.id; | |
}; | |
var db = new PouchDB('test'); | |
db.post({things: [1,2,3]}) | |
.then(getID) | |
.then(db.get) // <- | |
.catch(function(reason) { | |
console.log(reason); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> ./node_modules/karma/bin/karma start --autoWatch true --singleRun false | |
INFO [karma]: Karma v0.12.16 server started at http://localhost:8080/ | |
INFO [launcher]: Starting browser PhantomJS | |
INFO [PhantomJS 1.9.7 (Mac OS X)]: Connected on socket Z3gGAGnunLAnf4G_rKv6 with id 73751336 | |
PhantomJS 1.9.7 (Mac OS X) ERROR | |
TypeError: 'undefined' is not a function (evaluating 'eventEmitter[method].bind(eventEmitter)') | |
at /Users/tom/Projects/src/chrome/ehealth/LMIS-Chrome/app/bower_components/pouchdb/dist/pouchdb-nightly.js:5720 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> ./node_modules/karma/bin/karma start --autoWatch true --singleRun false | |
INFO [karma]: Karma v0.12.16 server started at http://localhost:8080/ | |
INFO [launcher]: Starting browser PhantomJS | |
INFO [PhantomJS 1.9.7 (Mac OS X)]: Connected on socket 7fyZb7l45tf6u2epDsaR with id 48056042 | |
PhantomJS 1.9.7 (Mac OS X) ERROR | |
Error: Unexpected request: GET views/index/loading-fixture-screen.html | |
No more request expected | |
at /Users/tom/src/LMIS-Chrome/app/bower_components/angular-mocks/angular-mocks.js:1179 | |
PhantomJS 1.9.7 (Mac OS X): Executed 57 of 235 ERROR (2.784 secs / 2.757 secs) |
OlderNewer