Blog

WordPress Settings Framework for Options Pages

WordPress Settings

Based on the WordPress Settings API, a class to generate options pages. Create settings forms with all basic input types, selects, textareas, media uploads, AJAX actions, colors…

Open files or folders in Atom from OSX Finder

Get to open files or folders in Atom with a simple “right click” by following this simple step-by-step through Automator.

Dynamic layout jQuery plugin

Optimise the position of floating elements.

Sass Compiler for WordPress

WordPress Sass Compiler

A Sass compiler for WordPress ! This is a plugin that will allow you to write and compile Sass, and to edit style variables straight into your WordPress dashboard.

LESS Compiler for WordPress

wm-less-compiler

A LESS compiler for WordPress ! This is a plugin that will allow you to write and compile LESS, and to edit style variables straight into your WordPress dashboard.

Peek-A-Boo PlaceHolders, Floating Labels for Bootstrap 3

Hide labels behind inputs on Bootstrap’s horizontal forms, until the user starts to fill them up and it’s then sliding on. Preferably for inputs with placeholders.

A jQuery Plugin to Fade In and Out with a Vertical Slide

Fade a bit more nicely with the .showDown() and .hideUp() functions. Show and hide with vertical sliding (only) and a fading effect.

A different Domain for each Language with qTranslate

Define a different site URL for each language of your multilingual WordPress site. This trick works with the plugin qTranslate.

3D File Formats Compabilities with CAD Softwares

A table comparing importation and exportation formats for the major 3D softwares.

Omnifinder, a Time-Saving Search Engine

Omnifinder

A customizable search engine that combines them all. Each button opens different results.

Mes jolies cartes de visite

Verso

Le design de la carte de visite de mon auto-entreprise !

Basic Collisions Detection, RayCasting with Three.Js

Collisions Detection

An other experiment with three.js, on character controls and raycasting for obstacles detection.

Basic Character Controls with Three.Js

An experiment with three.js, the 3D JavaScript library. Code explanation on keyboard control for a 3D character.

Board Game Experiment, with JS Prototypes and Canvas

Quoridor

A first experiment in game development. Adaptation of the board game Quoridor, with basic path finding and « artificial kinda intelligence » inside !

Exclude a product category with WordPress E-Commerce Plugin

// The categories we want to exclude. $exclude_categories = array(5, 10, 2); while (wpsc_have_products()) : wpsc_the_product(); $category = get_the_product_category( wpsc_the_product_id() ); if ( !in_array( $category[0]->term_id, $exclude_categories ) ) : // Here you display… endif; endwhile; And yeah, if you want to exclude a top level category, try something like this : function get_term_top_parent_id( $term_id, $taxonomy […]

Vous pouvez en choisir deux

Je suis tombé sur sur ce diagramme réalisée par Colin Harman, et cela m’a rappelé la pyramide que mon boss de l’époque présentait quelquefois aux clients. Celui-ci est titré pour du design, mais je l’ai vu s’appliquer à de divers projets de communication. L’idée, c’est qu’on ne peut pas raisonnablement vendre pour des cacahuètes (cheap) […]

Responsive Adsense Plugin for WordPress

A simple widget to display the bigger Google Adsense unit that can fit in the container.

Make your Google Adsense blocs fit your responsive design !

Conditional loading of your ads, depending on the viewport size.

Add a custom class to the Edit Comment Link in WordPress

function myclass_edit_comment_link( $output ) { $myclass = ‘myclass’; return preg_replace( ‘/comment-edit-link/’, ‘comment-edit-link ‘ . $myclass, $output, 1 ); } add_filter( ‘edit_comment_link’, ‘myclass_edit_comment_link’ );

Add a custom class to the Comment Reply Link in WordPress

In your template, replace the comment_reply_link() function by : $myclass = ‘myclass’; echo preg_replace( ‘/comment-reply-link/’, ‘comment-reply-link ‘ . $myclass, get_comment_reply_link(), 1 );

Travel Routes WordPress Plugin

A WordPress plugin to display routes and locations on a customizable map.

Add a custom class to every WordPress Widgets

function myclass_dynamic_sidebar_params( $params ) { $myclass = ‘myclass’; $params[0][‘before_widget’] = preg_replace( ‘/class= »/’, ‘class= »‘ . $myclass . ‘ ‘, $params[0][‘before_widget’], 1 ); return $params; } add_filter( ‘dynamic_sidebar_params’, ‘myclass_dynamic_sidebar_params’ );

Convert SVG relative path data to absolute polyline points with JavaScript

This function return an array of the different absolute paths received as a string, converted to absolute points. function pathToPoints( path ) { var paths = path.split( /z|Z/ ), points = new Array(); for ( var i = 0; i < paths.length-1; i++ ) { path = paths[i].split( /l|L/ ); path[0] = path[0].replace( /m|M/, '' […]

Function get_term_parents() for WordPress

function get_term_parents( $id, $taxonomy, $link = false, $separator = ‘/’, $nicename = false, $visited = array() ) { $chain =  »; $parent = &get_term( $id, $taxonomy ); if ( is_wp_error( $parent ) ) return $parent; if ( $nicename ) $name = $parent->slug; else $name = $parent->name; if ( $parent->parent && ( $parent->parent != $parent->term_id ) […]

Booter depuis votre clef : création d’un live-USB sur Mac

Téléchargez l’image de votre disque d’installation (qui devrait être un fichier .iso) Ouvrez votre Applications > Utilities > Terminal. Listez vos disques en exécutant diskutil list. Dans la liste obtenue, vous trouverez votre clef USB. Retenez le chemin vers celle-ci (/dev/disk1 pour notre exemple). Il faut maintenant éjecter votre clef avec la commande diskutil unmountDisk […]

Get latitude and longitude from an address with PHP and Google Maps API

// We define our address $address = ‘Caen, Basse-Normandie’; // We get the JSON results from this request $geo = file_get_contents(‘http://maps.googleapis.com/maps/api/geocode/json?address=’.urlencode($address).’&sensor=false’); // We convert the JSON to an array $geo = json_decode($geo, true); // If everything is cool if ($geo[‘status’] = ‘OK’) { // We set our values $latitude = $geo[‘results’][0][‘geometry’][‘location’][‘lat’]; $longitude = $geo[‘results’][0][‘geometry’][‘location’][‘lng’]; }

Image Parallax Plugin for WordPress

WordPress Parallax Icon

Parallax as a new media type ! Upload your layers, and then insert images with a depth effect into your posts.

Jouer à Final Fantasy 7 sur Mac

Alors j’ai finalement réussi ! J’ai essayé un milliard de trucs, et je vous présente ici ce qui a marché. Bon courage. D’abord, il faut télécharger les disques du jeu sur Vimm’s Lair (ou la version française sur mondemul.net). Ensuite, installez l’émulateur PCSX-Reloaded. Vous aurez besoin d’ajouter les « Playstation BIOS Files » dans votre repertoire {utilisateur}/Library/Application Support/Pcsxr/Bios/. Après ça, […]