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
def flatten([head | tail], result) when is_list(head), do: flatten(head, flatten(tail, result)) | |
def flatten([head | tail], result), do: [head | flatten(tail, result)] | |
def flatten([], result), do: result |
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
##################### | |
# Basic combinators # | |
##################### | |
id = fn(x) -> x end | |
kestrel = fn (x) -> fn (y) -> x end end | |
starling = | |
fn (x) -> |
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 | |
/usr/bin/rsync -r -t -p -o -g -x --delete --size-only -l -s --exclude-from=/home/guda/bin/ssd_backup_exclude.txt /home/guda/ /home/guda/external/backup |