Skip to content

Instantly share code, notes, and snippets.

@jaimemarijke
jaimemarijke / optionzero.py
Last active October 24, 2022 16:15
Option Zero
OPTIONS = [
“do nothing”,
“do something”,
“do everything”,
]
option_zero = OPTIONS[0] # do nothing

The goal of this document is to set down a shared set of guidelines for writing production code that we all agree to and attempt to follow.

It is a living document 🐢 that can and should change over time as we develop a sense of what it means to write code at Osmo! (Note: this is the final state of the document at Osmo, recorded for posterity as the company was pivoting.)

Code Style

Why do we need Code Style?

Any fool can write code that computers can understand. Good programmers write code that humans can understand. - Martin Fowler

@jaimemarijke
jaimemarijke / patch.diff
Created September 19, 2019 15:58
raspistill LED control patch.diff
diff --git a/buildme b/buildme
index cee90a6..c2f1b3a 100755
--- a/buildme
+++ b/buildme
@@ -25,7 +25,7 @@ if [ $ARCH = "armv6l" ] || [ $ARCH = "armv7l" ] || [ $ARCH = "aarch64" ]; then
if [ $ARCH = "armv6l" ]; then
make
else
- make -j4
+ make -j4 VERBOSE=True
@jaimemarijke
jaimemarijke / PiCamera prototyping (raspi).ipynb
Created November 16, 2018 01:47
PiCamera prototyping (raspi).ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.