Skip to content

Instantly share code, notes, and snippets.

View austinrfnd's full-sized avatar

Austin Fonacier austinrfnd

  • Loot Crate
  • Los Angeles, Ca
View GitHub Profile
@austinrfnd
austinrfnd / 2 hour time sink
Created September 13, 2012 22:12
Discovered this in my work codebase.
encodeURIComponent(q).replace(/%20/g, '+').replace(/%2C/g, ',').replace(/%26/g, '&').replace(/%3D/g, '=').replace(/%2B/g, '+')
+ items.to_query
-
- def query(items)
- @query = ''
- items.each do |var|
- @query << "#{var.to_s}=" + eval("@#{var}") + "&" if eval("@#{var}")
- end
- URI.escape(@query)
- end
-
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold