Skip to content

Instantly share code, notes, and snippets.

@voluntas
voluntas / erlang_release.rst
Last active April 7, 2016 13:30
Erlang リリース コトハジメ

Erlang リリース コトハジメ

更新:2014-04-10
バージョン:0.2.1
作者:@voluntas
URL:http://voluntas.github.io/

reltool 周りについて勉強がてらまとめてみました

@ikedaisuke
ikedaisuke / gist:4175351
Created November 30, 2012 11:54
Some answers of the homework in the slides
-- http://koko-u.github.com/haskell_book_reading/#25
import Data.Char (toUpper, intToDigit, isSpace)
import Data.List (isInfixOf, nub)
import Numeric (showIntAtBase)
upperCase :: String -> String
upperCase = map toUpper
removeSpaces :: String -> String
@kazu-yamamoto
kazu-yamamoto / gist:4064634
Created November 13, 2012 08:20
Testing Free Monad with QuickCheck
module Main where
import Control.Monad
import Control.Monad.Free
import Prelude hiding (putChar, getChar)
import qualified System.IO as IO
import Test.QuickCheck
----------------------------------------------------------------
-- Our DSL
@yashigani
yashigani / sugoih_osaka1.hs
Created November 10, 2012 13:44
すごいH本読書会 in 大阪 #1 練習問題
-- ex1
-- my null
null' xs = xs == []
-- my sum
sum' xs = if null' xs then 0 else head xs + sum' (tail xs)
-- my product
product' xs = if null' xs then 1 else head xs * product' (tail xs)
@hiratara
hiratara / main.hs
Created November 8, 2012 12:58
Kleisli endo-morphisms are an instance of Monoid.
{-# LANGUAGE FlexibleInstances, OverlappingInstances #-}
module Main where
import Data.Monoid
import Control.Monad
instance Monad m => Monoid (a -> m a) where
mempty = return
mappend = (>=>)
main :: IO ()
@uduki
uduki / corecursion.hs
Created November 7, 2012 08:49
余再帰あれこれ
{--- 余再帰とその利用例 ---}
{- 末尾再帰と再帰と余再帰
-
- 参考: http://d.hatena.ne.jp/kazu-yamamoto/20091122/1258899591
-
- 末尾再帰 : 引数に結果を蓄積し、自身へgotoして処理の流れが戻ってこないようにする。正格なデータを処理する時に用いるとスタックやヒープの節約になる。
- foldl f a [] = a
- foldl f a (x:xs) = foldl f (f a x) xs
-
@hayajo
hayajo / changelog_en.md
Last active April 1, 2025 14:37
ChangeLog を支える英語

ChangeLog を支える英語

ChangeLog を書く際によく使われる英語をまとめました。

ほとんど引用です。

基本形

@Gab-km
Gab-km / github-flow.ja.md
Last active April 23, 2025 04:19 — forked from juno/github-flow.ja.md
GitHub Flow (Japanese translation)
@shunirr
shunirr / README.md
Created August 30, 2012 04:07 — forked from laiso/README
Jenkins をOS X のログインユーザー権限のデーモンで自動起動しておく設定

Jenkins をOS X のログインユーザー権限のデーモンで自動起動しておく設定

必要なもの

うっかり jenkins.pkg を入れてしまった人はアンインストールする

@springmeyer
springmeyer / install-mapnik-amazon-ami.sh
Last active January 6, 2024 15:06
Mapnik on Amazon Linux AMI (Fedora)
# http://aws.amazon.com/amazon-linux-ami/
# http://aws.amazon.com/amazon-linux-ami/faqs/
# Boot up a machine with at least 1.5 to 2 GB Ram
# login
chmod 600 key.pem
ssh -i key.pem [email protected]
# update