Skip to content

Instantly share code, notes, and snippets.

View BKcore's full-sized avatar

Thibaut Despoulain BKcore

View GitHub Profile
@BKcore
BKcore / More Tests.carbide.md
Last active October 3, 2016 01:49
More Tests

More Tests

@BKcore
BKcore / React ES2015 - Carbide Test.carbide.md
Last active September 26, 2016 23:36
React ES2015 - Carbide Test
@BKcore
BKcore / TestVH.html
Created February 23, 2016 20:35
Repro: Open page at 720p. Resize to 600 * 150. Compare Coherent with Chrome. Resize to 1200 * 1200. Compare with Chrome.
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>Loading</title>
<style type="text/css">
* {
box-sizing: border-box;
}
html, body {
@BKcore
BKcore / Sublime3.sublime-settings
Last active January 2, 2016 06:38
Sublime Text 3 prefs.
{
"always_show_minimap_viewport": true,
"atomic_save": false,
"auto_complete_triggers":
[
{
"characters": "<",
"selector": "text.html"
},
{
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'
};
@BKcore
BKcore / GPU.log
Last active December 19, 2015 20:09
Chrome 28
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
@BKcore
BKcore / stripes.css
Created June 18, 2013 04:35
srtipes stylus
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)
@BKcore
BKcore / ismobile.js
Created March 2, 2013 12:59
Mobile browser detector (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);
@BKcore
BKcore / install-gaia-error.log
Last active December 11, 2015 05:08
make 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
@BKcore
BKcore / perfnow.js
Created August 22, 2012 14:27
Performance.now() polyfill
(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;