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 | |
USAGE="Usage: $(basename "$0" .sh) SOURCE-HG DEST-GIT" | |
SRC=${1?$USAGE} || exit 1 | |
DST=${2?$USAGE} || exit 1 | |
SANITIZE=$(dirname "$0")/sanitize.py | |
(cd "$SRC" && |
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
snail = function(array) { | |
var result = []; | |
var n=array.length; | |
var x=n; | |
var y=n; | |
if(n==1){ | |
return array[0]; | |
} | |
while(y>1){ | |
for(j=0;j<y;j++){ |
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
// Used as a UI indicaiton that a feature is not complete. Warns to log. | |
var TODO = function () { | |
var callerName = ""; | |
try { //noinspection ExceptionCaughtLocallyJS | |
throw new Error(); } | |
catch (e) { callerName = /TODO.+\n\s+at (.+) \(/.exec(e.stack)[1]; } | |
console.warn('Feature not complete:', callerName); | |
}; |
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
FROM docker.io/library/amazonlinux:latest | |
RUN yum -y update | |
RUN yum -y upgrade | |
RUN yum install clang -y && \ | |
yum install libpng-devel libtiff-devel zlib-devel libwebp-devel libjpeg-turbo-devel wget tar gzip -y && \ | |
wget https://github.com/DanBloomberg/leptonica/releases/download/1.75.1/leptonica-1.75.1.tar.gz && \ | |
tar -zxvf leptonica-1.75.1.tar.gz && \ |