Skip to content

Instantly share code, notes, and snippets.

View sl4m's full-sized avatar
😎
😎

skim sl4m

😎
😎
View GitHub Profile
@sl4m
sl4m / gist:1013772
Created June 8, 2011 04:31
gst class hierarchy
Object
Behavior
ClassDescription
Class
Metaclass
BlockClosure
Boolean
False
True
Browser
@sl4m
sl4m / excellent_executable_requirements.markdown
Created February 9, 2011 03:28
Excellent Executable Requirements

Presenters

@ericlandes @dan_sb

Agile and Beyond Conference (dry-run)

What bad looks like

  • lengthy
def tip(msg); puts; puts msg; puts "-"*100; end
#
# 30 Ruby 1.9 Tips, Tricks & Features:
# http://www.igvita.com/2011/02/03/new-ruby-19-features-tips-tricks/
#
tip "Upgrading to Ruby 1.9 is simple: rvm install 1.9.2 && rvm --default 1.9.2"
tip "Ruby 1.9 supports named captures in regular expressions!"
MySQL commands (from http://www.pantz.org/software/mysql/mysqlcommands.html)
Create a database on the sql server.
mysql> create database [databasename];
List all databases on the sql server.
mysql> show databases;
Switch to a database.
mysql> use [db name];
// need to mess with document.defaultAction = true/false to block default action;
// idea from http://www.quirksmode.org/js/keys.html
window.onload = function () {
var keyCodeUp,
keyCodeDown,
currentIndex,
fonts,
currentFont,
setGlobalFont,
SpiderMonkey, implementation in C, ECMA-262 Edition 3 (Gecko)
Rhino, implementation in Java, ECMA-262 Edition 3 (none)
Nitro aka SquirrelFish (WebKit)
V8 (WebKit)
TraceMonkey (FF)
JagerMonkey (FF, Nitro/TraceMonkey cross child)
Futhark
Carakan (Presto)
Chakra (IE)
@sl4m
sl4m / gist:712272
Created November 23, 2010 18:45
smalltalk_reference.st
"Chris Rathman / [email protected]
************************************************************************
* Allowable characters: *
* - a-z *
* - A-Z *
* - 0-9 *
* - .+/\*~<>@%|&? *
* - blank, tab, cr, ff, lf *
* *
* Variables: *
@sl4m
sl4m / mice.css
Created September 10, 2010 16:16 — forked from jeffkreeftmeijer/mice.css
.mouse, #preview{
position: absolute;
background-repeat: no-repeat;
height: 22px;
min-width: 15px;
z-index: 100;
}
.mouse{
background-image: url('../images/cursor.png');
Sauder, Maloof, O'Sullivan, and Stickley. Four names that have one thing in common: furniture. Two of these build cheap knock-together furniture that can be found at IKEA or any office furniture store, the other two build one-of-a-kind instant classics. Sauder and O'Sullivan are companies that make pre-cut pieces of composite wood and veneer using CNC machines, and package them with a hardware kit and assembly instructions. Sam Maloof and Gustav Stickley were furniture craftsmen. Both have passed on, but their legacy of impeccable craftsmanship remains, and demand for their work only increases with time.
The two companies mass-produce identical copies of economical furniture for sale in large retail stores, where customers can purchase them cheaply. The relative quality of the products is reflected in their prices and availability. While both companies make a serviceable product at a reasonable price, it's likely people buy it for its convenience and availability and price, not its fine craft
var sys,
url,
querystring,
http,
searchUser,
listRepos,
postHandler;
sys = require('sys');
url = require('url');
querystring = require('querystring');