Skip to content

Instantly share code, notes, and snippets.

This is gist.
There are many like it, but this one is mine.
It is my life.
I must master it as I must master my life.
Without me gist is useless.
Without gist, I am useless.
@traviskroberts
traviskroberts / gist:97
Created July 21, 2008 20:20
Generate Random Password
def generate_password(length=6)
chars = 'abcdefghjkmnpqrstuvwxyzABCDEFGHJKLMNOPQRSTUVWXYZ23456789'
password = ''
length.times { password << chars[rand(chars.length)] }
password
end
testing gist
omg this rocks
def what_is_gist
"I don't know wtf it is."
end
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Integer dignissim aliquet justo. Proin sodales luctus lectus. In hac habitasse platea dictumst. Praesent id nisl. Donec ut ipsum sed arcu sodales interdum. Aenean bibendum libero vel justo. Quisque id ligula. Mauris euismod, augue vitae convallis dapibus, quam tellus laoreet lorem, id cursus arcu massa a erat. Aliquam tristique pellentesque nisi. Vivamus mollis, nisi in nonummy semper, massa lectus ullamcorper erat, malesuada egestas nisl odio a metus. Vivamus facilisis elit id odio. Cras ac leo a orci egestas egestas. Nam orci libero, faucibus a, scelerisque vel, placerat nec, ligula. Cras velit. Nullam vestibulum erat ut odio. Duis eu odio.
Donec sagittis. Sed vulputate accumsan nisl. Donec magna ipsum, mattis in, gravida a, hendrerit id, tellus. Aliquam mattis, dolor id placerat hendrerit, nibh est faucibus mi, a condimentum turpis dolor eget nibh. Phasellus ornare nunc eu diam. Nam commodo sodales felis. Praesent imperdiet tellus luctus elit. Se
%h1.title RetireHQ Privacy Policy
#terms.generic
%p Last updated: July 21, 2008
%h2 Data Collected by the RetireHQ Website
%p Your privacy is of paramount importance to us. We believe that by respecting your privacy we will earn the opportunity to build a lasting relationship with your business, your clients and your staff. Any information you provide to us will only be used for the purpose for which it was submitted. We collect your information primarily for contact and billing purposes. Under no circumstances will your information be shared with, or sold to, or disclosed to any third party, except where required by law.
this is just a test...
@ihower
ihower / gist:113
Created July 21, 2008 20:26
"fooooooooooooobar" => "f***************r"
nickname = 'ihower'
1.upto(nickname.length-2) { |i| nickname[i] = '*' }
nickname # 'i****r'
def foo
puts 'foo'
end
def what_is_gist
"A bad ass version-able pastebin"
end