- https://www.youtube.com/watch?v=qhouBGNncGQ
- http://stackoverflow.com/a/6867287
- http://wsd.events/2015/10/31/pres/ai-svg/
- https://www.igvita.com/2014/05/20/script-injected-async-scripts-considered-harmful/
- http://iamvdo.me/en/blog/css-element-function
- https://www.chromium.org/developers/design-documents
- http://css-live.ru/articles/obzor-inlajnovyj-kontekst-formatirovaniya.html
- http://philipwalton.com/articles/what-no-one-told-you-about-z-index/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var UA = navigator.userAgent | |
| var regex = /iPad|iPhone|iPod|Android/i | |
| if (regex.test(UA)) ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| a | |
| { | |
| text-decoration: none; | |
| color: inherit; | |
| } | |
| h1, h2, h3, p, dl, dd, body, figure | |
| { | |
| margin: 0; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -webkit-font-smoothing: antialiased; | |
| -moz-osx-font-smoothing: grayscale; | |
| // http://szafranek.net/works/articles/font-smoothing-explained/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function _debounce(callable, wait) | |
| { | |
| var id | |
| function call(context, list) | |
| { | |
| requestAnimationFrame(function() | |
| { | |
| callable.apply(context, list) | |
| id = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // что возвращает эта функция? | |
| (function fun(Infinity, length, __proto__) | |
| { | |
| return [,,~0.[0|0]][fun.__proto__.length && Infinity, -~String(this).length >> __proto__] << (0. === .0) + Infinity; | |
| }).apply(typeof fun, [,,2]); | |
| // рассмотрим массив с аргументами: | |
| // "0" in [,,2] => false | |
| // "1" in [,,2] => false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Adjust blur on resize. | |
| var proto = Object.create(HTMLElement.prototype); | |
| proto.attachedCallback = function() | |
| { | |
| var feGaussianBlur = this.query('feGaussianBlur') | |
| var MAX_DEVIATION = 10 | |
| var MIN_DEVIATION = 3 | |
| var MIN_WIDTH = 320 | |
| var MAX_WIDTH = 1366 | |
| var k = (MAX_WIDTH - MIN_WIDTH) / (MAX_DEVIATION - MIN_DEVIATION) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function arrayOfInts(n) { | |
| return Array.apply(null, {length: n}).map(function(v,i) {return i}) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function on($emitter, types, handler) | |
| { | |
| types.split(/\s+/).forEach(function(type) | |
| { | |
| $emitter.addEventListener(type, handler) | |
| }) | |
| return handler | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://gitter.im/dev-ua/frontend-ua?at=5603cbb6e85e8d337252a483 | |
| https://gitter.im/dev-ua/frontend-ua?at=5603cf15c588a0de6ee01bfd | |
| -- Frontend Resources. |