Skip to content

Instantly share code, notes, and snippets.

// possible words
var words = ["lazy", "crackers", "hello", "cruel", "world", "bears", "need", "not", "apply"];
// characters
var puzzle = " \
r b f x w \
h e l l o \
o a h c r \
c r u e l \
v s u f d \
// possible words
var words = ["lazy", "crackers", "hello", "cruel", "world", "bears", "need", "not", "apply"];
// characters
var puzzle = " \
r b f x w \
h e l l o \
o a h c r \
c r u e l \
v s u f d \
@justinmarsan
justinmarsan / gist:5795797
Last active December 18, 2015 14:18
Nouveautés dans IE8

inline-block

Les propriétés d'un élément block appliquées à un élément inline... Pratique dans de nombreux cas, comme des menus, une mise en forme plus human friendly de listes, des breadcrumbs ou même l'affichage de blocs, la propriété inline-block a été longtemps oubliée au profit des float pour placer des éléments les uns à côté des autres.

Enfin supportée correctement dans IE8, voici quelques exemples de son utilisation et les avantages qu'elle offre comparé aux floats dans certains cas.

outline

Oubliée au profit de border, la propriété outline propose la même fonctionnalité avec un avantage non-négligeable : ne pas influer sur la taille de l'élément auquel elle est appliquée.

@justinmarsan
justinmarsan / gist:5713515
Last active January 7, 2020 08:20
Regular income as a beginner freelancer

Choosing the right clients/prospects

In order to build a regular cash flow to gain some stability with your income, the first step is to choose what kind of clients you'll be looking for. The ideal goal is to find clients that will come to you on a regular basis for the same kind of work. With this kind of clients the time spent looking for new clients will reduce as time goes, until it even becomes unecessary.

The idea client looks like this :

  • Has a long-term project or multiple projects
  • Needs the same kind of work done on a regular basis

Most clients that fit these criterion are either big businesses working constantly on their online presence or online campaigns, or agencies outsourcing a part of their work to reduce cost/improve margins or to deal with work overload they can't handle internally.

@justinmarsan
justinmarsan / gist:3793189
Created September 27, 2012 09:49
Intégrateur : Devoirs de vacances

Ce matin j'ai vu passer sur Twitter un fantastique lien intitulé Intégrateur HTML, front-end web developer : quel salaire ? écrit par STPo sur... le salaire des intégrateurs à Paris...

Sujet d'actualité pour moi étant à la recherche d'un CDI en tant qu'intégrateur, designer, un peu des deux, autre... Autant niveau technique je me sens à l'aise autant niveau rémunération, état du marché de l'emploi dans le secteur et surtout à Paris, je n'ai aucune idée de ce à quoi je dois m'attendre.

Résumé rapide, les chiffres

Pour ne pas gâcher la surprise à ceux qui n'auraient pas encore lu l'article (allez on se bouge) je vais résumer très rapidement ce que j'en ai retenu :

  • Pour un poste de junior ( < 2 ans d'expérience) entre 20k€ et 22k€ annuels sont corrects même plus n'est pas extravagant. Ca fait entre 1284€ et 1412€ net par mois http://www.salairebrutnet.fr/ )
  • L
@justinmarsan
justinmarsan / gist:3698746
Created September 11, 2012 14:06
Marketable skill : e-commerce platform

I find e-commerce websites to be fascinating to build, everything matters from branding to ease of use, keeping in mind business goals and users's desires... I just love doing those.

So far, I've been using Opencart to build that kind of websites, it's rather easy to use as a designer, easy to theme for, I didn't try to extend it but it seems to follow the MVC pattern so it must not be too difficult... But, because there is a "but", it's not much of a marketable skill when it comes to getting a job. It looks like nobody is using Opencart so... What are they using ?

What are most e-commerce websites running ?

According to Wappalyzer, Opencart ranks 9th with only 3th of market share. That's quite low... Top 3 is made of Magento (24%), Prestashop (18%), OsCommerce (10%).

I've tried Magento before and had a hard time wrapping my head around its odd templating system. It clearly wasn't built for designers to use, but well, maybe I should give it a shot again.

@justinmarsan
justinmarsan / gist:3698546
Created September 11, 2012 13:40
This is just a test

This is just a test

Obviously I could try to do something better, but I think a simple test will suffice.

Okay wtf is going on now ?

I mean seriously, what is happening ?

Ah there we go !

<?php
/**
* Intergrates Flex Book web pages
*
*/
function flex_book_node_view($node) {
if($node->type == 'flex_book'){
$load_js = $node->field_load_js;//calls the field and makes it load.js
foreach($load_js['und'] as $js_file) { // gets the und from laod.js
@justinmarsan
justinmarsan / flexbook
Created June 11, 2012 06:48 — forked from tsavory/all fixed I guess
first attempt
<?php
/**
* Intergrates Flex Book web pages
*
*/
function flex_book_node_view($node, $view_mode ) {
if($node->type == 'flex_book'){
$load_js = $node->field_load_js;
var_dump($load_js);