Skip to content

Instantly share code, notes, and snippets.

View chrismejia's full-sized avatar
🍕

Christian Mejia chrismejia

🍕
View GitHub Profile
@chrismejia
chrismejia / dictionary-of-halo-energy-sword-terms.md
Created October 8, 2026 22:40
Dictionary for the Halo Energy Sword guide

Dictionary for the Halo Energy Sword guide

Project

https://learn.adafruit.com/halo-energy-sword/code

The project’s basic flow is: write or open the sketch in Arduino IDE → compile and upload it to the Feather board → use the phone app over Bluetooth to control the NeoPixel LEDs. The sword’s Feather board runs the program and drives the LED strips inside the blades.

Programming and setup terms

@chrismejia
chrismejia / in-your-shell.sh
Last active June 20, 2023 15:39
Getting Slack to work on Ubuntu using Wayland
# Ubuntu is using Wayland for display and Wayland must not allow screensharing.
# You update the following config:
sudo nano /etc/gdm3/custom.conf
# ...and then UN-comment the line...
WaylandEnabled=false
# ...then save and exit
@chrismejia
chrismejia / ManyToManyRelationships.md
Created October 30, 2018 19:54 — forked from elliette/ManyToManyRelationships.md
Describing `belongsToMany` and `hasMany` methods in Sequelize

Defining Many-to-Many Associations in Sequelize

Reference: Sequelize docs on association

Let’s say we have two models: Films and Festivals

We know that a film can be shown at many film festivals and that, conversely, a festival can show many films. This is what is known as a many-to-many relationship.

Knowing this, we can set up our associations: