Based on the Gherkin http://www.40percent.club/2016/11/gherkin.html, but not identical to it. https://github.com/sowbug/keycad
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"name": "68keys.io", | |
"author": "http://www.keyboard-layout-editor.com/#/gists/8542d095e53598ad03505703374c78e6" | |
}, | |
[ | |
"~\n`", | |
"!\n1", | |
"@\n2", | |
"#\n3", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env python3 | |
TOSSUP = [ | |
'GA', # Georgia, 16 | |
'NC', # North Carolina, 15 | |
] | |
DEM_NARROW = [ | |
'AZ', # Arizona, 11 | |
'ME', # Maine Popular Vote, 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For Heltec Wifi Kit 8 | |
// Code stolen/adapted from many sources | |
#include <U8g2lib.h> | |
#include <ArduinoJson.h> | |
#include <ESP8266WiFi.h> | |
#include <WiFiClientSecure.h> | |
#include <ESP8266HTTPClient.h> | |
U8G2_SSD1306_128X32_UNIVISION_F_HW_I2C u8g2(U8G2_R0, /* reset=*/ 16, /* clock=*/ 5, /* data=*/ 4); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Given a bunch of MP3 files in directories, | |
# copies them into a file tree that is | |
# compatible with DFPlayer. | |
import os | |
import shutil | |
src_dir = './sfx' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import random | |
CONCEPTS = [ | |
'baby', | |
'bacon', | |
'cabbage', | |
'cat', | |
'cauldron', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use iced::Sandbox; | |
use iced::{button, Alignment, Button, Column, Container, Element, Settings, Text}; | |
use std::cell::RefCell; | |
use std::rc::Rc; | |
pub fn main() -> iced::Result { | |
Counter::run(Settings::default()) | |
} | |
#[derive(Debug, Default)] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ diff ../iced/examples/counter/src/main.rs src/main.rs | |
1,3c1,4 | |
< use iced::{ | |
< button, Alignment, Button, Column, Element, Sandbox, Settings, Text, | |
< }; | |
--- | |
> use iced::Sandbox; | |
> use iced::{button, Alignment, Button, Column, Container, Element, Settings, Text}; | |
> use std::cell::RefCell; | |
> use std::rc::Rc; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use iced::Sandbox; | |
use iced::{button, Alignment, Button, Column, Container, Element, Settings, Text}; | |
use std::cell::RefCell; | |
use std::rc::{Rc, Weak}; | |
pub fn main() -> iced::Result { | |
Counter::run(Settings::default()) | |
} | |
#[derive(Debug, Clone, Copy)] |