Skip to content

Instantly share code, notes, and snippets.

View mininao's full-sized avatar

Maxence Aïci mininao

View GitHub Profile
@mininao
mininao / compterendu1avril
Created April 1, 2014 09:45
Welcome document
<h1 id="compte-rendu-mardi-1-avril">Compte rendu mardi 1 avril</h1><div class="se-section-delimiter"></div>
<h2 id="mind-map">Mind map</h2>
<h2 id="compte-rendu">Compte rendu</h2>
<h3 id="1-questions-que-nous-nous-sommes-posées">1. Questions que nous nous sommes posées</h3>
<p>• Quelles tâches précises avons-nous à faire ? <br>
• Combien de temps allons-nous consacrer à chaque tâche <br>
@mininao
mininao / GRMD
Created July 9, 2014 08:48
Guide rapide du markdown
Guide rapide du markdown
========================
Comment publier
---------------
1. Ajouter l'extension "stackedit" à votre google drive
![](http://i.imgur.com/oTrFxob.png)
![](http://i.imgur.com/BlcJvrE.png)
2. Créez un nouveau document markdown
![](http://i.imgur.com/hpjhWsw.png)
@mininao
mininao / mdguide2
Created July 10, 2014 19:51
Guide rapide du markdown
Guide rapide du markdown
========================
Comment publier
---------------
1. Ajouter l'extension "stackedit" à votre google drive
![](http://i.imgur.com/oTrFxob.png)
![](http://i.imgur.com/BlcJvrE.png)
2. Créez un nouveau document markdown
![](http://i.imgur.com/hpjhWsw.png)
@mininao
mininao / simple.ino
Created May 22, 2015 16:13
Ledcube v1
// Arduino cube light program
// By Guillaume Jolin & Maxence Aïci
// Pins 23 to 50 : RGB Columns
// Pins 5,6,7 : Layers
#define baseDelay 100
#define redStartPin 23
@mininao
mininao / Basic algorithm
Created May 22, 2015 20:56
LED lightning algorithms
for (int i = 0; i < length; ++i)
{
struct LED current_led = leds[i];
if(current_led.color.red != 0) {
on(current_led.pos, true, false,false);
delayMicroseconds(current_led.color.red);
off(current_led.pos);
}
@mininao
mininao / simple2.ino
Last active December 4, 2018 11:06
simple2.ino
// Arduino cube light program
// By Guillaume Jolin & Maxence Aïci
// Pins 23 to 50 : RGB Columns
// Pins 5,6,7 : Layers
#define baseDelay 1
#define redStartPin 23
#define colorPrecision 0.75 // Default = 1, Recommended = 0.5 // Lower = Faster, but less bright and contrasted
#define debug true
@mininao
mininao / renaming.sh
Created November 21, 2015 14:11
Renaming a git/github branch
git branch -m [oldbranch] [newbranch]
git push origin :[oldbranch] [newbranch]
@mininao
mininao / gist:11505039f29fdad390a4
Created December 21, 2015 23:16
git empty branch
git-emptybranch () {
git checkout --orphan $1
git reset --hard
echo "#" $1 >> README.md
gac 'initial commit'
git push --set-upstream origin $1
}
// ==UserScript==
// @name Jira ta maman
// @namespace http://tampermonkey.net/
// @version 0.2
// @description try to take over the world!
// @author Naji and Dany
// @match https://thepricehub.atlassian.net/secure/RapidBoard.jspa*
// @grant none
// ==/UserScript==
@mininao
mininao / pas_rapide.cpp
Created September 7, 2017 22:08
Rapide et pas rapide
vector<GLint> parseFaceLine(string line)
{
string lineContent = line.substr(2);
vector<GLint> face(3);
istringstream lineStream(lineContent);
lineStream >> face[0] >> face[1] >> face[2];
return face;
}