Skip to content

Instantly share code, notes, and snippets.

View mcfunley's full-sized avatar

Dan McKinley mcfunley

View GitHub Profile
$ export EVERNOTE_USER=mcfunley
$ cd ~/Dropbox
$ mkdir evernote-backup
$ cd evernote-backup
$ cp -R ~/Library/Containers/com.evernote.Evernote/Data/Library/Application\ Support/Evernote/accounts/Evernote/$EVERNOTE_USER/content .
$ tar pczf notes.tgz content
$ rm -rf content
south.exceptions.GhostMigrations:
! These migrations are in the database but not on disk:
<web: 0007_remove_monitor_status_log>
! I'm not trusting myself; either fix this yourself by fiddling
! with the south_migrationhistory table, or pass --delete-ghost-migrations
! to South to have it delete ALL of these records (this may not be good).

A superfluous duck was added to Battle Chess so that a manager would have something conspicuous to remove.

Illustrators add excessively hairy arms as a diversionary tactic.

Russian submariners leave a pipe purposefully filthy for inspections.

### Keybase proof
I hereby claim:
* I am mcfunley on github.
* I am mcfunley (https://keybase.io/mcfunley) on keybase.
* I have a public key whose fingerprint is 958D 017B 6AFB 71FF D40C E45F 7978 969D D0B7 C2DB
To claim this, I am signing this object:
{
thing_id: 56778,
user_id: 5079854,
description: "rad stuff",
comments: [
{ user_id: 93, text: "you stink!!" },
{ user_id: 991, text: "very nice" }
],
-- Query one.
select thing_id, user_id, description
from things
where thing_id=56778;
-- Query two.
select user_id, text
from thing_comments
where thing_id=56778
order by creation_time asc;
@mcfunley
mcfunley / gist:305116
Created February 15, 2010 23:53
Example Document
{
thing_id: 56778,
user_id: 5079854,
description: "rad stuff",
comments: [
{ user_id: 93, text: "you stink!!" },
{ user_id: 991, text: "very nice" }
],
*** Welcome to IELM *** Type (describe-mode) for help.
ELISP> load-path
("~/lib/site-lisp/gist" "~/lib/site-lisp/gist.el" "/Users/mcfunley/lib/site-lisp/haskell-mode/" "~/lib/site-lisp/confluence2" "/Applications/Emacs.app/Contents/share/emacs/site-lisp/w3m/" "/Users/mcfunley/scala/misc/scala-tool-support/emacs" "~/lib/site-lisp" "/Applications/Emacs.app/Contents/Resources/site-lisp" "/Applications/Emacs.app/Contents/Resources/lisp" "/Applications/Emacs.app/Contents/Resources/lisp/url" "/Applications/Emacs.app/Contents/Resources/lisp/toolbar" "/Applications/Emacs.app/Contents/Resources/lisp/textmodes" "/Applications/Emacs.app/Contents/Resources/lisp/progmodes" "/Applications/Emacs.app/Contents/Resources/lisp/play" "/Applications/Emacs.app/Contents/Resources/lisp/org" "/Applications/Emacs.app/Contents/Resources/lisp/obsolete" "/Applications/Emacs.app/Contents/Resources/lisp/nxml" "/Applications/Emacs.app/Contents/Resources/lisp/nxml/char-name" "/Applications/Emacs.app/Contents/Resources/lisp/nxml/char-name/un
try:
from cStringIO import StringIO
except ImportError:
from StringIO import StringIO
import re
hex_digit = re.compile('[0-9a-fA-F]')
@use_selenium
def test_search_box_gets_focus_after_selecting_search_type(self):
self.se.open('/')
self.se.click(self.search_facet)
self.wait_for_facet_dropdown()
self.se.click(self.facet(1))
self.wait_for_facet_dropdown_cleared()
try:
path = self.search_input[:-1] + ' and contains(@class, "focus")]'