Skip to content

Instantly share code, notes, and snippets.

digraph G {
// Make components in tier 1
stone -> silicon_ore; // #raw #t1
crude_oil -> plasma_refining -> {refined_oil, hydrogen}; // #raw #t1 #t2
{hydrogen, refined_oil} -> xray_cracking -> {hydrogen, energetic_graphite}; #t1 #t2
fire_ice -> ice_collect -> {hydrogen, graphene}; // #rare #t1 #t3
critical_photon -> {hydrogen, antimatter}; // #t1
hydrogen -> deuterium; // #t1
@OliverCardoza
OliverCardoza / STDOUT + STDERR
Created October 13, 2021 16:09
FHIR profile comparison error
java -jar $VALIDATOR -compare -dest temp/compatibility -version 4.0 \
-ig hl7.fhir.us.carin-bb#1.1.0 \
-ig hl7.fhir.us.davinci-crd#1.0.0 \
-left http://hl7.org/fhir/us/carin-bb/StructureDefinition/C4BB-Patient \
-right http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-patient
FHIR Validation tool Version 5.5.8-SNAPSHOT (Git# 0ca2a6738ef0). Built 2021-10-13T15:53:47.830Z (13 mins old)
Java: 11.0.12 from /usr/local/buildtools/java/jdk11 on amd64 (64bit). 16080MB available
Valid destination directory provided: "temp/compatibility")
Paths: Current = /usr/local/google/home/olivercardoza/repos/verily.com/highmark-nba-fhir-ig, Package Cache = /usr/local/google/home/olivercardoza/.fhir/packages
Params: -compare -dest temp/compatibility -version 4.0 -ig hl7.fhir.us.carin-bb#1.1.0 -ig hl7.fhir.us.davinci-crd#1.0.0 -left http://hl7.org/fhir/us/carin-bb/StructureDefinition/C4BB-Patient -right http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-patient
@OliverCardoza
OliverCardoza / profile_comparison.patch
Created October 13, 2021 16:05
A patch attempt to fix FHIR validator comparison
diff --git a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/cli/services/ComparisonService.java b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/cli/services/ComparisonService.java
index a5589d145..6f8563ff0 100644
--- a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/cli/services/ComparisonService.java
+++ b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/cli/services/ComparisonService.java
@@ -5,6 +5,8 @@ import java.io.File;
import java.io.IOException;
import org.hl7.fhir.exceptions.FHIRException;
+import org.hl7.fhir.r5.comparison.ComparisonRenderer;
+import org.hl7.
@OliverCardoza
OliverCardoza / ctxpropagation.go
Last active September 20, 2021 14:42
Go Context timeout propagation: verify that derived contexts will time out with parent deadline first if shorter
package main
import (
"context"
"fmt"
"time"
)
const shortDuration = 1 * time.Millisecond
const mediumDuration = 500 * time.Millisecond
@OliverCardoza
OliverCardoza / index.html
Last active August 28, 2018 01:26
Play around with chord graphs. Fork of https://bl.ocks.org/mbostock/4062006
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font: 10px sans-serif;
}
.group-tick line {
stroke: #000;
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font: 10px sans-serif;
}
.group-tick line {
stroke: #000;
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font: 10px sans-serif;
}
.group-tick line {
stroke: #000;
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font: 10px sans-serif;
}
.group-tick line {
stroke: #000;
/**
* This script will print a ledger transaction for a pay stub on Ultipro.
*
* Steps:
* 1. Login to <company>.ultipro.com and select your company.
* 2. Click on 'Pay History'
* 3. Click on one of the entries pay dates to open the pay statement.
* 4. Run the script.
*/
var negate = function(amount) {
@OliverCardoza
OliverCardoza / manulife-bookmarklet.js
Last active March 9, 2025 23:50
This script will print transactions in CSV format to the console when run on the Manulife transactions page.
/**
* This script will print Manulife RRSP ledger transactions to the console when
* run on the Manulife transactions page.
*
* Steps:
* 1. Go to www.manulife.ca/GroupBenefits
* 2. Click Sign in button then "Group Retirement" -> "Plan Member".
* 3. Sign in.
* 4. My Account -> Transaction History -> Transaction Summary
* 5. Click 'Select a Policy' then select one.