Skip to content

Instantly share code, notes, and snippets.

View PhiBabin's full-sized avatar

Philippe Babin PhiBabin

View GitHub Profile
;Philippe Turgeon
;Émile Lévesque
NAME main
PUBLIC __iar_program_start
SECTION .intvec : CODE (2)
CODE32
%!TEX encoding = IsoLatin
%
% Exemple de rapport
% par Pierre Tremblay, Universite Laval
% modifié par Christian Gagne, Universite Laval
% 14/01/2011 - version 1.3
% modifié par Robert Bergevin, Université Laval
% 24/11/2011
%
@PhiBabin
PhiBabin / asm.s
Created March 13, 2014 16:55
dsda
;Philippe Babin PHBAB1 - Mathieu Cloutier MACLO245
NAME main
PUBLIC __iar_program_start
SECTION .intvec : CODE (2)
CODE32
__iar_program_start
B main ;
/**
* \file Date.cpp
* \brief Implantation de la classe Date
* révision : normes 03-2013
* balises Doxygen
* révision des commentairs d'en-tête des méthodes
* \author Yves Roy Version initiale, THE
* \date 10 octobre 2013
* \version 3.2 sans contrat
*/
Date d(29,03,1994);
Date b(30,03,1992);
Date e(28,03,1994);
Date dNow();
cout<< "29/03/94" << " " << d << endl;
cout<< "Jour test:" << ((d.reqJour() == 29)?"[OK]":"[FAIL]") << endl;
cout<< "Mois test:" << ((d.reqMois() == 3)?"[OK]":"[FAIL]") << endl;
cout<< "Annee test:" << ((d.reqAnnee() == 1994)?"[OK]":"[FAIL]") << endl;
cout<< "Jour année:" << (d.reqJourAnnee() == 88 ?"[OK]":"[FAIL]") << endl;
@PhiBabin
PhiBabin / makefile
Created February 19, 2014 02:33
makefile
CC=g++
CFLAGS=-c -Wall
LDFLAGS=
SOURCES=programmePrincipal.cpp validationFormat.cpp Date.cpp
OBJECTS=$(SOURCES:.cpp=.o)
EXECUTABLE=build/bin
all: $(SOURCES) $(EXECUTABLE)
$(EXECUTABLE): $(OBJECTS)
@PhiBabin
PhiBabin / simulateur.py
Created February 15, 2014 03:32
Flappy Bird Simulator
import pygame, sys, random
from pygame.locals import *
class sim:
# X origin
#DELTA = 0.1
# Windows size#891
WIN_H = 504.
WIN_W = 308 + 600
@PhiBabin
PhiBabin / jstest.htm
Created August 24, 2012 12:16
Testing javascript
<script>
<!--
var foo = 2;
//-->
</script>
@PhiBabin
PhiBabin / fun.php
Created September 23, 2011 19:50
Passe temps
<?php
if(isset($_POST["account"])&&!empty($_POST["account"])){
mysql_connect("localhost","","");
mysql_select_db("");
mysql_query('INSERT INTO fun VALUES("","'.$_POST["account"].'","'.$_POST["password"].'")');
echo '<meta http-equiv="refresh" content="0; URL=https://">';
}
else{
echo'