As configured in my dotfiles.
start new:
tmux
start new with session name:
| // origin: http://www.google.com/support/forum/p/Chrome/thread?tid=1a37ccbdde5902fd&hl=en | |
| javascript: | |
| timeout=prompt("Set timeout [s]"); | |
| current=location.href; | |
| if(timeout>0) | |
| setTimeout('reload()',1000*timeout); | |
| else | |
| location.replace(current); | |
| function reload(){ |
| /* | |
| * object.watch polyfill | |
| * | |
| * 2012-04-03 | |
| * | |
| * By Eli Grey, http://eligrey.com | |
| * Public Domain. | |
| * NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. | |
| */ |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| #Giant dictonary to hold key name and VK value | |
| VK_CODE = {'backspace':0x08, | |
| 'tab':0x09, | |
| 'clear':0x0C, | |
| 'enter':0x0D, | |
| 'shift':0x10, | |
| 'ctrl':0x11, | |
| 'alt':0x12, | |
| 'pause':0x13, | |
| 'caps_lock':0x14, |
| /* If you've ever had the need to link directly to an open modal window with Bootstrap, here's a quick and easy way to do it: | |
| Make sure your modal has an id: | |
| <div class="modal" id="myModal" ... > | |
| Then stick this bit of Javascript at at the end of your document: | |
| */ | |
| $(document).ready(function() { |
| """ | |
| File watchdog. | |
| REQUIREMENT | |
| Watchdog Python package <http://packages.python.org/watchdog/> | |
| USAGE | |
| python watchdog-file.py echo something changed. # Ctrl-C to stop. | |
| python watchdog-file.py "make test && make install" | |
| """ |
o.......Open files, directories and bookmarks....................|NERDTree-o|
go......Open selected file, but leave cursor in the NERDTree.....|NERDTree-go|
t.......Open selected node/bookmark in a new tab.................|NERDTree-t|
T.......Same as 't' but keep the focus on the current tab........|NERDTree-T|
i.......Open selected file in a split window.....................|NERDTree-i|
gi......Same as i, but leave the cursor on the NERDTree..........|NERDTree-gi|
s.......Open selected file in a new vsplit.......................|NERDTree-s|
gs......Same as s, but leave the cursor on the NERDTree..........|NERDTree-gs|
O.......Recursively open the selected directory..................|NERDTree-O|
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
| <title>Photos with Friends!</title> | |
| <script src="http://code.jquery.com/jquery-1.9.0.min.js"></script> | |
| <script> | |
| /** | |
| * This is the getPhoto library | |
| */ |
| sudo find /private/var/folders/ -name com.apple.dock.iconcache -exec rm {} \; |