Skip to content

Instantly share code, notes, and snippets.

View Franck1333's full-sized avatar
🐍
I'm trying new things

Franck Rochat Franck1333

🐍
I'm trying new things
View GitHub Profile
@Franck1333
Franck1333 / OLED_Adafruit_lib.ino
Last active June 24, 2020 15:53
Arduino : OLED Display with U8G's/Adafruit's libs.
//This example has to be used with any SSD1306 screen Vertical/Horizontal screen with ~1" spec.
//This example use the Adafruits libs.
//AIDE: http://adafruit.github.io/Adafruit_SSD1306/html/index.html
//AIDE: https://projetsdiy.fr/ssd1306-mini-ecran-oled-i2c-128x64-arduino/
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
@Franck1333
Franck1333 / GetUsername.py
Created February 1, 2019 14:43
This program allow you to get the current name of the user and get it as a String value
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#This program allow you to get the current name of the user and get it as a String value.
import getpass #On importe la blibliotheque "getpass"
username = getpass.getuser() #On enregistre le Nom de l'Utilisateur
print(username) #On affiche dans la console le Nom de l'Utilisateur
@Franck1333
Franck1333 / ISS_locate.py
Last active December 17, 2018 19:22
Get the current or next position of the ISS by using GPS and open-notify.org's API
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
#Aides : http://api.open-notify.org/
#Aides : http://open-notify.org/Open-Notify-API/ISS-Pass-Times/
#Aides : http://open-notify.org/Open-Notify-API/ISS-Location-Now/
#Aides : https://geopy.readthedocs.io
#Aides : http://json.parser.online.fr/beta/
import json #Traitement du fichier JSON reçu
@Franck1333
Franck1333 / Map.py
Last active December 10, 2018 23:58
Get A Static MAP by Longitude/Latitude with YANDEX and Tkinter
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#Aides : https://stackoverflow.com/questions/43009527/how-to-insert-an-image-in-a-canvas-item
#Aides : http://apprendre-python.com/page-tkinter-interface-graphique-python-tutoriel
#---Service---#
import urllib #Blibliotheque permetant de recuperer une ou plusieurs ressources sur Internet via HTTP/HTTPS
@Franck1333
Franck1333 / ChatPythonCLIENT.py
Last active November 28, 2018 03:41
Get a Chatroom fully operational with custom Nicknames on PYTHON (Client/Server).
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#AIDES: https://www.geeksforgeeks.org/simple-chat-room-using-python/
# Python program to implement client side of chat room.
import socket
import select
import sys
@Franck1333
Franck1333 / psutil.py
Created November 25, 2018 02:17
Use the "psutil" to get CPU informations of your system.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#Aides : http://apprendre-python.com/page-tkinter-interface-graphique-python-tutoriel
#Aides : https://psutil.readthedocs.io/en/latest/index.html
#AIDES : https://stackoverflow.com/questions/276052/how-to-get-current-cpu-and-ram-usage-in-python
import os
import sys
import datetime
@Franck1333
Franck1333 / GeoPy.py
Created October 21, 2018 01:49
Get Revese-Geocoding data with the GeoPy API and Nominatim Map Service on Raspberry/Python
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
#AIDES: https://github.com/geopy/geopy
#AIDES: https://pypi.org/project/geopy/
#AIDES: https://geopy.readthedocs.io/en/stable/index.html?highlight=reverse
import geopy.geocoders #--> sudo pip install geopy
from geopy.geocoders import Nominatim #Nominatim Service
@Franck1333
Franck1333 / ArcGIS_Reverse_GEOCODING.py
Created October 20, 2018 00:52
DON'T WORK ON RASPBERRY PI OCT/2018 // ArcGIS Reverse-Geocoding
# coding: utf-8
# In[2]:
#---------------------------------------------------------------------------
#---ArcGIS API---
#AIDES: https://notebooks.esri.com/user/8uWENFEcO3tFj41KxMulwiGrG/tree
#AIDES: https://developers.arcgis.com/labs/python/search-for-an-address/
@Franck1333
Franck1333 / ProgressBar.py
Last active October 16, 2018 15:05
Get Dynamic Label , ProgressBar or any content be dynamic with this examples on TKINTER
#AIDES: https://stackoverflow.com/questions/18047636/python-is-it-possible-to-create-an-tkinter-label-which-has-a-dynamic-string-whe
import tkinter as tk
# You will need the ttk module for this
from tkinter import ttk
def update_status(step):
# Step here is how much to increment the progressbar by.
@Franck1333
Franck1333 / CANVAS_SCROLLBAR.py
Last active October 1, 2018 20:05
Get a Scrollbar on Tkinter example found.
# CANVAS
#AIDES: http://apprendre-python.com/page-tkinter-interface-graphique-python-tutoriel
try :
from Tkinter import * #Python Version 2
pass
except:
from tkinter import * #Python Version 3
fenetre = Tk()