Skip to content

Instantly share code, notes, and snippets.

@thedod
thedod / README.md
Last active May 10, 2024 15:23
16x2 LCD thermometer with S/M/H history graphs
@thedod
thedod / lcd_truck_lane.pde
Created November 25, 2010 11:54
Simple Arduino car game for a 16x2 LCD display (Hitachi HD44780 or clone)
/* Simple Car game for a 16x2 LCD display
You can use any Hitachi HD44780 compatible LCD.
Wiring explained at http://www.arduino.cc/en/Tutorial/LiquidCrystal
(I used theLCD Electronic Brick on bus 1:
rs on pin 2, rw on pin 3, enable on pin 4,
data on pins 5,6,7,8)
There's also a "steering wheel" potentiometer on analog input 1,
and a Piezo speaker on pin 9 (PWM).
Enjoy,
@thedod
thedod / index.pug
Created August 29, 2023 14:23
Retro pre code console styling
pre.i-has-teh-code
| $: > Booting systems...
| $: > Total memory found: 256kb
| $: > Scanning for bootable media ■■■■■■■■■■■ 100%
| $: > No media found. Booting from network address 3E:40:9C:75
| $: > Loading BIOS 2.3 ■■■■■■■■■■■ 100%
| $: > Reticulating splines ■■■■■■■■■■■ 100%
| $: > Booting console ■■■■■■■■■■■ 100%
| $:
| $: > Welcome to the retro console version 0.1a
@thedod
thedod / README.md
Last active May 2, 2023 14:02
Quick workaround for a flask-bootstrap navbar with items at the right side

A quick workaround for a flask-bootstrap navbar with items at the right side, as requested at #126.

Bonus: ability to change navbar's style (navbar navbar-inverse in the example).

  • copy the flask-bootstrap sample app to a folder.
  • overwrite nav.py, __init__.py, and frontend.py with the files here.
@thedod
thedod / README.md
Last active May 18, 2022 04:53
WiFi QR code generation shell script

#Shelter1001's interactive [zenity] shell script for wifi qr-code generation.

Supports WPA [recommended] and open [sometimes useful] networks [no WEP support because duh].

Based on this [WPA only] commandlinefu.

party on, Garth

@thedod
thedod / README.md
Last active April 17, 2022 22:30
White House petition sigs by state
@thedod
thedod / README.md
Last active March 1, 2022 04:13
Gotcha - Simple Arduiono alarm system with "dead man switch" support

Lately, somebody started stealing from us. Took us time to figure it out. At first we thought things got lost. When they took a gas tank, it became obvious ;). As far as I know, it ain't over and it's no game. It's a lousy perimeter to defend, especially for old hippies who moved to the land of smiles because they got tired of saying "perimeter"[1].

But enough about me

This is a generic Arduino sketch that lets you whip up a simple and friendly alarm system from whatever sensors and controllers you've got lying around in cat-infested shoe boxes.

  • A sensor (PIR motion detector, magnetic door switch, weight sensor, etc.).
  • A controller (hidden button, keypad, RFID reader, etc.) to temporarily disable ("chill") the system.
  • A noisy device (buzzer, ghetto-blaster, tennis ball cannon aimed at a gong, GSM modem for sending SMS, etc.).
  • A LED.
@thedod
thedod / README.md
Last active December 23, 2021 22:51
C3po bootstrap theme. Based on Cyborg, a bit more golden.
@thedod
thedod / README.md
Last active December 23, 2021 22:51
Golden slate - golden variation on http://bootswatch.com/slate/
@thedod
thedod / .gitignore
Last active December 22, 2021 23:38
Hyde Park - githubless gh-pages with gitolite
config.py
env-*
*.pyc