(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.
if (test-path function:\prompt) { | |
$oldPrompt = ls function: | ? {$_.Name -eq "prompt"} | |
remove-item -force function:\prompt | |
} | |
function prompt { | |
function getGitStatus { | |
$branch = git branch 2>&1 | |
if($branch.Exception -eq $null) { | |
$status = "git" | |
$branch | foreach { |
request: function(options) { | |
var future=new Future(); | |
var req=http.request(options, function(res) { | |
var text=''; | |
res.setEncoding('utf8'); | |
res.on('data', function(chunk) { | |
text+=chunk; | |
}); | |
res.on('end', Block.guard(function() { |