Skip to content

Instantly share code, notes, and snippets.

View sowbug's full-sized avatar

Mike Tsao sowbug

View GitHub Profile
@sowbug
sowbug / 538.py
Last active November 4, 2020 06:40
Make it easier for Python programmers to create FiveThirtyEight simulations on November 3, 2020
#!/bin/env python3
TOSSUP = [
'GA', # Georgia, 16
'NC', # North Carolina, 15
]
DEM_NARROW = [
'AZ', # Arizona, 11
'ME', # Maine Popular Vote, 2
[
{
"name": "68keys.io",
"author": "http://www.keyboard-layout-editor.com/#/gists/8542d095e53598ad03505703374c78e6"
},
[
"~\n`",
"!\n1",
"@\n2",
"#\n3",
$ rm -rf build
miket@snack-pipe:~/src/stm32f103-keyboard-bootloader$ mkdir build
miket@snack-pipe:~/src/stm32f103-keyboard-bootloader$ cd build
miket@snack-pipe:~/src/stm32f103-keyboard-bootloader/build$ cmake -DCMAKE_TOOLCHAIN_FILE=../toolchain/clang.cmake ..
-- The C compiler identification is Clang 6.0.0
-- The ASM compiler identification is Clang
-- Found assembler: /usr/bin/clang
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Detecting C compile features
@sowbug
sowbug / Number-Pad.notes.md
Last active March 9, 2020 04:19
Number Pad

Slightly modified version of the default layout on keyboard-layout-editor.com

@sowbug
sowbug / Preonic.notes.md
Last active March 9, 2020 04:20
Preonic

Adaptation of olkb.com/preonic

@sowbug
sowbug / Gherkin.notes.md
Last active March 9, 2020 04:20
Gherkin
@sowbug
sowbug / Default-60.notes.md
Last active March 9, 2020 04:20
Default 60

Slightly modified version of the "Default 60%" layout on keyboard-layout-editor.com

@sowbug
sowbug / 68keys-io.json
Last active April 19, 2020 19:54
68Keys.io
[
{
"name": "68keys.io",
"author": "http://www.keyboard-layout-editor.com/#/gists/c54cd8748fd7b0b7151c80b8652e189b",
"notes": "A 68-key layout resembling the Magicforce 68, but with the upper-left key dedicated to ` and ~, and the Insert key on the upper-right quartet replaced with Escape."
},
[
"~\n`",
"!\n1",
"@\n2",
[
{
"name": "TADA68",
"author": "http://www.keyboard-layout-editor.com/#/gists/600a91a68a43f54e752ae80c8caed003"
},
[
"Esc",
"!\n1",
"@\n2",
"#\n3",