Skip to content

Instantly share code, notes, and snippets.

@joakin
joakin / getUrlParamete.js
Created December 11, 2012 09:47 — forked from sampel/getUrlParamete.js
Piece of javascript code: gets the service parameter rom the url (GET) and check if contains something
/* Fast and easy way of taking a param from the query string */
// From what I gathered, 2 space indentation is prefered in JS
// If this is a script included in a page, wrap it in a closure to avoid global
// name creation and clashes
!function() {
/* Named functions on the `root` scope, so that they can be loaded before the
@joakin
joakin / hack.sh
Created April 8, 2012 14:48 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2337706/hack.sh | sh
#