Skip to content

Instantly share code, notes, and snippets.

View FaustinM's full-sized avatar

Faustin FaustinM

View GitHub Profile
@FaustinM
FaustinM / polynomeduseconddegrs.py
Last active January 2, 2021 13:50
Polynome du second degrès
from math import *
from kandinsky import *
for i in range(12) : print("")
print(" --------------------------")
print("Etude d'un polynome ax^2+bx+c")
print(" --------------------------")
print("")
a=0
# Demande des coefficients du trinome
while a==0 : a=float(input('Valeur de a ? '))
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import csv
tableau=open("/home/project/SNT/elements-data3.csv","r")
reader = csv.reader(tableau,delimiter=";")
result=[]
recherche = input("Que voulez-vous rechercher ? ")
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import csv
print ("Pour utiliser le programme 1(avoir toutes les informations sur un atome en écrivant son nom) tapez <1>. Si vous souhaitez connaitre tous les éléments qui composent une famille d'atome tapez <2>")
x=int(input('Quel programme souhaitez vous utiliser? '))
if x==1 :
tableau=open("/home/project/Python/elements-data3.csv","r")
reader = csv.reader(tableau, delimiter=";")

Keybase proof

I hereby claim:

  • I am faustinm on github.
  • I am faustin_ (https://keybase.io/faustin_) on keybase.
  • I have a public key ASBvPrlEl2Tp1m-g4yXx4DmYfWDnHMSLEI41XWE8rWvqTwo

To claim this, I am signing this object:

@FaustinM
FaustinM / update-firefox.sh
Created December 19, 2019 16:55
Easy update for firefox developper edition !
#!/bin/bash
lastVersion=$(curl -s 'https://product-details.mozilla.org/1.0/firefox_versions.json' | jq -r '.FIREFOX_DEVEDITION')
versionBrut=$(firefox -v)
selector="Mozilla Firefox "
actualVersion=${versionBrut/$selector/""}
sleep 3
if [ "$actualVersion" == "$lastVersion" ]
then
notify-send -i /opt/firefox_dev/browser/chrome/icons/default/default128.png "La dernière mise à jour est déjà présente..."
@FaustinM
FaustinM / change-wallpaper.sh
Created November 3, 2019 09:59
Un script qui permet de changer son wallpaper avec unsplash. Il utilise xfce.
if test -f "/tmp/1920x1080"; then
rm /tmp/1920x1080
fi
wget -P /tmp/ https://source.unsplash.com/collection/1053828/1920x1080
xfconf-query --channel xfce4-desktop --property /backdrop/screen0/monitorVGA-0/workspace0/last-image --set /tmp/1920x1080
# ^^^
# Il changer cette ligne pour l'utiliser sur d'autre environnement