Setup:
$ mongo
> use pubsub
> db.createCollection('messages', { capped: true, size: 100000 })
> db.messages.insert({})
function! s:PrepareEnv() | |
let $LXR_DATA_DIR="~/git/linux.db" | |
let $LXR_REPO_DIR="~/git/linux/" | |
let s:git_dir = getcwd() | |
let s:tag = system("git describe --tags --abbrev=0") | |
if v:shell_error | |
return v:shell_error | |
endif | |
let s:tag = split(s:tag, '\n') |
/*global window, $ */ | |
$(function () { | |
/** From | |
http://axonflux.com/handy-rgb-to-hsl-and-rgb-to-hsv-color-model-c | |
*/ | |
/** | |
* Converts an HSL color value to RGB. Conversion formula | |
* adapted from http://en.wikipedia.org/wiki/HSL_color_space. | |
* Assumes h, s, and l are contained in the set [0, 1] and |
// Disable bold. | |
term_.prefs_.set('enable-bold', false) | |
// Use this for Solarized Dark | |
term_.prefs_.set('background-color', "#002b36"); | |
term_.prefs_.set('foreground-color', "#839496"); | |
term_.prefs_.set('color-palette-overrides', [ | |
'#073642', | |
'#dc322f', |