Skip to content

Instantly share code, notes, and snippets.

View kozross's full-sized avatar

Koz Ross kozross

View GitHub Profile
4000000 constant LIMIT
\ n -- f
: is-even? 2 mod 0= ;
\ w1 w2 w3 -- w2 w1 w3
: flip rot swap ;
\ total prev curr -- total+ curr next
: add-even-and-gen dup is-even?
#!/usr/bin/awk -f
BEGIN {
FS=OFS=","
# edibility
translation[1, "p"] = "poisonous"
translation[1, "e"] = "edible"
# cap-shape
translation[2, "b"] = "bell"
translation[2, "c"] = "conical"
translation[2, "x"] = "convex"
BEGIN {FS = ","}
# want to say 'replace $2 (second field) with "bell" if it is exactly "b"
BEGIN {FS = ","}
# want to say 'replace $2 (second field) with "bell" if it is exactly "b"
@kozross
kozross / gist:30db3d6bc28b97c55aaa
Created March 29, 2015 02:47
Backtrace from uTox execution
#0 0x00007ffff678129c in tox_new () from /usr/lib/libtoxcore.so.0
#1 0x00000000004315c1 in ?? ()
#2 0x00007ffff62fb374 in start_thread () from /usr/lib/libpthread.so.0
#3 0x00007ffff4b6427d in clone () from /usr/lib/libc.so.6
;;; package --- Summary
;;; flycheck-gdc.el
;; Copyright (C) 2015 Koz Ross
;; Author: Koz Ross <koz.ross@runbox.com>
;; Keywords: flycheck, gdc, dlang
;; Version: 0.0.1
;; This program is free software; you can redistribute it and/or modify
This is XeTeX, Version 3.14159265-2.6-0.99991 (TeX Live 2014/Parabola) (preloaded format=xelatex)
restricted \write18 enabled.
entering extended mode
(./traffic.tex
LaTeX2e <2014/05/01>
Babel <3.9k> and hyphenation patterns for 79 languages loaded.
(/usr/share/texmf-dist/tex/latex/beamer/beamer.cls
(/usr/share/texmf-dist/tex/latex/beamer/beamerbasercs.sty)
Document Class: beamer 2013/12/02 3.33 A class for typesetting presentations (r
cs-revision 332bfd3ce558)
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ecss1095
This is METAFONT, Version 2.7182818 (TeX Live 2014/Parabola) (preloaded base=mf)
kpathsea: Running mktexmf ecss1095
! I can't find file `ecss1095'.
<*> ...ljfour; mag:=1; nonstopmode; input ecss1095
Please type another input file name
! Emergency stop.
This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014/Parabola) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
(./traffic.tex
LaTeX2e <2014/05/01>
Babel <3.9k> and hyphenation patterns for 79 languages loaded.
(/usr/share/texmf-dist/tex/latex/beamer/beamer.cls
(/usr/share/texmf-dist/tex/latex/beamer/beamerbasercs.sty)
Document Class: beamer 2013/12/02 3.33 A class for typesetting presentations (r
cs-revision 332bfd3ce558)
\documentclass[onlymath]{beamer}
\mode<presentation>
{
\usetheme{Antibes}
\usecolortheme{beaver}
\setbeamercovered{transparent}
\setbeamercolor{block body}{bg=gray!10!white}
\setbeamercolor{structure}{fg=darkred}
\usenavigationsymbolstemplate{}
}