Skip to content

Instantly share code, notes, and snippets.

Avatar
🐓

Julian Bruyat BruJu

🐓
View GitHub Profile
View random_exercices.c
#include <stdio.h>
#include <stdlib.h>
// Some answers to exercices that a friend has to do for his school that I did for fun
// SUM OF PARAM
int size_of_string(char * str) {
int l = 0;
while (str[l]) {
@BruJu
BruJu / PileDeBooleens.java
Created May 22, 2019
PileDeBooleens.java
View PileDeBooleens.java
/*
* Copyright (C) 2018 by Julian Bruyat <bruyat dot ju at live dot fr>
*
* Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby
* granted.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
* AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
@BruJu
BruJu / Recognizer.java
Last active Jun 15, 2020
Recognizer.java
View Recognizer.java
import java.util.ArrayList;
import java.util.List;
import fr.bruju.rmeventreader.utilitaire.Pair;
/**
* Classe permettant de reconnaitre des chaînes avec le pattern suivant : Tous les symboles comptent
*
*
* Lorsqu'un _ est lu, le reconnaisseur lit la valeur jusqu'à trouver le symbole aprés le _ Si un £ est lu, le
* reconnaisseur arrête son travail et annonce qu'il a reconnu la chaîne
@BruJu
BruJu / Utilitaire_XML.java
Created May 22, 2019
Utilitaire_XML.java
View Utilitaire_XML.java
package fr.bruju.rmeventreader.dictionnaires;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.Iterator;
import java.util.function.Predicate;
import java.util.stream.Stream;
View perceptron.py
# Script permettant de calculer les résultats de l'apprentissage d'un perceptron
# Ecrit dans le cadre de l'Ue Techniques d'Apprentissage Automatique du M2IA de Lyon 1
# (parce que calculer à la main des sommes de multiplications avec des virgules, c'est rigolo 5 minutes, mais pas 6)
# Paramètres
base_dapprentissage = [
(1, 6, 4, 1),
(1, 7, 5, 1),
(1, 11, 16, -1),
@BruJu
BruJu / .block
Created Nov 20, 2019
fresh block
View .block
license: mit
@BruJu
BruJu / main.rs
Last active Dec 3, 2019
Rust first program
View main.rs
use std::cmp::Ordering;
use std::io;
use rand::Rng;
use std::io::Write;
use std::format;
// My first program in rust to test the language
// Kept to laught at myself in several months
// Inspired from the guessing game of the Rust book
@BruJu
BruJu / .block
Last active Jun 13, 2020
DataViz-TP3
View .block
license: mit
@BruJu
BruJu / .block
Last active Jun 13, 2020
Grippe en France en 2014
View .block
license: none
@BruJu
BruJu / .block
Last active Jun 13, 2020
DataViz - TP4
View .block
license:
height: NaN