Skip to content

Instantly share code, notes, and snippets.

def finalized?
clicked_finalized? && (total_final_invoice.blank? || charged_on)
end
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- spec/autorun (LoadError) from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require' from /Users/egunderson/Library/Application Support/TextMate/Pristine Copy/Bundles/RSpec.tmbundle/Support/lib/spec/mate.rb:14 from /tmp/textmate-command-22067.rb:2:in `require' from /tmp/textmate-command-22067.rb:2
class Repository < ActiveRecord::Base
def self.find_available(login)
Github.new(login).public_repositories.collect(&:name) - User.find_by_login(login).repositories.collect(&:name)
end
end
function toggle_nav(id){
nav = $(id);
if(!nav.hasClassName('selected')){
$$('.splash_nav_child').each(function(e){
e.removeClassName('selected');
});
nav.addClassName('selected')
}
}
[email protected] do |commit|
=link_to show_commit_path(current_user.login, @repository.name, commit.sha1) do
=commit.message
!!!
%html
%head
%title
Ethan's Awesome Haml Page
%body
%h1 This is a Page Title!
The is the content
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>
Ethan's Awesome Haml Page
</title>
</head>
<body>
<h1>This is a Page Title!</h1>
<!-- This comment keeps IE6/7 in the reliable quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>KEHE :: EMPLOYEES<% if @title %>: <%= @page_title %><% end %></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Content-Language" content="en-us" />
<%= stylesheet_link_tag "application" %>
<%= javascript_include_tag :defaults %>
<%= yield :head %>
class KeheDirect::Admin::I27ExportController < KeheDirect::Admin::AdminController
authorized_for :admin
def create
Cart.export_i27
response.headers['Content-Type'] = 'text/csv'
response.headers['Content-Disposition'] = 'attachment; filename=I-27.csv'
render :action => :new
end
end
Collections.shuffle(CardList,shuffle_number)