“ Hi! I'm Pierrick, a frontend developer and peanut butter addict. I'm currently working at Zagett, an awesome digital communication agency located in Paris. This is my blog. ”

Foreman, a quick and dirty helper for Web Workers

Foreman is a small library that helps handling messages between front-end html and Web Workers. Each message data is associated with an "action" that you can listen to with a simple on() method.

Well.. That should be clearer with an example.

Related links

Read more »

[meta] A note about bgFlow, a jQuery Plugin

TL; DR; This post is made for you, internet wanderer, looking for the bgFlow jQuery plugin. It doesn't exist anymore. Check out the better (and still existing) fullscreen gallery plugins for jQuery if you need one, some are provided in this post.

Read more »

[Glitches] While playing with fractals and images

Read more »

[Glitches] While playing with images and interpolation.

Read more »

Rendering the Buddhabrot with Ruby and GD

The Buddhabrot is a very cool (rendering) evolution of the classic Mandelbrot fractal. The one pictured below (source code provided at the end of the post) has been rendered with the GD2 library, a Ruby interface for the well-known GD graphics library.
This image required two hours to be fully rendered with 10 million samples.

It obviously needs lots of optimizations and graphic tweakings but hopefully, this post will remind me to work on it. Anyway, it was pretty funny to do.

Read more »

Permanently redirect a Ruby on Rails app without .htaccess files

Sometimes, especially with Rails apps, you don't have Apache, so you don't have those handy .htaccess files. Here is a slightly modified snippet found initially somewhere on StackOverflow to ensure that any incoming request falls on your_domain and if not, redirects it permanently (with a 301 HTTP redirect) to your_domain.

Read more »

Git quick tips

I tend to forget those commands every single time. This post will help me keeping them in a safe place. Hopefully, it'll be useful to someone else.

Read more »

Emulating Python's "in" keyword with Javascript

I've always been a huge fan of Python's in keyword for its clarity when used on lists :

# If some value is in some list, then do something
if "some value" in ["another value", "a neat value", "some value"]:
    do_something()

# For each value in some list, do something.
for value in ["one value", "yet another value", "that's a lot of values!"]:
    do_something()

Well, as you know, Javascript also have it's own in keyword, and while it's semantically different from the Python's one, there is a neat shortcut we can write to use it almost the same way.

Read more »