(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| var isoCountries = { | |
| 'AF' : 'Afghanistan', | |
| 'AX' : 'Aland Islands', | |
| 'AL' : 'Albania', | |
| 'DZ' : 'Algeria', | |
| 'AS' : 'American Samoa', | |
| 'AD' : 'Andorra', | |
| 'AO' : 'Angola', | |
| 'AI' : 'Anguilla', | |
| 'AQ' : 'Antarctica', |
| <!doctype html> | |
| <html ng-app="Demo" ng-controller="AppController"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title> | |
| Logging Client-Side Errors With AngularJS And Stacktrace.js | |
| </title> | |
| <style type="text/css"> |
Collection of some of my fav terminal aliases that I use often & collected from the web. This file will be updated with more aliases as I find more. Feel free to comment and share your fav aliases you use :)
vim ~/.bash_profilei and then paste the following at the top of the file:| /** | |
| * Retrieves all the rows in the active spreadsheet that contain data and logs the | |
| * values for each row. | |
| * For more information on using the Spreadsheet API, see | |
| * https://developers.google.com/apps-script/service_spreadsheet | |
| */ | |
| function readRows() { | |
| var sheet = SpreadsheetApp.getActiveSheet(); | |
| var rows = sheet.getDataRange(); | |
| var numRows = rows.getNumRows(); |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Handlebars Partials Example</title> | |
| </head> | |
| <body> | |
| <h1>Handlebars Partials Example!</h1> | |
| <div id="list"> | |
| </div> |
| var app = angular.module('app', ['ngResource']); | |
| app.config(function($locationProvider, $routeProvider) { | |
| // $locationProvider.html5Mode(true); | |
| $routeProvider | |
| .when('/', { templateUrl: 'partials/index', controller: 'ctrl' }) | |
| .when('/about', { templateUrl: 'partials/about', controller: 'ctrl' }) | |
| .otherwise({redirectTo:'/'}); | |
| }); |
| stashgrep() { | |
| for i in `git stash list | awk -F ':' '{print $1}'`; do | |
| git stash show -p $i | grep -H --label="$i" "$1" | |
| done | |
| } |