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
@old_key = nil | |
10000.times do | |
puts "-- #{Time.now} --" | |
if @old_key | |
puts "OLD KEY #{@old_key}" | |
puts "OLD KEY RESULTS: #{REDIS.zrangebyscore(@old_key, 10.hours.ago.to_i, (Time.now+10.days).to_i).count}" | |
end | |
key = Score.league_cache_key("NCAAFB", "Football") | |
game_key = REDIS.get(key) | |
@old_key = game_key |
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
-- 2013-11-29 22:08:12 +0000 -- | |
OLD KEY api:scores:league:NCAAFB:sport:Football:time:1385762890 | |
OLD KEY RESULTS: 74 | |
api:scores:league:NCAAFB:sport:Football:time:1385762890 | |
74 | |
-- 2013-11-29 22:08:13 +0000 -- | |
OLD KEY api:scores:league:NCAAFB:sport:Football:time:1385762890 | |
OLD KEY RESULTS: 74 | |
api:scores:league:NCAAFB:sport:Football:time:1385762890 | |
74 |
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
-- 2013-11-29 22:06:53 +0000 -- | |
OLD KEY api:scores:league:NCAAFB:sport:Football:time:1385762812 | |
OLD KEY RESULTS: 0 | |
api:scores:league:NCAAFB:sport:Football:time:1385762812 | |
ZERO | |
-- 2013-11-29 22:06:54 +0000 -- | |
OLD KEY api:scores:league:NCAAFB:sport:Football:time:1385762812 | |
OLD KEY RESULTS: 0 | |
api:scores:league:NCAAFB:sport:Football:time:1385762814 | |
ZERO |
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
{ | |
items: [ | |
{ | |
type: "Tweet", | |
id: 8844754, | |
tag: 20, | |
publishedAt: "2013-11-19T19:40:45Z", | |
permalink: "https://twitter.com/KICKTV/status/402884169321422848", | |
twitterHandle: "KICKTV", | |
twitterText: "90 minutes to get to Brazil. The time is now. http://t.co/8Meexpf76I", |
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
{ | |
meta: { | |
current: { | |
name: "Nov 19 - Nov 25", | |
href: "/api/v1/scores/league/world-football/Soccer?date=2013-11-19" | |
}, | |
previous: { | |
name: "Nov 12 - Nov 18", | |
href: "/api/v1/scores/league/world-football/Soccer?date=2013-11-12" | |
}, |
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
# RSpec 2.0 syntax Cheet Sheet by http://ApproachE.com | |
# defining spec within a module will automatically pick Player::MovieList as a 'subject' (see below) | |
module Player | |
describe MovieList, "with optional description" do | |
it "is pending example, so that you can write ones quickly" | |
it "is already working example that we want to suspend from failing temporarily" do | |
pending("working on another feature that temporarily breaks this one") |
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
delta | |
Florida Gators Basketball | |
Florida | |
UF | |
delta | |
Tennessee Volunteers Basketball | |
Tennessee | |
TENN |
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
delta | |
Florida Gators Football | |
Florida | |
delta | |
Tennessee Volunteers Football | |
Tennessee | |
Volunteers | |
TENN |
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
delta | |
Arsenal | |
The Gunners | |
ARS | |
delta | |
Aston Villa | |
AVL | |
delta |
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
delta | |
Boston Bruins | |
BOS | |
delta | |
Buffalo Sabres | |
BUF | |
delta | |
Montreal Canadiens |