Skip to content

Instantly share code, notes, and snippets.

@gsf
gsf / base16-hterm.js
Last active July 11, 2016 22:37 — forked from petrhosek/pref.js
// Disable bold.
term_.prefs_.set('enable-bold', false);
// Use this for base16-default.
term_.prefs_.set('background-color', "#151515");
term_.prefs_.set('foreground-color', "rgba(255, 255, 255, 0.8)");
term_.prefs_.set('cursor-color', 'rgba(255, 255, 255, 0.5)');
term_.prefs_.set('color-palette-overrides', [
'#151515',
@gsf
gsf / single-server-bibframe-datastore.svg
Created October 22, 2012 18:59 — forked from jermnelson/wordpress-nelson.html
Code4Lib - Building a Library App Portfolio using MARCR, RDA, and Redis
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
class RowDict(dict):
"""
Subclass of dict that joins sequences and encodes to utf-8 on get.
Encoding to utf-8 is necessary for Python's csv library because it
can't handle unicode.
>>> row = RowDict()
>>> row['bob'] = ['Montalb\\xe2an, Ricardo', 'Roddenberry, Gene']
>>> row.get('bob')
'Montalb\\xc3\\xa1n, Ricardo|Roddenberry, Gene'
>>> print row.get('bob')