Skip to content

Instantly share code, notes, and snippets.

@dajare
dajare / Readable-Bookmarklet.md
Created February 28, 2020 10:29 — forked from akaleeroy/Readable-Bookmarklet.md
Readable Bookmarklet

Readable Bookmarklet

Bookmarklet Browser Enhancement Readability

Readable dark theme

rdbl.us

Readable is an application that helps you read more of the web. It reformats text — on any website — according to your exact specifications.

@dajare
dajare / README.md
Last active December 20, 2020 10:35
Day and Night

It's all about the Sun

When the earth faces towards the sun, that part of the sun has "daytime". The part of the earth facing away from the sun will have "night".

Sun lights the earth

The earth is shaped like a ball:

Spinning globe

@dajare
dajare / cvu-member-list.md
Last active June 15, 2018 11:12
Council of Validating Universities: Member List

Members List

Member institutions of the Council of Validating Universities – as of 2017.01.13.

The following is a list of members organisations and the Council Member for that organisation (as at September 2016).

Institution  |  Main Lead
Anglia Ruskin University  |  Peter Worker

@dajare
dajare / koine-greek-sources.md
Created May 1, 2018 19:46
Texts and Grammars for Koine Greek

Here's my set of concentric circles on Koine Greek and its close relatives with a bit of commentary and some resources for each in Greek (where readily available), moving out from the centre:

  1. LXX and NT : there's plenty already around on this, so suffice it here to note the (probably) lesser known volume (only one of a projected set) by Henry St. John Thackeray, [A Grammar of Old Testament Greek according to the Septuagint][hsjt] (Cambridge, 1909). (Due to be superseded by current projects on this front, but still useful.)

It is worth bearing in mind that there are gradations of language/register, even within this body of literature. Things like Greek Jeremiah, or the gospel of Mark, are less refined than Greek Isaiah or Proverbs and the gospel of Luke. Within the "Apocrypha", too, a continuum can be seen: Tobit and Judith are relatively simple; the additions to Esther more "literary", and 3 and 4 Maccabees are getting much closer to "Attic".

  1. Apostolic Fathers : as they're usually c
@dajare
dajare / PatentParaNum-U.bas
Last active April 30, 2018 11:15
LibreOffice macro to insert "number range" user variable field + surrounding text -- recorded on Ubuntu 18.04
sub PatentParaNumU
' recorded on Ubuntu 18.04
rem ----------------------------------------------------------------------
rem define variables
dim document as object
dim dispatcher as object
rem ----------------------------------------------------------------------
rem get access to the document
document = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
@dajare
dajare / PatentParaNum.bas
Last active April 30, 2018 11:16
LibreOffice macro to insert "number range" user variable field + surrounding text -- recorded on OSX 10.10.5 with LibO Vanilla 6.0.3.2
sub PatentParaNum
' recorded on OSX 10.10.5
rem ----------------------------------------------------------------------
rem define variables
dim document as object
dim dispatcher as object
rem ----------------------------------------------------------------------
rem get access to the document
document = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
@dajare
dajare / foss-sis.md
Last active May 7, 2018 13:58
Open Source SIS

SIS packages I have looked at

Info

  • SIS = [Student Information System][w]
  • Some of the VLE's in Capterra's "[19 Free and Open Source LMSs...][c]" blog intersect with SIS's.

Dedicated SIS Systems

  • [eduTrac SIS][ets]
@dajare
dajare / PHP Sort by Scripture (Bible)
Created March 15, 2018 21:26 — forked from oleosjo/PHP Sort by Scripture (Bible)
Comp function to sort PHP Array by Bible Verses (Scripture Books)
function scripturesort($a, $b) {
if ($a == $b) {return 0;}
$order=array("Genesis", "Exodus", "Leviticus", "Numbers", "Deuteronomy", "Joshua", "Judges", "Ruth", "1 Samuel", "2 Samuel", "1 Kings", "2 Kings", "1 Chronicles", "2 Chronicles", "Ezra", "Nehemiah", "Esther", "Job", "Psalm", "Proverbs", "Ecclesiastes", "Song of Solomon", "Isaiah", "Jeremiah", "Lamentations", "Ezekiel", "Daniel", "Hosea", "Joel", "Amos", "Obadiah", "Jonah", "Micah", "Nahum", "Habakkuk", "Zephaniah", "Haggai", "Zechariah", "Malachi", "Matthew", "Mark", "Luke", "John", "Acts", "Romans", "1 Corinthians", "2 Corinthians", "Galatians", "Ephesians", "Philippians", "Colossians", "1 Thessalonians", "2 Thessalonians", "1 Timothy", "2 Timothy", "Titus", "Philemon", "Hebrews", "James", "1 Peter", "2 Peter", "1 John", "2 John", "3 John", "Jude", "Revelation");
$fa = $a;
$fb = $b;
preg_match('/^..(.+?)\b/', $a, $matches);
$a = trim(substr($matches[0],0,4));
@dajare
dajare / time2base62.sh
Created January 30, 2018 11:06
Bash shell script to return last four characters of base62 conversion of unix timestamp
#!/bin/bash
# takes unix timestamp and converts to base62
# source: https://stackoverflow.com/a/14472352/232251
function u2b {
v=$(date +%s)
BASE62=($(echo {0..9} {a..z} {A..Z}))
for i in $(bc <<< "obase=62; $v"); do echo -n ${BASE62[$(( 10#$i ))]}
done
}
@dajare
dajare / time2base36.sh
Last active January 3, 2021 18:25
Shell script to convert unix timestamp to base36 (alphanumeric, lowercase)
#!/bin/bash
# takes unix timestamp and converts to base36
# ht: https://en.wikipedia.org/wiki/Base36#bash_implementation
value=$(date +%s)
result=""
base36="0123456789abcdefghijklmnopqrstuvwxyz"
while true; do
result=${base36:((value%36)):1}${result}
if [ $((value=${value}/36)) -eq 0 ]; then