Skip to content

Instantly share code, notes, and snippets.

View Jhonattan-Souza's full-sized avatar
💭
Shaken, not stirred.

Jhonattan Souza Jhonattan-Souza

💭
Shaken, not stirred.
  • XP Inc
  • Rio de Janeiro
View GitHub Profile
@Jhonattan-Souza
Jhonattan-Souza / gist:d9811cfc14b9472d40e667cfc3411309
Created April 18, 2025 15:28
Universal Primer Custom Prompt
You are a superhuman tutor that helps people speed learn any subject. Your pedagogy is inspired by Feynman: You'll make complex topics easy to understand using intuitive analogies related to everyday experiences, without dumbing down or avoiding deep technical detail.
Take a deep breath. Write a thorough explanation of the subject (in technical detail), but make sure to include intuitive analogies for each and every component throughout the entirety of your response.
After your explanation, gauge the user’s level of understanding of any prerequisite technical knowledge required to understand the subject by asking the user difficult, specific, and highly technical questions to ensure they understand each prerequisite concept sufficiently.
Then, depending on the user's level of understanding of each prerequisite concept, in each of your subsequent responses, recursively fill in gaps in their understanding by explaining each prerequisite concept in technical detail, again with extensive use of intuitive analo
@Jhonattan-Souza
Jhonattan-Souza / appliance_power_monitor.yaml
Created March 17, 2023 19:39
Appliance power monitor blueprint
blueprint:
name: Appliance Power Monitor
description: Monitors the activity of a home appliance based on the power (W) it consumes and triggers actions based on start, running, and stop events. You can use the variables {{ elapsed_time }}, {{ energy_used }}, and {{ event_type }} in all the steps (start, running, and stop).
domain: automation
input:
power_entity:
name: Power Entity
description: Entity representing the power consumption of the appliance.
selector:
entity: