Skip to content

Commit

Permalink
Cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
tindandelion committed Oct 9, 2012
1 parent 2aa9fda commit a2cfb32
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1,085 deletions.
5 changes: 2 additions & 3 deletions TODO
@@ -1,7 +1,6 @@
Backlog: Backlog:
* Live show: graceful process termination * Live show: graceful process termination
* Downloading: Respect background data loading settings * Downloading: Respect background data loading settings
* Sync podcast list with SyncAdaptor
* User topics * User topics
* Android 4.0 UI * Android 4.0 UI
* New icon with ICS guidelines * New icon with ICS guidelines
Expand All @@ -10,9 +9,9 @@ Version 1.5:
* Testing: file to download already exists * Testing: file to download already exists
* Testing: what happens if we have a local cache, but server responds with error? * Testing: what happens if we have a local cache, but server responds with error?
* Google Analytics * Google Analytics
* Cache podcast list locally DONE Cache podcast list locally
DONE Optimize garbage collection for podcast list DONE Optimize garbage collection for podcast list
* Load local podcast cache first, if it exists, and then DONE Load local podcast cache first, if it exists, and then
refresh from server in background refresh from server in background


DONE Android 4.0 UI DONE Android 4.0 UI
Expand Down
16 changes: 16 additions & 0 deletions get-live-stream.rb
@@ -0,0 +1,16 @@
require "open-uri"

urls = []

10000.times { |i|
print " #{i} "
urls << open("http://stream.radio-t.com:8181/stream.m3u") { |io| io.read.chomp }
}

puts

grouped = urls.group_by { |v| v }
grouped.each_pair do |key, value|
puts "#{key}: #{value.size}"
end

0 comments on commit a2cfb32

Please sign in to comment.