Skip to content

Instantly share code, notes, and snippets.

~/xombrero/osx $ make
perl ../js-merge-helper.pl ../hinting.js ../input-focus.js \
../autoscroll.js > javascript.h
ln -sf ../linux/tree.h
ln -sf ../linux/util.h
nroff -c -Tascii -mandoc ../xombrero.1 | \
perl ../ascii2txt.pl | \
perl ../txt2tooltip.pl > tooltip.h
Generating ../about.o.depend
cc -O2 -Wall -D_GNU_SOURCE -I. -I.. -D_REENTRANT -I/opt/local/include/webkitgtk-3.0 -I/opt/local/include/gtk-3.0 -I/opt/local/include/at-spi2-atk/2.0 -I/opt/local/include/gtk-3.0 -I/opt/local/include/gio-unix-2.0/ -I/opt/local/include -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/harfbuzz -I/opt/local/include/pango-1.0 -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pixman-1 -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include/libpng16 -I/opt/local/include -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/libpng16 -I/opt/local/include/webkitgtk-3.0 -I/opt/local/include/libsoup-2.
@holtzermann17
holtzermann17 / Markdown tricks
Last active August 29, 2015 13:58
some tricks with markdown and latex in wordpress
Hello team, we now support [Markdown](https://help.github.com/articles/github-flavored-markdown) and $latex \LaTeX&bg=ffcccc&fg=cc00ff&s=4$. You can even mix them in the same post, as I'm doing now. I'll say how, below.
<!--more-->
For Markdown, switch to the "Text" format for entering code, and just type away.
![alt text](http://en.blog.files.wordpress.com/2013/11/markdown-in-text-editor.png)
Check out the WordPress [Quick Reference](http://en.support.wordpress.com/markdown-quick-reference/) if you need a refresher on how this works.
@holtzermann17
holtzermann17 / Linux Libertine in LaTeX under Ubuntu 14.04
Last active August 29, 2015 14:05
Sample showing how Greek text appears in Linux Libertine
\documentclass[article,a4paper,12pt,twoside]{memoir}
%%% Cheap bindings for greek letters and sample output under XeLaTeX
%%% Useful under some [earlier] versions of Emacs
%%% I, the copyright holder, dedicate this work to the public domain
%%% by waiving all rights to the work worldwide under copyright law,
%%% including all related and neighboring rights, to the extent allowed
%%% by law. - Joe Corneli
\documentclass[letterpaper]{article}
\usepackage{xparse}
\usepackage{punk}
\usepackage{tikz}
\usetikzlibrary{shadows}
\usepackage{lipsum}
\definecolor{myyellow}{RGB}{242,226,149}
\NewDocumentCommand\StickyNote{O{4cm}mO{4cm}}{%
<div type="diaryentry" n="1938-10-10">
<head>Oct 10 <del>Tuesday.</del>
<add>Monday</add>
</head>
<p>Ghost, completing <abbr>ch</abbr> IX</p>
<p>Dictionary with Alan.</p>
<p>A lot of time goes to making charcoal for 'Marthe',
Beryl's now using this
<foreign>fugon</foreign>
<note>charcoal-burner</note>
@holtzermann17
holtzermann17 / gist:14134b83f0351d825034
Created May 25, 2015 11:23
hexrgb hexcolor keywords
;;; Convenience
;; Fontify strings like #b4c342
(require 'hexrgb)
(defvar hexcolour-keywords
'(("#[abcdefABCDEF[:digit:]]\\{6\\}"
(0 (put-text-property (match-beginning 0)
(match-end 0)
@holtzermann17
holtzermann17 / minimal-org-tree-slide.el
Last active August 29, 2015 14:23
settings for a really minimal org tree slide
;; Some settings seem best achieved with local variables, and some with a hook.
;; Here are some settings that work for me:
;; #+TITLE: Your Title
;; #+AUTHOR: Your Name
;; #+DATE: The Date of the Talk
;; #+OPTIONS: toc:nil
;; #+OPTIONS: email:nil
;;
;; [Actual talk content goes here]
@holtzermann17
holtzermann17 / texinfoextras.tex
Created June 18, 2015 22:19
break source code lines in texinfo on semicolon or period
% Expanding David Carlisle's solution from http://tex.stackexchange.com/a/249974/4357
@catcode`@\=0
\def\urefcatcodes{%
\catcode\ampChar=\active \catcode\dotChar=\active
\catcode\hashChar=\active \catcode\questChar=\active
\catcode\slashChar=\active \catcode\semiChar=\active
}
{
\urefcatcodes
%
@holtzermann17
holtzermann17 / gist:d174aba9292335a27289
Created July 15, 2015 19:20
error message for clojuredocs #113
bin/dev
/home/joe/clojure/clojuredocs/bin
Deleting files generated by lein-cljsbuild.
Rewriting src/cljx to target/generated/clj (clj) with features #{clj} and 0 transformations.
Rewriting src/cljx to target/generated/cljs (cljs) with features #{cljs} and 1 transformations.
/home/joe/.rvm/gems/ruby-2.2.0/gems/foreman-0.78.0/lib/foreman/process.rb:54: warning: Insecure world writable dir /usr/local/texlive/2014/bin/x86_64-linux in PATH, mode 040777
20:12:38 web.1 | started with pid 6361
20:12:38 less.1 | started with pid 6362
20:12:38 cljs.1 | started with pid 6363
20:12:38 cljx.1 | started with pid 6366
@holtzermann17
holtzermann17 / gist:de4ee626fe951082a07d
Created July 15, 2015 19:26
/tmp/form-init7045861440494410924.clj
(.deleteOnExit (java.io.File. "/tmp/form-init7045861440494410924.clj")) (do (set! *warn-on-reflection* nil) (do nil (try (clojure.core/require (quote clojure.tools.nrepl.server)) (catch java.lang.Throwable t__10688__auto__ (clojure.core/println "Error loading" (clojure.core/str (quote clojure.tools.nrepl.server) ":") (clojure.core/or (.getMessage t__10688__auto__) (clojure.core/type t__10688__auto__))))) (try (clojure.core/require (quote complete.core)) (catch java.lang.Throwable t__10688__auto__ (clojure.core/println "Error loading" (clojure.core/str (quote complete.core) ":") (clojure.core/or (.getMessage t__10688__auto__) (clojure.core/type t__10688__auto__))))) (try (clojure.core/require (quote cider.nrepl.middleware.apropos)) (catch java.lang.Throwable t__10688__auto__ (clojure.core/println "Error loading" (clojure.core/str (quote cider.nrepl.middleware.apropos) ":") (clojure.core/or (.getMessage t__10688__auto__) (clojure.core/type t__10688__auto__))))) (try (clojure.core/require (quote cider.nrepl.midd