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
Write a dark comedy TV episode about an HR agency that brings dead heros back to life in order to go on one-off quests with other living members of the party | |
Episode Title: “The HR Agency From Beyond” | |
Opening Scene: | |
The camera pans through a grey, oppressive office building. A few people mingle in the hallways, but they seem to be dressed in the same drab, dark attire. There’s an air of unease in the building. We come to a black door with the words “HR agency” painted on the outside. Inside, we see a group of people gathered around a table. The camera zooms in on a woman with bright red hair. | |
Red Hair: Welcome to the HR agency. Our mission is to provide unique opportunities for the living and the dead. We bring back heroes from the past to help you in the present. | |
The camera pans around the room. We see a very strange mix of people - some living, some dead. They are all dressed in armor, holding swords and shields. |
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
// Copyright (c) 2011, the HaXe project authors. | |
// All rights reserved. | |
// Simple test program to compare haXe style js output with dart version: | |
// https://gist.github.com/1277224 | |
// compile: haxe -main HelloHaxeTest -js test.js | |
class HelloHaxeTest { | |
static function main() { | |
trace("Hello, HaXer!"); | |
} |
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 Main { | |
static function main() { | |
trace("Hello World"); | |
} | |
} |
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 Main { | |
static function main() { | |
#if disable_unicode_strings | |
trace("disable unicode flag"); | |
#end | |
#if target.unicode | |
trace("unicode enabled"); | |
#end | |
defines(); |
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 Main { | |
static function main(){ | |
var router = Paths.buildRouter(Page); | |
var o = router(["Home"]); | |
trace(o + " is the value for o"); | |
var p = router(["Foo","Baz", "1"]); | |
trace(p + " is the value for p"); |
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 haxe.macro.Expr; | |
import haxe.macro.Context; | |
class Paths { | |
public static macro function toPath(value) { | |
var en = switch Context.follow(Context.typeof(value)) { | |
case TEnum(_.get() => en, _): en; | |
case _: throw new Error("not an enum", value.pos); | |
} |
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 haxe.macro.Context; | |
import haxe.macro.Expr; | |
/** | |
Simple config merge routine. Supply a series of anonymous objects, and this macro will merge them into a single instance. | |
This is useful for providing a series of overrides for config, so I've gone with that name. | |
The benefit is that the macro preserves all of the typing info, so you still get completions, etc. on the merged object. | |
**/ | |
class Config { | |
public static macro function merge<T>(arr : Array<ExprOf<T>>) : Expr { |
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 lua.jit.FFIBuilder; | |
import lua.Ffi; | |
class Main { | |
static function main() { | |
var k= 'hi'; | |
trace(k.length + " is the value for k.length"); | |
SomeFfi.printf("foo %s", "hi"); | |
SomeFfi.puts("fabaoijaowief\n"); | |
} |
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
[ | |
{ | |
"data": { | |
"index": 0, | |
"origin": 0 | |
}, | |
"detail": "public function charAt(index:Int):String", | |
"documentation": null, | |
"kind": 2, | |
"label": "charAt", |
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
typedef JsonObj = { | |
glossary:Glossary, | |
} | |
typedef Glossary = { | |
title:String, | |
GlossDiv:GlossDiv, | |
} | |
typedef GlossDiv = { |
NewerOlder