Skip to content

Instantly share code, notes, and snippets.

View IllustratedMan-code's full-sized avatar

David Lewis IllustratedMan-code

View GitHub Profile
@IllustratedMan-code
IllustratedMan-code / main.rs
Created August 3, 2021 19:07
Rust gtk4 hello world
use gtk4::prelude::*;
use gtk4::{
Application, ApplicationWindow, Button, DrawingArea, EventControllerKey, EventControllerMotion,
Inhibit,
};
fn main() {
let app = Application::builder()
.application_id("org.example.HelloWorld")
.build();
@IllustratedMan-code
IllustratedMan-code / gist:a28be16b63f121e2e87d0b08dde66b53
Created August 21, 2020 13:18
West build fail (west build --pristine --board native_posix)
-- west build: generating a build system
CMake Error at cmake/zmk_config.cmake:142 (message):
Failed to locate keymap file!
Call Stack (most recent call first):
CMakeLists.txt:15 (include)
-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: /usr/bin/cmake -B/home/david/zmk/app/build -S/home/david/zmk/app -GNinja -DBOARD=native_posix