Skip to content

Instantly share code, notes, and snippets.

"{\"items\":[{\"price\":2.4,\"product\":\"/resources/Product/220/\",\"product_name_override\":\"Drip Coffee\",\"quantity\":1,\"uuid\":\"3816b4dd-c0e3-44c3-ba1b-5e83b022351f\",\"modifieritems\":[],\"created_by\":\"/enterprise/User/8/\",\"updated_by\":\"/enterprise/User/8/\",\"station\":\"/resources/PosStation/21/\",\"cost\":0,\"course_number\":0,\"created_date\":\"2015-04-29T16:15:02\",\"dining_option\":5,\"initial_price\":2.4,\"modifier_amount\":0,\"modifier_cost\":0.0,\"start_time\":\"2015-04-29T16:15:02\",\"tax_amount\":0.24599999999999997,\"tax_included\":false,\"tax_rate\":10.25,\"updated_date\":\"2015-04-29T16:15:02\",\"temp_sort\":12}],\"payments\":[{\"amount\":2.65,\"created_by\":\"/enterprise/User/8/\",\"created_date\":\"2015-04-29T16:15:02\",\"establishment\":\"/enterprise/Establishment/2/\",\"payment_date\":\"2015-04-29T16:15:02\",\"payment_type\":2,\"station\":\"/resources/PosStation/21/\",\"uuid\":\"b4640473-6076-48a5-aea8-034a522e9f0a\",\"tip\":0,\"updated_by\":\"/enterprise/User/8/\",\"updated_d
<!-- AddThis Button BEGIN -->
<a href="http://www.addthis.com/bookmark.php?v=250"
onmouseover="return addthis_open(this, '', '[<%= news_breakers_path %>]', '[<%= news_breaker.title -%>]');"
onmouseout="addthis_close();"
onclick="return addthis_sendto();">
<img src="http://s7.addthis.com/static/btn/sm-share-en.gif" width="83" height="16" alt="Bookmark and Share" style="border:0"/></a>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js?pub=bernsno"></script>
<!-- AddThis Button END -->
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'
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'
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'
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'
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
$("#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
});
});
// 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>
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 = []