Skip to content

Instantly share code, notes, and snippets.

View dmd's full-sized avatar

Daniel M. Drucker, Ph.D. dmd

View GitHub Profile
# Photos - XML metadata to printable
1. Read the XML file
2. Drop fields, reformat GPS
Transform:
```
out :: reformat(in) =
[directory]
truncation_length = 6
truncation_symbol = '…/'
truncate_to_repo = true
[hostname]
ssh_only = false
format = '@[$hostname](bold blue) '
[username]
#!/usr/bin/env python
import pydicom
import glob
import os
import shutil
thedicomfiles = glob.glob(os.path.join('/input', '*.dcm'))
for thisfilename in thedicomfiles:
[TOC]
# 1
## Small Blue Thing / Suzanne Vega
Today I am a small blue thing
Like a marble or an eye
(setq-default inhibit-startup-screen t)
(setq inhibit-splash-screen t)
(setq inhibit-startup-message t)
(setq initial-scratch-message "")
(setq initial-major-mode 'fundamental-mode)
(menu-bar-mode 0)
(require 'package)
(add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/"))
(setq-default inhibit-startup-screen t)
(setq inhibit-splash-screen t)
(setq inhibit-startup-message t)
(setq initial-scratch-message "")
(setq initial-major-mode 'fundamental-mode)
(menu-bar-mode 0)
(require 'package)
(add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/"))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Daniel D. ;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(define mertwig
(lambda (mine his)
(define first-n
(lambda (ilist n)
(cond [(or (null? ilist) (zero? n)) '()]
[else (cons (first ilist) (first-n (rest ilist) (sub1 n)))] )))
#!/cm/shared/anaconda3/bin/python3
# coding: utf-8
import pandas as pd
import matplotlib.pyplot as plt
from glob import glob
import os
os.chdir('/home/ddrucker/usage-reports')
files = sorted(glob('data.2021*'))[-5:]
capyland 2015-01-07/01 04 Small Blue Thing.mp3
capyland 2015-01-07/04 Language.mp3
capyland 2015-01-07/06 06 Dimming Of The Day.m4a
capyland 2015-01-07/02 Gypsy.mp3
capyland 2015-01-07/07 11 Love Song.m4a
capyland 2015-01-07/03 Night Vision.mp3
capyland 2015-01-07/05 13 Trees Still Bend.mp3
capyland 2017-09-20/3 Rosemary.m4a
capyland 2017-09-20/5 Gypsy.mp3
capyland 2017-09-20/4 Northwest Passage (shortened).m4a
Generating detailed summary of the adapter, it may take a while to complete.
CLI Version = 007.1020.0000.0000 July 1, 2019
Operating system = Linux 3.10.0-693.el7.x86_64
Controller = 0
Status = Success
Description = None
Basics :