Skip to content

Instantly share code, notes, and snippets.

View chrisbautista's full-sized avatar
🕶️

Chris Bautista chrisbautista

🕶️
View GitHub Profile
@chrisbautista
chrisbautista / docker_kill.sh
Created November 25, 2017 17:20 — forked from evanscottgray/docker_kill.sh
kill all docker containers at once...
docker ps | awk {' print $1 '} | tail -n+2 > tmp.txt; for line in $(cat tmp.txt); do docker kill $line; done; rm tmp.txt
@chrisbautista
chrisbautista / uri.js
Created October 3, 2017 20:48 — 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"
@chrisbautista
chrisbautista / vanilla_vs_jquery.md
Last active July 16, 2017 06:12 — forked from joyrexus/README.md
Vanilla JS equivalents of jQuery methods

Vanila JS equivalents

Events

// jQuery
$(document).ready(function() {
  // code
})