Skip to content

Instantly share code, notes, and snippets.

View Dragomitch's full-sized avatar

DragomitchCode Dragomitch

  • Services IT Concepts
  • Brussels
View GitHub Profile
eNrdXNty27qSfd76CparzrxkHBMAQYAZ50xZli9KfItkO8l-SYEgaDGmSIWk7ChT8-_TIEWJlEiZztm7pmZcFUeiunFZ3eheDUA-_M-f09B4UkkaxNH7PfTW3DNUJGMviB7e793dnu7zvf_8Z-_wRmSTa78_D0L9yT97fxzmr41QPanw_Z5D9oxMJA8quy-bIt-gKVdEXpBdxclUgNRVHKny2fu9ozBIRPn2UiUyCFWallIyFGl6Jabq_d54Irz4ec8QqVSRd1z5QLhxpubJnjEVQTSO5aPKzpJ4Pnu_x_aMp0A9X8YeyA0vb65Ht2VXx8lclYOBifxxeBOKhUrGmciMFH7ByAAP8aDOgwxaEeEcmnAoQuQtNh1CbOrQvYOdmgMxhd-vVR7PlPJWSuitRdhfInuTqBPfVzILntRxAgBMRCTXo6P4LeOtyg0KjL1lJoMe2U6ty3mYBbMwUMlK03pLnTaV861-kGm2Cd_GmQgHN-O1LLEZpm8x4RZGhO7Wi9d2be1h-BAFmap14ZgAMzc5ZhYnqNUFEiWu_QLwkfCCebpugbUpXYpIHMdph3GNszWc2OFtYiP1oyqJrFbJgfq5FrPRjgZrkmZrg8NoPQ3SbgposCqJ2j3jIvAr3go_OxaFfKelh5GsNIx3NXwXJSpVyVNlNe3qoq5yA1FLVSfR7rFacaQeVLS2nmm9dXZO-kIpOTmD0Ab9VIORucuNKv5KzJ1IaekqUg7e1W4DULt6qKu8AiitWAeKoV2yrwbpJFLJw2I8CVS4ngqjZCdWVaUqZu2eUtWoz6fTyF4_rSehE-_avSjiu6dUKFRn075aL1WoFGh4aiNIm3-dxk0Sf9dZKnyd2lEyjeeVUEcY3jnvQr46bdw-pMkiDSSkjDyhj5Q3h_FVQEbt04-f1BRcPk_UQEMqudpsdbV-CBxmY954V7gLwyaVdqiyTMjHQew9dEY37-RVGqdBAkilQSWb7SAKsV4dHYUvgodJFgH_7N78RMTphvR-O6LroV8DkTsW
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="dragomitch.me.testexam.MainActivity">
try {
String text = "3;1;BDI;SMS;FAME;1;Cégep Édouard Montpetit";
byte[] tbyte = text.getBytes("UTF-8");
FileOutputStream fos = new FileOutputStream(filename);
fos.write(239);
fos.write(187);
fos.write(191);
fos.write(tbyte);
fos.close();
@Dragomitch
Dragomitch / scriptSelector.js
Last active January 12, 2016 10:16
Classe en javascript
$(function(){
var machines= [];
data=$.ajax({
url: 'http://localhost:8080/Machines',
type: 'GET',
dataType: 'json',
success: function(reponse) {
for(i=0; i< reponse.length; i++){
machines[i]= machine(reponse[i].local,
reponse[i].localisationDansLocal,
class Guerrier{
private String nom;
//Some other parameters
public Guerrier(String nom){
if(nom == null || nom == "")
throw new IllegalArgumentException("Guerrier invalide");
this.nom= nom;
}
@Dragomitch
Dragomitch / rapport-intro.tex
Created December 7, 2015 08:42
Rapport Tex introductrion
\begin{flushleft}
Afin d’appliquer les méthodologies et les notions enseignées au cours \href{http://ecampus.ipl.be/claroline/course/index.php?cid=2BIN_SQL}{I2040 - DB : Langage de Requêtes et de Programmation}, nous avions pour objectif de réaliser, par groupe de deux, une application de gestion de devis.
\par
En effet l'objectif du projet était d'informatiser le processus de soumission et d'acceptation des devis pour les maisons de WCrhoo et de leurs clients. Ils nous ont donc demandés de mettre en place une plateforme permettant de regrouper les demandes de devis des clients et permettant aux différentes maisons de pouvoir soumettre des devis à ces demandes.
\par
La solution qui vous est présentée ci-après est celle du groupe composé de Dragomir Philippe et de Jeremy Wagemans.
\par
@Dragomitch
Dragomitch / TableauTrieDEntiers.java
Created November 23, 2014 21:22
TableauTrieDEntiers.java
public class TableauTrieDEntiers{
private int [] tableDEntiers;
private int nombreDEntiers;
private static final int TAILLE = 10;
public TableauTrieDEntiers(){
this.tableDEntiers = new int[TAILLE];
this.nombreDEntiers = 0;
}
@Dragomitch
Dragomitch / TestTableauTrieDEntiers.java
Created November 23, 2014 21:21
TestTableauTrieDEntiers.java
public class TestTableauTrieDEntiers{
public static java.util.Scanner scanner = new java.util.Scanner(System.in);
/**
* Cette methode verifie qu'un resultat attendu est bien un resultat obtenu.
*
* @param messageErreur
* message a afficher en cas de probleme
* @param attendu
@Dragomitch
Dragomitch / gist:4006a37f71e3b36c1c30
Created November 23, 2014 20:26
SupprimerTousLesExAequos
/** methode qui decale toutes les cases à partir de [posDepart] de [decalage] cases vers la gauche.
Ainsi pour decalageGauche(2,2) sur la liste [1,2,3,4,5] l'on obtient [3,4,5]
@param posDepart la position de depart du décalage
@param decalage le nombre de cases à décaller
*/
private void decalageGauche(int posDepart, int decalage){
for(int i= posDepart; i< nombreDEntiers-decalage; i++)
tableDEntiers[i]= tableDEntiers[i+decalage];
}
@Dragomitch
Dragomitch / Suite:longueur.java
Created November 7, 2014 21:05
La méthode longueur de la classe Suite ( math, chapitre 7)
/** Renvoie la longueur de la Suite courante */
public int longueur(){
/**
*1ere manière de faire:
*int result;
*if(estVide()){
* result=0;
*}else{
* resultat=1+corps().longueur();
*}