Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View phadej's full-sized avatar
🦉
Someone here is possessed by an owl. Who?

Oleg Grenrus phadej

🦉
Someone here is possessed by an owl. Who?
View GitHub Profile
@fizruk
fizruk / snapshot-ghc8.yaml
Last active March 4, 2016 21:11
Stack config with GHC 8.0.1-rc2 on Mac OS X.
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
@puffnfresh
puffnfresh / SimpleCheck.scala
Created August 9, 2014 17:17
Allow setting the specs2's ScalaCheck seed one sbt's command line
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._
@baoilleach
baoilleach / morphimages.txt
Last active December 11, 2018 13:00
Create an animated gif to morph between images using ImageMagick
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

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

@staltz
staltz / migration-guide.md
Last active December 19, 2023 22:14
How to show migration guides in GitHub Markdown

How to show migration guides in GitHub Markdown

Use the diff code highlighting tag.

  ```diff
  - foo
  + bar

Example:

@quchen
quchen / trolling_haskell
Last active February 24, 2024 01:30
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
@bastman
bastman / docker-cleanup-resources.md
Created March 31, 2016 05:55
docker cleanup guide: containers, images, volumes, networks

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

@Icelandjack
Icelandjack / Constraints.org
Last active April 2, 2024 20:22
Type Classes and Constraints

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.

@staltz
staltz / introrx.md
Last active April 20, 2024 14:15
The introduction to Reactive Programming you've been missing