Skip to content

Instantly share code, notes, and snippets.

View fredokun's full-sized avatar

Frederic Peschanski fredokun

View GitHub Profile
fredokun / gist:5a1bae6e46910638fa1524a17bd0f5dd
Last active December 19, 2023 10:46
Unicode characters in latex documents
Instead of using:
fredokun /
Created August 30, 2017 11:42
Python 3 Client/server using multiprocessing with asynchronous pipes
import multiprocessing as mp
import time
import MPServer
if __name__ == "__main__":
print("[Client] start")
fredokun / gist:20440707c465664c547cd25681dbdc6e
Created June 16, 2016 15:02
pygmentize to pdf via latex
pygmentize -f latex -O full -o mylisting.tex mylisting.src
pdflatex mylisting.tex
fredokun / oddeven.clj
Created June 9, 2016 10:11
Mutually recursive specs in clojure.spec
;;; Clojure 1.9 spec : an example of a mutually-recursive spec
(ns oddeven
(:require [clojure.spec :as s]))
(s/def ::zero #{:zero})
(s/def ::one #{:one})
(s/def ::succ #{:succ})
(s/def ::odd nil)
(s/def ::even (s/or :zero ::zero
fredokun / gist:2c7a2d66035bb36f9f85
Created July 3, 2014 12:58
pdfjam command line for printing 2 pages per sheet in landscape mode
pdfjam --nup 2x1 --landscape input.pdf --outfile output.pdf