Skip to content

Instantly share code, notes, and snippets.

@nclundsten
nclundsten / all.go
Created July 27, 2018 20:01
i suck at golang
package main
// localhost:8080/create?first=myfirstname
import (
"net/http"
"fmt"
)
// ----person----
#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 August 29, 2016 06:41
my hacked up teckinesys keymap
#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
[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
#ifndef CONFIG_NLUNDSTEN_H
#define CONFIG_NLUNDSTEN_H
#include "../../config.h"
#undef TAPPING_TERM
#define TAPPING_TERM 100
#endif
[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
[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:
/******* 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 January 16, 2016 16:03
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
# 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