This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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() |