Skip to content

Instantly share code, notes, and snippets.

@ladyada
ladyada / code.py
Created November 9, 2020 01:11
CircuitPython Countdown for MagTag Demo
import sys
import time
import board
import wifi
import socketpool
import adafruit_requests
import ssl
import rtc
import displayio
import terminalio
@danwalkeruk
danwalkeruk / reddit-feed.py
Last active March 23, 2023 18:22
Script to post new subreddit posts to a Discord channel via webhook
# reddit-feed.py - posts new subreddit posts to a Discord channel via webhook
# author: Dan Walker
# email: code@danwalker.com
# url: https://danwalker.netlify.app/python-discord-reddit-feed/
# created: 2020-08-13
import requests
import json
import time
from discord_webhook import DiscordWebhook, DiscordEmbed