This file contains 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
{ | |
"nodes": { | |
"flake-utils": { | |
"inputs": { | |
"systems": "systems" | |
}, | |
"locked": { | |
"lastModified": 1705309234, | |
"narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=", | |
"owner": "numtide", |
This file contains 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/expect -f | |
#exp_internal 1 | |
log_file sbt.log | |
spawn sbt -no-global -J-Xmx200m -J-Xms200m -J-XX:+ExitOnOutOfMemoryError -Dsbt.version=1.3.0-RC1 | |
# send_log $start | |
for {set NUM 0} {$NUM <= 200} {incr NUM} { | |
expect "> " | |
send "reload\n" |
This file contains 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
final class CompositeOrdering[T]( val ord1: Ordering[T], val ord2: Ordering[T] ) extends Ordering[T] { | |
def compare( x: T, y: T ) = { | |
val comp = ord1.compare( x, y ) | |
if ( comp != 0 ) comp else ord2.compare( x, y ) | |
} | |
} | |
object CompositeOrdering { | |
def apply[T]( orderings: Ordering[T] * ) = orderings reduceLeft (_ orElse _) |
This file contains 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/bash | |
# make bash behave | |
set -euo pipefail | |
IFS=$'\n\t' | |
# adapted from: http://stackoverflow.com/a/32239112 | |
# create tmpdir and register cleanup callback | |
tmpdir=$(mktemp -d ~/.docker-man.XXXXXXXX) |
This file contains 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 TypeFamilies, QuasiQuotes, MultiParamTypeClasses, | |
TemplateHaskell, OverloadedStrings #-} | |
import Control.Applicative | |
import Data.Text | |
import Yesod | |
import Yesod.Form | |
data HelloWorld = HelloWorld |