Skip to content

Instantly share code, notes, and snippets.

View cristiano-pacheco's full-sized avatar

Cristiano Pacheco cristiano-pacheco

View GitHub Profile
@ProcessEight
ProcessEight / Testing in Magento 2.md
Last active February 11, 2025 09:03
M2: Notes on setting up PHPUnit and writing/troubleshooting tests in Magento 2
@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)); };