Skip to content

Instantly share code, notes, and snippets.

Andy Georges itkovian

Block or report user

Report or block itkovian

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
@NicolasT
NicolasT / quickcheck_c.hs
Created Oct 18, 2010
A demonstration of using QuickCheck to test C code
View quickcheck_c.hs
-- This is a snippet cut-and-paste from a larger code body, might not compile or
-- work as expected as such
import Prelude hiding (pi)
import Data.Bits
import Data.Word (Word32)
import Foreign.C.Types (CSize)
import Foreign.Marshal.Array (withArrayLen)
@azet
azet / testing.md
Last active Aug 29, 2015
Third-party apps to use when publishing a F/OSS project on GitHub et al.
View testing.md
View lens.md

A Quick and Dirty Lens primer

Why does Lens exist? Well, Haskell records suck, for a number of reasons. I will enumerate them using this sample record.

data User = User { login    :: Text
                 , password :: ByteString
                 , email    :: Text
                 , created  :: UTCTime
                 }
View git-cheat-list.md

Git cheat list

  • stashing everything except staged changes:

    git stash -ku
    
  • fixing dates and authors in the commits:

    git rebase -i HEAD~<NUMBER_OF_LAST_COMMITS_TO_REBASE>
    
You can’t perform that action at this time.