- http://topcoat.io
- http://onsenui.io
- http://blog.revolunet.com/blog/2013/09/30/extending-topcoat-css-framework
- http://www.numediaweb.com/web-app-with-dream-team
- http://devgirl.org/2013/06/10/quick-start-guide-phonegap-and-angularjs
- http://devgirl.org/2014/02/03/phonegap-cordova-default-project-android-support-for-xxhdpi
- http://coenraets.org/blog/2013/11/sample-mobile-application-with-angularjs
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
// Clear any existing data from the friends collection. | |
db.friends.remove(); | |
print( "> Friends collection has been reset." ); | |
// Set up the randomly genreated friends. | |
var names = [ | |
"Tricia", "Joanna", "Kim", "Anne", "Libby", | |
"Sarah", "Kate", "Kristina", "Samantha", "Tina" | |
]; |
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'; | |
const Module = require('module'); | |
const originalCompile = Module.prototype._compile; | |
const nohook = function (content, filename, done) { | |
return done(content); | |
}; | |
let currentHook = nohook; |
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 Promise = require('bluebird'); | |
var request = Promise.promisifyAll(require('request')); | |
var url1='http://httpbin.org/', url2=url1, url3=url1, url4=url1; | |
function* foo() { | |
var res1 = yield request.getAsync(url1); | |
var res2 = yield request.getAsync(url2); | |
var res3 = yield request.getAsync(url3); | |
var res4 = yield request.getAsync(url4); | |
return "whew all done"; |
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
// Routing setup | |
.config(function ($routeProvider) { | |
$routeProvider | |
.when('/home', { | |
controller: 'homeCtrl', | |
templateUrl: 'home.tpl.html' | |
}).when('/users', { | |
controller: 'usersCtrl', | |
controllerAs: 'vm', | |
templateUrl: 'users.tpl.html', |
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
<!doctype html> | |
<html ng-app="Demo"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Capturing Document-Clicks In AngularJS</title> | |
</head> | |
<body | |
ng-controller="DemoController" | |
bn-document-click="handleClick( $event )"> |
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
#!/bin/bash | |
# A simple script to backup an organization's GitHub repositories. | |
GHBU_BACKUP_DIR=${GHBU_BACKUP_DIR-"github-backups"} # where to place the backup files | |
GHBU_ORG=${GHBU_ORG-"<CHANGE-ME>"} # the GitHub organization whose repos will be backed up | |
# (if you're backing up a user's repos instead, this should be your GitHub username) | |
GHBU_UNAME=${GHBU_UNAME-"<CHANGE-ME>"} # the username of a GitHub account (to use with the GitHub API) | |
GHBU_PASSWD=${GHBU_PASSWD-"<CHANGE-ME>"} # the password for that account | |
GHBU_GITHOST=${GHBU_GITHOST-"github.com"} # the GitHub hostname (see comments) | |
GHBU_PRUNE_OLD=${GHBU_PRUNE_OLD-true} # when `true`, old backups will be deleted |
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
# NGINX | GIT | |
sudo yum install -y nginx git | |
# Install the current version of node version manager (nvm) by typing the following at the command line to install version 33.6 | |
# currently using v0.35.2 | |
curl -o- https://raw.githubusercontent.com/creationix/nvm/{VERSION}/install.sh | bash | |
# Activate nvm by typing the following at the command line. | |
. ~/.nvm/nvm.sh |
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
app.directive('ngEnter', function() { | |
return function(scope, element, attrs) { | |
element.bind("keydown keypress", function(event) { | |
if(event.which === 13) { | |
scope.$apply(function(){ | |
scope.$eval(attrs.ngEnter); | |
}); | |
event.preventDefault(); | |
} |
// please comment if you know of other BOOKS (not considering blogs just yet) on ES6 that are out or coming out
- Understanding ECMAScript 6 -- Nicholas Zakas
- Exploring ES6 -- Axel Rauschmayer
- YDKJS: ES6 & Beyond -- Kyle Simpson
- JS.next: A Manager's Guide -- Aaron Frost
- Expert JavaScript -- Mark E. Daggett
- JavaScript Allongé, The "Six" Edition -- Reginald Braithwaite
- Learning ECMAScript 6 -- Narayan Prusty
OlderNewer