Skip to content

Instantly share code, notes, and snippets.

View bzg's full-sized avatar
🎯
Focusing

Bastien bzg

🎯
Focusing
View GitHub Profile
@bzg
bzg / gist:5f9a952208cf8d35220a41a8ff857faa
Created December 6, 2016 18:09
Org-mode + KLIPSE to demo Clojure code
#+html_head_extra: <link rel="stylesheet" type="text/css" href="https://storage.googleapis.com/app.klipse.tech/css/codemirror.css" />
Some Clojure code:
#+BEGIN_SRC clojure
(map inc '(1 2 3))
#+END_SRC
That's it.
@bzg
bzg / gist:2fc136b176690ee7f1e7
Created March 1, 2016 18:07
Use imagemagick to rotate pictures in a directory
#!/bin/bash
# Uses http://www.imagemagick.org
find . -name "*.jpg" | while read file; do
convert "$file" -rotate 15 "$file"_rotated.jpg
done
@bzg
bzg / emacs-strip.el
Last active January 2, 2023 21:22
Emacs, naked
;; Prevent the cursor from blinking
(blink-cursor-mode 0)
;; Don't use messages that you don't read
(setq initial-scratch-message "")
(setq inhibit-startup-message t)
;; Don't let Emacs hurt your ears
(setq visible-bell t)
;; You need to set `inhibit-startup-echo-area-message' from the
;; customization interface: