Skip to content

Instantly share code, notes, and snippets.

diff --git a/parse.h b/parse.h
index b65ad8f..174e702 100644
--- a/parse.h
+++ b/parse.h
@@ -49,7 +49,10 @@ extern int yydebug;
# define YYTOKENTYPE
enum yytokentype
{
+ YYEMPTY = -2,
END_OF_INPUT = 0,
@To1ne
To1ne / Proposals.md
Last active September 18, 2017 09:47
Twitterpp mechkeys group buy

Model

  • Planck
  • Ergodox
  • Let's split
  • Dactyl

Switches

  • Matias Quiet Clicky
@To1ne
To1ne / keyboard-much.org
Last active February 28, 2018 14:56 — forked from pjaspers/keyboard-much.markdown
Everything you never wanted to know about keyboards at 10to1
@To1ne
To1ne / sale.md
Last active August 29, 2015 14:21
MacBook Pro for sale

MacBook Pro for sale

I am selling my MacBook Pro, because I've got another one from my employer.

Specifications

  • Model: MacBook Pro 13-inch late 2013
  • Processor: 2,6 GHz Intel Core i5
  • Memory: 8GB
  • Graphics: Intel Iris 1536 MB
@To1ne
To1ne / nil.md
Last active January 1, 2016 23:28
NULL, nil, null, undef

C/C++

void* a = NULL; // not sure about all compiler

C++11

void* a = nullptr;
@To1ne
To1ne / negativ-faces.el
Last active December 18, 2015 23:59
negativ-faces: give all faces their negative color
;; negativ-faces
;; give all faces their negative color.
;;
;; Works great on the default theme:
;; * Just remove all `(load-theme xzy)' from your .emacs.d
;; * Restart emacs
;; * Run `(negativ-negative-all-faces)'
;; * To undo, run `(negativ-negative-all-faces)' again
;;
;; based on http://www.emacswiki.org/emacs/AngryFruitSalad
#!/bin/sh
err="not enough RAM to write swap back, nothing done"
mem=`free|grep Mem:|awk '{print $4}'`
swap=`free|grep Swap:|awk '{print $3}'`
test $mem -lt $swap && echo -e $err && exit 1
swapoff -a && swapon -a &&
exit 0
#
# A little function to add html markup around emacs commands found in text.
#
def markup_emacs(text)
# defuns are put between () # TODO nested defuns
text.gsub!(/(\([^\)]+\))/, '<code>\1</code>')
# keyboard strokes
# -> M-x some-defun
# -> and other combo's
key = '(?:&lt;[^&]+&gt;|\w\b|[^\s\w])'
diff --git a/src/Makefile.in b/src/Makefile.in
index 3489d6f..6e982a8 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -60,7 +60,7 @@ am__mv = mv -f
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
-LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
+LINK = $(CCLD) $(subst -export-dynamic,--export-dynamic, $(AM_CFLAGS)) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
==> Build Environment
PATH: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
CFLAGS: -O4 -march=core2 -mmmx -msse4.1 -w -pipe
MAKEFLAGS: -j2
CC: /Developer/usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CXX: /Developer/usr/llvm-gcc-4.2/bin/llvm-g++-4.2
==> Downloading http://downloads.sourceforge.net/project/klavaro/klavaro-1.4.0.tar.bz2
File already downloaded and cached to /Users/toine/Library/Caches/Homebrew
/usr/bin/tar xf /Users/toine/Library/Caches/Homebrew/klavaro-1.4.0.tar.bz2
==> ./configure --prefix=/usr/local/Cellar/klavaro/1.4.0 --disable-debug --disable-dependency-tracking