Skip to content

Instantly share code, notes, and snippets.

connectable.listen(ChatEvent.class, new ResponseHandler<ChatEvent>() {
@Override public void onResponse(ChatEvent e) {
// ...
}
});
/* Shrink absurdly-sized top border */
#page-header {
height: 3px !important;
}
/* Shrink footer */
footer {
padding: 30px 30px !important;
}

Keybase proof

I hereby claim:

  • I am ttaylorr on github.
  • I am ttaylorr (https://keybase.io/ttaylorr) on keybase.
  • I have a public key whose fingerprint is 8D51 0BF2 8150 AC54 1B4F AC31 D8A0 43D5 DFD4 2621

To claim this, I am signing this object:

@ttaylorr
ttaylorr / post-commit
Created May 1, 2014 03:04
Run `npm install` on post commit if changes are present in package.json
#!/bin/sh
changed=`git diff-tree --no-commit-id --name-only -r HEAD`
if [`grep 'package.json' <<< "$changed"` ] ; then
`npm install`
fi
@ttaylorr
ttaylorr / gist:10751574
Created April 15, 2014 17:42
mc.ttaylorr.com status api
// POST http://mc.ttaylorr.com/api/status/update
{
"server": "Overcast Network",
"status": "Everything functioning normally",
"key": "// some uuid"
}
@ttaylorr
ttaylorr / ladder.json
Created March 19, 2014 02:28
Minecraft 1.8 - Block Model Testing
{
"elements":[
{
"type":"cube",
"from":[
4,
13,
15
],
"to":[
public class VigenereBootstrap {
public static char[][] chars = new char[26][26];
public static void main(String[] args) {
// bootstrap the chars[]
for (int i = 0; i < 26; i++) {
for (int j = 0; j < 26; j++) {
chars[i][j] = (char) ((i + j) % 26 + 97);
}
}
@EventHandler
public void onInventoryClicked(InventoryClickedEvent event) {
Zone anvilZone = this.getZoneManager().getZone(ZoneType.ANVIL);
if (!(anvilZone.isEnabled())) {
return;
}
if ( !(event.getInventory() instanceof AnvilInventory) || event.getSlotType() != InventoryType.SlotType.RESULT) {
return;
}