Skip to content

Instantly share code, notes, and snippets.

View rendro's full-sized avatar
🤘
🤨

Robert rendro

🤘
🤨
View GitHub Profile
@paulirish
paulirish / bling.js
Last active February 18, 2025 14:08
bling dot js
/* bling.js */
window.$ = document.querySelector.bind(document);
window.$$ = document.querySelectorAll.bind(document);
Node.prototype.on = window.on = function(name, fn) { this.addEventListener(name, fn); };
NodeList.prototype.__proto__ = Array.prototype;
NodeList.prototype.on = function(name, fn) { this.forEach((elem) => elem.on(name, fn)); };
@hyl
hyl / zalgo.js
Created January 20, 2015 23:18
Zalgo your outdated customers.
/*
If you actually want to use this in a live project (please don't), add the following to your HTML:
<!--[if lt IE 9 ]>
<script src="https://code.jquery.com/jquery-1.11.2.min.js"></script>
<script src="zalgo.js"></script>
<![endif]-->
*/
@liamcurry
liamcurry / gist:2597326
Created May 4, 2012 19:56
Vanilla JS vs jQuery

Moving from jQuery

Events

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