Skip to content

Instantly share code, notes, and snippets.

View mmanela's full-sized avatar
💭
🍕

Matthew Manela mmanela

💭
🍕
View GitHub Profile
@staltz
staltz / introrx.md
Last active May 3, 2024 13:00
The introduction to Reactive Programming you've been missing
@mmanela
mmanela / prompt.ps1
Created July 30, 2012 15:27
Combined Mercurial and Git PowerShell Prompt
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 {
@stellaraccident
stellaraccident / control-block-http-example1.js
Created March 21, 2011 20:05
Bulletproof node coding snippets
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() {