Skip to content

Instantly share code, notes, and snippets.

View kbseah's full-sized avatar
🔠
farewell etaoin shrdlu

Brandon Seah kbseah

🔠
farewell etaoin shrdlu
View GitHub Profile
@kbseah
kbseah / keybase.md
Created July 18, 2023 19:49
Keybase proof

Keybase proof

I hereby claim:

  • I am kbseah on github.
  • I am kbseah (https://keybase.io/kbseah) on keybase.
  • I have a public key ASB-MYQvJhi_d7XjzpMaA34DUOYW-I0xJ7cQg7Yi82K4mQo

To claim this, I am signing this object:

@kbseah
kbseah / screen.md
Last active December 13, 2022 10:13 — forked from fredrick/screen.md
GNU Screen Cheat Sheet

GNU Screen Cheat Sheet

Basics

  • ctrl a c -> create new window
  • ctrl a A -> set window name
  • ctrl a w -> show all window
  • ctrl a 1|2|3|… -> switch to window n
  • ctrl a " -> choose window from menu
  • ctrl a ' -> choose window by number
  • ctrl a ctrl a -> switch between window
@kbseah
kbseah / solve_spelling_bee.py
Created April 10, 2020 04:15
Solver for the NY Times Spelling Bee game (https://www.nytimes.com/puzzles/spelling-bee), when you just need ONE MORE WORD ARGHGHG
#!/usr/bin/env python3
dict = "/usr/share/dict/web2" # default path in Mac OS X
key = "H" # the letter that must be in the word
allowed = "CEKLMO" # other allowed letters
min = 4
with open(dict, "r") as fh:
for word in fh:
word = word.rstrip().upper()
@kbseah
kbseah / README.md
Last active January 11, 2017 19:05
Pulfrich effect - Animated explanation

Pulfrich effect - Animated explanation

The Pulfrich effect is an optical illusion where objects moving in a single plane also appear to have depth, because the processing of the visual signal in one eye is delayed, e.g. by holding a filter in front of one eye to dim the light reaching that eye but not the other.

See my other Gist for more info.

What this animation shows

This animation illustrates how the time delay in one eye leads to the stereoscopic effect. This diagram shows the view from above looking vertically down at a viewer facing a pendulum (or a display screen) oscillating within the (flat) plane of motion.

@kbseah
kbseah / README.md
Last active July 24, 2020 21:13
Pulfrich effect - Moving scenery

Pulfrich effect - Moving scenery demo

The Pulfrich effect is an optical illusion where objects moving in a single plane also appear to have depth, because the processing of the visual signal in one eye is delayed, e.g. by holding a filter in front of one eye to dim the light reaching that eye but not the other.

To view the animation you'll need to make such a filter. One simple method is to take a cheap pair of sunglasses and pop the lens out of one side.

What also works, but not so well, is to fan out the fingers of one hand in front of one eye and rapidly wave the hand up and down to occlude the image with a "strobe" effect.

What to expect

@kbseah
kbseah / README.md
Last active January 10, 2017 08:29
Pulfrich effect - Pendulum demo

Pulfrich effect - Pendulum demo

The Pulfrich effect is an optical illusion where objects moving in a single plane also appear to have depth, because the processing of the visual signal in one eye is delayed, e.g. by holding a filter in front of one eye to dim the light reaching that eye but not the other.

To view the animation you'll need to make such a filter. One simple method is to take a cheap pair of sunglasses and pop the lens out of one side.

What also works, but not so well, is to fan out the fingers of one hand in front of one eye and rapidly wave the hand up and down to occlude the image with a "strobe" effect.

What to expect