Skip to content

Instantly share code, notes, and snippets.

View gogromat's full-sized avatar

Alexander Astafurov gogromat

  • Brooklyn, New York
View GitHub Profile
@gogromat
gogromat / polyfill.js
Last active October 21, 2021 20:25 — forked from nekman/polyfill.js
polyfill.io IE11 (3.108 - fixed Symbol/internalSymbol)
/* Polyfill service v3.108.0
* For detailed credits and licence information see https://github.com/financial-times/polyfill-service.
*
* Features requested: default
*
* - _DOMTokenList, License: ISC (required by "DOMTokenList", "default")
* - _ESAbstract.ArrayCreate, License: CC0 (required by "Array.of", "default")
* - _ESAbstract.Call, License: CC0 (required by "Object.assign", "Object.getOwnPropertyDescriptor", "_ESAbstract.ToPropertyKey", "_ESAbstract.ToPrimitive", "_ESAbstract.OrdinaryToPrimitive", "default")
* - _ESAbstract.CreateDataProperty, License: CC0 (required by "Array.from", "Set", "_ESAbstract.CreateIterResultObject", "default")
* - _ESAbstract.CreateDataPropertyOrThrow, License: CC0 (required by "Array.of", "default")
@gogromat
gogromat / ListEvents.md
Created May 17, 2020 05:22 — forked from cmbaughman/ListEvents.md
List all events on element with vanilla Javascript
  Element.prototype._addEventListener = Element.prototype.addEventListener;
  Element.prototype.addEventListener = function(a,b,c) {
    if(c==undefined)
      c=false;
    this._addEventListener(a,b,c);
    if(!this.eventListenerList)
      this.eventListenerList = {};
    if(!this.eventListenerList[a])
-/macro fio-dec system, june 1963
007652 640500 szm=sza sma-szf
007652 650500 spq=szm i
007652 761200 clc=cma+cla-opr
- define senseswitch A
- repeat 3, A=A+A
- szs A
- term
- define init A,B
- law B
class Hash
# By default, only instances of Hash itself are extractable.
# Subclasses of Hash may implement this method and return
# true to declare themselves as extractable. If a Hash
# is extractable, Array#extract_options! pops it from
# the Array when it is the last element of the Array.
def extractable_options?
instance_of?(Hash)
end
end