(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.
| import random | |
| for i in range(0, 100): | |
| if not i % 15: | |
| random.seed(1178741599) | |
| print [i+1, "Fizz", "Buzz", "FizzBuzz"][random.randint(0,3)] |
| //Based on http://www.samliew.com/icval/ | |
| function validateNRIC(str) { | |
| if (str.length != 9) | |
| return false; | |
| str = str.toUpperCase(); | |
| var i, | |
| icArray = []; | |
| for(i = 0; i < 9; i++) { |
| #!/usr/bin/env bash | |
| # MIT © Sindre Sorhus - sindresorhus.com | |
| # git hook to run a command after `git pull` if a specified file was changed | |
| # Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`. | |
| changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" | |
| check_run() { | |
| echo "$changed_files" | grep --quiet "$1" && eval "$2" |
(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.
| // add to Preferences > Key Bindings - User | |
| // see http://stackoverflow.com/a/26619524 for context | |
| { "keys": ["tab"], "command": "expand_abbreviation_by_tab", | |
| "context": [ | |
| { | |
| "operand": "source.js", | |
| "operator": "equal", | |
| "match_all": true, | |
| "key": "selector" |
CloudFlare is an awesome reverse cache proxy and CDN that provides DNS, free HTTPS (TLS) support, best-in-class performance settings (gzip, SDCH, HTTP/2, sane Cache-Control and E-Tag headers, etc.), minification, etc.