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 the library that allows us to logically access the GPIO pins | |
| # refer to the library as GPIO, it is like an alias | |
| import RPi.GPIO as GPIO | |
| import time | |
| # use the BCIM numbering scheme | |
| GPIO.setmode(GPIO.BCM) | |
| # set pin 18 to be in output mode | |
| GPIO.setup(18, GPIO.OUT) |
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
| echo "commit,reverted" && git log -600 | grep -B 8 'This reverts commit' | awk '/commit/ {if($1 == "This") { printf "%s %s\n", substr($4, 0, length($4) - 1), nextline } else { printf "%s, ", $2 }; }' |
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 os | |
| import time | |
| from datetime import datetime, timedelta | |
| from dotenv import load_dotenv, find_dotenv | |
| from urllib.request import urlopen | |
| from concurrent.futures import ThreadPoolExecutor, wait | |
| def main(): | |
| print("running!") | |
| load_dotenv(find_dotenv()) |
OlderNewer