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
| namespace FSHelloSceneKit | |
| open System | |
| open MonoTouch.UIKit | |
| open MonoTouch.Foundation | |
| open MonoTouch.SceneKit | |
| type FSHelloSceneKitViewController () = | |
| inherit UIViewController() | |
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
| 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 | |
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
| http.createServer(function (request, response) { | |
| var uri = url.parse(request.url).pathname; | |
| if(uri=='/pong') { | |
| response.writeHead(200, {'Content-Type': 'text/plain'}); | |
| response.end('PONG'); | |
| } else if ((match = uri.match(/^\/echo\/(.*)$/)) != null) { | |
| response.writeHead(200, {'Content-Type': 'text/plain'}); | |
| response.end(match[1]); |
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
| 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 | |
| } |