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
{ | |
"games": [ | |
{ | |
"UID": "11394232@www.lwhs.org", | |
"DTSTAMP": "20240417T181959Z", | |
"DTSTART": "20240417T160000", | |
"SUMMARY": "Swimming Varsity Coed vs. International High School, San Francisco University High School (Home)", | |
"DESCRIPTION": "", | |
"LOCATION": "CCSF Swimming Pool", | |
"PRIORITY": "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
{ | |
"games": [ | |
{ | |
"UID": "11394232@www.lwhs.org", | |
"DTSTAMP": "20240417T181959Z", | |
"DTSTART": "20240417T160000", | |
"SUMMARY": "Swimming Varsity Coed vs. International High School, San Francisco University High School (Home)", | |
"DESCRIPTION": "", | |
"LOCATION": "CCSF Swimming Pool", | |
"PRIORITY": "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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://www.gstatic.com/firebasejs/8.0.0/firebase-app.js"></script> | |
<script src="https://www.gstatic.com/firebasejs/8.0.0/firebase-auth.js"></script> | |
<script src="https://www.gstatic.com/firebasejs/8.0.0/firebase-database.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.4.0/p5.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.4.0/addons/p5.sound.min.js"></script> | |
<script> |
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
//google login process variables | |
let signInButton, logoutButton, commentInput, saveCommentButton; | |
let userName = ""; | |
// Variables to manage button positions and sizes dynamically -- adapted from AJ's original buttons | |
let buttonX1, buttonX2, buttonX3, buttonY, buttonW, buttonH; | |
// Variables for dynamic layout in the favorite teams display -- adapted from Andy's original buttons |
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
let TutorialButton; | |
let PatternsButton; | |
let GalleryButton; | |
let img; | |
let tutorialLink; | |
function preload() { | |
img = loadImage('App_Idea.jpg'); | |
} |
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
var express = require ('express'); | |
const PORT = process.env.PORT || 3000; | |
var app = express(); | |
var server = app.listen(PORT, () => console.log(`Listening on ${PORT}`)); | |
app.use(express.static('public')); | |
console.log("my socket server is running"); |
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 pulseio | |
import time | |
pulses = pulseio.PulseIn(board.A0, maxlen=200, idle_state=True) | |
lightCounter = 0 | |
while 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
import serial | |
uart = serial.Serial("/dev/serial0", baudrate=19200, timeout = 3000) | |
import firebase_admin | |
from firebase_admin import credentials | |
from firebase_admin import db | |
import adafruit_thermal_printer | |
ThermalPrinter = adafruit_thermal_printer.get_printer_class(2.69) |
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 time | |
import analogio | |
import board | |
import neopixel | |
import math | |
dial_pin = board.A2 #pin 0 is Analog input 2 | |
dial = analogio.AnalogIn(dial_pin) |
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 time | |
import board | |
import neopixel | |
pixel_pin = board.D2 | |
num_pixels = 16 | |
pixels = neopixel.NeoPixel(pixel_pin, num_pixels, brightness=0.1, auto_write=False) | |
RED = (255, 0, 0) |
NewerOlder