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
// POST http://localhost:8000/todos | |
{ | |
"description": "You have to do dishes!" | |
} | |
// GET http://localhost:8000/todos | |
[ |
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.IO; | |
using System.Reactive.Disposables; | |
using System.Reactive.Linq; | |
using ReactiveUI; | |
namespace SaveAllTheTime.Models | |
{ | |
interface IFilesystemWatchCache | |
{ |
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
function Invoke-NodeJS { | |
param( | |
$PowerShellCommand, | |
[Switch]$ReturnAsJSON | |
) | |
if($ReturnAsJSON) {$PowerShellCommand += " | ConvertTo-Json"} | |
$tmp = [IO.Path]::GetTempFileName() |
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 http = require('http'), | |
sys = require('sys'), | |
fs = require('fs'), | |
io = require('socket.io'); | |
var server = http.createServer(function(request, response) { | |
response.writeHead(200, { | |
'Content-Type': 'text/html' | |
}); | |
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
-- Add Portable software to your msysgit-PATH -- | |
If you like to work with your *nix shell even under Windows, you'll | |
likely use the git-bash provided by msysgit a lot. | |
A problem might be, that you don't have your tools in the PATH of that | |
shell and therefore can't use them. Those tools might be on the same | |
USB-drive as the git-shell, so you would have to adjust the PATH | |
(if you're allowed to) every time the drive-letter changes. |
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
open Microsoft.FSharp.Linq | |
open Microsoft.FSharp.Linq.Query | |
open MongoDB.Driver | |
open MongoDB.Linq | |
let inline (?) this key = | |
( ^a : (member get_Item : ^b -> ^c) (this,key)) | |
let inline (?<-) this key value = | |
( ^a : (member set_Item : ^b * ^c -> ^d) (this,key,value)) |
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
#if INTERACTIVE | |
#I @"C:\Tools\MongoDB-CSharp\MongoDB.Linq\bin\Debug" | |
#r "MongoDB.Driver.dll" | |
#r "MongoDB.Linq.dll" | |
#r "FSharp.PowerPack.Linq.dll" | |
#r "System.Core.dll" | |
#endif | |
open System | |
open MongoDB.Driver |