/various

various experiments

Primary LanguageRuby

various

Various stuff I hacked together. May be of use or obsolete by now. Who knows.

6502_64tass.lang

A gedit / gtksourceview 2 language specification file for 6502 assembly, more specific the 64tass assembler. Needs to be copied to /usr/share/gtksourceview-2.0/language-specs.

cymd2comd.rb

A Cyrus Maildir to Courier Maildir converter.

jQuery.ext.custom-siblings.js

Extends jQuery, provides prevAllWhile and nextAllWhile. I needed this for a project, but can't exactly remember why. ^^

Use it like this:

$(this).nextAllWhile('dd').each(function(n) { $(this).show() });

spell-correct.io, spell-correct.go

My conversion of Peter Norvig's Spelling Corrector to the Io language and to Go.

quine.go

A 134 bytes quine in Go.

wp.m, wp.swift, wp.io, wp.rb, wp.cr, wp.nim

My implementations of the problem described here.

The idea is to measure in each language how well it performs this basic problem, how much memory it takes, and how elegant the solution looks.

So far the implementation in Objective-C is over 14 times faster than the Swift one.

The Crystal implementation seems to be twice as fast as the Ruby one.

alpine_chroot_install.sh

Simple script to install Alpine Linux into a chroot environment.

Just set up your paritions, customize the partitions variable, and then run the script.