- http://thenittygritty.co/angularjs-pitfalls-using-scopes
- http://www.thinkster.io/pick/GtaQ0oMGIl/a-better-way-to-learn-angularjs
- http://www.thinkster.io/pick/GUIDJbpIie/angularjs-tutorial-learn-to-build-modern-web-apps
- http://www.bennadel.com/blog/2439-My-Experience-With-AngularJS-The-Super-heroic-JavaScript-MVW-Framework.htm + related posts
- http://dailyjs.com/tags#angularfeeds
- http://newtriks.com/2013/06/11/automating-angularjs-with-yeoman-grunt-and-bower/
- http://eviltrout.com/2013/06/15/ember-vs-angular.html
- http://devgirl.org/2013/03/21/fun-with-angularjs/
- http://www.localytics.com/blog/2013/angularjs-at-localytics/
- http://slid.es/gsklee/animation-in-angularjs
This file contains hidden or 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 Collection = require("ampersand-rest-collection"); | |
var Model = require("ampersand-model"); | |
var Product = Model.extend({ | |
props: { | |
name: 'string', | |
price: 'integer' | |
} | |
}); |
This file contains hidden or 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
/** | |
* Quicksort implementation by Nicholas C. Zakas | |
* http://www.nczonline.net/blog/2012/11/27/computer-science-in-javascript-quicksort/ | |
*/ | |
var items = []; | |
for (var i = 0; i < 1000000; i++) { | |
items.push(Math.round(Math.random() * 1000000)); | |
} |
This file contains hidden or 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
$ git remote add <username> <fork-url> | |
$ git fetch <username> | |
$ git checkout <PR-branch-name> |
This file contains hidden or 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'; | |
module.exports = function (element, callback) { | |
var allImgsLength = 0; | |
var allImgsLoaded = 0; | |
var allImgs = []; | |
var filtered = Array.prototype.filter.call(element.querySelectorAll('img'), function (item) { | |
if (item.src === '') { | |
return false; |
This file contains hidden or 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
<script>document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1"></' + 'script>')</script> |
This file contains hidden or 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 makeThanksgivingHappen (wishes) { | |
function Thanks () { | |
this.given = false; | |
} | |
Thanks.prototype.give = function () { | |
this.given = true; | |
} | |
var thanks = new Thanks(); |
This file contains hidden or 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
module.exports = function(grunt) { | |
'use strict'; | |
var execSync = require('exec-sync'); | |
grunt.initConfig({ | |
lessphp: { | |
files: { | |
'path/to/source.less': 'path/to/compiled.css', | |
} |
This file contains hidden or 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
<html> | |
<head> | |
<title>Scoreunder/LoDash Diff</title> | |
<style type="text/css"> | |
body { | |
padding: 2em; | |
font: 18px Monaco; | |
} | |
.add { | |
background: rgba(0,255,0,0.1); |
This file contains hidden or 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
<code>$ mkdir [your-project]</code> | |
<code>$ cd [your-project]</code> | |
<code>$ git init</code> | |
<code>$ git remote add origin [repo-url]</code> | |
<code>$ touch README.md (to create README file)</code> | |
<code>$ git add README.md</code> | |
<code>$ git commit -m "Init commit"</code> | |
<code>$ git push origin master -u</code> |