Skip to content

Instantly share code, notes, and snippets.

@driscoll
driscoll / zoterobib-autohotkey
Created September 23, 2025 14:53
Send highlighted text to ZoteroBib with AutoHotkey
; URL encoding helpers
; Cribbed from the ahk forums
UriEncode(Url, Flags := 0x000C3000) {
Local CC := 4096, Esc := "", Result := ""
Loop
VarSetStrCapacity(&Esc, CC), Result := DllCall("Shlwapi.dll\UrlEscapeW", "Str", Url, "Str", &Esc, "UIntP", &CC, "UInt", Flags, "UInt")
Until Result != 0x80004003 ; E_POINTER
Return Esc
}
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("fargo.io") {
.tab-content {
overflow: visible;
}
}
@driscoll
driscoll / Parallel imap experiment.ipynb
Created November 11, 2014 21:30
Parallel imap for IPython Notebook
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@driscoll
driscoll / parsegnip.py
Created October 18, 2011 00:36
Gnip JSON output parsing script (DRAFT: 17 Oct 2011)
#!/usr/bin/python
""" TODO
Need better search strategy because
'ows' is matching '#throwstrikes'
Blacklist?
What's up with these blank lines?
"No text field found."