Skip to content

Instantly share code, notes, and snippets.

View Yimgo's full-sized avatar

Guillaume Burel Yimgo

View GitHub Profile
@Yimgo
Yimgo / draw.js
Last active December 22, 2016 15:48
B&H vs Waterfill
'use strict';
const data = [[1057881600000, 0.00],[1057968000000, 0.00],[1058054400000, 0.00],[1058140800000, 0.00],[1058227200000, 0.00],[1058313600000, 0.00],[1058400000000, 0.00],[1058486400000, -0.03],[1058572800000, -0.03],[1058659200000, -0.03],[1058745600000, -0.03],[1058832000000, -0.03],[1058918400000, -0.03],[1059004800000, -0.03],[1059091200000, 0.26],[1059177600000, 0.26],[1059264000000, 0.26],[1059350400000, 0.26],[1059436800000, 0.26],[1059523200000, 0.26],[1059609600000, 0.26],[1059696000000, 1.70],[1059782400000, 1.70],[1059868800000, 1.70],[1059955200000, 1.70],[1060041600000, 1.70],[1060128000000, 1.70],[1060214400000, 1.70],[1060300800000, 3.13],[1060387200000, 3.13],[1060473600000, 3.13],[1060560000000, 3.13],[1060646400000, 3.13],[1060732800000, 3.13],[1060819200000, 2.98],[1060905600000, 2.98],[1060992000000, 2.98],[1061078400000, 2.98],[1061164800000, 2.98],[1061251200000, 2.98],[1061337600000, 2.98],[1061424000000, 2.98],[1061510400000, 3.54],[1061596800000, 3.54],[1061683200000, 3.54
@Yimgo
Yimgo / research_report.md
Last active August 29, 2015 14:00
Research report (2014/06/06 draft)

Research report

Abstract

Introduction

Modern general purpose CPUs includes up to 16 cores while applications often don't take advantage of these capabilities and stick to one core.

Though asynchronous or IO-intensive programs wouldn't benefit of parallelization, CPU-intensive applications are suitable for multi-threading and could theoretically run much faster.

@Yimgo
Yimgo / html5_test.html
Created August 24, 2012 14:26
QtWebkit + Swiffy
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Swiffy output</title>
<script src="https://www.gstatic.com/swiffy/v4.7/runtime.js"></script>
<script>
swiffyobject = {"tags":[{"type":9,"actions":[{"type":7}]},{"bounds":[{"ymin":-689,"ymax":689,"xmin":-689,"xmax":689}],"id":1,"fillstyles":[{"color":[-26368],"type":1},{"color":[-1],"type":1}],"paths":[{"fill":0,"data":["Mqqqqqqqqzmqqqqqqqqz:89f::85B2T87D2T2T87D2T85B:87D2t2T2t2T87d:85b2t87d2t2t87d2t85b:87d2T2t2T2t87D56C33C8m9m8m33c:4s8M33c9M8m33C8m4S:33C8M8M9M8M33C:4S8m33C9m8M33c8M4s:33c8m"]},{"fill":1,"data":["Mqqqqqqqqz:71d::4S8M33C9M8M33C8M4S:33C8m8M9m8M33c:4s8m33c9m8m33c8m4s:33c8M8m9M8m33C"]},{"fill":0,"data":["Mlllhllhlllllqlqlhlhlllllllvllz:70cRAAIKBBAAA92D22CA7BFXnBcGva43f:mgvbdikxmzEa92d22CaaAaAaAiKaAbEbGLBGBE"]}],"type":1},{"tags":[{"id":1,"matrix":0,"type":3,"depth":2},{"type":2}],"id":2,"frameCount":1,"type":7},{"id":2,"name":"bt_play","matrix":"::::499e999c","type":3,"actions":[{"events
@Yimgo
Yimgo / demo.cpp
Created July 20, 2012 08:14
Open-Sankoré plugin problem
#include <QtGui>
#include <QtWebKit>
#include <QtWebKit>
#define DEMO 1
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QGraphicsScene graphicsScene;