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 Parsing | |
| /// Remember where we are in the code. | |
| /// This is a struct to keep memory pressure down. | |
| /// (Significant perf improvements on iOS.) | |
| type ParseState = | |
| struct | |
| val Code : string | |
| val Index : int | |
| new (code : string, index : int) = |
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 AlgorithmW | |
| // HINDLEY-MILNER TYPE INFERENCE | |
| // Based on http://catamorph.de/documents/AlgorithmW.pdf | |
| // (Now at http://web.archive.org/web/20170704013532/http://catamorph.de/documents/AlgorithmW.pdf) | |
| type Lit = | |
| | LInt of int | |
| | LBool of bool |
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 MonoTouch.UIKit; | |
| using MonoTouch.CoreAnimation; | |
| public class BrightlyBlurredUIView: UIView | |
| { | |
| CALayer blurLayer,accentLayer; | |
| UIView accentView; | |
| UIToolbar toolbar; | |
| public BrightlyBlurredUIView() |
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.Collections.Generic; | |
| using System.Linq; | |
| using MonoTouch.Foundation; | |
| using MonoTouch.UIKit; | |
| using System.Drawing; | |
| using MonoTouch.CoreGraphics; | |
| using MonoTouch.CoreAnimation; | |
| using MonoTouch.AVFoundation; |
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'); | |
| http.createServer(function (req, res) { | |
| res.writeHead(200, {'Content-Type': 'text/plain', | |
| 'Connection': 'keep-alive'}); | |
| res.end('Hello World\n'); | |
| }).listen(8080, "192.168.56.1"); | |
| console.log('Server running'); |
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
| window.stainedPaper = function (func) { | |
| var canvas = document.createElement('canvas'); | |
| document.body.appendChild(canvas); | |
| paper.setup(canvas); | |
| func.call(paper); | |
| }; |