Skip to content

Instantly share code, notes, and snippets.

😭
Github still doesn't have an official dark mode!

Joel Kirchartz JKirchartz

😭
Github still doesn't have an official dark mode!
View GitHub Profile
View index.html
<div>Invest everything</br>
you have in steam</br>
powered weaving</br>
machines</div>
@JKirchartz
JKirchartz / unstick-youtube.user.js
Created Feb 21, 2020
Unstick the header from youtube & scroll the movie_player into view
View unstick-youtube.user.js
// ==UserScript==
// @name Unstick Youtube
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://*.youtube.com/*
// @grant none
// ==/UserScript==
@JKirchartz
JKirchartz / stripes1.svg
Last active Dec 6, 2019
Generating Op-art inspired SVGs here: https://codepen.io/JKirchartz/pen/gObarKg .... saving a few favorites here:
View stripes1.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JKirchartz
JKirchartz / 17-buzzwords.txt
Created Oct 4, 2019
Jargon & other computery-technical words
View 17-buzzwords.txt
Net Neutrality
%
Big Data
%
Data Mining
%
Actionable Analytics
%
Artificial Intelligence (AI)
%
View git-rename.sh
#! /bin/sh
#
# under aliases, add `rename = !~/path/to/git-rename/.sh`
# then to rename the current branch use `git rename <new branch name>`
#
old_branch=$(git rev-parse --abbrev-ref HEAD);
new_branch="$@"
git branch -m $old_branch $new_branch # Rename branch locally
@JKirchartz
JKirchartz / QA-framework.bash
Created Feb 26, 2019
A simple "google forms"-style question and answer framework for BASH.
View QA-framework.bash
#! /bin/bash
#
# QA-framework.bash
# Copyright (C) 2019 jkirchartz <me@jkirchartz.com>
#
# Distributed under terms of the NPL (Necessary Public License) license.
#
# A simple "google forms"-style way to survey people via bash
#
# usage:
@JKirchartz
JKirchartz / fake_shell.sh
Created Dec 26, 2018
make your own fake shell in bash
View fake_shell.sh
#!/bin/bash
function parser {
shopt -s nocasematch
case "$*" in
exit) exit 0;;
echo*) shift; echo $*;;
*) figlet $* | lolcat;;
esac
}
View convert.js
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#"]};
@JKirchartz
JKirchartz / jkirchartz_exe.js
Created Oct 14, 2018
Javascript to manipulate image in @jkirchartz_exe
View jkirchartz_exe.js
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;
};
@JKirchartz
JKirchartz / Makefile
Last active Aug 22, 2018
A simple publishing platform for tilde.town ~ clone this into a "drafts" or "src" directory in your home directory, write markdown files here, and run `make` to publish them to your tilde site.
View Makefile
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/
You can’t perform that action at this time.