Skip to content

Instantly share code, notes, and snippets.

View marrus-sh's full-sized avatar
❤️
👭

kibigo! marrus-sh

❤️
👭
View GitHub Profile
@marrus-sh
marrus-sh / preserveDoctype.js
Last active October 30, 2021 06:26
Process XML Template, Preserving Doctype
// The purpose of this code is to substitute the DOCTYPE in a processed
// template for that found in its original source code.
// No actual template processing happens in ⁜this⁜ script, but you
// can use your imagination.
//
// This code will not work in environments where the following test
// fails :—
//
// ```js
// ; {
@marrus-sh
marrus-sh / TEI-test.xml
Last active July 24, 2020 05:46
TEI Test for KiT2X
<?xml-stylesheet type="text/xsl" href="https://go.KIBI.family/Tools/XSLT/KiT2X.xslt"?>
<!--
KiT2X.xslt Demo
Now hosted at <https://go.KIBI.family/Documents/TEI-test.xml> so you can view this directly in your browser (if your browser is Firefox).
1. Save this file to your computer.
2. Open in Firefox.
-->
<TEI xmlns="http://www.tei-c.org/ns/1.0" xmlns:h="http://www.w3.org/1999/xhtml">
@marrus-sh
marrus-sh / Print+Pastels.scss
Last active May 19, 2019 11:49
Print + Pastels
/* PRINT + PASTELS */
/* by: Kibigo! */
/*
This theme combines offwhite greys with bright pastels for a faded
yet distinctive look.
*/
// PRINT //
@marrus-sh
marrus-sh / Basic.css
Last active May 15, 2019 15:26
Basic Styles for BookGen
*:Root{ Font: Normal Large / 1.15 Serif }
@media screen {
*:Root{
Color: #1F1A14;
Background: #FAF8F7;
}
}
footer { Font-Size: Small }
header { Text-Align: Right }
p {
@marrus-sh
marrus-sh / UNLICENSE
Last active October 14, 2019 11:08
StoryTime
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
@marrus-sh
marrus-sh / userContent.css
Last active March 26, 2019 21:50
Monochrome Mastodon
/* Requires Firefox 66+ */
/* Place this in the userContent.css file for your profile */
@-moz-document Domain(instance1.tld), Domain(instance2.tld) { /* Your instances here */
*:-moz-Any(
html,
.scrollable,
.search-popout,
.drawer__inner,
.dropdown-menu,
@marrus-sh
marrus-sh / index.html
Last active February 11, 2019 14:11
Quick Column Layout
<!DOCTYPE html>
<style>
@font-face{ Font-Family:"EB Garamond" ; Font-Style:Normal ; Src:Local(EBGaramond12-Regular) }
@font-face{ Font-Family:"EB Garamond" ; Font-Style:Italic ; Src:Local(EBGaramond12-Italic) }
@font-feature-values Junicode{ @styleset{ Enlarged-Minuscules:06 ; Long-Slash:10 } }
*:Root{ Font:Italic 13.5PT/1.35 Junicode,"EB Garamond",Serif ; Font-Variant-Numeric:Oldstyle-Nums ; Font-Variant-Alternates:StyleSet(Long-Slash) ; Color:#302F2B ; Background:#FAF8F7 }
article{ Width:100% ; Height:100% ; Columns:11EM 2 ; Column-Gap:2EM ; Column-Fill:Auto ; Overflow:Auto }
body{ Position:Relative ; Margin:Auto ; Padding:5.4EM 3EM ; Max-Width:36EM ; Height:31.05EM ; Max-Height:Calc(100VH - 10.8EM) }
footer{ Position:Absolute ; Bottom:30.675PT ; Left:0 ; Right:0 ; Color:#75706A ; Font:Normal 8PT/1.5 Junicode,"Noto Serif CJK JP",Serif ; Font-Variant-Alternates:StyleSet(Enlarged-Minuscules) ; Text-Align:Center }
footer>time{ Display:Block ; Color:#302F2B }
@marrus-sh
marrus-sh / generate.rb
Last active May 22, 2018 11:15
BNS YAML GENERATOR
# frozen_string_literal: true
require 'yaml'
require 'rexml/document'
include REXML
$bns_idchars = <<~REXP.gsub(/\s+/, '')
0-9A-Za-z
!\\$&'\\(\\)*+,\\-;=?@_~
\\u{A0}-\\u{D7FF}\\u{E000}-\\u{FDCF}\\u{FDF0}-\\u{FDFD}
@marrus-sh
marrus-sh / ImplementationNotes.md
Created April 18, 2018 23:55
ActivityMon → Masto

ActivityMon in Mastodon

This is what is required for a minimal sort of starting implementation.

Models

Mon and Species are the only required objects but I've gone and listed the rest for completeness.

@marrus-sh
marrus-sh / ActivityMon.md
Last active April 18, 2018 14:35
ActivityMon Draft Specification

ActivityMon

Draft Specification


Abstract

This specification describes the ActivityMon vocabulary, alongside recommendations for its usage. It is intended to be used in the context of the ActivityPub protocol to create federated servers of Persons and Mons.