Skip to content

Instantly share code, notes, and snippets.

View kawasima's full-sized avatar

Yoshitaka Kawashima kawasima

View GitHub Profile
@sambatriste
sambatriste / How-to-start-emacs.org
Last active September 20, 2018 01:22
how-to-start-emacs

レッツ入信!Emacsをはじめよう!

https://stallman.org/graphics/saint-button.png

時に、汝ら問いて曰く、「Emacs教会に身を置きながら、viなるテキストエディターを使うことは罪なるか」と。 いかにも、vi vi viは獣の数字なるが、自由な実装のviを使いたるときは、罪ならず。そは贖罪なり。

@henrik-muehe
henrik-muehe / Dockerfile
Created August 5, 2013 11:47
Allows installing the ubuntu "fuse" package without creating any devices. Used to install packages on docker which require fuse but do not actively use it.
...
# Fake a fuse install
RUN apt-get install libfuse2
RUN cd /tmp ; apt-get download fuse
RUN cd /tmp ; dpkg-deb -x fuse_* .
RUN cd /tmp ; dpkg-deb -e fuse_*
RUN cd /tmp ; rm fuse_*.deb
RUN cd /tmp ; echo -en '#!/bin/bash\nexit 0\n' > DEBIAN/postinst
RUN cd /tmp ; dpkg-deb -b . /fuse.deb
@halcat0x15a
halcat0x15a / monad.md
Last active December 17, 2015 06:08
Monad Comprehension in Clojure

ぼくのかんがえたさいきょうのMonad Syntax in Clojure

タイトル通りです。

最近はClojureを書いていて、モナドがなくてもThreading Macroがあればまあいいかなと思うようになってきたのですが、

Clojureのprotocolで型クラス的な多態な関数を作る

この記事に触発されたので、なにか書いてみます。

@n-shinya
n-shinya / gist:5395146
Created April 16, 2013 11:14
githubプロジェクト内にコミットされている画像をGithub Wikiで表示する

こんな感じで。

![hogehoge](https://github.com/[account]/[project]/blob/master/[filename.png]?raw=true)

@terjesb
terjesb / outline.clj
Created November 30, 2012 15:02
Hierarchies in Datomic
(use 'datomic.samples.repl)
(easy!)
(def conn (scratch-conn))
(transact-all conn (io/resource "day-of-datomic/outline.dtm"))
(def rules
'[[(ancestors ?section ?ancestor) [?section :section/parent ?ancestor]]
[(ancestors ?section ?ancestor) [?section :section/parent ?parent]
(ancestors ?parent ?ancestor)]