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
"""Plots a Pandas dataframe as a heatmap""" | |
import matplotlib as mpl | |
import matplotlib.pyplot as plt | |
def heatmap(df, | |
edgecolors='w', | |
cmap=mpl.cm.gist_stern, | |
log=False): | |
width = len(df.columns)/4 | |
height = len(df.index)/4 |
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
> TITLE: quix.txt | |
> GITHUB: https://gist.githubusercontent.com/Oneross/fcbf78771de51260104a/raw/quix.txt | |
> MORE: http://quixapp.com | |
> UPDATED: 2014-05-06 | |
bit javascript:var%20e=document.createElement('script');e.setAttribute('language','javascript');e.setAttribute('src','http://bit.ly/bookmarklet/load.js');document.body.appendChild(e);void(0); Make a bit.ly link | |
cal javascript:var%20s;if(window.getSelection){s=window.getSelection();}else{s=document.selection.createRange().text;}var%20t=prompt('Please%20enter%20a%20description%20for%20the%20event',s);if(t){void(window.open(encodeURI('http://www.google.com/calendar/event?ctext='+t+'&action=TEMPLATE&pprop=HowCreated%3AQUICKADD'),'gcal'));}else{void(s);} Add event to Google Calendar | |
clip http://cl1p.net/%s Make a new cl1p.net page from keyword | |
down http://downforeveryoneorjustme.com/%d Is this site downforeveryoneorjustme? | |
eye javascript:void(window.open('http://tineye.com/s |
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
ross@LaForge ~ % defaults write com.apple.print.PrintingPrefs "Quit When Finished" -bool true | |
ross@LaForge ~ % defaults write NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool false | |
ross@LaForge ~ % defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false | |
ross@LaForge ~ % defaults write com.apple.systempreferences NSQuitAlwaysKeepsWindows -bool false | |
ross@LaForge ~ % sudo pmset -a standbydelay 86400 | |
Password: | |
ross@LaForge ~ % defaults write NSGlobalDomain AppleKeyboardUIMode -int 3 | |
ross@LaForge ~ % ls | |
Applications Downloads Music |