Skip to content

Instantly share code, notes, and snippets.

View nathggns's full-sized avatar

Nate Higgins nathggns

View GitHub Profile
public void announce()
{
String[] track = getTrack();
if (track.length == 1) return;
String message = "[iTunes] " + track[1] + " - " + track[0] + " (" + track[2] + ")";
sendMessage(message);
}
/* Created by Nathaniel Higgins - http://nath.is */
package net.minecraft.src;
import java.io.*;
import java.util.*;
import java.lang.reflect.*;
public class mod_TuneCraft extends BaseMod
{
public List<Object> chatCommands = new ArrayList<Object>();
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Testing</title>
<style type="text/css">
.scroll {
width: 300px;
height: 180px;
overflow: auto;
@nathggns
nathggns / Undefined.coffee
Created February 18, 2012 14:50
Weird Coffeescript Undefined Error
((window, undefined) ->
doStuff()
)(window)
(function(window, undefined) {
})(window)
@nathggns
nathggns / f.coffee
Created February 18, 2012 15:25
object of functions
classManager.prototype = classManager.fn =
init: (element) ->
this.element = element
return this
addClass: (class) ->
console.log this.element
key: func1 func2 x, (->
doStuff()
)
key: func1 func2(x, ->
doStuff()
)
f(x).y
f x $.y // f(x).y
f x z $.y // f(x(z).y)
f x z $$.y // f(x(z)).y