Skip to content

Instantly share code, notes, and snippets.

Matthias Braun mb720

Block or report user

Report or block mb720

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
mb720 / BigIntAddition.hs
Created Jun 28, 2018
Exercise in BigInt addition for Haskell
View BigIntAddition.hs
import Data.Int(Int8)
import Data.List(foldl')
import Test.QuickCheck
type Digit = Int8
-- Feedback on a prior version of this code:
-- Run checkAdd to test it with QuickCheck
-- Adds two integer lists.
mb720 / bash.rc
Created May 21, 2018
Keybinding to open file selected with fzf in editor
View bash.rc
# Search a file with fzf and then open it in an editor
fzf_then_open_in_editor() {
local file=$(fzf)
# Open the file if it exists
if [ -n "$file" ]; then
# Use the default editor if it's defined, otherwise Vim
${EDITOR:-vim} "$file"
bind -x '"C-o": fzf_then_open_in_editor'
You can’t perform that action at this time.