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
triggering start callbacks for `production' | |
Identity added: /Users/noah/.ssh/id_rsa (/Users/noah/.ssh/id_rsa) | |
* executing `production' | |
triggering start callbacks for `deploy' | |
* executing `multistage:ensure' | |
Identity added: /Users/noah/.ssh/id_rsa (/Users/noah/.ssh/id_rsa) | |
* executing `deploy' | |
* executing `deploy:update' | |
** transaction: start | |
* executing `deploy:update_code' |
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
# This defines a deployment "recipe" that you can feed to switchtower | |
# (http://manuals.rubyonrails.com/read/book/17). It allows you to automate | |
# (among other things) the deployment of your application. | |
# ============================================================================= | |
# REQUIRED VARIABLES | |
# ============================================================================= | |
# You must always specify the application and repository for every recipe. The | |
# repository must be the URL of the repository you want this recipe to | |
# correspond to. The deploy_to path must be the path on each machine that will |
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" src="http://w.sharethis.com/button/sharethis.js#publisher=a266c608-0418-49e7-aae5-f268b5b0b404&type=website"></script> |
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
<ul> | |
<% @blog_posts.each do |blog_post| %> | |
<li> | |
<%= link_to blog_post.title, "##{blog_post.to_param}", :class => cycle("even", "odd") %> | |
</li> | |
<% end %> | |
</ul> |
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
rec_td_stat_name = StatName.find_by_title("Reception Touchdowns") | |
rush_td_stat_name = StatName.find_by_title("Rush Touchdowns") | |
rrtd_stat_name = StatName.find_by_title("Rushing and Receiving Touchdowns") | |
CareerStat.find_all_by_stat_name_id(rrtd_stat_name.id).each do |career_stat| | |
rec_td_career_stat = CareerStat.find_by_season_id_and_player_id_and_stat_name_id(career_stat.season_id, career_stat.player_id, rec_td_stat_name.id) | |
rush_td_career_stat = CareerStat.find_by_season_id_and_player_id_and_stat_name_id(career_stat.season_id, career_stat.player_id, rush_td_stat_name.id) | |
career_stat.update_attributes!(:value => rec_td_career_stat.value.to_i + rush_td_career_stat.value.to_i) | |
end |
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
positions = Position.all(:conditions => ["name in (?)", ["wr","rb","te"]]) | |
players = Player.all(:conditions => ["position_id in (?)", positions.map(&:id)]) | |
rec_td_stat_name = StatName.find_by_title("Reception Touchdowns") | |
rush_td_stat_name = StatName.find_by_title("Rush Touchdowns") | |
rrtd_stat_name = StatName.find_by_title("Rushing and Receiving Touchdowns") | |
players.each do |player| | |
seasons = player.career_seasons | |
seasons.each do |season| | |
stats = [] |
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
// spread_the_fire/index.html | |
<div id="popup_spread_fire"> | |
<a class="close_box" onclick="window.top.tb_remove();" href="#">close</a> | |
<% form_tag('/spread_the_fire', :id => 'fireForm', :class => 'remoteForm') do %> | |
<div class="left_form"> | |
<p> | |
<%= label :email, :recipients, "To" %> | |
<%= text_field :email, :recipients, :class => 'required email' %> | |
</p> |
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
$("#news_container").load(("/news_breakers:format?format=js"), function(){ | |
$("#news_posts").accordion({autoHeight: false}); | |
$("#news_container").jScrollPane({scrollbarWidth:5}); | |
$(".news_breakers_box .pagination a").live("click", function(){ | |
$('#news_container').load(this.href, function() { | |
$("#news_posts").accordion({autoHeight: false}); | |
}); | |
return false | |
}); | |
}); |
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
module PFR | |
class CareerStat < ActiveRecord::Base | |
tableless :columns => [[:player_id, :integer], | |
[:season_id, :integer], | |
[:stat_name_id, :integer], | |
[:value, :string]] | |
belongs_to :player | |
belongs_to :season | |
belongs_to :stat_name | |
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
triggering start callbacks for `production' | |
Identity added: /Users/noah/.ssh/id_rsa (/Users/noah/.ssh/id_rsa) | |
* executing `production' | |
triggering start callbacks for `deploy' | |
* executing `multistage:ensure' | |
Identity added: /Users/noah/.ssh/id_rsa (/Users/noah/.ssh/id_rsa) | |
* executing `deploy' | |
* executing `deploy:update' | |
** transaction: start | |
* executing `deploy:update_code' |