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
| # Quick and dirty AI-generated script for local dictation with GUI | |
| # Generated by Gemini 2.5-flash | |
| # | |
| # Setup: pip install pyaudio whisper | |
| # Run: python local-ai-dictation-gui.py | |
| # Trouble shooting: | |
| # - Install Python with tkinter | |
| # - Set your microphone as default input in your system settings | |
| # - Using a too big model will slow down the output | |
| # - French is used as default language |
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
| # Jeu facile pour apprendre le Python ! | |
| # © 2024, gist.github.com/gitbra | |
| # Constantes du jeu | |
| c_largeur = 7 | |
| c_hauteur = 6 | |
| # Fonctions réutilisables | |
| def safe_int(column: str) -> int: |
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
| from aiohttp import web | |
| app = web.Application() | |
| app.router.add_static('/', path='.') | |
| web.run_app(app, host='127.0.0.1', port=8080) |
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
| #include <cstdio> | |
| #include <windows.h> | |
| #include <fileapi.h> | |
| #include <timezoneapi.h> | |
| int main() | |
| { | |
| char filename[1024]; | |
| HANDLE h; | |
| SYSTEMTIME target; |