View exception.py
class MyException(Exception):
pass
class MyException2(Exception):
pass
def f1():
View keybase.md

Keybase proof

I hereby claim:

  • I am tingletech on github.
  • I am tingle (https://keybase.io/tingle) on keybase.
  • I have a public key ASBAVyvLjP7prJs_6mYWqtCGbCs12jxzEJwrCXIM43ZhgAo

To claim this, I am signing this object:

View 1-subject.json
{
"responseHeader":{
"status":0,
"QTime":3,
"params":{
"q":"collection_data:*/79/*",
"fl":"subject,url_item",
"rows":"500"}},
"response":{"numFound":427,"start":0,"docs":[
{
View CHANGES.txt
changeset: 2203:b35bb4856e74
parent: 2174:2a619674504a
user: Martin Haye <martin.haye@ucop.edu>
date: Thu Apr 17 14:50:18 2014 -0700
summary: Adding .gitignore, derived from old .hgignore.
changeset: 2204:ae21e14ae0d0
parent: 2174:2a619674504a
user: BRIAN TINGLE <brian.tingle.cdlib.org@gmail.com>
date: Fri Apr 11 19:11:42 2014 -0700
View install_gpu.md

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

Install CUDA 8.0

wget "http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_8.0.44-1_amd64.deb"
sudo dpkg -i cuda-repo-ubuntu1404_8.0.44-1_amd64.deb
sudo apt-get update
sudo apt-get install cuda
View benchmark.py
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
View sqlite_in_production.md

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.

View 0.md

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('http://www.example.com'); return false;" to the HTML of every link

  • event category outbound
View command.sh
[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
/apps/registry/from-nuxeo/code/nuxeo-load/record_cleanup
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 %>',