Skip to content

Instantly share code, notes, and snippets.

var allBlogs = function(cb){
Blog.find({}, function(err, docs){
if(err){
cb(err, null);
}
else{
cb(null, docs);
}
});
};
@robertwalsh0
robertwalsh0 / angular-with-foundation.js
Created August 21, 2014 16:35
Incorporate Foundation into Angular App
.run(function($rootScope) {
$rootScope.$on('$viewContentLoaded', function () {
$(document).foundation();
});
});
@robertwalsh0
robertwalsh0 / help.coffee
Created September 27, 2014 21:45
Help w/Protractor.coffee
#Trying to figure out how to get protractor working
# My first test is simple. Visit the page and see if this thing is on the page
# That test works fine.
# The second test is clicking a button and waiting to see if errors appear
# No matter what I try that I find on the net I can't get it to work. Help?
beforeEach ->
# the following command allows us to
# use protractor with our non-angular application