Skip to content

Instantly share code, notes, and snippets.

View derekmerck's full-sized avatar

Derek Merck derekmerck

View GitHub Profile
@derekmerck
derekmerck / vtracer.Dockerfile
Created December 31, 2022 20:24
Instant VisionCortex vtracer node with Docker
# https://github.com/visioncortex/vtracer
# usage:
# > docker build -f vtracer.Dockerfile -t vtracer:0.5 .
# > docker run -p 8080:8080 vtracer
FROM rust
# install wasm-pack
RUN cargo install wasm-pack
@derekmerck
derekmerck / english_parser_output.md
Created June 30, 2022 16:52
Output from a rules based English language parser
flowchart TD
  A[sentence]
  A --> B(independent_clause)
  B --> C(clause)
  C --> D(subject)
  D --> E(noun_phrase)
  E --> |NOUN|F[She]
  C --> G(predicate)
  G --> H(verb_phrase)
@derekmerck
derekmerck / packet_cuda.cloud-config.yaml
Last active June 30, 2019 14:57
Configure a Packet.com GPU machine (i.e., g2.large.x86 with 2x v100) with Ubuntu 18.4, NVIDIA drivers, Docker CE, and Anaconda Python
#cloud-config
# --------------------------
# Packet cuda cloud-config
# --------------------------
# Derek Merck
# Summer 2019
# Configure a Packet.com GPU machine (i.e., g2.large.x86 with 2x v100) with Ubuntu 18.4
# - NVIDIA drivers
@derekmerck
derekmerck / _gistsig.md
Last active May 16, 2021 17:53
Python package signatures by version.

Python package signatures by version.

See for the signing algorithm and a convenience script.

@derekmerck
derekmerck / docker.deb.cloud-config.txt
Last active April 6, 2021 20:04 — forked from heri16/user-data.txt
Docker-CE cloud-init for Debian-based
#cloud-config
package_upgrade: true
packages: ['docker-ce', 'docker-compose']
apt:
preserve_sources_list: true
sources:
docker.list:
source: "deb [arch=amd64] https://download.docker.com/linux/debian $RELEASE edge"

Keybase proof

I hereby claim:

  • I am derekmerck on github.
  • I am dmerck (https://keybase.io/dmerck) on keybase.
  • I have a public key ASDnItQKDpJ_OEUfZbLycsuY30Xd8doLKuIVjLt3_q9hxAo

To claim this, I am signing this object:

@derekmerck
derekmerck / lathefunc.m
Last active February 8, 2016 23:51
Matlab script to create a volume by rotating a 2D function of (r,z) about an axis at r=0
function V = lathefunc( F, rmax, zmax, outsize, z_mirror)
% V = lathefunc( F, rmax, zmax, out_size, zmirror )
%
% Create a volume by rotating a 2D function of (r,z) about an axis at r=0.
%
% F is a 2D grid dataset to be expanded
% Optional rmax and zmax is the function width and depth in given units,
% default is size(F)
% Optional out_size defines an output volume size, default is to preserve
% units and use [size(F,1)*2, size(F,2)]
@derekmerck
derekmerck / 3dlab_anon.das
Last active August 29, 2015 14:22
RIH 3D Lab DICOM Deidentification Rules v1.0
describe rule_name hidden
describe rule_version hidden
describe rule_author hidden
// ==================================================
rule_name := "General DICOM Deidentification Rules"
rule_version := "v1.0"
rule_author := "RIH 3D Lab"
// by Derek Merck <derek_merck@brown.edu> and Scott Collins
// Spring 2015