Skip to content

Instantly share code, notes, and snippets.

View pieplu's full-sized avatar

Alexis Piéplu pieplu

View GitHub Profile
var casper = require("casper").create({
pageSettings: {
loadImages: false,
loadPlugins: false
}
});
var checked = [];
var currentLink = 0;
var fs = require('fs');
var upTo = ~~casper.cli.get('max-depth') || 100;
/*
* An URI datatype. Based upon examples in RFC3986.
*
* TODO %-escaping
* TODO split apart authority
* TODO split apart query_string (on demand, anyway)
*
* @(#) $Id$
*/
@pieplu
pieplu / convertion.sh
Last active August 29, 2015 14:02
Conversion dossier epub en fichier .epub depuis un mac
# Optionel s'il s'agit d'un *.epub déjà zipé avec un mac
unzip YOURePubNAME.epub
# Aller dans le dossier epub
# Première étape:
zip -X YOURePubNAME.epub mimetype
# Ajouter à l'archive le dossier META-INF en ignorant les fichiers .DS_Store mac.
@pieplu
pieplu / sprite_sass.SCSS
Last active August 29, 2015 14:01
Loop sass for sprites
// for an image with all the stacked pictograms
$HeaderSelector: "name",
"other-name",
"other-name",
"other-name",
"other-name",
"other-name";
// Loop for sprite
@pieplu
pieplu / ManyTooglerAui.js
Created May 7, 2014 19:37
Toggler wanabe TogglerDelegate AUI
var tableauMenu = [];
Y.all('.humania-main-menu-section').each(function(node){
var unMenu = new Y.Toggler(
{
animated: true,
container: '.humania-main-menu',
header: node.one('.humania-main-menu-header'),
content: node.one('.humania-main-menu-list'),
expanded: false,
transition: {
@pieplu
pieplu / tdd_notes.md
Last active August 29, 2015 14:00 — forked from gelendir/tdd_notes.md

commands

beginner

  • echo
  • cat
  • date
  • ls