Skip to content

Instantly share code, notes, and snippets.

@jlaasonen
jlaasonen / convertToRoman.js
Created March 25, 2019 13:16
Convert a number into Roman numeral
// Derived from https://stackoverflow.com/questions/9083037/convert-a-number-into-a-roman-numeral-in-javascript#37723879
import { List } from 'immutable'
const romanMatrix = List.of(
List.of(1000, 'M'),
List.of(900, 'CM'),
List.of(500, 'D'),
List.of(400, 'CD'),
List.of(100, 'C'),
List.of(90, 'XC'),
@jlaasonen
jlaasonen / .build.yml
Last active September 18, 2023 19:07
hexfile sourcehut build manifest
image: ubuntu/22.04
packages:
- libncurses5-dev
- libtinfo5
sources:
- https://git.sr.ht/~jlaasonen/hexfile
- https://git.sr.ht/~jlaasonen/fbtesting
tasks:
- setup: |
wget http://downloads.sourceforge.net/fbc/FreeBASIC-1.10.0-ubuntu-22.04-x86_64.tar.xz
@jlaasonen
jlaasonen / .build.yml
Created September 18, 2023 19:09
fbtesting sourcehut build manifest
image: ubuntu/22.04
packages:
- libncurses5-dev
- libtinfo5
sources:
- https://git.sr.ht/~jlaasonen/fbtesting
tasks:
- setup: |
wget http://downloads.sourceforge.net/fbc/FreeBASIC-1.10.0-ubuntu-22.04-x86_64.tar.xz
tar xf FreeBASIC-1.10.0-ubuntu-22.04-x86_64.tar.xz