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 / dijit_layout_programmatic.html
Last active January 3, 2016 05:49 — forked from anonymous/dijit_layout_programmatic.html
Fixed errors in handling of child widget removed from grid on destroy.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Test Programmatic Dijit Layout</title>
<meta name="viewport" content="width=570">
<style>
@import "../../dijit/themes/claro/document.css";
@import "../../dijit/themes/claro/claro.css";
@import "../css/skins/claro.css";
@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 / 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: ++[++[++[++[+[]][+[]]][+[]]][+[]]][+[]]