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 adafruit_imageload | |
import audioio | |
import audiocore | |
import board | |
import busio | |
import digitalio | |
import displayio | |
import os | |
import random | |
import time |
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
# editorconfig.org | |
root = true | |
[*] | |
charset = utf-8 | |
end_of_line = lf | |
indent_size = 4 | |
indent_style = space | |
insert_final_newline = 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
# Country codes and their corresponding flag emoji and names for coffee producing countries | |
# Source: https://en.wikipedia.org/wiki/List_of_countries_by_coffee_production | |
ORIGINS = ( | |
('xx', '🇺🇳 Blend'), | |
('ao', '🇦🇴 Angola'), | |
('bo', '🇧🇴 Bolivia'), | |
('br', '🇧🇷 Brazil'), | |
('bi', '🇧🇮 Burundi'), | |
('cm', '🇨🇲 Cameroon'), |
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 board | |
import neopixel | |
import time | |
from adafruit_debouncer import Debouncer | |
from digitalio import DigitalInOut, Direction, Pull | |
from random import randint | |
# Built in red LED | |
led = DigitalInOut(board.D13) |
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
# Creates a template tag so you can use Markdown in textfields | |
# | |
# REQUIRES: | |
# - markdown 2 -- pip install markdown2 | |
# | |
# USAGE: | |
# - Create a folder in your app called "templatetags" | |
# - Save this file and an __init__.py in the folder | |
# - In your template, add "{% load markdown_tag %}" at top | |
# - {{ field|md }} will output escaped markup |