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
| ''' | |
| Name: CheckPipUpdate.ps1 | |
| Description: Checks if pip needs to be updated, and updates it if necessary. | |
| Author: Adge Denkers / github.com/adgedenkers/ | |
| Created: 10/31/2023 | |
| Updated: 10/31/2023 | |
| (C) 2023 denkers.co | |
| ''' | |
| function Get-InstalledPipVersion { |
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
| /* | |
| Name: shave_and_haircut__horn.ino | |
| Description: Plays the tune "Shave and a Haircut" on a car horn when a dashboard button is pressed. | |
| Author: Adge Denkers / github.com/adgedenkers/ | |
| Created: October 22, 2023 | |
| Updated: October 22, 2023 | |
| (C) 2023 denkers.co | |
| */ | |
| const int buttonPin = 2; // Pin connected to the dashboard button |
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
| /* | |
| Name: LED_Controller.ino | |
| Description: Lights an LED connected to pin D1 when Gemma v3 is powered on, and keeps the LED on. | |
| Author: Adge Denkers / github.com/adgedenkers/ | |
| Created: October 22, 2023 | |
| Updated: October 22, 2023 | |
| (C) 2023 denkers.co | |
| */ | |
| void setup() { |
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
| /* | |
| Name: Shave_and_a_Haircut_LED.ino | |
| Description: Flashes an LED in the pattern of the tune "Shave and a Haircut" when Gemma v3 is powered on. | |
| Author: Adge Denkers / github.com/adgedenkers/ | |
| Created: October 22, 2023 | |
| Updated: October 22, 2023 | |
| (C) 2023 denkers.co | |
| */ | |
| void setup() { |
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
| ''' | |
| File: make__dim_date.py | |
| Project: fz_tools | |
| Created Date: 2023-10-13 | |
| Author: Adge Denkers | |
| Email: @adgedenkers | |
| ----- | |
| Last Modified: 2023-10-28 | |
| Modified By: Adge Denkers | |
| Email: @adgedenkers |
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
| # adge's special stuff | |
| setup*.py | |
| *setup.py | |
| secrets.py | |
| # Byte-compiled / optimized / DLL files | |
| __pycache__/ | |
| *.py[cod] | |
| *$py.class |
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
| <# | |
| Project: powershell_dev | |
| File: get_latest_python_for_windows.ps1 | |
| Author: Adge Denkers | |
| License: MIT License | |
| #> | |
| # Define the root and downloads URLs | |
| $rootUrl = "https://python.org" | |
| $downloadsUrl = "$rootUrl/downloads/windows/" |
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
| import requests | |
| from bs4 import BeautifulSoup | |
| import webbrowser | |
| def find_and_open_stable_release_link(): | |
| """Find the first stable release link on the Python downloads page for Windows | |
| and open it in the default web browser. | |
| """ | |
| # Define the root and downloads URLs |
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
| import math | |
| def password_security(password): | |
| # The number of possible characters in the password. | |
| # This is roughly the number of printable ASCII characters. | |
| N = 95 | |
| # The length of the password. | |
| L = len(password) |
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
| import pyodbc | |
| import pandas as pd | |
| import numpy as np | |
| from datetime import timedelta, date | |
| from holidays import UnitedStates | |
| # Function to generate date range | |
| def daterange(start_date, end_date): | |
| for n in range(int((end_date - start_date).days) + 1): | |
| yield start_date + timedelta(n) |