Skip to content

Instantly share code, notes, and snippets.

View naveda89's full-sized avatar
๐Ÿ˜„

Alvaro Naveda naveda89

๐Ÿ˜„
View GitHub Profile
@naveda89
naveda89 / .gitconfig
Last active August 29, 2015 14:11 — forked from endSly/.gitconfig
[core]
editor = vim
excludesfile = ~/.gitignore_global
# Treat spaces before tabs and all kinds of trailing whitespace as an error.
# [default] trailing-space: looks for spaces at the end of a line
# [default] space-before-tab: looks for spaces before tabs at the beginning of
# a line
whitespace = space-before-tab,-indent-with-non-tab,trailing-space
# Make `git rebase` safer on OS X
# More info: <http://www.git-tower.com/blog/make-git-rebase-safe-on-osx/>
@naveda89
naveda89 / uri.js
Created January 18, 2016 22:02 — forked from jlong/uri.js
URI Parsing with Javascript
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"