View React ES2015 - Carbide Test.carbide.md
React ES2015 - Carbide Test
This Gist was automatically created by Carbide, a free online programming environment.
View TestVH.html
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"/> | |
<title>Loading</title> | |
<style type="text/css"> | |
* { | |
box-sizing: border-box; | |
} | |
html, body { |
View Sublime3.sublime-settings
{ | |
"always_show_minimap_viewport": true, | |
"atomic_save": false, | |
"auto_complete_triggers": | |
[ | |
{ | |
"characters": "<", | |
"selector": "text.html" | |
}, | |
{ |
View blobworker.js
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' | |
}; |
View GPU.log
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 |
View stripes.css
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) |
View ismobile.js
// 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); |
View install-gaia-error.log
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 |
View perfnow.js
(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; |