This file contains hidden or 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
<script type="text/javascript"> | |
var header_path = '//s.wldcdn.net/media/cougardate/header'; | |
if (WLD && WLD.Member) { | |
document.write( | |
'<img src="//s.wldcdn.net/media/cougardate/' + (WLD.Member.split == 'odd' ? 'header' :'header1') + '.png" style="display: block;">' | |
+ '<style type="text/css">' | |
+ 'body{background:url(//s.wldcdn.net/media/cougardate/' + (WLD.Member.split == 'odd' ? 'old-bg.png' :'main-bg1.jpg') + ')}' | |
+ '</style>' | |
); |
This file contains hidden or 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
login: &login | |
adapter: mysql | |
host: localhost | |
username: root | |
development: | |
<<: *login | |
database: db_development | |
test: |
This file contains hidden or 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
Javascript Key Codes | |
Key Pressed Key Code | |
backspace 8 | |
tab 9 | |
enter 13 | |
shift 16 | |
ctrl 17 | |
alt 18 | |
pause/break 19 |
This file contains hidden or 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
# Plugins | |
plugin 'haml', :git => "git://github.com/nex3/haml.git" | |
plugin 'factory_girl', :git => "git://github.com/thoughtbot/factory_girl.git" | |
plugin 'paperclip', :git => "git://github.com/thoughtbot/paperclip.git" | |
plugin 'paperclippolymorph', :git => "git://github.com/heavysixer/paperclippolymorph.git" | |
plugin 'make_resourceful', :git => "git://github.com/hcatlin/make_resourceful.git" | |
# Gems | |
gem 'thoughtbot-shoulda', :source => "http://gems.github.com" |
This file contains hidden or 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
# we want /posts, /posts/published, /posts/drafts, etc. without too much duplication | |
# model | |
class Post < ActiveRecord::Base | |
named_scope :published, lambda {{:conditions => ...}} | |
named_scope :draft, lambda {{:conditions => ...}} | |
named_scope :expired, lambda {{:conditions => ...}} | |
named_scope :upcoming, lambda {{:conditions => ...}} | |
end | |