Skip to content

Instantly share code, notes, and snippets.

View treasonx's full-sized avatar

James Morrin treasonx

  • San Francisco CA
View GitHub Profile
@treasonx
treasonx / localStoreBug.html
Created April 17, 2012 19:06
Firefox localStorage Issues
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>LocalStoreBug</title>
</head>
<body>
<script type="text/javascript" charset="utf-8">
@treasonx
treasonx / hack.sh
Created March 31, 2012 11:58 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@treasonx
treasonx / gist:1523989
Created December 27, 2011 15:23
Control Spotify From CommandLine
#!/bin/bash
osascript -e 'tell application "spotify" to next track'
#!/bin/bash
osascript -e 'tell application "spotify" to playpause'
@treasonx
treasonx / plus-brackets-only.js
Created May 21, 2011 22:54 — forked from cowboy/plus-brackets-only.js
What results can you get just using these characters: +[]
// What results can you get just using these characters: +[]
// I know this has been done before, but I don't have the link,
// and I don't want it (not yet, at least)
// basic numbers
0: +[]
1: ++[+[]][+[]]
2: ++[++[+[]][+[]]][+[]]
3: ++[++[++[+[]][+[]]][+[]]][+[]]
4: ++[++[++[++[+[]][+[]]][+[]]][+[]]][+[]]