Skip to content

Instantly share code, notes, and snippets.

View dealingwith's full-sized avatar

Daniel Miller dealingwith

View GitHub Profile
(function(text) {
return "Factory says yo: " + text;
})("peace")
$('.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()
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
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)
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
[{
"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",
@dealingwith
dealingwith / gist:5681859
Created May 30, 2013 22:44
Undo the tweaked out Rdio designer's recent updates as best as I could
.Canvas_Blur canvas {
display: none !important;
}
.details * {
color: #404040 !important;
}
.bottom {
background: #999 !important;
}
.art_shield {
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();
}
// 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(){
{
"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"