Skip to content

Instantly share code, notes, and snippets.

@felix1m
felix1m / 07.hs
Last active August 29, 2015 14:19
haskell 07
module Blueprint where
import Prelude
import Data.Char hiding (intToDigit)
{-
- Eine Block-Quersumme fasst jeweils mehrere Ziffern vor Summation
- zusammen, bei der letzten Stelle beginnend. Zum Beispiel ist die
- 3-Block-Quersumme von 1234567 die Zahl 1 + 234 + 567 = 802.
- Eine alternierende Quersumme wechselt Addition und Subtraktion
- ab, und zwar so, dass insgesamt keine negative Zahl entsteht.
@felix1m
felix1m / .gitconfig
Created March 18, 2013 13:56
git helpers to make your lifes easier
[alias]
st = status
co = checkout
ci = commit
br = branch
fe = fetch
ui = update-index
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %f %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
# View the SHA, description, and history graph of the latest 20 commits