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
def finalized? | |
clicked_finalized? && (total_final_invoice.blank? || charged_on) | |
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
/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 |
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
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 |
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
function toggle_nav(id){ | |
nav = $(id); | |
if(!nav.hasClassName('selected')){ | |
$$('.splash_nav_child').each(function(e){ | |
e.removeClassName('selected'); | |
}); | |
nav.addClassName('selected') | |
} | |
} |
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
[email protected] do |commit| | |
=link_to show_commit_path(current_user.login, @repository.name, commit.sha1) do | |
=commit.message |
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
!!! | |
%html | |
%head | |
%title | |
Ethan's Awesome Haml Page | |
%body | |
%h1 This is a Page Title! | |
The is the content |
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
<!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 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
<!-- 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 %> |
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
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 |
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
Collections.shuffle(CardList,shuffle_number) |
OlderNewer