Skip to content

Instantly share code, notes, and snippets.

Avatar

Cosmin L. Neagu clneagu

View GitHub Profile
View keybase.md

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:

View gist:6a8a82981872554d9539ceb3ded38c04
Verifying my Blockstack ID is secured with the address 15PaD2icDQg4kqNDH1XNc8m87A2h8Htizg
View gist:32857472e38d0431c6e41c30ee61a80b
Verifying my Blockstack ID is secured with the address 15PaD2icDQg4kqNDH1XNc8m87A2h8Htizg
@clneagu
clneagu / ver36.js
Last active Aug 29, 2015 — forked from mwgamera/ver36.js
Alphanumeric derivative of Verhoeff check digit in javascript.
View ver36.js
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
View .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
You can’t perform that action at this time.