Skip to content

Instantly share code, notes, and snippets.

View shraiwi's full-sized avatar

shraiwi

  • Atlanta, GA
View GitHub Profile
@shraiwi
shraiwi / readme.md
Created August 14, 2024 20:45
SiMin

SiMin

A lightweight format for writing numbers using scientific notation.

I wrote this to make it easy to allow applications to accept values with units gracefully. Although many languages implement scientific notation, I never found it as ergonomic as just using SI prefixes. Would you rather a user input a unitless 1.024e+6 or 1_000KiB?

How does it work?

A SiMin number has three parts: a value, prefix, and unit. Let's look at an example:

tokenize('-120mT') === [ '-120', 'm', 'T' ]
@shraiwi
shraiwi / readme.md
Created December 2, 2022 03:10
How to access espefuse.py/esptool in PlatformIO

How to access espefuse.py/esptool in PlatformIO

  1. Run pio system info to get the python path, look for Python Executable
  2. Run {pio python executable} -m {esptool|espefuse} to get the tools running!
@shraiwi
shraiwi / keybase.md
Created December 13, 2021 16:35
Just some Keybase verification

Keybase proof

I hereby claim:

  • I am shraiwi on github.
  • I am shraiwi (https://keybase.io/shraiwi) on keybase.
  • I have a public key ASDz3OCMLhzeQVmRb5XN7e9WpTJBNA2-cWx6Rvc1uGZifAo

To claim this, I am signing this object:

@shraiwi
shraiwi / glossary.md
Created August 2, 2021 19:59
A simple reference glossary for computer vision terms I use in my code.

Computer Vision Glossary

Just a simple reference glossary for computer vision terms I use in my code

Abbreviation Definition
cam camera
cntr contour
desc descriptor
img image
kf keyframe
@shraiwi
shraiwi / cutting-pattern.svg
Last active May 28, 2021 23:58
Open Hardware Touchless Door Opener
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.