Skip to content

Instantly share code, notes, and snippets.

View chapuzzo's full-sized avatar
👾
blip blip blup blip blup

chapuzzo

👾
blip blip blup blip blup
View GitHub Profile
@chapuzzo
chapuzzo / bling.js
Last active August 29, 2015 14:23 — forked from paulirish/bling.js
/* bling.js */
window.$ = document.querySelectorAll.bind(document)
Node.prototype.on = window.on = function (name, fn) {
this.addEventListener(name, fn)
}
NodeList.prototype.__proto__ = Array.prototype
#!/usr/bin/env ruby
file = ARGV.shift
contents = File.read(file, {:encoding => "ISO-8859-15", :mode => "rb"})
contents.encode!("UTF-8")
File.open(file, 'w') do |f|
f.write(contents)