Skip to content

Instantly share code, notes, and snippets.

View fearofcode's full-sized avatar
🎵
Take that chance / All day long / Fucking up so fucking strong

Warren Henning fearofcode

🎵
Take that chance / All day long / Fucking up so fucking strong
View GitHub Profile
@fearofcode
fearofcode / pollkeys.cpp
Created May 17, 2024 01:24 — forked from lierdakil/pollkeys.cpp
Linux polling all key event devices for key presses (minimalist example)
// Note: uses C++17 fs features; build with
// g++ -std=c++17 event-reader.cpp -lstdc++fs
//
// Licensed under the following terms:
// DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
// Version 2, December 2004
//
// Copyright (C) 2004 Sam Hocevar <[email protected]>
//
// Everyone is permitted to copy and distribute verbatim or modified
@fearofcode
fearofcode / sl.sh
Created October 7, 2013 23:32 — forked from ieure/sl.sh
#! /bin/bash
IFS="
"
echo
for FRAME in \
"B :^)" \
" B :^)" \
" B :^)" \
" B :^)" \