Skip to content

Instantly share code, notes, and snippets.

View joeycastillo's full-sized avatar

Joey Castillo joeycastillo

View GitHub Profile
Loading
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
@joeycastillo
joeycastillo / e-m-forster-the-machine-stops.txt
Created November 3, 2022 15:33
The Machine Stops (1909) by E. M. Forster
---
TITL: The Machine Stops
AUTH: E. M. Forster
DESC: In a distant future humans live in single cells underground, connected via a communications network which, despite being first published in 1909, strikingly predicts social networking, video and conference calls, and the reduction of human interaction to screens and immobility.
GNRE: Science Fiction
LANG: en
---
THE MACHINE STOPS
The Machine Stops
by E. M. Forster
@joeycastillo
joeycastillo / bluemarble.py
Created September 29, 2022 02:48
Python script to convert GOES-East imagery to 7-color e-paper bitmap
# Based on Waveshare's epd5in65f.py demo. Copyright notice at end.
import sys
import os
libdir = os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), 'lib')
if os.path.exists(libdir):
sys.path.append(libdir)
import logging
@joeycastillo
joeycastillo / main.c
Created September 19, 2022 03:24
Low power test for Feather M0
// MIT license, Joey Castillo 2022
// works with Alex Taradov's bare metal SAM D21 project:
// https://github.com/ataradov/mcu-starter-projects
//-----------------------------------------------------------------------------
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include "samd21.h"

Sensor Watch: Quick Start Guide

The Sensor Watch circuit board is designed to fit in a Casio F-91W or A158 wristwatch. Note that it will not work with counterfeits! You need a genuine Casio F-91W wristwatch to serve as the donor watch for this board swap.

Tools

At a minimum, you will need a small Phillips screwdriver to perform this board swap. Tweezers can also help. Optionally, you may use a soldering iron to remove a small metal tab from the original F-91W circuit board, and solder it to the Sensor Watch board. This modification is necessary to get the buzzer to beep. Note that if you don’t do this swap, Sensor Watch will still work the same, with the exception that the buzzer will not sound.

You can view a video of the full board swap procedure here:

Sensor Watch: Kurzanleitung

Die Platine «Sensor Watch» ist so konzipiert, dass sie in eine Casio F-91W oder A158 Armbanduhr passt. Beachten Sie, dass es nicht mit Fälschungen funktioniert! Sie benötigen eine echte Casio F-91W Armbanduhr als Spenderuhr für diesen Platinentausch.

Werkzeug

Sie benötigen mindestens einen kleinen Kreuzschlitzschraubendreher, um diesen Platinentausch durchzuführen. Pinzette hilft auch.

Optional können Sie mit einem Lötkolben eine kleine Metalllasche von der Originalplatine des F-91W entfernen und auf die Platine «Sensor Watch» löten. Diese Änderung ist notwendig, damit der Summer piept. Beachten Sie, dass «Sensor Watch» mit Ausnahme des Summers auch ohne diese Änderung funktioniert.

@joeycastillo
joeycastillo / Focus.cpp
Created June 20, 2022 22:37
A simple Focus-based app for tracking progress on projects
#include "Focus.h"
#include "Arduino.h"
#include <algorithm>
Task::Task() {
}
View::View(Rect rect) {
this->frame = rect;
this->window.reset();