This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$hort, Too American Pimp (1999) [Too $hort] | |
Gangsta Rap: The Glockumentary (2007) [Himself] | |
Get It Where You Fit in 1 (2003) (V) [Himself] <1> | |
GhettoPhysics: Will the Real Pimps and Hos Please Stand Up? (2010) | |
Ghostride the Whip (2008) (V) [Himself] | |
Hip Hop Uncensored Vol. 4: Miami Vice (2002) (V) [Himself] | |
Menace II Society (1993) [Lew-Loc] <27> | |
Porndogs: The Adventures of Sadie (2009) (voice) [Bosco] <3> | |
Rhyme & Reason (1997) [Himself] | |
Scarface: Greatest Hits on DVD (2003) (V) (as Too Short) [Himself (segment "Sex Faces"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
class Color < Struct.new(:r, :g, :b, :a) | |
def self.from_hex (str) | |
args = case str.length | |
when 3; str.scan(/[0-9a-f]/i).map{ |s| "#{s}#{s}".to_i(16) } | |
when 6; str.scan(/[0-9a-f]{2}/i).map{ |s| s.to_i(16) } | |
else [0, 0, 0] | |
end << 1.0 | |
new(*args) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Yesterday, upon the stair, | |
I met a man who wasn’t there | |
He wasn’t there again today | |
I wish, I wish he’d go away... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main () { | |
int i; | |
for(i = 0; i < 2; i++) { printf("Hello, world!\n"); } | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let(:test_class) do | |
Class.new do | |
include MongoMapper::Document | |
set_collection_name 'proxied_collection_tests' | |
end | |
end | |
let(:test_instance) { test_class.create } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parse_git_branch () { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/::\1/' | |
} | |
export PS1="\u::\W\$(parse_git_branch) \$ " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'bundler/setup' | |
require 'mongo_mapper' | |
MongoMapper.connection = Mongo::Connection.new("127.0.0.1", 27017, | |
:logger => Logger.new(STDOUT)) | |
MongoMapper.database = 'tmp' | |
class Example | |
include MongoMapper::Document | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# one_equals_one.rb | |
describe "1 == 1" do | |
specify { 1.should == 1 } | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'benchmark' | |
Test = Struct.new(:value) | |
def contains(a, b) | |
a.any? do |n| | |
b.include?(n) | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'benchmark' | |
Test = Struct.new(:value) | |
def contains(a, b) | |
a.any? do |n| | |
b.include?(n) | |
end | |
end |