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 | |
# | |
# QA-framework.bash | |
# Copyright (C) 2019 jkirchartz <[email protected]> | |
# | |
# Distributed under terms of the NPL (Necessary Public License) license. | |
# | |
# A simple "google forms"-style way to survey people via bash | |
# | |
# usage: |
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 | |
function parser { | |
shopt -s nocasematch | |
case "$*" in | |
exit) exit 0;; | |
echo*) shift; echo $*;; | |
*) figlet $* | lolcat;; | |
esac | |
} |
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
let fs = require('fs'); | |
fs.readFile('full.md.json', function(err, data) { | |
if ( err ) { | |
console.err(err); | |
return; | |
} | |
data = JSON.parse(data.toString()); | |
var output = { white: [], black: [] , subtext: [] , origin: ["{cut Toots Against Humanity}#black#", "{cut Toots Against Humanity}#black#\n\n#subtext#"]}; |
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
var text = document.getElementById('text'); | |
text.setAttribute('textLength', Math.round(text.clientWidth / 1.1)); | |
text.style.fontSize = Math.round(text.clientWidth / text.textContent.length) + 'px'; | |
var img=document.getElementById('image'); | |
img.onload=function(){ | |
var svg=document.getElementById('svg'); | |
svg.height=img.naturalHeight; | |
svg.width=img.naturalWidth; | |
}; |
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
SHELL = /bin/bash | |
sources := $(wildcard *.md) | |
objects := $(patsubst %.md,%.html,$(subst $(source),$(output),$(sources))) | |
all: $(objects) | |
%.html: %.md | |
pandoc --template layout.html5 --standalone --smart --to html5 -o $@ $< | |
mv *.html ../public_html/ |
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
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# vim:fenc=utf-8 | |
# Ely Golden, Jun 14 2018 | |
def recaman(n): | |
seq = [] | |
for i in range(n): | |
if(i == 0): x = 0 | |
else: x = seq[i-1]-i |
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/sh | |
# depends on ImageMagick 6.8.9-9 | |
for name in *.hpi; do | |
echo $name | |
# split hpi into component jpg & png | |
./split.py $name |
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
#!/usr/bin/env python | |
import sys, os | |
from PIL import Image, ImageOps, ImageChops, ImageFont, ImageDraw, ImageFilter | |
# Make an image more closely resemble a pen drawing, with optional shading and coloring | |
def sketchify(sourceImage, colorized=True, sketchOnly=False): | |
sketch=ImageOps.invert(ImageOps.autocontrast(sourceImage).filter(ImageFilter.FIND_EDGES)) | |
if sketchOnly: | |
return sketch | |
if(colorized): |
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
7/27/1978 | |
When I was 18... 18 years old, I saw for the first time in my life... I saw an image of clarity. I saw a comic strip... a three panel comic strip that, though simple as it seemed, changed me... changed my being, changed who I am... Made me who I am... | |
Enlightened me... | |
The strip, Garfield, the comic strip was new... no more than maybe a month and a half since inception, since... since coming into existence... and there it was before me in print, I saw it... a comic strip... What was it called? | |
Garfield. |
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
{ | |
"principia": [ | |
"eris", | |
"poee", | |
"1", | |
"2", | |
"5", | |
"3", | |
"4", | |
"discordian", |