Skip to content

Instantly share code, notes, and snippets.

View Cantido's full-sized avatar
🏳️‍⚧️
im gay

Rosa Richter Cantido

🏳️‍⚧️
im gay
View GitHub Profile
defmodule AwsResourceDetector do
@moduledoc """
Fetches data about the AWS environment the app is running in,
and provides that to OpenTelemetry.
Add this module to the `:opentelemetry` application configuration to run it.
Remember to keep the default detectors in place.
config :opentelemetry,
resource_detectors: [
@Cantido
Cantido / resume.json
Last active February 5, 2024 15:31
My Resume
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Rosa Richter",
"label": "Programmer",
"image": "",
"email": "cosmic.lady.rosa@gmail.com",
"phone": "+1 (314) 853-3675",
"url": "https://cosmicrose.srht.site",
"summary": "Rosa is an engineer; she solves practical problems. Her coworkers highlight her software knowledge as her biggest strength, and she's been told she's the nicest person folks have ever met. She loves to learn, to fix things, and to make things.",
@Cantido
Cantido / macro.js
Created November 6, 2023 23:28
FoundryVTT macro to distribute gold between players
let actors = canvas.tokens.controlled.map(({ actor }) => actor);
let actorCount = actors.length;
let actorIncrement = 0;
let randomActor = Math.floor(Math.random() * actorCount);
let winningActor = '';
let permissionCheck = false;
if (game.user.isGM == true || game.user.isTrusted == true) { permissionCheck = true; }
function awardCurrency(totalPP, totalGP, totalEP, totalSP, totalCP)
@Cantido
Cantido / glossary.md
Last active September 24, 2021 17:31
Bevy Notes

Bevy Glossary

Entity

A lightweight object that has Components attached to it to describe it. Using a Commands object received by a System, you can spawn a new entity by calling .spawn_bundle on it, which will return an EntityBuilder to allow you to attach components to it.

Component

@Cantido
Cantido / notes.md
Last active October 17, 2020 01:47
Event Sourcing Notes

Event Sourcing Thoughts

Balance between a lot and a little

It seems to me like the entirety of a program's logic can be incorporated in process managers and aggregates of a CQRS/ES system. On the other end of the spectrum, it seems like you can also decide to only emit commands to change a database, which otherwise you're reading from for your logic as usual, with a majority of program state not in aggregates or process managers.

@Cantido
Cantido / main.md
Last active July 25, 2018 15:28
Notes on Service Design
@Cantido
Cantido / cura-0.3mm.ini
Created May 3, 2018 18:17
Rough-draft quality Cura profile
[profile]
layer_height = 0.3
wall_thickness = 0.8
retraction_enable = True
solid_layer_thickness = 0.6
fill_density = 10
print_speed = 65
print_temperature = 190
print_temperature2 = 0
print_temperature3 = 0
@Cantido
Cantido / cura-0.1mm.ini
Last active May 20, 2018 02:47
My Cura slicer settings (Cura 15.04.6, for Octoprint)
[profile]
layer_height = 0.1
wall_thickness = 0.8
retraction_enable = True
solid_layer_thickness = 0.6
fill_density = 20
print_speed = 40
print_temperature = 190
print_temperature2 = 0
print_temperature3 = 0
@Cantido
Cantido / cura-repetier.rcp
Created April 11, 2018 03:12
My Repetier Cura slicer config
[print]
name = cura-repetier
defaultQuality = qMFVI6os8aZ0LPcdSMzMcMFTRMnGXJlJ
travelSpeedMin = 150
travelSpeedMax = 150
firstLayerSpeedMin = 30
firstLayerSpeedMax = 30
infillSpeedMin = 60
infillSpeedMax = 100
skinSpeedMin = 30
@Cantido
Cantido / alunar_m506.ini
Created April 11, 2018 01:25
CuraEngine slicer profile for the Alunar m506 3D printer
[profile]
layer_height = 0.2
wall_thickness = 1.0
retraction_enable = True
solid_layer_thickness = 0.6
fill_density = 20
print_speed = 50
print_temperature = 240
print_temperature2 = 0
print_temperature3 = 0