Skip to content

Instantly share code, notes, and snippets.

@paf31
paf31 / 24days.md
Last active August 8, 2023 05:53
24 Days of PureScript

This blog post series has moved here.

You might also be interested in the 2016 version.

@evancz
evancz / Haskell-Style-Guide.md
Last active March 23, 2023 15:27
A style guide for Elm tools

Haskell Style Guide for Elm

Goal: a consistent style throughout all Elm projects that is easy to read and produces clean diffs to make debugging easier. This means valuing regularity and simplicity over cleverness.

Line Length

Keep it under 80 characters. Going over is not the end of the world, but consider refactoring before you decide a line really must be longer.

Variables

@ponkore
ponkore / leiningen-templating.md
Last active May 6, 2021 00:23
leiningen でプロジェクトのテンプレートを作ってみる
  • Quiitaに同じものをコピーしました。

leiningen でプロジェクトのテンプレートを作ってみる

この記事は、Clojure Adven Calendar 2013 12/07日の記事です。

今日は、leiningen (github) を使って、自分の独自のプロジェクトのテンプレート(いわゆるオレオレテンプレート)を作る話をします (leiningen のテンプレート作成に関するドキュメント(ここ ) を見れば終わり、という話もありますが、自習メモの意味でもまとめておきたいと思います)。

@scy
scy / opening-and-closing-an-ssh-tunnel-in-a-shell-script-the-smart-way.md
Last active March 15, 2024 11:26
Opening and closing an SSH tunnel in a shell script the smart way

Opening and closing an SSH tunnel in a shell script the smart way

I recently had the following problem:

  • From an unattended shell script (called by Jenkins), run a command-line tool that accesses the MySQL database on another host.
  • That tool doesn't know that the database is on another host, plus the MySQL port on that host is firewalled and not accessible from other machines.

We didn't want to open the MySQL port to the network, but it's possible to SSH from the Jenkins machine to the MySQL machine. So, basically you would do something like

ssh -L 3306:localhost:3306 remotehost

@smly
smly / slide.md
Created March 12, 2013 18:36
Markdown + Pandoc + Shower = XD

% Markdown + Pandoc + Shower = XD % @smly % 2013-03-13

Markdown + Pandoc + Shower = XD

Shower のスライドを Markdown で作る話

  • まとめ
> perl -E 'say "生" & "死"'
生 Life U+751F \xe7\x94\x9f 11100111 10010100 10011111
死 Death U+6B7B \xe6\xad\xbb 11100110 10101101 10111011
愛 Love u+611B \xe6\x84\x9b 11100110 10000100 10011011