This is the instant notes of the conference flow
Some details are missing (and so do Caps), others just dropped for the sake of brevity
This file contains 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 getDataUri(url, callback) { | |
var image = new Image(); | |
image.onload = function () { | |
var canvas = document.createElement('canvas'); | |
canvas.width = this.naturalWidth; // or 'width' if you want a special/scaled size | |
canvas.height = this.naturalHeight; // or 'height' if you want a special/scaled size | |
canvas.getContext('2d').drawImage(this, 0, 0); |
This file contains 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 (global) { | |
var metaViewport = document.querySelector('meta[name="viewport"]'); | |
var metaViewportStr = metaViewport && metaViewport.outerHTML || ''; | |
var metaCharset = document.querySelector('meta[charset]'); | |
var metaCharsetStr = metaCharset && metaCharset.outerHTML || ''; | |
var queryCache = {}; | |
/** | |
* Get the styling nodes to inject in the head of the embedded document | |
* |
This file contains 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
<div class="body"> | |
<div class="dropdown"> | |
<div class="dropdown__content"> | |
<div class="content"> | |
<div class="content__item"> | |
<input type="checkbox" /> | |
Item 1 | |
</div> |
DISCLAIMER:
The whole content comes "as is".
All commentaries refer to author's impression.
Some inconsistency possible as well.
The few details (mainly useful links) were added while transcribing notes.
This file contains 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
#!/usr/bin/env node | |
"use strict"; | |
var log = require('log-util'); | |
var exec = require('child_process').exec; | |
module.exports = function (cmd) { | |
var command = 'npm run ' + cmd; | |
exec( |
This file contains 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
import { BROWSER } from '../constants/browser'; | |
export function isWebPSupported (browser) { | |
// webp is supported in some browsers | |
// return true immediately | |
// todo: augment list, check versions etc | |
if (typeof browser !== 'undefined' && ( | |
browser.browser === BROWSER.OPERA || | |
browser.browser === BROWSER.CHROME |