Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am clneagu on github.
  • I am clneagu (https://keybase.io/clneagu) on keybase.
  • I have a public key ASC3pR5qtc3BbKR_JOMjIb07lb1FE-5ZW_U7Tuh242nREAo

To claim this, I am signing this object:

Verifying my Blockstack ID is secured with the address 15PaD2icDQg4kqNDH1XNc8m87A2h8Htizg
Verifying my Blockstack ID is secured with the address 15PaD2icDQg4kqNDH1XNc8m87A2h8Htizg
@clneagu
clneagu / ver36.js
Last active August 29, 2015 14:27 — forked from mwgamera/ver36.js
Alphanumeric derivative of Verhoeff check digit in javascript.
var Ver36 = function() {
"use strict";
var N = 18, N2 = N*2;
var d18_op; // D18 group operation table
var d18_inv; // D18 group inverse
var perm; // the permutation decomposed into cycles
var a2i,i2a; // ASCII translation tables
var NA=0xff; // invalid digit marker in ASCII table
// initialization code
@clneagu
clneagu / .bashrc
Last active January 20, 2018 09:09 — forked from cjerdonek/.bashrc
# Call virtualenvwrapper's "workon" if .venv exists. This is modified from--
# http://justinlilly.com/python/virtualenv_wrapper_helper.html
# which is linked from--
# http://virtualenvwrapper.readthedocs.org/en/latest/tips.html#automatically-run-workon-when-entering-a-directory
check_virtualenv() {
if [ -e .venv ]; then
env=`cat .venv`
if [ "$env" != "${VIRTUAL_ENV##*/}" ]; then
echo "Found .venv in directory. Calling: workon ${env}"
workon $env