Skip to content

Instantly share code, notes, and snippets.

Playing with FHIR

Bell Eapen dermatologist

Playing with FHIR
View GitHub Profile
dermatologist / parse_dotenv.bash
Created Dec 23, 2020 — forked from judy2k/parse_dotenv.bash
Parse a .env (dotenv) file directly using BASH
View parse_dotenv.bash
# Pass the env-vars to MYCOMMAND
eval $(egrep -v '^#' .env | xargs) MYCOMMAND
# … or ...
# Export the vars in .env into your shell:
export $(egrep -v '^#' .env | xargs)
dermatologist /
Created Nov 4, 2020 — forked from datlife/
Export pre-trained TF Object Detection API model to Tensorflow Serving
Thiss script would convert a pre-trained TF model to a servable version for TF Serving.
A pre-trained model can be downloaded here
* A directory contains pretrained model (can be download above).
* Edit three arguments `frozen_graph`, `model_name`, `base_dir` accordingly
dermatologist / ssh-config-windows
Created Sep 15, 2020 — forked from lvnilesh/ssh-config-windows
ssh proxycommand windows 10 with ssh on powershell
View ssh-config-windows
Host NAT
ForwardAgent yes
StrictHostKeyChecking ask
IdentityFile "C:\Users\Zach Tankersley\.ssh\id_rsa.pem"
User ec2-user
ProxyCommand C:\Windows\System32\OpenSSH\ssh.exe -q -W %h:%p NAT
ForwardAgent yes
dermatologist /
Created Aug 2, 2020 — forked from stevepowell99/
Extracts annotations and highlighted passages in all .pdf files in a folder recursively and outputs them as text files with the same name and modification date
#!/usr/bin/env python
# see
myxkfolder="/home/steve/xk/" #you need to set this to where you want your to-dos to appear
import poppler, os.path, os, time, datetime
for root, dirs, files in os.walk('./'):
for lpath in files:
dermatologist /
Created Jul 27, 2020 — forked from Kegsay/
Generate static docs for a Go package
set -u
# Run a godoc server which we will scrape. Clobber the GOPATH to include
# only our dependencies.
GOPATH=$(pwd):$(pwd)/vendor godoc -http=localhost:6060 &
dermatologist /
Created Jun 27, 2020 — forked from garaud/
Example to turn your SQLAlchemy Query result object to a pandas DataFrame
# -*- coding: utf-8 -*-
"""From a Query.all(), turn this result to a pandas DataFrame
Table creation and example data come from the official SQLAlchemy ORM
tutorial at
Just take a look at the 'query_to_dict' function and the last part of the __main__.
dermatologist / maven-archetype.list
Created May 10, 2020 — forked from zbigniewTomczak/maven-archetype.list
Maven archetypes list (mvn archetype:generate)
View maven-archetype.list
Choose archetype:
1: remote -> (Archetype for web applications (JSF + JPA) using Demoiselle Framework)
2: remote -> (Basic archetype for generic applications using Demoiselle Framework)
3: remote -> co.ntier:spring-mvc-archetype (An extremely simple Spring MVC archetype, configured with NO XML.)
4: remote -> com.agilejava.docbkx:docbkx-quickstart-archetype (-)
5: remote -> (-)
6: remote -> com.bsb.common.vaadin:com.bsb.common.vaadin.embed-simple-archetype (-)
7: remote -> com.bsb.common.vaadin:com.bsb.common.vaadin7.embed-simple-archetype (-)
8: remote -> (-)
9: remote -> (-)

Install Multiple Java Versions on macOS High Sierra

Install Homebrew Cask

On Mac, Homebrew is the de-facto package manager, and Homebrew Cask is the app manager. I’m going to use Cask to install Java 7 and 8.

You don't need to install cask anymore, you just need homebrew. Try using any cask command

Install Homebrew Cask first if you haven’t:

# Author: Peter Prettenhofer <>
# Lars Buitinck <>
# License: Simplified BSD
from sklearn.datasets import fetch_20newsgroups
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.feature_extraction.text import HashingVectorizer
from sklearn.feature_extraction.text import TfidfTransformer
from sklearn.feature_extraction.text import FeatureHasher
from sklearn.pipeline import Pipeline
dermatologist / base64-form-data.js
Created Dec 24, 2019 — forked from AshikNesin/base64-form-data.js
Base64 image to multipart/form-data
View base64-form-data.js
const base64 = 'data:image/png;base65,....' // Place your base64 url here.
.then(res => res.blob())
.then(blob => {
const fd = new FormData();
const file = new File([blob], "filename.jpeg");
fd.append('image', file)
// Let's upload the file
// Don't set contentType manually →