Skip to content

Instantly share code, notes, and snippets.

View raindev's full-sized avatar

Andrew Barchuk raindev

View GitHub Profile
@raindev
raindev / slope_vs_starting.md
Created April 22, 2025 08:23 — forked from gtallen1187/slope_vs_starting.md
A little bit of slope makes up for a lot of y-intercept

"A little bit of slope makes up for a lot of y-intercept"

01/13/2012. From a lecture by Professor John Ousterhout at Stanford, class CS140

Here's today's thought for the weekend. A little bit of slope makes up for a lot of Y-intercept.

[Laughter]

@raindev
raindev / sleep-sim.py
Last active May 10, 2025 18:20
Deterministic Simulation Testing with Python async/await
import asyncio
from heapq import heappop, heappush
async def sweet_sleep(sleep):
await sleep(1)
return 'hey'
def main():
clock_ms = 0
time_ms = lambda: clock_ms