Skip to content

Instantly share code, notes, and snippets.

@qkzk
qkzk / vonkoch.ipynb
Created May 22, 2022 06:30
Flocon de Von Koch avec turtle
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@qkzk
qkzk / visualiser_tri_selection.ipynb
Created May 22, 2022 05:56
Visualiser le tri par sélection étape par étape
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@qkzk
qkzk / tp_enonce_donnees-convertisseur_de_base.ipynb
Created September 29, 2021 06:30
TP_ENONCE_Donnees-Convertisseur_de_base.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@qkzk
qkzk / gitadd.py
Created July 5, 2020 09:42
git add, git commit -m ..., git push to current branch
#!/usr/bin/env python
__doc__ = '''
author: qkzk
date: 2020/07/05
Description :
Add, commit and push in a single command.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = 'https://github.com/qkzk'
__date__ = '2020/06/20'
__title__ = 'Python String Coloring'
__doc__ = '''
{0}
{1}
{2}
@qkzk
qkzk / rpi4_retropie.md
Last active January 3, 2020 13:00
raspberry 4 & retropie

Raspberry 4 & retropie

Pour l'instant (jan 2020) il n'y a pas de distribution toute faite avec Retropie ou un équivalent que je connaisse pour le raspberry pi 4.

Le principe est d'installer raspbian lite et ensuite retropie à la main. Je ne comprends pas pourquoi ils font pas ça directement et clonent une carte SD vu que le résultat est sensiblement le même, peut-être que qqchose m'échappe...

Mais ça fonctionne nickel donc ?

Tuto

@qkzk
qkzk / part_3.py
Created August 5, 2019 05:47
Réseau de neurone complet. Image classifier
#!/usr/bin/env python3
# coding=utf-8
'''
1. Créer un fichier de test avec moins de données
2. Charger les données depuis le fichier csv
3. Séparer les colonnes selon le truc
4. Créer les outils du NN
5. Créer les différents layers
6. Entrainer
@qkzk
qkzk / partie_2.py
Created August 4, 2019 14:16
Simple neurone, dans une classe
import numpy as np
class NeuralNetwork():
def __init__(self):
# Racine du générateur de nombre
np.random.seed(1)
# On défini les poids synaptiques initiaux entre -1 et 1,
@qkzk
qkzk / partie_1.py
Last active August 4, 2019 09:32
Simple neurone
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import numpy as np
def sigmoid(x):
'''
Sigmoid : normalise les entrées
@param x: (float)
@return: float
# initialization file (not found)