This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### A Pluto.jl notebook ### | |
# v0.19.24 | |
using Markdown | |
using InteractiveUtils | |
# ╔═╡ d70be298-d93d-11ed-16da-d9dcd9751c6c | |
using Kroki | |
# ╔═╡ 6b417fb5-7e52-4487-bdad-6ec44a962168 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* An Ammonite script to create a simple facsimile of a codex. | |
* | |
* The fax function loads a CITE Object repository from a CEX file. | |
* The repository should include a collection implementing | |
* the illustrated codex model from a CEX source file, and a collection of | |
* documentary images. The fax function writes out to a local | |
* directory a facsimile view as a series of markdown files with yaml headers suitable | |
* for dropping into a jekyll installation. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# ict.sh version 1.1.0 | |
# | |
# Start a docker container with a citable image service. | |
# See: | |
# https://github.com/cite-architecture/citable-images-container | |
# | |
# Mounts local working directory as /work in the container. | |
# Supports optionally setting values for port on the host OS, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Compute Vector of code point values from String | |
def strToCps(s: String, cpVector: Vector[Int] = Vector.empty[Int], idx : Int = 0) : Vector[Int] = { | |
if (idx >= s.length) { | |
cpVector | |
} else { | |
val cp = s.codePointAt(idx) | |
strToCps(s, cpVector :+ cp, idx + java.lang.Character.charCount(cp)) | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# rjs.sh: use pandoc to write a reveal-js slide show. | |
# | |
# REQUIREMENTS | |
# | |
# A reveal.js template named "reveal.js" in same directory as markdown source. | |
# For the set up, see | |
# https://github.com/jgm/pandoc/wiki/Using-pandoc-to-produce-reveal.js-slides | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# beam.sh: make a pdf slide show using pandoc and beamer. | |
# | |
# usage: beam.sh SLIDES THEME | |
# | |
# REQUIREMENTS | |
# | |
# xelatex | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tablr: | |
csvEditor: | |
columnDelimiter: "#" | |
comment: "#!" | |
eof: true | |
supportedCsvExtensions: [ | |
"csv" | |
"tsv" | |
"CSV" | |
"TSV" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use a UCharacterIterator to loop through code points in a Unicode string, | |
// and convert each code point to a String. | |
@Grab('com.ibm.icu:icu4j:3.4.4') | |
import com.ibm.icu.text.UCharacterIterator | |
String s = "μῆνιν" | |
def iter = UCharacterIterator.getInstance (s) | |
def cp | |
while(( cp=iter.nextCodePoint())!= UCharacterIterator.DONE){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Compute Longest Common Subsequence of two strings of characters, | |
* and print it to standard output. | |
* | |
* Example: | |
* | |
* groovy lcs.groovy 'Dr Rock-and-Roll Star' 'Doctor Rock Star' | |
* | |
* prints | |
* | |
* Dr Rock Star |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Compute Shortest Common Supersequence of two strings of characters, | |
* and print it to stanard output. | |
* | |
* Example: | |
* | |
* groovy scs.groovy 'Dr Rock-and-Roll Star' 'Doctor Rock Star' | |
* | |
* prints | |
* | |
* Doctor Rock-and-Roll Star |
NewerOlder