This Gist was automatically created by Carbide, a free online programming environment.
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"/> | |
<title>Loading</title> | |
<style type="text/css"> | |
* { | |
box-sizing: border-box; | |
} | |
html, body { |
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
Show hidden characters
{ | |
"always_show_minimap_viewport": true, | |
"atomic_save": false, | |
"auto_complete_triggers": | |
[ | |
{ | |
"characters": "<", | |
"selector": "text.html" | |
}, | |
{ |
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 blob = new Blob([ | |
"onmessage = function(e) { postMessage('msg from worker'); }"]); | |
// Obtain a blob URL reference to our worker 'file'. | |
var blobURL = window.URL.createObjectURL(blob); | |
var worker = new Worker(blobURL); | |
worker.onmessage = function(e) { | |
// e.data == 'msg from worker' | |
}; |
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
Graphics Feature Status | |
Canvas: Hardware accelerated | |
Compositing: Hardware accelerated on all pages and threaded | |
3D CSS: Hardware accelerated | |
CSS Animation: Accelerated and threaded | |
WebGL: Hardware accelerated | |
WebGL multisampling: Hardware accelerated | |
Flash 3D: Hardware accelerated | |
Flash Stage3D: Hardware accelerated | |
Flash Stage3D Baseline profile: Hardware accelerated |
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
background-repeat: repeat-x | |
background-size: size size | |
background-image: -webkit-linear-gradient(-45deg, rgba(0, 0, 0, 0.20) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0.15) 75%, transparent 75%, transparent) | |
background-image: linear-gradient(-45deg, rgba(0, 0, 0, 0.15) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0.15) 75%, transparent 75%, transparent) |
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
// From http://www.abeautifulsite.net/blog/2011/11/detecting-mobile-devices-with-javascript/ | |
var isMobile = { | |
Android: function() { | |
return navigator.userAgent.match(/Android/i); | |
}, | |
BlackBerry: function() { | |
return navigator.userAgent.match(/BlackBerry/i); | |
}, | |
iOS: function() { | |
return navigator.userAgent.match(/iPhone|iPad|iPod/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
thibaut@thibaut-portable [07:30:03] [~/FFOS/gaia] [master *] | |
-> % sudo make install-gaia | |
test -d profile || mkdir -p profile | |
run-js-command applications-data | |
run-js-command preferences | |
make[1]: Entering directory `/home/thibaut/FFOS/gaia/apps/calendar' | |
make[1]: Leaving directory `/home/thibaut/FFOS/gaia/apps/calendar' | |
Finished: bootstrapping test proxies/sandboxes | |
Finished: test ui config file: ./test_apps/test-agent/config.json |
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(w){ | |
var perfNow; | |
var perfNowNames = ['now', 'webkitNow', 'msNow', 'mozNow']; | |
if(!!w['performance']) for(var i = 0; i < perfNowNames.length; ++i) | |
{ | |
var n = perfNowNames[i]; | |
if(!!w['performance'][n]) | |
{ | |
perfNow = function(){return w['performance'][n]()}; | |
break; |