Skip to content

Instantly share code, notes, and snippets.


Dave Thomas 7sharp9

  • Moirae Software Engineering Ltd
  • UK
  • Twitter @7sharp9_
View GitHub Profile
View FSHelloSceneKitViewController.fs
namespace FSHelloSceneKit
open System
open MonoTouch.UIKit
open MonoTouch.Foundation
open MonoTouch.SceneKit
type FSHelloSceneKitViewController () =
inherit UIViewController()
View EasyLayout.fs
module EasyLayout
open System
open System.Drawing
open Microsoft.FSharp.Quotations
open Microsoft.FSharp.Quotations.Patterns
open Microsoft.FSharp.Quotations.DerivedPatterns
open MonoTouch.Foundation
open MonoTouch.UIKit
View snap-benchmark's pong implementation in node.js
http.createServer(function (request, response) {
var uri = url.parse(request.url).pathname;
if(uri=='/pong') {
response.writeHead(200, {'Content-Type': 'text/plain'});
} else if ((match = uri.match(/^\/echo\/(.*)$/)) != null) {
response.writeHead(200, {'Content-Type': 'text/plain'});
7sharp9 / barbershop.scala
Created Jul 1, 2011 — forked from toluju/barbershop.scala
A better scala barbershop simulator.
View barbershop.scala
import scala.actors.Actor
import scala.actors.Actor._
import scala.util.Random
import scala.collection.{immutable, mutable}
val rand = new Random()
case class Customer(id: Int) {
var shorn:Boolean = false