Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block blaja

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View bling.js
/* bling.js */
window.$ = document.querySelectorAll.bind(document);
Node.prototype.on = window.on = function (name, fn) {
this.addEventListener(name, fn);
NodeList.prototype.__proto__ = Array.prototype;
WebReflection / gist:24c4c475bdeb59405e87
Last active Feb 15, 2016
setTimeout and setInterval extra arguments
View gist:24c4c475bdeb59405e87

Every single JavaScript engine supports standard timers *

These accept one or more extra argument by specs

for(var i = 0; i < 2; i++) {
  setTimeout(function (i) {
  }, 0, i); // <== see this?
getify / gist:7ae82fdc2e86bf66bcba
Last active Feb 20, 2020
List of ES6 books either out or in progress...
View gist:7ae82fdc2e86bf66bcba
p3t3r67x0 /
Last active Nov 5, 2019
A CSS pseudo-element is used to style specified parts of an element. In some cases you can style native HTML controls with vendor specific pseudo-elements. Here you will find an list of cross browser specific pseudo-element selectors.

Styling native elements

Native HTML controls are a challenge to style. You can style any element in the web platform that uses Shadow DOM with a pseudo element ::pseudo-element or the /deep/ path selector.

video::webkit-media-controls-timeline {
  background-color: lime;

video /deep/ input[type=range] {
nikcorg /
Last active May 16, 2018
Slide decks of JSConf 2014
staltz /
Last active Jun 4, 2020
The introduction to Reactive Programming you've been missing
rwaldron / tdz-1.js
Last active Apr 4, 2018
Temporal Dead Zone
View tdz-1.js
// The block has begun, we're in a new block scope. The TDZ for the "a" binding has begun
var f = function() {
// 2. Because f() is evaluated before `a` is actually declared,
// an exception will be thrown indicating to the author that
// `a` is not yet defined.
airportyh /
Last active Jun 19, 2017
JSConf 2014 Slides, Codes and Notes.

JSConf Slides, Codes and Notes

These are all the JSConf 2014 slides, codes, and notes I was able to cull together from twitter. Thanks to the speakers who posted them and thanks to @chantastic for posting his wonderful notes.

Modular frontend with NPM - Jake Verbaten (@Raynos)

sergejmueller /
Last active May 17, 2020
WOFF 2.0 – Learn more about the next generation Web Font Format and convert TTF to WOFF2
You can’t perform that action at this time.