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
"""This code is based on the Jack-o'-Lantern flame example for Adafruit Circuit Playground Express""" | |
""" Modified by Evan Weinberg to flicker a bright white light value for a stick of 8 Neopixels | |
import math | |
import board | |
import neopixel | |
try: | |
import urandom as random # for v1.0 API support | |
except ImportError: | |
import random |
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 board | |
import analogio | |
import digitalio | |
import time | |
buttonA = digitalio.DigitalInOut(board.BUTTON_A) | |
buttonA.switch_to_input(pull=digitalio.Pull.DOWN) | |
buttonB = digitalio.DigitalInOut(board.BUTTON_B) |
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 board | |
from adafruit_circuitplayground import cp | |
import digitalio | |
from analogio import AnalogIn | |
inputPin = cp.light | |
THRESHOLD = 2000 |
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 board | |
import digitalio | |
import time | |
from adafruit_clue import clue | |
import neopixel | |
start_time = time.monotonic() |
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
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries | |
# SPDX-License-Identifier: MIT | |
import time | |
from random import randint | |
import ssl | |
import socketpool | |
import wifi | |
import board | |
import adafruit_minimqtt.adafruit_minimqtt as MQTT |
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
I am attesting that this GitHub handle Emwdx is linked to the Tezos account tz2MzmeTaiFwo1nAX9XeZi9XVFXhjPUZ5oZx for tzprofiles | |
sig:spsig18EMkDznNBBmN5ZZi3YEF8rrwbNAibKnHiJLXzn4V76XzSccG82m1beEbvKPdMLERNVV9Pn1H8K4N4RrqWQhVzTVqdgX7Y |
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
// Out of Office Autoreply - Google Script code by Evan Weinberg (Twitter: @emwdx) | |
// This code was based on the code for the google script autoreply post here on stack overflow: https://stackoverflow.com/questions/38955161/google-gmail-script-time-auto-reply | |
// Define the variables we want to be available over our entire program here: | |
var interval; | |
var daysOff; | |
var weekdayMessageDays; | |
var workingHours; | |
function setGlobalVariables(){ |
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
// Out of Office Autoreply - Google Script code by Evan Weinberg (Twitter: @emwdx) | |
// This code was based on the code for the google script autoreply post here on stack overflow: https://stackoverflow.com/questions/38955161/google-gmail-script-time-auto-reply | |
function autoReply() { | |
var interval = 5; // Set to the number of minutes between runs of this script. You set this also in the trigger settings through the stop-watch tab. | |
var daysOff = [0,6] | |
var weekdayMessageDays = [1, 2, 3, 4, 5] // 1=Mo, 2=Tu, 3=We, 4=Th, 5=Fr, 6=Sa, 0=Su | |
var workingHours = [8,17]; // 0-24 |
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
//Put the store numbers for stores near you in this list | |
var nearbyStores = [3041,3163,7939,3131,3043,3011,2665,2654,4071,2640,3157,2665,3486] | |
var dataURLs = []; | |
var responseURLS = []; | |
var response; | |
for(var i = 0;i<nearbyStores.length;i++){ | |
var dataURL = "https://www.riteaid.com/services/ext/v2/vaccine/checkSlots?storeNumber=" + nearbyStores[i]; | |
dataURLs.push(dataURL) |
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
var nameElements = $('.student-name').toArray(); | |
var assignmentElements = $('var').toArray(); | |
var names = []; | |
var assignments = []; | |
var assignmentNumber; | |
assignmentElements.forEach(function(name,index){ | |
assignments.push(name.innerHTML) |
NewerOlder