Skip to content

Instantly share code, notes, and snippets.

🌸

Lynn lynn

🌸
Block or report user

Report or block lynn

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@lynn
lynn / kardytrixe.md
Last active May 27, 2020
la kardytrixe
View kardytrixe.md

This is a document explaining some intermediate-level Lojban to people who finished reading la karda. I'll try to explain the topics you really need to understand to bridge the gap between la karda and everyday conversations or prose!

More on tanru

You know about tanru: they are "compounds" of selbri formed simply by juxtaposing them. Let me jog your memory with some examples:

  • .i vi lenku tcima = It's cold-kind-of-weather here.
  • .i mi snuti darxi lo pendo ku = I accident-kind-of-hit my friend.
  • .i lo cukta pixra ku melbi = The book-kind-of-picture is pretty.
  • .i lo blanu karce ku spofu = The blue-kind-of-car is broken down.
@lynn
lynn / deltarune-code.csx
Last active Apr 24, 2020
Deltarune code extraction script for UndertaleModTool
View deltarune-code.csx
// Maybe you need to tweak this DLL path for your .NET framework version.
#r "C:\Windows\Microsoft.NET\Framework\v4.0.30319\System.Text.RegularExpressions.dll"
using System.Text.RegularExpressions;
EnsureDataLoaded();
static var Lang = new Dictionary<string, string>();
public static class Operands {
public static IEnumerable<string> Or(Match m) {
yield return m.Groups[1].Value;
@lynn
lynn / frac.rs
Last active Mar 19, 2020
A bitwise-magic fractional part function
View frac.rs
/// A "fractional part" function on f32s that does bitwise magic
/// on the representation of its argument.
pub fn frac(f: f32) -> f32 {
f32::from_bits(_frac(f.to_bits()))
}
/// A "fractional part" function that operates on a signed integer
/// representation of an IEEE single-precision floating point number.
fn _frac(i: u32) -> u32 {
// A floating point number consists of a sign bit,
View mod1.c
#include <stdint.h>
#include <stdio.h>
typedef float f32;
typedef int32_t i32;
f32 mod1(f32 f) {
i32 i = *(i32*)&f;
i32 e = (i >> 23) & 0xff;
i32 m = i & 0x7fffff;
@lynn
lynn / lojban.md
Last active Mar 12, 2020
The Lojban I speak
View lojban.md

The Lojban I speak

by la lalxu (Lynn)

This is a list of ways in which my dialect of Lojban differs from the dialect described in The Complete Lojban Language. Most people on the #lojban IRC channel seem to accept and use most of these changes, as well.

The sections marked with an asterisk are approved as part of “base Lojban” by the BPFK (through a voting process). The other sections are simply unofficial additions that people (including me) like enough to use in daily conversation, because they make the language nicer and simpler.

Morphology

Glides*

In CLL Lojban, cmevla and fu'ivla are allowed to contain consonant-glide-vowel sequences like in kuin (Queen). Because it wasn’t clear where it was a good idea to allow them, the BPFK banned them everywhere! Now you can’t have a glide immediately after a consonant anymore, and you need to insert a vowel, writing kuuín (Ku-ween).

@lynn
lynn / now-i-am-an-arsonist
Last active Feb 23, 2020
"Now I Am An Arsonist" by Jonathan Coulton (feat. Suzanne Vega) chords for soprano ukulele
View now-i-am-an-arsonist
"Now I Am An Arsonist"
by Jonathan Coulton (feat. Suzanne Vega)
chords for soprano ukulele
Capo on 1st fret, or tune up a semitone to G# C# E# A#.
────────────────────────────────────────────────────────
Pattern 1 (C lydian)
A│––––––––––––––––│
View simplewords_tokipona.py
# To use this, you need Python 3.5+ and pip.
#
# 1. Make a new Discord app with a bot. https://discordapp.com/developers/applications/
#
# 2. Set environment variable SIMPLEWORDS_TOKEN on your computer to the bot's Token.
# Unix/Mac: export SIMPLEWORDS_TOKEN=MzABCDefghIJKLmnopQRSTuv.EnZ3kg.b5bdD74CKCr3du679hkemGJ7R7N
# PowerShell: $env:SIMPLEWORDS_TOKEN='MzABCDefghIJKLmnopQRSTuv.EnZ3kg.b5bdD74CKCr3du679hkemGJ7R7N'
#
# 3. Invite the bot to your server: https://stackoverflow.com/a/37743722/257418
#
@lynn
lynn / KnyttStoriesMapper.hs
Created Feb 1, 2016
Knytt Stories level map renderer
View KnyttStoriesMapper.hs
-- Pass this program a world name, and run it from the Knytt Stories root directory:
--
-- cd "Knytt Stories"
-- ./KnyttStoriesMapper "Nifflas - The Machine"
--
-- It will create a file called "Nifflas - The Machine.png" containing a map.
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeFamilies #-}
@lynn
lynn / ji.py
Last active Feb 5, 2020
play just-intonation chord progressions in your terminal
View ji.py
#!/usr/bin/env python
#
# python3.8 ji.py --help
# python3.8 ji.py CEGBb CE-GBbL | aplay -r44 -f S16_LE
# python3.8 ji.py CEGBb CE-GBbL | ffmpeg -f s16le -ar 44.1k -ac 1 -i - ji.mp3
"""
Play chord progressions in just intonation.
Raw PCM audio is written to stdout (signed, 16-bit, LE, mono).
@lynn
lynn / lojban-thesaurus.md
Last active Jan 30, 2020
A semantically sorted list of Lojban root words
View lojban-thesaurus.md

Lojban Thesaurus

Translated to Markdown from this ancient TeX file. I’m not sure who made the original.

Hover over a link to see the place structure. Click it to view gismu info on Wiktionary.

1 Structures

1.1 Set, group, mass

You can’t perform that action at this time.