This file contains 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 python3 | |
from atproto import Client, client_utils | |
import requests, argparse | |
import apis | |
accountname = apis.masto_account_name | |
accessToken = apis.masto_accessToken | |
bskyaccount = apis.bsky_account_name | |
bskypassword = apis.bsky_account_password |
This file contains 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
# SPDX-FileCopyrightText: 2021 Sandy Macdonald | |
# | |
# SPDX-License-Identifier: MIT | |
# A simple example of how to set up a keymap and HID keyboard on Keybow 2040. | |
# You'll need to connect Keybow 2040 to a computer, as you would with a regular | |
# USB keyboard. | |
# Drop the `pmk` folder |
This file contains 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 urequests as requests | |
import json | |
import network | |
import secrets | |
from picographics import PicoGraphics, DISPLAY_GALACTIC_UNICORN as DISPLAY | |
from galactic import GalacticUnicorn | |
import jpegdec, math, ntptime, time | |
import _thread | |
blink=0 |
This file contains 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
try: | |
import urequests as requests | |
except: | |
import requests | |
try: | |
import ujson as json | |
except: | |
import json |
This file contains 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 | |
import json | |
import time, argparse | |
import matplotlib.pyplot as py | |
from wordcloud import WordCloud,STOPWORDS | |
from PIL import Image | |
import numpy as np | |
parser = argparse.ArgumentParser() | |
parser.add_argument("-a", "--account", help="Handle to use", required=True) |
This file contains 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
# Based on | |
# Scroller Demo | |
# Kevin McAleer May 2022 | |
# Additional code by Vincent Willcox September 2022 | |
import network | |
import secrets | |
import time | |
import urequests | |
from scroller import Scroller |
This file contains 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 tweepy | |
import time | |
import matplotlib.pyplot as py | |
from wordcloud import WordCloud,STOPWORDS | |
from PIL import Image | |
import numpy as np | |
import argparse | |
parser = argparse.ArgumentParser() | |
parser.add_argument("-t", "--twittername", help="Twitter handle to use", required=True) |
This file contains 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 bs4 import BeautifulSoup | |
import requests | |
import re | |
headers = { | |
'User-Agent': 'your-user-agent-here' | |
} | |
class ReadRss: |
This file contains 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 subprocess | |
import json | |
import sys | |
import time | |
import pygame | |
import pygame.gfxdraw | |
import math | |
from pygame.locals import * | |
class Gauge: |
This file contains 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 subprocess | |
import json | |
import sys | |
import time | |
proc = subprocess.Popen(['/home/pi/speedtest -p -f json'], shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE) | |
for i in proc.stdout: | |
output = proc.stdout.readline() |
NewerOlder