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
| 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 |