(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.
| { | |
| "AL": "Alabama", | |
| "AK": "Alaska", | |
| "AS": "American Samoa", | |
| "AZ": "Arizona", | |
| "AR": "Arkansas", | |
| "CA": "California", | |
| "CO": "Colorado", | |
| "CT": "Connecticut", | |
| "DE": "Delaware", |
| #!/bin/bash | |
| # If not running interactively, don't do anything. | |
| # This snippet helps to fix scp, sftp "Received message too long" issue.. | |
| [ -z "$PS1" ] && return | |
| # Source global definitions | |
| [ -f /etc/bashrc ] && . /etc/bashrc | |
| [ -f /etc/profile ] && . /etc/profile |
| import sys | |
| import csv | |
| tabin = csv.reader(sys.stdin, dialect=csv.excel_tab) | |
| commaout = csv.writer(sys.stdout, dialect=csv.excel) | |
| for row in tabin: | |
| commaout.writerow(row) |
| /** | |
| * Simple authentication and authorization example with passport, node_acl, | |
| * MongoDB and expressjs | |
| * | |
| * The example shown here uses local userdata and sessions to remember a | |
| * logged in user. Roles are persistent all the way and applied to user | |
| * after logging in. | |
| * | |
| * Usage: | |
| * 1. Start this as server |
(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.
| {% comment %} | |
| * | |
| * This loop loops through a collection called `collection_name` | |
| * and sorts it by the front matter variable `date` and than filters | |
| * the collection with `reverse` in reverse order | |
| * | |
| * To make it work you first have to assign the data to a new string | |
| * called `sorted`. | |
| * | |
| {% endcomment %} |
| # Android SDK setup | |
| ## Install Java | |
| ```bash | |
| sudo apt-get update | |
| sudo dpkg --add-architecture i386 | |
| sudo apt-get install libbz2-1.0:i386 | |
| sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 | |
| sudo apt-get install openjdk-8-jdk openjdk-8-jre |
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.