This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define gauche IN_4 | |
#define devant IN_2 | |
#define droite IN_1 | |
#define paslibre_g (SensorUS(gauche) < 15) | |
#define paslibre_d (SensorUS(droite) < 15) | |
#define motors OUT_BC | |
#define VITESSE_ROT 75 | |
void setup(){ | |
SetSensorTouch(devant); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// On cherche à qualifier la précision du télémètre. | |
// Des marques bleues sont disposées sur la piste à intervale régulier. | |
// Le robot mesure la distance entre son point de départ et chacune des marques bleues rencontrées. | |
#define Telemetre IN_1 | |
#define Couleur IN_2 | |
#define Touch IN_3 | |
#define motors OUT_BC | |
int distance = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
entity MUX1 is | |
port(E0, E1, E2, E3 : in bit; | |
SEL : in bit_vector(1 downto 0); | |
S : out bit); | |
end MUX1; | |
architecture COMPOR_MUX1 of MUX1 is | |
begin | |
process | |
begin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
!========================================================================================! | |
! Programme de Mathieu GABORIT et Lucas BOURNEUF ! | |
! pour le projet FANGIO (séquence 3) ! | |
! Licence : WTFPL ! | |
! Etat : Terminal 7.3.2 ! | |
!========================================================================================! | |
//*/ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Protocole de communication bluetooth entre NXT. | |
* Lucas Bourneuf | |
* Mathieu Gaborit | |
* | |
* License : WTFPL | |
*/ | |
#define MASTER 0 | |
#define SLAVE 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define N // tu mets la taille qu'il te faut | |
char courant; | |
char lecture[N]; | |
i = 0; | |
courant = getchar(); | |
while (courant != EOF && i < N) { | |
lecture[i] = courant; | |
i++; | |
courant = getchar(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Quelques Variables | |
$title = 'Index'; | |
$dir = './src/*'; | |
// Affichage du début de la page | |
echo<<<END | |
<!doctype html> | |
<html lang="fr"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#-*-coding:utf8-*- | |
# | |
# File: gist.py | |
# Author: Mathieu (matael) Gaborit | |
# <[email protected]> | |
# Date: 2012 | |
# License: WTFPL | |
import os |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#prepare | |
csplit -f "sub_" listePageWiki.txt /Directory/ {50} -k -s | |
rm sub_00 | |
rm subs/* | |
mv sub* subs/ | |
#process |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang=en> | |
<head> | |
<title>Dataporn</title> | |
<meta charset=utf-8/> | |
<meta robots="noindex,nofollow"/> | |
<!-- lESS CSS --> | |
<link rel="stylesheet/less" href="main.less" media="screen" type="text/css"/> | |
<script type="text/javascript" src="less.min.js"></script> |