Skip to content

Instantly share code, notes, and snippets.

Avatar

Krzysiek zryty

  • Kraków, Poland
View GitHub Profile
@zryty
zryty / dispose.js
Created Oct 15, 2020 — forked from jussi-kalliokoski/dispose.js
A polyfill for ArrayBuffer#dispose
View dispose.js
void function () {
if ( 'dispose' in ArrayBuffer.prototype ) return
var blob = new Blob([''], {
type: 'text/javascript'
})
var url = URL.createObjectURL(blob)
var worker = new Worker(url)
URL.revokeObjectURL(url)
@zryty
zryty / findStyles.js
Created Apr 21, 2020 — forked from macbookandrew/findStyles.js
List unique CSS properties for all DOM elements
View findStyles.js
/**
* List unique CSS properties for all DOM elements
* Initially created to list unique font stacks on a page
* @see {@link http://stackoverflow.com/a/35022690/ Inspired by this StackOverflow answer}
*
* @see {@link https://gist.github.com/macbookandrew/f33dbbc0aa582d0515919dc5fb95c00a/ URL for this file}
*
* @author AndrewRMinion Design (https://andrewrminion.com)
* @version 1.1
*