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
| // Download all assets from https://developer.apple.com/wwdc/videos | |
| // Warning: might take up a lot of disk space | |
| NodeList.prototype.toArray = function () { | |
| return Array.prototype.slice.call(this); | |
| }; | |
| [].concat.apply([], document.querySelectorAll("li.session").toArray().map(function(session){ | |
| var sessionID = session.id.match(/^\d+/)[0]; | |
| var title = session.querySelector(".title").innerText; |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)