My attempt at animating NBC's peacock showing-off.
If you're interested in NBC's past, check out the history of NBC's logo and chime.
| #!/usr/bin/env python2 | |
| import SimpleHTTPServer | |
| import SocketServer | |
| import logging | |
| PORT = 8000 | |
| class GetHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): |
| #this | |
| ffmpeg -loglevel debug -f hls -referer 'https://10play.com.au/live' -user_agent 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/82.0.4050.0 Safari/537.36' -f hls -i "https://manifest.prod.boltdns.net/manifest/v1/hls/v4/aes128/2199827728001/6bd7fe89-1f2f-42d0-b7a5-c676791a0d83/10s/master.m3u8?fastly_token=NWUzZDliOGZfNTJhZjJhN2IxMzQ5OTdjNGVkYmEzODkwNjYwZTYyMWY2ZmY1YjNmNGJkNWM3NjdiNDFiZmViNjczNzMwMmJlYQ%3D%3D" -c copy project5.mp4 | |
| # or this | |
| ffmpeg -loglevel debug -f hls -referer 'https://10play.com.au/live' -user_agent 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/82.0.4050.0 Safari/537.36' -f hls -i "https://manifest.prod.boltdns.net/manifest/v1/hls/v4/aes128/2199827728001/6bd7fe89-1f2f-42d0-b7a5-c676791a0d83/10s/master.m3u8?fastly_token=NWUzZDliOGZfNTJhZjJhN2IxMzQ5OTdjNGVkYmEzODkwNjYwZTYyMWY2ZmY1YjNmNGJkNWM3NjdiNDFiZmViNjczNzMwMmJlYQ%3D%3D" -c copy -bsf:a aac_adtstoasc project3.mp4 |
| license: gpl-3.0 |
| license: gpl-3.0 |
| license: gpl-3.0 |
| # gem install benchmark-ips | |
| require "benchmark/ips" | |
| Benchmark.ips do |x| | |
| x.report("range") { (1..100).each { |i| i } } | |
| x.report("upto") { 1.upto(100).each { |i| i } } | |
| x.report("times plus one") { 100.times { |i| i + 1 } } |
| license: gpl-3.0 |
| # gem install benchmark-ips | |
| require "benchmark/ips" | |
| uri = "http://twitter.com/user/statuses/1234567891011121314" | |
| Benchmark.ips do |x| | |
| x.report("file.basename") { File.basename(uri) } | |
| x.report("split('/').last") { uri.split("/").last } |
| license: gpl-3.0 |