Skip to content

Instantly share code, notes, and snippets.

Avatar
🦉
Someone here is possessed by an owl. Who?

Oleg Grenrus phadej

🦉
Someone here is possessed by an owl. Who?
View GitHub Profile
View cabal.rst

The Cabal/Stack Disambiguation Guide

One of the most frequently asked Haskell beginner questions in recent years is:

"Stack or cabal?"

I will helpfully not answer this question. Instead I will hope to eliminate the confusion that many of the askers seem to have about the various different

@Icelandjack
Icelandjack / Constraints.org
Last active May 3, 2021
Type Classes and Constraints
View Constraints.org

Reddit discussion.

Disclaimer 1: Type classes are great but they are not the right tool for every job. Enjoy some balance and balance to your balance.

Disclaimer 2: I should tidy this up but probably won’t.

Disclaimer 3: Yeah called it, better to be realistic.

Type classes are a language of their own, this is an attempt to document features and give a name to them.

@bastman
bastman / docker-cleanup-resources.md
Created Mar 31, 2016
docker cleanup guide: containers, images, volumes, networks
View docker-cleanup-resources.md

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
@fizruk
fizruk / snapshot-ghc8.yaml
Last active Mar 4, 2016
Stack config with GHC 8.0.1-rc2 on Mac OS X.
View snapshot-ghc8.yaml
compiler: ghc-8.0.0.20160204
setup-info:
ghc:
macosx:
8.0.0.20160204:
url: "http://downloads.haskell.org/~ghc/8.0.1-rc2/ghc-8.0.0.20160204-x86_64-apple-darwin.tar.xz"
packages:
- base-orphans-0.5.1
@staltz
staltz / migration-guide.md
Last active Mar 3, 2021
How to show migration guides in GitHub Markdown
View migration-guide.md

How to show migration guides in GitHub Markdown

Use the diff code highlighting tag.

  ```diff
  - foo
  + bar

Example:

@puffnfresh
puffnfresh / SimpleCheck.scala
Created Aug 9, 2014
Allow setting the specs2's ScalaCheck seed one sbt's command line
View SimpleCheck.scala
package com.simpleenergy
import java.util.Random
import org.specs2.ScalaCheck
import org.specs2.execute.{AsResult, Failure, Result}
import org.specs2.main.CommandLineArguments
import org.specs2.matcher.Parameters
import org.specs2.mutable.Specification
import org.specs2.specification.{Example, ExampleFactory}
import scalaz.syntax.monoid._
@staltz
staltz / introrx.md
Last active May 18, 2021
The introduction to Reactive Programming you've been missing
View introrx.md
@baoilleach
baoilleach / morphimages.txt
Last active Dec 11, 2018
Create an animated gif to morph between images using ImageMagick
View morphimages.txt
convert CID10033747.png CID9919714.png CID10033747.png -loop 0 -morph 9 -gravity South -annotate 1x1 "%t" -set delay "%[fx:(t%10!=0 || t==n-1)?10:240]" morph.gif
@quchen
quchen / trolling_haskell
Last active May 13, 2021
Trolling #haskell
View trolling_haskell
13:15 <xQuasar> | HASKELL IS FOR FUCKIN FAGGOTS. YOU'RE ALL A BUNCH OF
| FUCKIN PUSSIES
13:15 <xQuasar> | JAVASCRIPT FOR LIFE FAGS
13:16 <luite> | hello
13:16 <ChongLi> | somebody has a mental illness!
13:16 <merijn> | Wow...I suddenly see the error of my ways and feel
| compelled to write Node.js!
13:16 <genisage> | hi
13:16 <luite> | you might be pleased to learn that you can compile
| haskell to javascript now