This file contains 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.Collections.Generic; | |
using System.Security.Principal; | |
using System.Web; | |
using Moq; | |
namespace Tests.Utils | |
{ | |
public class HttpContextMock | |
{ | |
public HttpContextMock(IEnumerable<KeyValuePair<string, string>> requestParams) |
This file contains 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
// The following will be macromagically transformed... | |
class LazyExample implements Lazy | |
{ | |
var values:Array<Int>; | |
public function new() | |
{ | |
this.values = [3, 5, 1, 7]; | |
} |
This file contains 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
#!/bin/sh | |
# Patched version for installing Haxe on Linux. | |
HAXE_VERSION=3.1.3 | |
HAXE_VERSION_COMMA=3,1,3 | |
NEKO_VERSION=2.0.0 | |
if [ "$1" = "y" -o "$1" = "-y" ]; then |
This file contains 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# All Vagrant configuration is done here. The most common configuration | |
# options are documented and commented below. For a complete reference, | |
# please see the online documentation at vagrantup.com. |
This file contains 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# All Vagrant configuration is done here. The most common configuration | |
# options are documented and commented below. For a complete reference, | |
# please see the online documentation at vagrantup.com. |
This file contains 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
// The format is JSON, but using js for comments. | |
{ | |
// Type (Starts with Uppercase to differentiate from the primitive types) | |
"IncomingForm": { | |
"" : "Empty key leaves room for a description.", | |
// A function ends with (). Array value signifies overloading | |
"parse()": [{ | |
"" : "Parse a form", | |
// Parameter: Type | |
"req": "js.npm.express.Request", |
This file contains 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
package; | |
import js.npm.mongoose.macro.Manager; | |
import js.npm.mongoose.macro.Model; | |
typedef AttractionSchema = { | |
name: String, | |
description: String, | |
location: { lat: Float, lng: Float }, | |
history: { |
This file contains 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
class User implements Model { | |
@prop public var name : String; | |
public function new(name) { | |
this.name = M.prop(name); | |
} | |
} | |
class TestModule implements View { | |
var user:User; | |
This file contains 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
/* | |
How to run: | |
1. Download and install Haxe: http://haxe.org/download/ | |
2. Save this code to Main.hx and open a command prompt in the same directory | |
3. Execute "haxelib install haxedci" | |
4. Execute "haxe -main Main -lib haxedci --interp" | |
For javascript output: | |
haxe -main Main -lib haxedci -js moneytransfer.js | |
*/ |
This file contains 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 js.Browser; | |
import mithril.M; | |
class App implements Mithril { | |
public static function main() { | |
M.mount(Browser.document.body, new App()); | |
} | |
var tests = []; |
OlderNewer