Skip to content

Instantly share code, notes, and snippets.

View germ's full-sized avatar

Jane germ

View GitHub Profile
int main(int argc, char *argv[]) {
if (argc == 1) return 0x0F;
if (argc == 2) return 0xFF;
return 0x00;
}
/* Good on you for modifying your layout! if you don't have
* time to read the QMK docs, a list of keycodes can be found at
*
* https://github.com/qmk/qmk_firmware/blob/master/docs/keycodes.md
*
* There's also a template for adding new layers at the bottom of this file!
*/
#include QMK_KEYBOARD_H
#include "g/keymap_combo.h"
package main
import (
"math/rand"
"time"
"fmt"
)
const charset = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
@germ
germ / germ-vim-helpers.def
Last active February 11, 2020 10:03
Code examples for combos.gboards.ca
// Vim-Mode combos
COMB(weEsc, KC_ESC, KC_W, KC_E)
COMB(sdBspc, KC_BSPC, KC_S, KC_D)
COMB(dfTab, KC_TAB, KC_D, KC_F)
COMB(cvEnt, KC_ENT, KC_C, KC_V)
COMB(uiEsc, KC_ESC, KC_U, KC_I)
COMB(jkCol, KC_COLN, KC_J, KC_K)
COMB(hnEnt, KC_ENT, KC_H, KC_N)
SUBS(pasta, "I'd just like to interject for a moment.", KC_H, KC_J, KC_K, KC_L)
#ifndef PREFIX // This could easily be macro'd
#define PREFIX KC_Z
#endif
SUBS(c1, "void *", PREFIX, KC_H)
SUBS(c2, "int ", PREFIX, KC_J)
SUBS(c3, "const", PREFIX, KC_K)
SUBS(c4, "};", PREFIX, KC_L)
...
#undef PREFIX
@germ
germ / GergoPlex-via.kbd.json
Last active January 31, 2020 06:06
GergoPlex-via
[
{
"name": "GergoPlex-via"
},
[
{
"x": 2
},
"2,0",
{
@germ
germ / config
Created September 16, 2019 11:30
# i3 config file (v4)
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
# Set mod key (Mod1=<Alt>, Mod4=<Super>)
set $mod Mod1
# set default desktop layout (default is tiling)
# workspace_layout tabbed <stacking|tabbed>
# Configure border style <normal|1pixel|pixel xx|none|pixel>
@germ
germ / ButterStick.kbd.json
Last active July 16, 2019 13:13
ButterStick
[
{
"name": "ButterStick"
},
[
{
"c": "#fafafa"
},
"1\n\n\n\n\n\n\n\n\nQ",
"2\n\n\n\n\n\n\n\n\nW",
#include "../../config.h"
#define FORCE_NKRO
@germ
germ / Gergo-Num.kbd.json
Last active January 15, 2019 23:34
Gergo-Num
[
{
"name": "Gergo-Num"
},
[
{
"x": 3.5
},
"3",
{