Skip to content

Instantly share code, notes, and snippets.

print "Hello"
We couldn’t find that file to show.
just a test
@pd
pd / gistie
Created July 22, 2008 14:39 — forked from anonymous/gistie
#!/usr/bin/env ruby
# Made by Pieter de Bie <frimmirf@gmail.com>
# Based on a "Pastie" task by someone
require "tempfile"
GIST_URL = 'http://gist.github.com/gists'
if ARGV.include? "-p"
text = `pbpaste`
We couldn’t find that file to show.
@0tt0
0tt0 / BARBARO.O.QUE.BARBARIDAD..ESPANOL.english..
Created July 22, 2008 14:51
ooh wee tagsy in plain language
BARARO O QUE BARBARIDAD..
ENGLISH.espanol..
dodo.data,git,wtf..
notwextnotwextnotwextnotwextn
a ber que pex
con esta madre
ya
aouoae
.floatleft{:style=>"width:200px;"}
-@contacts[0...(@contacts.per_page/2)].each_with_index do |contact, index|
=render :partial => "contact", :locals => {:contact => contact}
.floatright{:style=>"width:200px;"}
-@contacts[(@contacts.per_page/2)...@contacts.per_page].each_with_index do |contact, index|
=render :partial => "contact", :locals => {:contact => contact}
#pagination{:style=>"clear:both;"}
=will_paginate
@mrb
mrb / index.haml
Created July 22, 2008 15:00
column/pagination in haml
.floatleft{:style=>"width:200px;"}
-@contacts[0...(@contacts.per_page/2)].each_with_index do |contact, index|
=render :partial => "contact", :locals => {:contact => contact}
.floatright{:style=>"width:200px;"}
-@contacts[(@contacts.per_page/2)...@contacts.per_page].each_with_index do |contact, index|
=render :partial => "contact", :locals => {:contact => contact}
#pagination{:style=>"clear:both;"}
=will_paginate