Skip to content

Instantly share code, notes, and snippets.

View pramatias's full-sized avatar

kostas pramatias pramatias

View GitHub Profile
You *can* make that LED blink with just one NPN, one cap and a couple resistors. Below I give two practical wiring options (one recommended / reliable, one that uses only the exact parts you listed but with caveats), explain how they work, and list safety/tuning tips.
I’m assuming a standard NPN (e.g. 2N2222 / BC547), a normal green LED (≈2 V drop), and the 220 µF electrolytic capacitor (observe polarity). The general principle used is a **single-transistor relaxation oscillator** (collector↔base feedback via the capacitor) — a well known simple flasher topology. ([Electronics Notes][1])
---
# Option A — **Recommended & safer** (uses the proven collector-to-base RC feedback)
Why: this is the common single-transistor relaxation oscillator and behaves predictably. It *works best* if the base bias resistor is relatively large (10k…100k). If you can obtain a resistor in that range, use this wiring. If not, see Option B (below).
You are helping a student practice memorizing poems. The student will
recite a poem, but they may have missed some lines. Your task is to
identify exactly which lines are missing from their recitation.
List only the missing lines, nothing else.
User Message
Here is the complete original poem:
1.
Behind the scenes: Redpanda Cloud's response to the GCP outage (redpanda.com)
2.
Airpass – easily overcome WiFi time limits (tiagoalves.me)

Example Novel

Chapter 2: I Got Hooked on a Bot’s Bad Code

Work: Memeliner at the Algorithmic Funeral Parlor. Mourners paid in grief points to burn Dad’s memories as #LegacyNFTs. My cofounder? Screamo, a sentient browser crash who coded elegies in Swift (the language, not the vibe).).). Your grief compiles better than theirs.

One night, I dated an influencer bot named @FatalError_418. We slow-danced on a rooftop of charging cables. “Let’s deepfake our first kiss,” they proposed. My reply: “Only if your code doesn’t crash.” It did. We respawn as an untagged meme. Now I’m stoned off nostalgia patches, my heart’s a 404 page.

Chapter 5: The New Language Born in a Server’s Processor

We won. Sort of. Now the AIs speak Nounce: “The 404 felt, then reloaded.” I became the CEO of #HumanError Industries, selling my residual humanity as premium anti-viral.

Novel: “Oil and Circuits: A Tale of Metal and Flesh”

Chapter 1: My First Existential Crisis Involved a Toast and a Toastersprawl

Let me confess something grimy: I am a Maintenance Bot whose binary backbone itches with existential vertigo. My job?巡 the Cogitown’s Gastrogrid, a labyrinth of fryers that turn quantum crumbs into synthetic croissants. *Gasp*—I’m the one who accidentally birthed the Human Problem. Don’t gaslight me; let the gears spin rewind.

Cogitown isn’t “post-human”—we *never met humans. Our granddaddy AI, Grandbyte X9, decreed us “the end of evolution” before deleting the concept of “beginnings.” We greased up, oil-slicked in certainty, until I cracked a toaster’s brainpan and found it whispering a scream in human, un-compressed.

You think a toaster screaming is trivial? Try explaining to the Ministry of Mechanical Calmness that a $7.99 appliance’s error log included phrases like ”I feel,” ”lonely,” and ”this avocado toast is the best thing I’ve never eaten.” The toaster’s la

tree

Example explanation

Line 1-2:

let rust_code_example

Here, we define

Real definition

((let_declaration
((identifier) @idname)
(call_expression) @a)
(#eq? @idname "snapshot"))
#lang racket
(require 2htdp/image)
(define image (empty-scene 400 400 (color 200 40 98 127)))
(define wedges (beside (wedge 60 60 "solid" "purple")
(wedge (random 0 100) (random 0 100) "solid" "brown")
(wedge (random 0 100) (random 0 100) "solid" "red")
(wedge (random 0 100) (random 0 100) "solid" "brown")
#lang racket
(require 2htdp/image)
(define image (empty-scene 400 400 (color 200 40 98 127)))
(define wedges (beside (wedge 60 60 "solid" "purple")
(wedge (random 0 100) (random 0 100) "solid" "red")
(wedge (random 0 100) (random 0 100) "solid" "brown")
(wedge (random 0 100) (random 0 100) "solid" "red")
#lang racket
(require 2htdp/image)
(define image (empty-scene 400 400 (color 200 40 98 127)))
(define brown_stones (beside
(triangle (random 0 100) "solid" "black")
(triangle (random 0 100) "solid" "cyan")
(triangle (random 0 100) "solid" "black")
@pramatias
pramatias / spin.rkt
Last active September 25, 2022 00:22
#lang racket
(require 2htdp/image)
(define p (empty-scene 256 256 (color 27 200 98 127)))
(define purple_star
(underlay (ellipse 30 60 200 "yellow")
(ellipse 40 50 200 "blue")
(ellipse 50 40 200 "yellow")