(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.
alias c='pushd' | |
alias d='popd' | |
alias cdev='c ~/dev > /dev/null' | |
alias cdown='c /Users/wayne/Downloads > /dev/null' | |
alias cfs='c /Users/wayne/dev/lrn/node/rest/fake-service > /dev/null' | |
alias cl='clear' | |
alias cll='cl; ll' | |
alias ea='c ~ > /dev/null; vim .bash_profile; d > /dev/null' | |
alias gb='git branch' | |
alias gs='cl; git status' |
var Browser = require('zombie'), | |
url = require('url'), | |
fs = require('fs'), | |
$q = require('Q'), | |
saveDir = __dirname + '/_snapshots'; | |
var scriptTagRegex = /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi; | |
var stripScriptTags = function(html) { |
#!/usr/bin/php | |
<?php | |
/** | |
* Update DNS Made Easy DDNS Record with Local IP | |
* http://www.joelambert.co.uk | |
* | |
* Copyright 2012, Joe Lambert. | |
* Free to use under the MIT license. | |
* http://joelambert.mit-license.org/ | |
*/ |
Download [jshint.vim][jshint]
Put it in ~/.vim/plugin/jshint.vim
Edit your local vimrc file (I'm on macvim with janus, so it's at ~/.gvimrc.local
) and add:
au BufWritePost *.js :JSHint
Read the [vim docs][vim] and particularly [auto commands][auto] I'm a newb and the neckbeards are probably laughing at me for even posting this.
FILE SPACING: | |
# double space a file | |
sed G | |
# double space a file which already has blank lines in it. Output file | |
# should contain no more than one blank line between lines of text. | |
sed '/^$/d;G' |
# If you work with git, you've probably had that nagging sensation of not knowing what branch you are on. Worry no longer! | |
export PS1="\\w:\$(git branch 2>/dev/null | grep '^*' | colrm 1 2)\$ " | |
# This will change your prompt to display not only your working directory but also your current git branch, if you have one. Pretty nifty! | |
# ~/code/web:beta_directory$ git checkout master | |
# Switched to branch "master" | |
# ~/code/web:master$ git checkout beta_directory | |
# Switched to branch "beta_directory" |