Skip to content

Instantly share code, notes, and snippets.

View JKirchartz's full-sized avatar
🤖

Joel Kirchartz JKirchartz

🤖
View GitHub Profile
@JKirchartz
JKirchartz / LibraryOfBabel.html
Created November 5, 2015 21:55
Quick "Library of Babel" book generator for NaNoGenMo, major hat-tip to Borges.
<!DOCTYPE html>
<style>article {border:1px solid lightgrey;}</style>
<div id='book'></div>
<script>
var chars = "abcdefghijklmnopqrstuvwxyz ., ,.";
var book = 410;
var page = 3200;
String.prototype.shuffle = function () {
var a = this.split(""),
n = a.length;
@JKirchartz
JKirchartz / Playing with some ideas for tools.jkirchartz.com UI.markdown
Created November 3, 2015 20:35
Playing with some ideas for tools.jkirchartz.com UI

Playing with some ideas for tools.jkirchartz.com UI

I haven't worked on this site in a while & recently wrote a bunch of mini-tools I could cram in there, so I need a new UI to enable that.

A Pen by Joel Kirchartz on CodePen.

License.

@JKirchartz
JKirchartz / convert.sh
Created November 2, 2015 18:41
Download Sherlock Novels to make corpora for NaNoGenMo15
#! /bin/sh
#
# convert.sh
#
# Copyleft (ↄ) 2015 jkirchartz <[email protected]>
#
# Distributed under terms of the NPL (Necessary Public License) license.
#
for file in ./sources/*.txt; do
# Description:
# Anyone can have voice or op
#
# Commands:
# hubot make me an op
# hubot make <name> an op
# hubot give me voice
# hubot give <name> voice
module.exports = (robot) ->
@JKirchartz
JKirchartz / gist:c8c37b62f2e2bd0cf488
Created January 6, 2015 22:05
Mapping of currencies to their common symbol
var currencies = {
'USD': '$', 'CAD': 'CA$', 'EUR': '€', 'AED': 'AED', 'AFN': 'Af',
'ALL': 'ALL', 'AMD': 'AMD', 'ARS': 'AR$', 'AUD': 'AU$', 'AZN': 'man.',
'BAM': 'KM', 'BDT': 'Tk', 'BGN': 'BGN', 'BHD': 'BD', 'BIF': 'FBu',
'BND': 'BN$', 'BOB': 'Bs', 'BRL': 'R$', 'BWP': 'BWP', 'BYR': 'BYR',
'BZD': 'BZ$', 'CDF': 'CDF', 'CHF': 'CHF', 'CLP': 'CL$', 'CNY': 'CN¥',
'COP': 'CO$', 'CRC': '₡', 'CVE': 'CV$', 'CZK': 'Kč', 'DJF': 'Fdj',
'DKK': 'Dkr', 'DOP': 'RD$', 'DZD': 'DA', 'EEK': 'Ekr', 'EGP': 'EGP',
'ERN': 'Nfk', 'ETB': 'Br', 'GBP': '£', 'GEL': 'GEL', 'GHS': 'GH₵',
'GNF': 'FG', 'GTQ': 'GTQ', 'HKD': 'HK$', 'HNL': 'HNL', 'HRK': 'kn',
@JKirchartz
JKirchartz / ChromaticScales
Created September 17, 2014 19:06
Chromatic Scales & sound synthesis in Actionscript
[SWF(width=200,height=50,backgroundColor=0x666666,frameRate=24)]
var sound:Sound = new Sound();
/* ################ Set the Starting Frequency */
var freq:Number=1046.5;
/* ################ Set the Sample Rate */
var rate:Number=44100;
var phase:Number=0;
var chan:SoundChannel = new SoundChannel();
var trans:SoundTransform = new SoundTransform(0,0);
chan.soundTransform = trans;
@JKirchartz
JKirchartz / glitcher.py
Created August 3, 2014 05:41
Get images from CLI (or randomly from Instagram pics shared under creative commons liscensing) & glitch 'em
from PIL import Image, ImageStat, ImageEnhance
from random import *
import numpy as np
from itertools import *
import requests
import simplejson
from cStringIO import StringIO
from images2gif import writeGif
import os, sys
@JKirchartz
JKirchartz / BBS.LIST
Last active April 15, 2025 16:19
Notes/Info I've found playing telehack.com (currently only 43 of these BBSes are potential duplicates)
Nostradamus BBS ......................... (801) 487-9715
The Pine Tree BBS ....................... (803) 641-1805
The End Of Time ......................... (803) 855-0783
A.H.I. Helpline ......................... (805) 395-0371
Dark Knights Lair ....................... (805) 563-2160
The *Orion* System ...................... (806) 293-9988
Dragon's Lair BBS ....................... (808) 423-2163
The Tradin' Post ........................ (813) 578-0347
NCahoots! BBS ........................... (816) 452-3219
Beer World .............................. (817) 267-9945
@JKirchartz
JKirchartz / GetFiddles.py
Last active December 19, 2015 21:38
Download JSFiddles, so you can keep 'em forever and ever and ever.
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sys, os, httplib, codecs
import simplejson as json
def get(url,filename):
try:
conn = httplib.HTTPConnection('jsfiddle.net')
conn.request('GET',url)
@JKirchartz
JKirchartz / README.md
Last active December 18, 2015 06:59
Scripts to create a new post & publish it using jekyll. `new_post` takes a title, and optional content; `publish` stages it for publishing on the current date.

Scripts to create a new post & publish it using jekyll. new_post takes a title, and optional content; publish stages it for publishing on the current date.

new_post "Article Title" "Optional content" will create a file named unpublished-article_title.md whose content is

---
layout: post
title: Article Title
published: false

tags: article