Skip to content

Instantly share code, notes, and snippets.

View masnick's full-sized avatar

Max Masnick masnick

View GitHub Profile

May 2023 Webinar References

  • Brandt PS, Pacheco JA, Adekkanattu P, Sholle ET, Abedian S, Stone DJ, et al. Design and validation of a FHIR-based EHR-driven phenotyping toolbox. Journal of the American Medical Informatics Association 2022;29:1449–60. https://doi.org/10.1093/jamia/ocac063.
  • Cheng AC, Banasiewicz MK, Johnson JD, Sulieman L, Kennedy N, Delacqua F, et al. Evaluating automated electronic case report form data entry from electronic health records. J Clin Trans Sci 2023;7:e29. https://doi.org/10.1017/cts.2022.514.
  • Lobach DF, Boxwala A, Kashyap N, Heaney-Huls K, Chiao AB, Rafter T, et al. Integrating a Patient Engagement App into an Electronic Health Record-Enabled Workflow Using Interoperability Standards. Appl Clin Inform 2022;13:1163–71. https://doi.org/10.1055/s-0042-1758736.
  • Strasberg HR, Rhodes B, Del Fiol G, Jenders RA, Haug PJ, Kawamoto K. Contemporary clinical decision support standards using Health Level Seven International Fast Healthcare Interoperability Resources. Journal of
This file has been truncated, but you can view the full file.
{
"resourceType": "CapabilityStatement",
"id": "56f84ad0-40bd-47ec-a5fa-d8b116137939",
"name": "RestServer",
"status": "active",
"date": "2023-04-23T18:27:32.431+00:00",
"publisher": "Not provided",
"copyright": "This server is **Open Source Software**, licensed under the terms of the [Apache Software License 2.0](https://www.apache.org/licenses/LICENSE-2.0).",
"kind": "instance",
"software": {
@masnick
masnick / How I Do PlantUML.md
Created November 25, 2020 13:35 — forked from jerieljan/How I Do PlantUML.md
PlantUML with Style -- How I do PlantUML

I use PlantUML a lot. It's what I use for drawing all sorts of diagrams and it's handy because of its easy markup (once you get used to it) while making things easy to maintain as projects grow (thanks to version control)

This gist explains how I do my PlantUML workspace in a project.

  • The idea is to keep a globals directory for all diagrams to follow (like the "stylesheet" below) to keep things consistent.
  • I use a stylesheet.iuml file that keeps the use of colors consistent through use of basic FOREGROUND, BACKGROUND and ACCENT colors.
  • The style-presets.iuml file defines these colors so you can make "presets" or "themes" out of them.
  • As stated in the stylesheet.iuml, you'll need the Roboto Condensed and Inconsolata fonts for these to work properly.
  • You can choose to either run the PlantUML jar over your file/s, or use an IDE like VSCode with the PlantUML extension. Here's a preview of example-sequence.puml for example: https://imgur.com/Klk3w2F
@masnick
masnick / emails.md
Last active June 3, 2020 09:54
A strategy for writing clearer emails

From this HBR article:

  • Start email with single sentence summary:

    Bottom line: This is a better way to write emails informed by US Military practices.

  • Then have a Background section that succinctly provides the necessary context for the "bottom line."

  • Keep the whole thing as short as possible, ideally to avoid the reader having to scoll.

@masnick
masnick / output.txt
Created December 28, 2019 19:32
Output of tweet to Markdown shortcut
[Max Masnick on Twitter](https://twitter.com/masnick/status/1209899493048639488):
> It’s surprisingly hard to find a tweet with multiple URLs in it for API response testing purposes.
>
> So here are my two favorite non-Google search engines:
>
> 1. <https://t.co/jFqkR0eo8x>
> 2. <https://t.co/UZD9mmtzEH>
>
> 👍
@masnick
masnick / safari_to_chrome.applescript
Created December 27, 2019 21:18
Open Safari tabs in Google Chrome
use AppleScript version "2.4" -- Yosemite (10.10) or later
use scripting additions
set url_list to {}
tell application "Safari"
set w to window 1
try
repeat with t in (tabs of w)
@masnick
masnick / batch_convert_docx_to_pdf.applescript
Last active December 17, 2019 15:34
Batch convert Word files (.docx) to PDF
-- Based on https://discussions.apple.com/thread/250068127 (thanks, VikingOSX!)
property word_docs : {"org.openxmlformats.wordprocessingml.document", "com.microsoft.word.doc"}
property default_path : (path to desktop) as alias
property Delim : {".docx", ".doc"}
property PDF : ".pdf"
set outPDF to {}
set selected_files to (choose file of type word_docs default location default_path with multiple selections allowed without invisibles and showing package contents)
@masnick
masnick / fix_dates.R
Last active July 31, 2022 00:11
Fix up date columns in R
df_messy_dates <- tribble(
~col1_dt, ~col2_dt, ~other_data,
"2019-01-01", "2019-01-02", "a",
"2019-01-03", "1/4/2019", "b",
"01/05/2019", "2019-01-06", "c"
)
# A tibble: 3 x 3
# col1_dt col2_dt other_data
# <chr> <chr> <chr>
@masnick
masnick / README.md
Created November 18, 2019 14:40
CiteAs bookmarklet

This is the code for a bookmarklet to open the current page in CiteAs.

tell application "iTunes" to activate
tell application "System Events"
tell window "iTunes" of process "iTunes"
click (first UI element whose help is "Choose which speakers to use.")
end tell
end tell