Skip to content

Instantly share code, notes, and snippets.

View eldhosejoys's full-sized avatar
😊
rethinking the code

eldhose eldhosejoys

😊
rethinking the code
View GitHub Profile
@eldhosejoys
eldhosejoys / genealogy-min
Created April 18, 2025 04:58
genealogy in bible
{"name":"Adam","age":"930","class":"major messianicLine","birth":"3924","death":"2994","spouse":"Eve (Genesis 3:20)","detail":"Adam was created by G-d on the sixth day (Genesis 2:19, Genesis 5:5)","children":[{"name":"Abel","class":"base","detail":"(Genesis 4:2, Genesis 4:8)"},{"name":"Cain","class":"base","detail":"(Genesis 4:1, Genesis 4:16)","children":[{"name":"Enoch","class":"base","detail":"(Genesis 4:17)","children":[{"name":"Irad","class":"base","detail":"(Genesis 4:18)","children":[{"name":"Mehujael","class":"base","detail":"(Genesis 4:18)","children":[{"name":"Methushael","class":"base","detail":"(Genesis 4:18)","children":[{"name":"Lamech","class":"base","spouse":"Adah and Zillah (Genesis 4:19)","detail":"(Genesis 4:18)","children":"","_children":[{"name":"Jabal","class":"base","detail":"He was the father of those who dwell in tents and have livestock (Genesis 4:20)"},{"name":"Jubal","class":"base","detail":"He was the father of all those who play the lyre and pipe (Genesis 4:21)"},{"name":"Tubal-C
@eldhosejoys
eldhosejoys / fhir-json-validator.js
Created July 21, 2025 17:12
FHIR JSON validator for the version R4 Schema json from https://hl7.org/fhir/R4/downloads.html and ajv npm library in Express JS
// server.js
const express = require('express');
const Ajv = require('ajv');
const fhirSchema = require('./fhir.schema.json'); // Import the saved FHIR schema
// Initialize Express app
const app = express();
app.use(express.json()); // Middleware to parse JSON bodies
// Initialize Ajv
@eldhosejoys
eldhosejoys / abbrevs.json
Created August 21, 2025 18:05
To convert openbible.info cross-references to json files (https://www.openbible.info/labs/cross-references/)
{
"Genesis": 1, "Gen": 1, "Ge": 1, "Gn": 1,
"Exodus": 2, "Exod": 2, "Exo": 2, "Ex": 2,
"Leviticus": 3, "Lev": 3, "Le": 3, "Lv": 3,
"Numbers": 4, "Num": 4, "Nu": 4, "Nm": 4, "Nb": 4,
"Deuteronomy": 5, "Deut": 5, "De": 5, "Dt": 5,
"Joshua": 6, "Josh": 6, "Jos": 6, "Jsh": 6,
"Judges": 7, "Judg": 7, "Jdg": 7, "Jg": 7, "Jdgs": 7,
"Ruth": 8, "Rth": 8, "Ru": 8,
"1 Samuel": 9, "1 Sam": 9, "1Sam": 9, "1S": 9, "1Sm": 9, "1Sa": 9,