Skip to content

Instantly share code, notes, and snippets.

View joeycastillo's full-sized avatar

Jose Castillo joeycastillo

  • New York, NY
View GitHub Profile
@joeycastillo
joeycastillo / README.md
Last active January 4, 2024 21:55
Techno-Pessimist Tech Club design files
@joeycastillo
joeycastillo / OSO-SWAT-B1-B_Cu.gbr
Last active August 3, 2023 16:34
Sensor Watch gerbers - second export
%TF.GenerationSoftware,KiCad,Pcbnew,7.0.1-0*%
%TF.CreationDate,2023-08-03T08:03:27-04:00*%
%TF.ProjectId,OSO-SWAT-B1,4f534f2d-5357-4415-942d-42312e6b6963,03*%
%TF.SameCoordinates,Original*%
%TF.FileFunction,Copper,L2,Bot*%
%TF.FilePolarity,Positive*%
%FSLAX46Y46*%
G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)*
G04 Created by KiCad (PCBNEW 7.0.1-0) date 2023-08-03 08:03:27*
%MOMM*%
@joeycastillo
joeycastillo / bookcase.scad
Created June 30, 2023 21:01
VERY WORK-IN-PROGRESS case for Open Book Abridged Edition
// Render front side
front = true;
// Render back side
back = true;
// level of detail
level_of_detail = 60;
// The thickness of the PCB as fabricated
@joeycastillo
joeycastillo / secrets.py
Created April 27, 2023 00:12
Typical secrets.py file for a CircuitPython project
secrets = {
"ssid" : "YOUR_WIFI_NETWORK",
"password" : "YOUR_WIFI_PASSWORD",
"aio_username" : "ADAFRUIT_IO_USERNAME",
"aio_key" : "ADAFRUIT_IO_KEY",
"timezone" : "America/Chicago", # http://worldtimeapi.org/timezones
}
@joeycastillo
joeycastillo / code.py
Created April 26, 2023 23:29
Low power Adafruit IO data logger with always-on LCD display
import board
import digitalio
import rtc
import time
import alarm
import ssl
import wifi
import socketpool
import adafruit_requests

Steps for replicating Learn Guide User Page save error

  1. Create a new user Page.
  2. Create a new code block and paste the contents of step1.py into it.
  3. Repeat for files step2.py through step5.py.

In three tests, twice I got the error trying to input step3.py, and once I got through step3 but started to get the error on step4.py.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@joeycastillo
joeycastillo / parser.py
Created November 18, 2022 16:47
Twitter Archive Parser, tweaked to generate a page for every tweet
#!/usr/bin/env python3
"""
twitter-archive-parser - Python code to parse a Twitter archive and output in various ways
Copyright (C) 2022 Tim Hutton
Tweaks copyright (C) 2022 Joey Castillo
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
@joeycastillo
joeycastillo / adafruit_il0398.mpy
Last active November 16, 2022 15:45
Show a 300x400 bitmap on the Open Book's display
@joeycastillo
joeycastillo / f-scott-fitzgerald_the-great-gatsby.txt
Created November 3, 2022 15:38
The Great Gatsby by F. Scott Fitzgerald
---
TITL: The Great Gatsby
AUTH: F. Scott Fitzgerald
DESC: The decadent and mysterious Jay Gatsby pursues the American Dream in Jazz Age New York.
GNRE: Fiction
LANG: en
---
Dedication
Once again
to