Skip to content

Instantly share code, notes, and snippets.

View kmader's full-sized avatar

Kevin Mader kmader

  • Zurich, Switzerland
View GitHub Profile
@kmader
kmader / a-greenland-ice-melting-graph.ipynb
Last active August 5, 2019 14:38
Greenland Surface Melt Extent, the NSIDC has a very interesting melt-chart but unfortunately doesn't quite show all the steps taken to make it. So here we attempt to reproduce the chart from the raw data by pulling it all from their API. ## Acknowledgements - Greenland Ice Sheet Today is produced at the National Snow and Ice Data Center by Ted S…
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kmader
kmader / README.md
Last active March 27, 2019 09:31
Dummy Model

Overview

@kmader
kmader / environment.yml
Last active March 22, 2019 21:42
Out of order bug
name: plotly_express
dependencies:
- python=3.5
- numpy
- matplotlib
- pandas
- scikit-learn
- pip:
- plotly==3.7.1
- plotly_express
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kmader
kmader / CornerstoneDemo.ipynb
Created August 30, 2018 13:50
Cornerstone Demo Notebook
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kmader
kmader / volume_labelmap.py
Created August 17, 2018 09:26
convert volumes to labelmaps in Slicer3D
from glob import glob
import os
cur_glob = '/Volumes/NO NAME/*seg.nii'
files_to_process = glob(cur_glob)
print('Processing', len(files_to_process), 'files')
def process_file(in_path):
slicer.mrmlScene.Clear(0)
[success, loadedVolumeNode] = slicer.util.loadVolume(in_path, returnNode=True)
outputLabelMap = slicer.mrmlScene.AddNewNodeByClass('vtkMRMLLabelMapVolumeNode')
vol_logic = slicer.modules.volumes.logic()
@kmader
kmader / jupyanno.html
Created August 2, 2018 16:44
FunAnnotation.html
<html>
<head>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<title>Thebe Lab examples</title>
<link rel="stylesheet" type="text/css" href="index.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js">
</script>
<!-- Configure and load Thebe !-->
@kmader
kmader / ImageEnhancementPlayground.ipynb
Created March 7, 2018 11:24
Using IPywidgets and Matplotlib Together
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kmader
kmader / README.md
Created February 13, 2018 17:01
RCNN / YOLO in JS

How to display output

How to display reasonable output from a RCNN in JS

@kmader
kmader / AnalysisSubmitTool.ipynb
Created October 20, 2017 10:12
A simple Dash and Luigi Job Submission Tool
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.