Skip to content

Instantly share code, notes, and snippets.

View AlexJWayne's full-sized avatar
🌈

Alex Wayne AlexJWayne

🌈
View GitHub Profile
@AlexJWayne
AlexJWayne / input.coffeeson
Last active December 12, 2015 02:28
Example cofeeson conversion
pre: 123
a:
b:
c: '456'
d: [
7
8
e:
f: 'g'
]
@AlexJWayne
AlexJWayne / brew config
Last active December 12, 2015 08:08
OpenSSL fails to build on 10.8.2
» brew --config
HOMEBREW_VERSION: 0.9.4
ORIGIN: https://github.com/mxcl/homebrew
HEAD: 935f12ed6d6d4075a72cb6b973ad29c1884225ad
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: 8-core 64-bit ivybridge
OS X: 10.8.2-x86_64
Xcode: 4.6
CLT: 4.6.0.0.1.1358221012
> Counter
function Counter() { [native code] }
> Counter()
TypeError: Illegal constructor
> c = new Counter()
TypeError: Illegal constructor
> Counter(1)
» curl -I http://www.yuzustudios.com/gallery/Food/G0000zhbdZAbEpkQ/C0000TRldtyo7j4w
HTTP/1.1 301 Moved Permanently
Date: Sun, 28 Apr 2013 20:24:31 GMT
Server: Apache
Location: http://yuzu.photoshelter.com/gallery/Food/G0000zhbdZAbEpkQ/C0000TRldtyo7j4w
Vary: Accept-Encoding
Content-Type: text/html
function test(email, name) {
if (email == "" || name == "") {
alert("Enter mail or name");
}
return false;
if (email.indexOf("@") == -1) {
alert("Bad email");
}
function yell(n){
if (n > 0) {
return yell(n-1) + "a";
} else {
return "hiy";
}
}
function animate() {
// new frame!
ctx.clearRect(0, 0, canvas.width, canvas.height);
// decide if it's time to spawn a new circle
if (shouldSpawnCircle()) {
circles.push(new Circle())
}
// update and draw all circles
<cfsavecontent variable="input">
<cfinclude template="request.xml">
</cfsavecontent>
// 375 loops per second
// – Arduino Uno R3 -
// Thanks to FastLED Math library:
// https://github.com/FastLED/FastLED/wiki/High-performance-math
void sinePixels() {
uint8_t timeScale = 20;
long time = millis() * timeScale;
var fnArr: (()->())[] = []
fnArr.append({ println("a") })
fnArr.append({ println("b") })
fnArr.append({ println("c") })
for fn in fnArr { fn() }
// a
// b
// c