Skip to content

Instantly share code, notes, and snippets.

Derek Mahar derekmahar

Block or report user

Report or block derekmahar

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
@derekmahar
derekmahar / keybase.md
Created Feb 26, 2018
Keybase Identify Proof
View keybase.md

Keybase proof

I hereby claim:

  • I am derekmahar on github.
  • I am derekmahar (https://keybase.io/derekmahar) on keybase.
  • I have a public key whose fingerprint is 635F A678 8114 0312 0ED2 5400 D717 DA46 33E5 D1BE

To claim this, I am signing this object:

@derekmahar
derekmahar / prelude.hs
Created Mar 6, 2014
Custom function definitions for Haskell AWK (Hawk). Store in .hawk/prelude.gs. See https://github.com/gelisam/hawk for details.
View prelude.hs
{- .hawk/prelude.hs -}
{-# LANGUAGE ExtendedDefaultRules, OverloadedStrings #-}
import Prelude
import qualified Data.ByteString.Char8 as B
import qualified Data.ByteString.Lazy as BL
import qualified Data.ByteString.Lazy.Search as S
import qualified Data.List as L
replace :: String -> String -> BL.ByteString -> BL.ByteString
replace search replacement input = S.replace (B.pack search) (B.pack replacement) input
View French accents
àÀ
âÂ
æÆ
çÇ
éÉ
èÈ
êÊ
ëË
îÎ
You can’t perform that action at this time.