Skip to content

Instantly share code, notes, and snippets.

View v2keener's full-sized avatar

Gustavo (Keener) DeLaFuerza v2keener

View GitHub Profile
@v2keener
v2keener / workingDir.go
Last active March 1, 2018 23:03 — forked from arxdsilva/working_directory.go
How to get the current working directory in golang
/*
This is not secure or recommended for anything other than testing.
Published under MIT or GPL with the most permissiveness
(whichever). No warranty implied or otherwise. Based on the gist
from which it was forked.
2018 03 01
Gustavo Keener
*/
/*
I've wrapped Makoto Matsumoto and Takuji Nishimura's code in a namespace
so it's better encapsulated. Now you can have multiple random number generators
and they won't stomp all over eachother's state.
If you want to use this as a substitute for Math.random(), use the random()
method like so:
var m = new MersenneTwister();
# Mac OS X Lion introduced a new, iOS-like context menu when you press and hold a key
# that enables you to choose a character from a menu of options. If you are on Lion
# try it by pressing and holding down 'e' in any app that uses the default NSTextField
# for input.
#
# It's a nice feature and continues the blending of Mac OS X and iOS features. However,
# it's a nightmare to deal with in Sublime Text if you're running Vintage (Vim) mode,
# as it means you cannot press and hold h/j/k/l to move through your file. You have
# to repeatedly press the keys to navigate.
@v2keener
v2keener / .vimrc
Created April 10, 2014 16:19 — forked from JeffreyWay/.vimrc
set nocompatible " Disable vi-compatibility
set t_Co=256
colorscheme xoria256
set guifont=menlo\ for\ powerline:h16
set guioptions-=T " Removes top toolbar
set guioptions-=r " Removes right hand scroll bar
set go-=L " Removes left hand scroll bar
set linespace=15