Skip to content

Instantly share code, notes, and snippets.

View ughitsaaron's full-sized avatar
🙈

Aaron Petcoff ughitsaaron

🙈
View GitHub Profile
@ughitsaaron
ughitsaaron / RangeArray.js
Created August 22, 2016 14:14
JavaScript Ranges
/**
* A function to generate array ranges (zero-indexed)
* @param {number} from
* @param {number} to
*/
export function RangeArray(from, to) {
var r = [];
if (typeof from !== 'number' && typeof to !== 'number') {
throw new Error('RangeArray expects a number');
@ughitsaaron
ughitsaaron / keybase.md
Created August 27, 2015 17:02
Proof for keybase

Keybase proof

I hereby claim:

  • I am ughitsaaron on github.
  • I am ughitsaaron (https://keybase.io/ughitsaaron) on keybase.
  • I have a public key whose fingerprint is D584 F352 465C FD57 7EBF 9EAB C6A9 4ACB C8E9 754A

To claim this, I am signing this object:

#!/bin/bash
# Aliases & functions
alias cp='cp -iv'
alias mv='mv -iv'
alias mkdir='mkdir -pv'
alias ls='ls -GAp'
cd() { builtin cd "$@"; ls; }
alias ~='cd ~/'
mcd() { mkdir -pv "$1" && cd "$1"; }
# #!/bin/bash
. ~/.bashrc
PATH=$PATH:/usr/local/bin:~/bin:~/.nvm
ulimit -n 2046
# # elasticsearch
export ELASTIC_HOST=http://192.168.99.100:9200
# # export REDIS_HOST=tcp://192.168.99.100:6379
# # grep opts
@ughitsaaron
ughitsaaron / autohider.js
Last active August 29, 2015 14:08
jQuery plugin for autohiding navigation
(function($) {
/* Autohider by Aaron Petcoff https://gist.github.com/aptkf/1a5ffdad876a80610b63 */
$.fn.autohider = function(args) {
defaults = {
toggle: "visible",
buffer:70,
tolerance: 8
};
@ughitsaaron
ughitsaaron / .vimrc
Created September 20, 2014 19:47
My .vimrc setup
execute pathogen#infect()
syntax on
" colorscheme solarized
colorscheme badwolf
" manage multiple buffers
set hidden