Skip to content

Instantly share code, notes, and snippets.

@lalunamel
lalunamel / graphql-spec-notes.md
Created May 26, 2024 13:11
Notes on my reading of the GraphQL spec
@lalunamel
lalunamel / how-to-learn-drumming.md
Last active May 8, 2024 15:51
How to learn drumming

https://www.rifton.com/resources/webinars/2018/progressive-gait-training

Also interesting: https://gmb.io/motor-learning/

Vocab

  • Discrete Skills - skills with a beginning and end - e.g. going from sitting to standing
  • Complex Skills - skills that combine many discrete skills - e.g. getting out of bed
  • Continuous Skills - skills that have no defined beginning or end - e.g. walking through a crowded cafeteria
  • Massed Practice - Practicing different skills for a long period of time without rest
  • Distributive Practice - Practicing different skills for short periods interspersed by rest
@lalunamel
lalunamel / how-does-reacts-act-work.md
Last active May 11, 2024 01:21
How does React's act work?

How does React's act work?

tl;dr: It wraps some work you'd like to do and waits for that work to complete before returning

Why do I get this error?

An update to Component inside a test was not wrapped in act(...).

tl;dr: A React component is updating (probably as a result of changing state, props, or hooks) but that update is not happening inside of something wrapped in act.

  • Implemented in ReactFiberWorkLoop
  • That error is produced when running react in a test environment (not sure how it knows this tbh) and actQueue is null (actQueue is set when act is called)
@lalunamel
lalunamel / gist:91c049e4168097e99b8f42726d0cc6fb
Created April 22, 2024 16:26
VSCode Extensions Made By Gusto Engineers
Please comment on the gist with a link to your extension!
@lalunamel
lalunamel / interview-tips.md
Created November 17, 2023 21:08
Interview Tips

Tips

  • set up a calendar or cal.com to head off back and forth about availability
  • have an updated resume immediately available you can send to anybody who asks
  • Learn the format for introduction emails where you are the common connection
  • Pass opportunities you find onto your network
  • Have an answer for when you're asked "So, tell me about yourself"
    • Your answer here will give the recruiter some more info on your past. It's also a simple ice breaker and good segue into the rest of the interview.
  • Have an answer for "So what are you looking for in your next role?"
    • Your answer to this question will help the company / recruiters tailor their pitch and win you. It will also help them understand what team or section of the business you'd work best in.
  • Have an answer for when you're asked "What drew you to apply to our company?"
@lalunamel
lalunamel / comfyui_custom_node_template.py
Last active November 13, 2023 13:59
ComfyUI custom node template
# ComfyUI custom node template
#
# Copy this template and paste it into a new file at ComfyUi/custom_nodes/RENAMEME_NODE_CLASS_NAME.py
# Rename each of the items that start with 'RENAMEME_' (including the file name)
#
# For more information on each of these fields, see the comments of the example_node.py inside of ComfyUI:
# https://github.com/comfyanonymous/ComfyUI/blob/master/custom_nodes/example_node.py.example
#
# Names
#
@lalunamel
lalunamel / image_sizer_node.py
Created October 31, 2023 00:17
A custom ComfyUI node to produce a width and height from a pixel density and aspect ratio
import math
class ImageSizer:
def __init__(self):
pass
@classmethod
def INPUT_TYPES(s):
return {
"required": {

Learning Python as a Ruby Developer

Contents

Lesson 1: Python Syntax and Semantics

  • Introduction to Python and its syntax
  • Differences between Ruby and Python syntax
  • Basic variable declaration, types, and operations in Python
  • Comparing data structures in Python and Ruby: Lists, Tuples, Dictionaries (HashMaps)
@lalunamel
lalunamel / gist:716de8bb16cbf1d942324fc2120931ee
Last active April 7, 2023 02:11
Understanding how XCode builds (llbuild)

Understanding how XCode builds

Raw notes are at the top

Human-readable blog post is in the middle

Raw Notes:

llbuild is the build system used by xcode and the swift package manager.

@lalunamel
lalunamel / possible-intro-to-testing.md
Created November 15, 2018 16:38
Possible Mobile Talk: Intro to Testing