Skip to content

Instantly share code, notes, and snippets.

View danfascia's full-sized avatar
🎲
Dabbling

danfascia

🎲
Dabbling
View GitHub Profile
@danfascia
danfascia / modalities.json
Created April 27, 2021 15:12
Radiological Modalities
[
{
"name": "Mammography",
"slug": "mammography",
"radiation": true,
"code": "MM"
},
{
"name": "MRI",
"slug": "mri",
@danfascia
danfascia / specialities.json
Created April 27, 2021 15:10
Radiology Subspecialities
[
{
"name": "Chest",
"slug": "chest"
},
{
"name": "Obstetric & Gynaecology",
"slug": "obstetric-gynaecology"
},
{
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@danfascia
danfascia / curvy-bottom.svg
Created August 23, 2019 20:52
Curvy bottom borrowed from https://blog.airtable.com
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am danfascia on github.
  • I am danfascia (https://keybase.io/danfascia) on keybase.
  • I have a public key whose fingerprint is 8844 9EF7 15C0 8CBD A050 6DE1 7E9F 7EF1 95C5 BCA1

To claim this, I am signing this object:

// Stolen from https://stackoverflow.com/a/31615643
const appendSuffix = n => {
var s = ['th', 'st', 'nd', 'rd'],
v = n % 100;
return n + (s[(v - 20) % 10] || s[v] || s[0]);
};
module.exports = function dateFilter(value) {
const dateObject = new Date(value);
@danfascia
danfascia / angle-bottom.svg
Created April 21, 2019 08:17
Angled white bottom SVG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@danfascia
danfascia / wavy-bottom.svg
Created April 18, 2019 21:06
White wavy bottom SVG best placed over gradient backgrounds
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@danfascia
danfascia / 11ty_getTagList.js
Created March 9, 2019 19:20
Used in config to create a collection (tagList) of tag names which can be iterated.
/*
Usage:
eleventyConfig.addCollection("tagList", require("11ty_getTagList.js") );
This collection then produces a useful list...
for tag in collections.tagList...
which then gives access to
@danfascia
danfascia / toggleFullScreen.js
Created March 8, 2019 13:14
Toggle fullscreen javascript
function toggleFullScreen() {
if ((document.fullScreenElement && document.fullScreenElement !== null) ||
(!document.mozFullScreen && !document.webkitIsFullScreen)) {
if (document.documentElement.requestFullScreen) {
document.documentElement.requestFullScreen();
} else if (document.documentElement.mozRequestFullScreen) {
document.documentElement.mozRequestFullScreen();
} else if (document.documentElement.webkitRequestFullScreen) {
document.documentElement.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT);
}