Skip to content

Instantly share code, notes, and snippets.

blaja

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
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) {
    console.log(i);
  }, 0, i); // <== see this?
}
@getify
getify / gist:7ae82fdc2e86bf66bcba
Last active Jun 27, 2019
List of ES6 books either out or in progress...
View gist:7ae82fdc2e86bf66bcba
View essential-javascript-links.md
@webtobesocial
webtobesocial / pseudo_elements.md
Last active Aug 7, 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.
View pseudo_elements.md

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
nikcorg / berlin-jsconf-2014.md
Last active May 16, 2018
Slide decks of JSConf 2014
View berlin-jsconf-2014.md
@staltz
staltz / introrx.md
Last active Aug 24, 2019
The introduction to Reactive Programming you've been missing
View introrx.md
@rwaldron
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.
console.log(a);
};
@airportyh
airportyh / jsconf_slides_codes_and_notes.md
Last active Jun 19, 2017
JSConf 2014 Slides, Codes and Notes.
View jsconf_slides_codes_and_notes.md

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
sergejmueller / ttf2woff2.md
Last active Aug 4, 2019
WOFF 2.0 – Learn more about the next generation Web Font Format and convert TTF to WOFF2
View ttf2woff2.md
You can’t perform that action at this time.