Skip to content

Instantly share code, notes, and snippets.

View raphaelbastide's full-sized avatar
↪️
Recent code is on gitlab: https://gitlab.com/raphaelbastide/

Raphaël Bastide raphaelbastide

↪️
Recent code is on gitlab: https://gitlab.com/raphaelbastide/
View GitHub Profile

Keybase proof

I hereby claim:

  • I am raphaelbastide on github.
  • I am raphael (https://keybase.io/raphael) on keybase.
  • I have a public key whose fingerprint is 6329 4F35 9A3E F86C 9C98 01BA FF38 02BE 007F 1142

To claim this, I am signing this object:

@raphaelbastide
raphaelbastide / correction.md
Last active August 29, 2015 14:01
Brackets notation

Plain text notation for correction and review

This document has now its own repository.

How to use brackets [ ] to advise lossless corrections.

In short

[1][2][3]
@raphaelbastide
raphaelbastide / README.md
Last active August 29, 2015 14:21
rotate pdf

Rotation des pages d’un PDF

Ce script bash permet de changer l’orientation de certaines pages d’un PDF. Il nécessite PDFtk server, il faut donc l’installer au préalable. Une petite recherche vous permettra de trouver les instructions pour l’installation de PTFtksur Mac Os.

Utiliser le script

  1. Téléchargez le script
  2. Copiez votre PDF dans le répertoire où se trouve rotate.sh
  3. Éditez rotate.sh pour indiquer les pages que vous voulez garder à l’endroit et celles que vous voulez retourner
@raphaelbastide
raphaelbastide / raphael.default.js
Created June 12, 2011 14:06
Public modul packs
var ctx = modul.context;
function skin_Default() {
ctx.clearRect(0,0,50,50);
// modul.io DEFAULT SKIN
ctx.beginPath();
// Here is a trick to random the modul's color:
ctx.fillStyle="rgba(" + Math.floor( Math.random() * 255) + "," + Math.floor( Math.random() * 255) + "," + Math.floor( Math.random() * 255) + ",1)";
//eyes
ctx.fillRect(12,3, 4, 4);
@raphaelbastide
raphaelbastide / README
Created January 14, 2013 21:58
jQuery Olive
# Olive
A minimal image enlarger
[Demo](http://jsrun.it/rooofl/otwP)
@raphaelbastide
raphaelbastide / README
Created January 14, 2013 22:50
RVB vibrations
RVB vibrations effect for text
@raphaelbastide
raphaelbastide / gist:4959599
Last active December 13, 2015 18:58
Hubot appologies
# Description:
# Makes Hubot appologies for its stupidness
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
@raphaelbastide
raphaelbastide / modul com()
Last active December 21, 2015 19:49
modul comunication function
// emission
function com(msg){
var siblingModuls = modul.sonar();
if(siblingModuls.length === 0){
ui.log("Nothing sent, you seem alone…");
}else{
var modul1 = siblingModuls[0];
var modulimg = modul1.image();
modul1.send(msg);
ui.log("Your modul sent “"+msg+"”");
@raphaelbastide
raphaelbastide / modul goto()
Created August 27, 2013 23:27
thx bpierre
var activeGoto = false;
var posGoto = [0,0];
function goto() {
var c = modul.coordinates();
if (c[0] > posGoto[0]) {
modul.move("left");
} else if (c[0] < posGoto[0]) {
modul.move("right");
}
if (c[1] > posGoto[1]) {
@raphaelbastide
raphaelbastide / modul follow()
Last active December 22, 2015 04:18
Your modul will follow the nearest modul
// follow
var activeFollow = false;
function follow(){
var siblingModuls = modul.sonar();
var c = modul.coordinates();
if(siblingModuls.length === 0){
ui.log("You seem alone…");
}else{
var modul1 = siblingModuls[0];
var mc = modul1.coordinates();