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
\chapter{The Campaign of Holofernes} | |
\vskipnextgrid | |
\begin{bibleverse} | |
\dropcap{I}{n} the thirteenth year of the reign of | |
Nabuchodonosor, the two and twentieth day of the first month, the word | |
was given out in the house of Nabuchodonosor king of the Assyrians, that | |
he would revenge himself. \versenum{2} And he called all the ancients, and all the | |
governors, and his officers of war, and communicated to them the secret | |
of his counsel: \versenum{3} And he said that his thoughts were to bring all the |
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
<?php | |
// Get today's information | |
$json = file_get_contents('https://orthocal.info/api/gregorian/'); | |
$day = json_decode($json); | |
?> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Daily Readings</title> | |
</head> |
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
import json | |
import sys | |
from datetime import date, datetime, timedelta | |
from urllib.parse import urljoin | |
import requests | |
CLIENT_ID = 'antiochian_api' | |
CLIENT_SECRET = 'TAxhx@9tH(l^MgQ9FWE8}T@NWUT9U)' |
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
<html> | |
<body> | |
<h1>Daily Readings</h1> | |
<article id="readings"> | |
</article> | |
</body> | |
<script> | |
async function load_readings() { | |
// Use the client's date since the server is always set to Pacific Timezone |
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
import asyncio | |
import logging | |
import websockets | |
from channels.exceptions import DenyConnection | |
from channels.generic.websocket import AsyncWebsocketConsumer | |
from django.utils.functional import cached_property | |
logger = logging.getLogger(__name__) |
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 the client's date since the server is always set to Pacific Timezone | |
const today = new Date(); | |
// JS months are zero-origin, so we have to add 1 to the month | |
const url = `https://orthocal.info/api/oca/${today.getFullYear()}/${today.getMonth()+1}/${today.getDate()}/`; | |
fetch(url) | |
.then(response => response.json()) | |
.then(day => { | |
// Display the title of the day |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
</head> | |
<body> | |
<h1 id="title"></h1> | |
<p id="fast"></p> | |
<p id="readings"></p> |
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
Create ramdisk: | |
sudo mkdir <foo> | |
Add to /etc/fstab: | |
tmpfs <foo> tmpfs size=4G,mode=1700,uid=114,gid=125 0 1 | |
Mount the ramdisk: |