This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {-# LANGUAGE FlexibleContexts #-} | |
| {-# LANGUAGE ConstraintKinds #-} | |
| {-# LANGUAGE ScopedTypeVariables #-} | |
| {-# LANGUAGE TypeApplications #-} | |
| {-# LANGUAGE AllowAmbiguousTypes #-} | |
| {-# LANGUAGE RankNTypes #-} | |
| {-# LANGUAGE FlexibleInstances #-} | |
| {-# LANGUAGE GADTs #-} | |
| {-# LANGUAGE MultiParamTypeClasses #-} | |
| {-# LANGUAGE TypeInType #-} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| integer/serialise/small positive -14% | |
| integer/serialise/small negative -10% | |
| integer/serialise/large positive -10% | |
| integer/serialise/large negative -8% | |
| integer/deserialise/small positive -62% | |
| integer/deserialise/small negative -61% | |
| integer/deserialise/large positive -27% | |
| integer/deserialise/large negative -33% | |
| time/serialise UTCTime -18% | |
| time/deserialise UTCTime -21% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env stack | |
| -- stack --install-ghc runghc --package cassava --package vector | |
| {-| | |
| Compare two criterion outputs. Results are displayed in percent. Takes two | |
| filepaths: original csv and new csv. | |
| To generate csvs: | |
| stack bench my-project:my-bench --benchmark-arguments "--csv out.csv" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # | |
| # Fetches SSH keys from a github user | |
| # Big kudos to @zimbatm for inspiration: https://gist.github.com/zimbatm/3166cc0bbb46551fe67e | |
| # | |
| # Usage: | |
| # curl -L https://goo.gl/Jj330b | user=<github username> sh | |
| # | |
| if [ -z "$user" ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {- stack | |
| --resolver lts-4.2 | |
| --install-ghc | |
| runghc | |
| --package network | |
| -} | |
| {-# LANGUAGE OverloadedStrings #-} | |
| import Control.Concurrent.Async (concurrently) | |
| import Control.Monad (forever) | |
| import Network.Socket |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| shell -${SHELL} | |
| # Bind F11 and F12 (NOT F1 and F2) to previous and next screen window | |
| bindkey -k F1 prev | |
| bindkey -k F2 next | |
| startup_message off | |
| # Window list at the bottom. | |
| hardstatus alwayslastline |
NewerOlder