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 SwiftUI | |
struct StretchableHeader: View { | |
// total height of navigation bar and status bar | |
let navHeight: CGFloat = 88 | |
// initial image frame height | |
let imgHeight: CGFloat = 300 | |
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 SwiftUI | |
import Combine | |
class KeyboardInset: ObservableObject { | |
let notification = NotificationCenter.default | |
var safeAreaBottomInset = CGFloat() | |
@Published var bottom = CGFloat() |
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 time | |
import usb_midi | |
import adafruit_midi | |
from adafruit_midi.note_off import NoteOff | |
from adafruit_midi.note_on import NoteOn | |
from rgbkeypad import RGBKeypad | |
from random import randrange |
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 sys | |
import time | |
RED, GREEN, BOLD, RESET = "\033[1;91m", "\033[1;92m", "\033[1m", "\033[0m" | |
wind_height_limit = 5000 | |
wind_must_have_id = True | |
if __name__ == "__main__": | |
if len(sys.argv) > 1: |