Skip to content

Instantly share code, notes, and snippets.

View seclorum's full-sized avatar
💭
Looking for something interesting to work on.

seclorum seclorum

💭
Looking for something interesting to work on.
View GitHub Profile
@seclorum
seclorum / generate.c
Created February 18, 2024 17:08 — forked from munificent/generate.c
A random dungeon generator that fits on a business card
#include <time.h> // Robert Nystrom
#include <stdio.h> // @munificentbob
#include <stdlib.h> // for Ginny
#define r return // 2008-2019
#define l(a, b, c, d) for (i y=a;y\
<b; y++) for (int x = c; x < d; x++)
typedef int i;const i H=40;const i W
=80;i m[40][80];i g(i x){r rand()%x;
}void cave(i s){i w=g(10)+5;i h=g(6)
+3;i t=g(W-w-2)+1;i u=g(H-h-2)+1;l(u
require 'set'
def read_most_common_words
File.read('100_000-english.txt').split("\n")
end
def read_etymologies
File.read('etymwn-20130208/etymologies.tsv').split("\n").map do |line|
parts = line.downcase.split("\t")
[parts[0], parts[2]]

Keybase proof

I hereby claim:

  • I am seclorum on github.
  • I am ibisum (https://keybase.io/ibisum) on keybase.
  • I have a public key whose fingerprint is 355D 7F80 026E 7FF6 FD82 5361 8E40 7A43 3AB9 C6BF

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am seclorum on github.
  • I am ibisum (https://keybase.io/ibisum) on keybase.
  • I have a public key whose fingerprint is 250F 2E15 2604 92CE 9A36 666C 2864 2AFB 9117 C4B4

To claim this, I am signing this object:

@seclorum
seclorum / tlc.lua
Created March 28, 2012 14:14 — forked from fjolnir/tlc.lua
LuaJIT ObjC bridge
-- TLC - The Tiny Lua Cocoa bridge
-- Note: Only tested on x86_64 with OS X >=10.7.3 & iPhone 4 with iOS 5
-- Copyright (c) 2012, Fjölnir Ásgeirsson
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, provided that the above
-- copyright notice and this permission notice appear in all copies.
-- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES