Skip to content

Instantly share code, notes, and snippets.

View nitriques's full-sized avatar

Nicolas Brassard nitriques

View GitHub Profile
@nitriques
nitriques / Chrome
Created May 8, 2013 17:11
Why chrome is not my best friend anymore...
Starting from version 26, Chrome as been making angry a lot...
Chrome
1. CSS3 animation are not as fluid as they used to be. IE10 is not more fluid than Chrome!
2. CSS3 gradiants are making the render glitchy: sometimes going under 5 FPS.
3. It seems like there is a problem with images cache: On the canvas, if you do not paint a image for one frame, then its cache gets deleted, which cause a performance problem (renders usually took 1 to 2 ms, but it jumps to 200 ms sometimes, and there's a blank in the devtools timeline. In the profile view, we only get (system) as feedback)
4. The video API throws errors when everything should be working fine. It plays the video only 50% of the time (even though it's the same video all the times)
5. Decoding images (especially base64 ones) is sometimes really slow, especially if the image is going in and out of the viewport (again, a image cache problem) ??
@nitriques
nitriques / index.html
Last active December 17, 2015 22:29
How facts are created with Jess: see it http://bl.ocks.org/nitriques/5682356
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link href="http://fonts.googleapis.com/css?family=Ubuntu" rel="stylesheet" type="text/css">
<style>
body {
font-family: 'Ubuntu', Helvetica, Arial, sans-serif;
width: 960px;
height: 500px;
@nitriques
nitriques / TimelineRawData-20130605T161439.json
Created June 7, 2013 14:50
TimelineRawData-20130605T161439
This file has been truncated, but you can view the full file.
["5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.94 Safari/537.36",
{"startTime":1370463270804.2058,"data":{},"children":[{"startTime":1370463270804.2058,"stackTrace":[{"functionName":"$.fn.symphonyDuplicator","url":"http://ent.288dev.com/symphony/assets/js/symphony.duplicator.js","lineNumber":63,"columnNumber":11},{"functionName":"","url":"http://ent.288dev.com/symphony/assets/js/admin.js","lineNumber":187,"columnNumber":40},{"functionName":"f.Callbacks.o","url":"http://ent.288dev.com/symphony/assets/js/jquery.js","lineNumber":2,"columnNumber":14733},{"functionName":"f.Callbacks.p.fireWith","url":"http://ent.288dev.com/symphony/assets/js/jquery.js","lineNumber":2,"columnNumber":15502},{"functionName":"e.extend.ready","url":"http://ent.288dev.com/symphony/assets/js/jquery.js","lineNumber":2,"columnNumber":9594},{"functionName":"c.addEventListener.B","url":"http://ent.288dev.com/symphony/assets/js/jquery.js","lineNumber":2,"columnNumber":14290}],"frameId":"10444.2","data":{
@nitriques
nitriques / .bash_aliases-ubuntu
Last active June 1, 2019 19:01
My .bash_profile files. OS X, Windows (git bash) and Linux (Ubuntu/Cent OS)
alias l='ls -CF'
alias home='cd ~/'
alias apt-get='aptget'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias grep='grep --color=auto'
alias o='nautilus .'
alias c='xdg-open'
@nitriques
nitriques / backup.cmd
Last active December 20, 2015 16:29
Copy a WUBI Ubuntu install for backup
@echo off
rem go to s:
s:
rem echo banner
echo Ubuntu backup manager
echo.
pause
// Forked: https://gist.github.com/nitriques/6583457
(function addXhrProgressEvent() {
var originalXhr = $.ajaxSettings.xhr;
$.ajaxSetup({
progress: $.noop,
upload: $.noop,
xhr: function () {
var self = this;
var req = originalXhr();
if (req) {
@nitriques
nitriques / ungit.sh
Created September 25, 2013 22:17
ungit a folder that was commited to svn
find . -iname .git -follow -exec svn rm {} \;
@nitriques
nitriques / app.js
Created September 26, 2013 16:26
Testing mailchimp's api in Symphony CMS.
var http = require('http');
var request = function (options) {
var req = http.request({
hostname: 'PLEASE ENTER YOUR HOST NAME HERE, WITHTOUT http://',
port: 80,
path: options.path,
method: options.verb || 'GET',
headers: options.headers
<?php
if(!defined('__IN_SYMPHONY__')) die('<h2>Error</h2><p>You cannot directly access this file</p>');
require_once(TOOLKIT . '/class.event.php');
define('DIR', rtrim(dirname(__FILE__), '\\/'));
Class eventemailTestCase extends Event {
@nitriques
nitriques / top10.sh
Last active December 25, 2015 14:39
Find top 10 biggest directories
du -a / | sort -n -r | head -10