This file contains 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
function addFullScreenMenu () { | |
var menu = document.createElement('menu'); | |
var item = document.createElement('menuitem'); | |
menu.setAttribute('id', 'fsmenu'); | |
menu.setAttribute('type', 'context'); | |
item.setAttribute('label', 'Fullscreen'); | |
item.addEventListener('click', function (e) { | |
if (window.fullScreen) { | |
document.body.mozCancelFullScreen(); |
This file contains 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
# pip is a tool for installing Python packages. | |
sudo easy_install pip | |
# Essential tools for any self-respecting Python programmer. | |
sudo pip install virtualenv virtualenvwrapper ipython | |
# This is where we keep Python environments. | |
mkdir ~/.virtualenvs | |
# Set up our shell for virtualenvwrapper. |