Skip to content

Instantly share code, notes, and snippets.

View jkohlin's full-sized avatar

Johan jkohlin

  • Sweden
  • 22:29 (UTC +02:00)
View GitHub Profile
@rtoal
rtoal / htmlCollectionIteratorPolyfill.js
Created December 14, 2016 16:52
Polyfill allowing iteration of Safari's HTMLCollection objects
// Polyfill because Safari's HTMLCollections are not iterable
if (typeof HTMLCollection.prototype[Symbol.iterator] !== 'function') {
HTMLCollection.prototype[Symbol.iterator] = function () {
let i = 0;
return {
next: () => ({done: i >= this.length, value: this.item(i++)})
}
};
}
@ancillaryfactory
ancillaryfactory / gist:2033357
Created March 14, 2012 02:02 — forked from luetkemj/wp-query-ref.php
Wordpress: Query $args
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php
*/
$args = array(