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
/* | |
* Simple script for running emcc on ARToolKit | |
* @author zz85 github.com/zz85 | |
*/ | |
var | |
exec = require('child_process').exec, | |
path = require('path'), | |
fs = require('fs'), |
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
#If GetKeyState("CapsLock", "T") = 1 | |
w::SendInput {Ctrl Down}{Shift Down}{Tab Down} | |
w up::SendInput {Ctrl Up}{Shift Up}{Tab Up} | |
r::SendInput {Ctrl Down}{Tab Down} | |
r up::SendInput {Ctrl Up}{Tab Up} | |
a::SendInput {Blind}{Home Down} | |
a up::SendInput {Blind}{Home Up} | |
g::SendInput {Blind}{End Down} | |
g up::SendInput {Blind}{End Up} |
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
window.loadlevel({ | |
name: "Help each other", | |
maxtime: 25, | |
goldtime: 17, | |
map: [ | |
w, w, w, w, w, w, w, w, w, | |
w, w, w, w, w, w, w, w, w, | |
w, o, o, o, c, o, o, o, w, | |
w, o, w, w, U, w, w, w, w, | |
P, o, w, w, o, w, o, o, Z, |
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
fn select_u32<'a>(a: &'a u32, b: &'a u32, select_a: &'a bool) -> &'a u32 { | |
if *select_a { a } else { b } | |
} | |
const STR_A: &'static str = "A"; | |
const STR_B: &'static str = "B"; | |
fn select_str(s: &str) -> &str { | |
if s.is_empty() { STR_A } else { STR_B } | |
} |
OlderNewer