Archiving a bunch of old stuff

This commit is contained in:
Dan Buch
2015-06-22 13:15:42 -05:00
parent a6ec1d560e
commit bd1abd8734
395 changed files with 1 additions and 76 deletions

View File

@@ -0,0 +1,2 @@
HERE=$(dirname "$1")
(echo "$PATH" | grep "$HERE/bin" >/dev/null 2>&1) || export PATH="$HERE/bin:$PATH"

View File

@@ -0,0 +1,2 @@
/bin/
target/

View File

@@ -0,0 +1,3 @@
name := "byx"
version := "0.1.0"

View File

@@ -0,0 +1,12 @@
object sort {
def sort(xs: Array[Int]): Array[Int] = {
if (xs.length <= 1) xs
else {
val pivot = xs(xs.length / 2)
Array.concat(
sort(xs filter (pivot >)),
xs filter (pivot ==),
sort(xs filter (pivot <)))
}
}
}

View File

@@ -0,0 +1,10 @@
#!/bin/bash
set -e
mkdir -p ./bin
pushd ./bin
curl -O 'https://raw.github.com/paulp/sbt-extras/master/sbt'
chmod +x sbt
popd
./bin/sbt -sbt-create about