Skip to content

Instantly share code, notes, and snippets.

View gbelote's full-sized avatar
🎩
Workin' on Wefunder

Greg Belote gbelote

🎩
Workin' on Wefunder
View GitHub Profile
<!-- BEGIN TutorialTab -->
<script type="text/javascript">
var _tutq = _tutq || [];
_tutq.push(['setAccount', XXX]); // XXX - account ID
_tutq.push(['setStartTime', new Number( new Date() )]);
_tutq.push(['init']);
(function() {
var tuts = document.createElement('script'); tuts.type = 'text/javascript'; tuts.async = true;
actionmailer (2.3.5, 2.2.2, 1.3.6)
actionpack (2.3.5, 2.2.2, 1.13.6)
actionwebservice (1.2.6)
activerecord (2.3.5, 2.2.2, 1.15.6)
activeresource (2.3.5, 2.2.2)
activesupport (2.3.5, 2.2.2, 1.4.4)
acts_as_ferret (0.4.4, 0.4.3)
authlogic (2.1.3)
bind (0.2.8)
bson (1.0.4)
Push it to the limit
Walk along the razor's edge
but don't look down, just keep your head
and you'll be finished
Open up the limit
past the point of no return
You've reached the top but still you gotta learn
how to keep it
They Told Him Don't You Ever Come Around Here
Don't Wanna See Your Face, You Better Disappear
The Fire's In Their Eyes And Their Words Are Really Clear
So Beat It, Just Beat It
You Better Run, You Better Do What You Can
Don't Wanna See No Blood, Don't Be A Macho Man
You Wanna Be Tough, Better Do What You Can
So Beat It, But You Wanna Be Bad
[gbelote@gbelote:~]$ ls /Developer (09-27 13:27)
About Xcode and iPhone SDK.pdf About Xcode.app Applications Documentation Examples Extras Headers Icon? Library Makefiles Platforms SDKs Tools usr
@gbelote
gbelote / gist:583591
Created September 17, 2010 03:08 — forked from gabewb/gist:583590
#undefined method `nil_class_path' for
<% form_for @game do |f| %>
<p><label for="game_title">Title:</label>
<%= f.text_field :title %></p>
<p><label for="game_price">Price:</label>
<%= f.text_field :price %><br />
@gbelote
gbelote / edit.html.erb
Created September 17, 2010 02:09 — forked from gabewb/gist:583535
<% form_for @board do |f| %> # form_for ( symbol or actual object ) do |(var)|
<% f.label :title %>:
<% f.text_field :title %><br />
<% f.label :price %>
<% f.text_field :price %><br />
<% f.submit %>
<% end %>
@gbelote
gbelote / .vimrc
Created September 16, 2010 21:39
" Configuration file for gvim
" Written for Debian GNU/Linux by W.Akkerman <[email protected]>
" Some modifications by J.H.M. Dassen <[email protected]>
"more mods by jasonkb
" Normally we use vim-extensions. If you want true vi-compatibility
" remove change the following statements
set nocompatible " Use Vim defaults (much better!)
set backspace=2 " allow backspacing over everything in insert mode
class Recording < ActiveRecord::Base
has_many :frames, :order => "time_ms"
end
@gbelote
gbelote / Grab a random lolcat URL
Created July 1, 2010 04:25
Grab a random lolcat from cheezburger.com
## Grab random lolcat URL
url = URI.parse('http://api.cheezburger.com/xml/category/cats/lol/random')
req = Net::HTTP::Get.new(url.path)
res = Net::HTTP.start(url.host, url.port) do |http|
http.request(req)
end
r = /.*<LolImageUrl>([^<]*)<\/LolImageUrl>.*/m
m = r.match( res.body )
lolcat = m[1]