Posts

Showing posts from 2015
"Bad programmers worry about the code. Good programmers worry about data structures and their relationships." Linus Torvalds

Python Ipdb Cheatsheet

Command CheatSheet h(elp) : Without argument, print the list of available commands. With a command name as argument, print help about that command. w(here) : Print a stack trace, with the most recent frame at the bottom. An arrow indicates the “current frame”, which determines the context of most commands. d(own) : Move the current frame one level down in the stack trace (to a newer frame). u(p) : Move the current frame one level up in the stack trace (to an older frame). b(reak) : [ ([filename:]lineno | function) [, condition] ] With a filename:line number argument, set a break there. If filename is omitted, use the current file. With a function name, set a break at the first executable line of that function. Without argument, list all breaks. Each breakpoint is assigned a number to which all the other breakpoint commands refer. The condition argument, if present, is a string which must evaluate to true in order for the breakpoint to be honored. tbreak : [ ([filenam

How to turn on "three finger drag" on Mac Os X

From the Apple menu, choose System Preferences.  Click the Accessibility icon.  Choose Mouse & Trackpad from the options on the left.  Click Trackpad Options.  Place a checkmark next to "Enable dragging."  From the related pop-up menu, choose “three finger drag” so there's a checkmark next to it.  Click OK.

Latex superscript outside math mode

So...you want to avoid doing:   $9^{th}$ July . Then, you can use textsuperscript like: 9\textsuperscript{th} July .

RIP BB King

Image

Stories of the Past and Future (from xkcd)

Image
source:  http://xkcd.com/1491/large/