Skip to content

Instantly share code, notes, and snippets.

Playing with FHIR

Bell Eapen dermatologist

Playing with FHIR
View GitHub Profile
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 →
dermatologist /
Last active Nov 27, 2019
Public Gist with code snippets
dermatologist /
Created Nov 24, 2019 — forked from LucasRoesler/
Create a new dev environment using KinD and immediately forward the Gateway port
kind create cluster --name "$DEVENV"
export KUBECONFIG="$(kind get kubeconfig-path --name="$DEVENV")"
kubectl rollout status deploy coredns --watch -n kube-system
dermatologist /
Created Nov 18, 2019 — forked from monkeym4ster/
Docker: save/load container using tgz file (tar.gz)
#for not running docker, use save:
docker save <dockernameortag> | gzip > mycontainer.tgz
#for running or paused docker, use export:
docker export <dockernameortag> | gzip > mycontainer.tgz
gunzip -c mycontainer.tgz | docker load
dermatologist /
Created Sep 1, 2019 — forked from charlesreid1/
Download the Large-scale CelebFaces Attributes (CelebA) Dataset from their Google Drive link
# Download the Large-scale CelebFaces Attributes (CelebA) Dataset
# from their Google Drive link.
# CelebA:
# Google Drive:
python3 0B7EVK8r0v71pZjFTYXZWM3FlRnM
dermatologist / Dockerfile
Created Aug 14, 2019 — forked from orenitamar/Dockerfile
Installing numpy, scipy, pandas and matplotlib in Alpine (Docker)
View Dockerfile
# Below are the dependencies required for installing the common combination of numpy, scipy, pandas and matplotlib
# in an Alpine based Docker image.
FROM alpine:3.4
RUN echo "" >> /etc/apk/repositories
RUN apk --no-cache --update-cache add gcc gfortran python python-dev py-pip build-base wget freetype-dev libpng-dev openblas-dev
RUN ln -s /usr/include/locale.h /usr/include/xlocale.h
RUN pip install numpy scipy pandas matplotlib
You can’t perform that action at this time.