Skip to content

Instantly share code, notes, and snippets.

@nclundsten
nclundsten / all.go
Created Jul 27, 2018
i suck at golang
View all.go
package main
// localhost:8080/create?first=myfirstname
import (
"net/http"
"fmt"
)
// ----person----
View keymap.c
#include "ergodox.h"
#include "led.h"
#include "debug.h"
#include "action_layer.h"
#include "action_util.h"
#include "mousekey.h"
#define BASE 0 // default layer
#define TAPHOLD 1 // tap/hold alpha/symbol layer
@nclundsten
nclundsten / keymap.c
Last active Aug 29, 2016
my hacked up teckinesys keymap
View keymap.c
#include "ergodox.h"
#include "led.h"
#include "debug.h"
#include "action_layer.h"
#include "action_util.h"
#include "mousekey.h"
#define BASE 0 // default layer
#define SYMB 1 // symbols layer
#define MDIA 2 // media layer
View gist:4624e34bc56bd621f7f1c06dd60d0e9d
[nlundsten@nuc ergodox]$ make KEYMAP=nlundsten SUBPROJECT=ez
avr-gcc (Fedora 4.9.3-2.fc24) 4.9.3
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Size before:
text data bss dec hex filename
0 19562 0 19562 4c6a ergodox_ez_nlundsten.hex
View gist:796e17c37fefb4218d2edd3d752f609d
#ifndef CONFIG_NLUNDSTEN_H
#define CONFIG_NLUNDSTEN_H
#include "../../config.h"
#undef TAPPING_TERM
#define TAPPING_TERM 100
#endif
View gist:f4ea10424ed58c81092888fe52a88d08
[nlundsten@nuc ergodox]$ pwd
/home/nlundsten/workspace/qmk_firmware/keyboards/ergodox
[nlundsten@nuc ergodox]$ make KEYMAP=nlundsten SUBPROJECT=ez
avr-gcc (Fedora 4.9.3-2.fc24) 4.9.3
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Size before:
text data bss dec hex filename
View gist:47aa6d85872eebe0bc974d2395096fa5
[nlundsten@nuc ez]$ pwd
/home/nlundsten/workspace/qmk_firmware/keyboards/ergodox/ez
[nlundsten@nuc ez]$ make keymap=nlundsten
avr-gcc (Fedora 4.9.3-2.fc24) 4.9.3
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
WARNING:
Some git sub-modules are out of date or modified, please consider runnning:
View gist:61751d6ddd42451bbea46299b2a3b7a0
/******* Base Layer ********************************************************************************************************
*
* ,------------------------------------------------------. ,------------------------------------------------------.
* | Special | 1 | 2 | 3 | 4 | 5 | | | | 6 | 7 | 8 | 9 | 0 | Special |
* |------------+------+------+------+------+-------------| |------+------+------+------+------+------+------------|
* | Media Esc| Q | W | E | R | T | | | | Y | U | I | O | P | Media |
* |------------+------+------+------+------+------| | | |------+------+------+------+------+------------|
* | Symbol Tab| A | S | D | F | G |------| |------| H | J | K | L | ; | '" Symbol |
* |------------+------+------+------+------+------| | | |------+------+------+------+------+------------|
* | Ca
@nclundsten
nclundsten / 0_reuse_code.js
Created Jan 16, 2016
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View gist:01304ff660c5abd11c45
# detect if we're in a PASE shell
/QSYS.LIB/QSHELL.LIB/UNAME.PGM > /dev/null 2>&1
if [ $? != 0 -a "$SHELL" != "/bin/bash" ]
then
exec /bin/bash