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
| (function(text) { | |
| return "Factory says yo: " + text; | |
| })("peace") |
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
| $('.referral').mouseover -> | |
| window.easter_egg_timeout = setTimeout => | |
| $(this).next('.easter-egg-message').slideDown() | |
| , 3500 | |
| $('.referral').mouseout -> | |
| clearTimeout(easter_egg_timeout) | |
| $(this).next('.easter-egg-message').slideUp() |
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
| frontend(feature/compile)$ cap staging deploy | |
| triggering load callbacks | |
| * 2013-11-21 12:47:10 executing `staging' | |
| triggering start callbacks for `deploy' | |
| * 2013-11-21 12:47:10 executing `multistage:ensure' | |
| * 2013-11-21 12:47:10 executing `deploy' | |
| * 2013-11-21 12:47:10 executing `deploy:update' | |
| ** transaction: start | |
| * 2013-11-21 12:47:10 executing `deploy:update_code' | |
| updating the cached checkout on all servers |
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
| class PlayerMove < ActiveRecord::Base | |
| module Moves | |
| COMMUNITY_REWARDS = %w(desktop-referral-cr desktop-auth-cr desktop-fblike-cr desktop-fblike-cr-temp desktop-fbshare-cr | |
| desktop-fbshare-cr-temp desktop-fbshare2-cr desktop-rating-cr desktop-review-cr | |
| desktop-tweet-cr desktop-twitterfollow-cr desktop-twitterfollow-cr-temp mobile-fblike-cr | |
| desktop-instagram-post-cr desktop-scratchoff-share-cr) | |
| LEASE_UP = %w(desktop-fbshare-leaseup lu-fblike-leaseup lu-fbshare-leaseup lu-mobile-fbshare-leaseup | |
| lu-referral-friend-share-fb lu-referral-friend-share-tweet lu-referral-friend-vote lu-tweet-leaseup lu-twitterfollow-leaseup) | |
| SCRATCHOFF = %w(scratchoff) |
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
| def widget | |
| combined = Player.for_widget(@property.cr_campaign).reverse | |
| others = PlayerMove.others.for(@property.cr_campaign).for_widget.reverse | |
| render :json => { | |
| :combined => combined.as_json(Player.widget_json), | |
| :others => others.as_json(PlayerMove.widget_json) | |
| }, :callback => params[:callback] | |
| 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
| [{ | |
| "player_move": { | |
| "approved": null, | |
| "campaign_id": 3, | |
| "client_id": 1, | |
| "content": "3.5", | |
| "created_at": "2012-11-10T09:10:52-06:00", | |
| "id": 824, | |
| "move": "desktop-rating-cr", | |
| "player_fb_id": "100004326970339", |
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
| .Canvas_Blur canvas { | |
| display: none !important; | |
| } | |
| .details * { | |
| color: #404040 !important; | |
| } | |
| .bottom { | |
| background: #999 !important; | |
| } | |
| .art_shield { |
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
| modelLoadedCount: 0, | |
| incrementAndCheckModelLoadedCount: function() { | |
| this.modelLoadedCount++; | |
| // do this better than hardcoding the count. | |
| // maybe store models in an object or array and do a count? | |
| // i don't like that idea any better than this at the moment | |
| if (this.modelLoadedCount === 2) { | |
| this.allModelsLoaded(); | |
| } |
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
| // be able to sort show list | |
| $("#showlist_list").sortable(); | |
| // reapply zebra striping to show list after resorting | |
| $("#showlist_list").bind("sortupdate", function(event, ui) { | |
| // construct order array | |
| var sort_array = []; | |
| $("#showlist_list li").each(function(){ |
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
| { | |
| "name":"Mark Levin" | |
| ,"showtimes":{ | |
| "Mon":"12:00am-4:00am,11:00pm-12:00am" | |
| ,"Tue":"12:00am-4:00am,11:00pm-12:00am" | |
| ,"Wed":"12:00am-4:00am,11:00pm-12:00am" | |
| ,"Thu":"12:00am-4:00am,11:00pm-12:00am" | |
| ,"Fri":"12:00am-4:00am,11:00pm-12:00am" | |
| ,"Sat":"12:00am-1:00am" |