Skip to content

Instantly share code, notes, and snippets.

View kariudo's full-sized avatar
😭
Miserable

Hunter Horsman kariudo

😭
Miserable
  • Square 9 Softworks
  • CT
View GitHub Profile
@codesankalp
codesankalp / tesseract.dockerfile
Created May 31, 2023 04:29
Dockerfile for building tesseract on amazon linux 2
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 && \
@kariudo
kariudo / todoWarn.js
Created September 23, 2015 13:50
Javascript "Todo" Warning (With Caller) Function
// 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);
};
@kariudo
kariudo / snailsort.js
Created April 25, 2014 13:21
Snail Sort
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++){
@neilmayhew
neilmayhew / close-branches.sh
Last active February 27, 2020 19:16 — forked from matiasgarciaisaia/hg-to-git.sh
Script to convert from hg to git that wraps hg-fast-export and performs some additional fixups
#!/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" &&