Skip to content

Instantly share code, notes, and snippets.

View bradyhullopeter's full-sized avatar

Brady Hullopeter bradyhullopeter

View GitHub Profile
@bradyhullopeter
bradyhullopeter / NodeListUtils.js
Created April 18, 2019 17:57 — forked from TexRx/NodeListUtils.js
Extend NodeList object with some useful iteration utility functions
[].forEach.call( document.querySelectorAll(sel), function(el) {
});
NodeList.prototype.forEach = Array.prototype.forEach;
NodeList.prototype.forEach = HTMLCollection.prototype.forEach = Array.prototype.forEach;
NodeList.prototype.forEach = HTMLCollection.prototype.forEach = Array.prototype.forEach;
NodeList.prototype.map = HTMLCollection.prototype.map = Array.prototype.map;
NodeList.prototype.filter = HTMLCollection.prototype.filter = Array.prototype.filter;

Keybase proof

I hereby claim:

  • I am bradyhullopeter on github.
  • I am bradyhullopeter (https://keybase.io/bradyhullopeter) on keybase.
  • I have a public key whose fingerprint is 5310 F04B 0F89 A8D3 CC49 5186 F423 BA8A FCD8 E718

To claim this, I am signing this object:

@bradyhullopeter
bradyhullopeter / wcag-compliance.scss
Last active April 19, 2017 21:33
Sass functions for testing WCAG color compliance
// ----
// Sass (v3.4.21)
// Compass (v1.0.3)
// ----
/// @access private
@function gcd($a, $b) {
@if ($b != 0) {
@return gcd($b, $a % $b);
} @else {