Skip to content

Instantly share code, notes, and snippets.

↪️
Recent code is on Gitlab: https://gitlab.com/raphaelbastide/

Raphaël Bastide raphaelbastide

↪️
Recent code is on Gitlab: https://gitlab.com/raphaelbastide/
Block or report user

Report or block raphaelbastide

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View shaari.min.css
neu/*!
Pure v1.0.0
Copyright 2013 Yahoo!
Licensed under the BSD License.
https://github.com/yahoo/pure/blob/master/LICENSE.md
*/
/*!
normalize.css v^3.0 | MIT License | git.io/normalize
Copyright (c) Nicolas Gallagher and Jonathan Neal
*/
View min-char-rnn.py
"""
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
"""
import numpy as np
# data I/O
data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
data_size, vocab_size = len(data), len(chars)
View README.md

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
View README.md

ABConnect

ABConnect illustration

ABConnect will help you to connect graphically two HTML elements with smart dependency-free JavaScript lines.

Demo

Try a demo.

@raphaelbastide
raphaelbastide / correction.md
Last active Aug 29, 2015
Brackets notation
View correction.md

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]
View keybase.md

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 / zamiere.css
Created Nov 9, 2013
Brackets Zamiere theme fixed
View zamiere.css
.zamiere .panel {
background:#3C3F41;
}
.zamiere #status-bar,
.zamiere #status-indicators {
background:#242424;
color:#ccc;
}
@raphaelbastide
raphaelbastide / figure.snippet
Last active Dec 26, 2015
Brackets snippets https://github.com/jrowny/brackets-snippets/ Keyboard shortcuts: [Ctrl + . ] to apply and [Ctrl + Alt + . ] to list snippets.
View figure.snippet
<figure>
<img src=\"$${src}\" width=\"$${width}\" height=\"$${height}\" alt=\"$${alt}\" />
<figcaption>$${caption}</figcaption>
</figure>
@raphaelbastide
raphaelbastide / modul checkpt()
Last active Dec 22, 2015
A checkpoint static modul. Contains skin and behaviour.
View modul checkpt()
var ctx = modul.context;
// Skin
function checkpt(ledColor){
function circle(x, y, r, col){
ctx.beginPath();
ctx.fillStyle = col;
ctx.arc(x, y, r, 0, Math.PI * 2, false);
ctx.closePath();
ctx.fill();
@raphaelbastide
raphaelbastide / modul follow()
Last active Dec 22, 2015
Your modul will follow the nearest modul
View modul follow()
// 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();
You can’t perform that action at this time.