Skip to content

Instantly share code, notes, and snippets.

Thibaut Despoulain BKcore

Block or report user

Report or block BKcore

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View React ES2015 - Carbide Test.carbide.md
@BKcore
BKcore / TestVH.html
Created Feb 23, 2016
Repro: Open page at 720p. Resize to 600 * 150. Compare Coherent with Chrome. Resize to 1200 * 1200. Compare with Chrome.
View TestVH.html
<!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 Jan 2, 2016
Sublime Text 3 prefs.
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'
};
@BKcore
BKcore / GPU.log
Last active Dec 19, 2015
Chrome 28
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
@BKcore
BKcore / stripes.css
Created Jun 18, 2013
srtipes stylus
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)
@BKcore
BKcore / ismobile.js
Created Mar 2, 2013
Mobile browser detector (JS)
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);
@BKcore
BKcore / install-gaia-error.log
Last active Dec 11, 2015
make install-gaia error log
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
@BKcore
BKcore / perfnow.js
Created Aug 22, 2012
Performance.now() polyfill
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;
You can’t perform that action at this time.