Skip to content

Instantly share code, notes, and snippets.

@vasanthk
vasanthk / System Design.md
Last active November 18, 2024 01:50
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@cmchap
cmchap / Raspberry_Pi_Water_Sensor
Last active May 28, 2024 12:55
Raspberry Pi Water Sensor - Incredibly vague schematic here: http://fritzing.org/projects/raspberry-pi-water-sensor/
#!/usr/bin/python
#########
# About #
#########
# This script uses a Raspberry Pi to sense for the presense or absense of water.
# If there is water, an email is sent and a buzzer goes off.
# When it's dry again, another email is sent, and the buzzer turns off.

For a fresh install of a Mac to my likings

get my passwords available

  • download and install dropbox
  • pause dropbox syncing (to allow faster downloads of other stuff)
  • download 1password app
  • download 1password agilekeychain and replace the un-synced one in my dropbox with it
  • start 1password and choose the correct keychain
@seancron
seancron / depthrange.py
Created December 28, 2010 06:08
kinect depth range filter
#My implementation:
for i in xrange(0, 480, 3):
for j in xrange(0, 640, 3):
if depth[i,j] > 900:
final[i,j] = depth[i,j]