Skip to content

Instantly share code, notes, and snippets.

@petcarerx
petcarerx / Sake.cs
Created July 26, 2016 16:10
Expose a c# class as a barebones JSON web service on the local machine. Uses JSON.NET.
using Newtonsoft.Json;
using System;
using System.Linq;
using System.Net;
using System.Reflection;
using System.Threading;
using Newtonsoft.Json.Linq;
namespace com.hybrid47
{
@petcarerx
petcarerx / typescript_cheatsheet.ts
Created March 16, 2016 15:42
Typescript Cheat Sheet - Syntax features and examples
// _____ __ _ _
///__ \_ _ _ __ ___/ _\ ___ _ __(_)_ __ | |_
// / /\/ | | | '_ \ / _ \ \ / __| '__| | '_ \| __|
// / / | |_| | |_) | __/\ \ (__| | | | |_) | |_
// \/ \__, | .__/ \___\__/\___|_| |_| .__/ \__|
// |___/|_| |_|
//Typescript Cheat Sheet: every syntax feature exemplified
//variables are the same as javascript, but can be defined with a type:
var myString:string;