Instantly share code, notes, and snippets.

class MyException(Exception):
class MyException2(Exception):
def f1():

Keybase proof

I hereby claim:

  • I am tingletech on github.
  • I am tingle ( on keybase.
  • I have a public key ASBAVyvLjP7prJs_6mYWqtCGbCs12jxzEJwrCXIM43ZhgAo

To claim this, I am signing this object:

View 1-subject.json
View CHANGES.txt
changeset: 2203:b35bb4856e74
parent: 2174:2a619674504a
user: Martin Haye <>
date: Thu Apr 17 14:50:18 2014 -0700
summary: Adding .gitignore, derived from old .hgignore.
changeset: 2204:ae21e14ae0d0
parent: 2174:2a619674504a
date: Fri Apr 11 19:11:42 2014 -0700

Ubuntu/Linux 64-bit, GPU enabled, Python 2.7 Requires CUDA toolkit 8.0 and CuDNN v5.1

Install CUDA 8.0

wget ""
sudo dpkg -i cuda-repo-ubuntu1404_8.0.44-1_amd64.deb
sudo apt-get update
sudo apt-get install cuda
from __future__ import print_function
from xml.etree.ElementTree import Element, SubElement, ElementTree
from lxml.etree import Element as E
from lxml.etree import SubElement as SE
from lxml.etree import ElementTree as ET

SQLite in Production

Okay, I can see how at first glance this might seem super hacky, but I just detached production calisphere from postgress, and now it is running from sqlite.

Basically. Postgress is still in use -- for the database where edits are done. We have an on demand EC2 machine running django where have just migrated all the editoral content we publish. It is all controlled in the django admin interface.


track external links

assuming modern as of 2016 ga tracking code and jquery is on the page

based on the example in the manual but does not require adding onclick="trackOutboundLink(''); return false;" to the HTML of every link

  • event category outbound
[registry@dsc-registry-stg record_cleanup]$ export PYTHONPATH=.
[registry@dsc-registry-stg record_cleanup]$ cat needs-id-fix.txt | xargs -I {} nxls --recursive-objects "{}" --show-custom-function fix_file
[registry@dsc-registry-stg record_cleanup]$ pwd
View Gruntfile.js.diff
diff --git a/Gruntfile.js b/Gruntfile.js
index 6846188..ed662fb 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -233,7 +233,8 @@ module.exports = function (grunt) {
// additional tasks can operate on them
useminPrepare: {
options: {
- dest: '<%= config.dist %>'
+ dest: '<%= config.dist %>',