This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var app = connect() | |
.use(function(req,res,next){ | |
buffer = httpProxy.buffer(req); | |
next(); | |
}) | |
.use(connect["static"](process.cwd())) | |
.use(function(req, res){ | |
//alter request here. | |
req.headers["host"] = host; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#aliases | |
git config --global alias.tree 'log --oneline --abbrev-commit --all --graph --decorate' | |
#view the history of the repo | |
git log --oneline --abbrev-commit --all --graph --decorate | |
#view whitespace issues. | |
git diff --check | |
#common flow |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var start = Observable.FromEvent<EventArgs>(btnStart, "Click"); | |
var stop = Observable.FromEvent<EventArgs>(btnStop, "Click"); | |
var keyDown = Observable.FromEvent<KeyEventArgs>(txtMainText, "KeyDown") | |
.Select(x => x.EventArgs) | |
.SkipUntil(start) | |
.TakeUntil(stop) | |
.Repeat() //this will start skiping again after stop was raised. | |
.Where(x => | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Net; | |
using System.Reactive.Linq; | |
using System.Text; | |
using System.Web; | |
using Newtonsoft.Json; |
NewerOlder