Skip to content

Instantly share code, notes, and snippets.

@Nimlar
Nimlar / elixir.vim
Created June 26, 2017 12:27
vimscript to search in elixir db
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')
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
/*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
@Nimlar
Nimlar / prefs.js
Last active August 29, 2015 14:19 — forked from johnbender/prefs.js
// 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',
@Nimlar
Nimlar / README.md
Last active August 29, 2015 14:19 — forked from xaiki/README.md

Pub/sub with MongoDB and Node.js

Setup:

$ mongo
> use pubsub
> db.createCollection('messages', { capped: true, size: 100000 })
> db.messages.insert({})