NOTE: the content is out-of-date. All development is moved to the https://github.com/yurydelendik/wasmception
# locations, e.g.
export WORKDIR=~/llvmwasm; mkdir -p $WORKDIR
export INSTALLDIR=$WORKDIR
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\ChromeIncognitoHTML] | |
@="Chrome Incognito HTML Document" | |
"AppUserModelId"="ChromeIncognito" | |
[HKEY_CLASSES_ROOT\ChromeIncognitoHTML\Application] | |
"AppUserModelId"="ChromeIncognito" | |
"ApplicationIcon"="C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe,0" | |
"ApplicationName"="Google Chrome Incognito" |
NOTE: the content is out-of-date. All development is moved to the https://github.com/yurydelendik/wasmception
# locations, e.g.
export WORKDIR=~/llvmwasm; mkdir -p $WORKDIR
export INSTALLDIR=$WORKDIR
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft
, elem.offsetTop
, elem.offsetWidth
, elem.offsetHeight
, elem.offsetParent
function Storage(name) { | |
this.ready = new Promise((resolve, reject) => { | |
var request = window.indexedDB.open(location.origin); | |
request.onupgradeneeded = e => { | |
this.db = e.target.result; | |
this.db.createObjectStore('store'); | |
}; | |
request.onsuccess = e => { |
Per a discussion with Christian Heilmann, I've put together a little doc outlining the current IndexedDB issues in IE 10-11 and Edge.
The biggest issue with IE's implementation is the lack of multiEntry
, complex keys, or compound keypaths. Kyaw Tun (creator of YDN-DB) has grumbled a lot about this, and David Fahlander (Dexie.js creator) has written a heroic polyfill called IEGap that adds the missing behavior. (Although per David, it passes the W3C tests but not all the Dexie tests due to some tricky edge cases.)
// The following code is valid ECMAScript 6, but doesn’t work in Firefox, yet | |
function PreventUnknownGet() { | |
} | |
PreventUnknownGet.prototype = new Proxy(Object.prototype, { | |
get(target, propertyKey, receiver) { | |
if (!(propertyKey in target)) { | |
throw new TypeError('Unknown property: '+propertyKey); | |
} | |
// Make sure we don’t block access to Object.prototype |
<?php | |
/** | |
* Description of VideoStream | |
* | |
* @author Rana | |
* @link http://codesamplez.com/programming/php-html5-video-streaming-tutorial | |
*/ | |
class VideoStream | |
{ | |
private $path = ""; |
// TextEncoder/TextDecoder polyfills for utf-8 - an implementation of TextEncoder/TextDecoder APIs | |
// Written in 2013 by Viktor Mukhachev <vic99999@yandex.ru> | |
// To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty. | |
// You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>. | |
// Some important notes about the polyfill below: | |
// Native TextEncoder/TextDecoder implementation is overwritten | |
// String.prototype.codePointAt polyfill not included, as well as String.fromCodePoint | |
// TextEncoder.prototype.encode returns a regular array instead of Uint8Array | |
// No options (fatal of the TextDecoder constructor and stream of the TextDecoder.prototype.decode method) are supported. |
<img src="http://lorempixel.com/400/200/sports/" alt="" class="fader"> |
<?php | |
class ProcessInfo { | |
/** @var array $processes */ | |
protected $processes = array(); | |
/** | |
* Find a processes | |
* |