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
IFS="" | |
if [ "$#" -ne 1 ]; then | |
wordle=`pbpaste`; | |
else | |
wordle=`cat $1` | |
fi | |
filters=( | |
"s/Line //;" |
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
touch README | |
mkdir -p src/java | |
mkdir -p testsrc/java | |
mkdir -p lib/java | |
mkdir -p libext/java | |
touch project.properties | |
echo "src.dir=src/java" >> project.properties | |
echo "testsrc.dir=testsrc/java" >> project.properties | |
echo "lib.dir=lib/java" >> project.properties |
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
#INSTALL GMP | |
cd /tmp/ | |
curl -O https://gmplib.org/download/gmp/gmp-6.2.1.tar.xz | |
tar -xzvf gmp-6.2.1.tar.xz | |
cd gmp-6.2.1 | |
./configure --prefix=/usr/local | |
make clean | |
make | |
sudo make install | |
cd /tmp/ |
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 -e | |
FILENAME="${1%%.*}" | |
if [ $2 ] | |
then | |
DUPLICATES="--duplicate $2" |
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
-module(levenshtein). | |
-export([levenshtein_distance/2]). | |
levenshtein_distance(Source, Target) -> | |
Score=lists:append([[X || X <- lists:seq(0, length(Target))]], [lists:append([Y],[n || X <- lists:seq(1, length(Source) - 1)]) || Y <- lists:seq(1, length(Source))]), | |
NewScore=levenshtein_distance_source(Source, Target, Score, 1, 1), | |
%io:fwrite("~p~n", [NewScore]), | |
get_score(length(Source), length(Target), NewScore). |
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
<!DOCTYPE html> | |
<html> | |
<meta charset="utf-8"> | |
<title>Streamgraph</title> | |
<head> | |
<style> | |
body { | |
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | |
margin: auto; |
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
m="monkey" | |
l="little " | |
f="Five #{l}#{m}s" | |
s="So "<<f.downcase | |
t=[] | |
t<<"It was bedtime." | |
t<<"#{s} took a bath." | |
t<<"#{f} put on their pajamas." | |
t<<"#{f} brushed their teeth." |
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
m="monkey" | |
l="little " | |
f="Five #{l}#{m}s" | |
s="So "<<f.downcase | |
t=[] | |
t<<"It was bedtime." | |
t<<"#{s} took a bath." | |
t<<"#{f} put on their pajamas." | |
t<<"#{f} brushed their teeth." |