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 | |
DESTINATION_BUCKET="hashed-assets-eu" | |
DESTINATION_FOLDER="page-kit" | |
upload_file() { | |
local FILE="$1" | |
local ENCODING | |
local TYPE | |
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
quicksort :: (Ord a) => [a] -> [a] | |
quicksort [] = [] | |
quicksort (x:xs) = | |
let smallerSorted = quicksort (filter (<=x) xs) | |
biggerSorted = quicksort (filter (>x) xs) | |
in smallerSorted ++ [x] ++ biggerSorted |
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
# ## Function: sequence | |
# | |
# Evaluates each action in sequence, left to right, collecting the | |
# results. | |
# | |
# + type: (Monad m) => m -> [m a] -> m [a] | |
export sequence = (m, ms) --> do | |
return ms.reduce perform, m.of [] | |
# where: | |
function perform(m1, m2) => do |