I hereby claim:
- I am niklasravnsborg on github.
- I am niklasravnsborg (https://keybase.io/niklasravnsborg) on keybase.
- I have a public key ASAw2pOsBKwsVt-OU9aaR1FC3qbu8YZXvtaQSZ4DnvKpNwo
To claim this, I am signing this object:
# Influenced by: | |
# - https://stackoverflow.com/questions/59458801/how-to-sort-dicom-slices-in-correct-order | |
# - https://medium.com/@vivek8981/dicom-to-jpg-and-extract-all-patients-information-using-python-5e6dd1f1a07d | |
import glob | |
import pydicom as dicom | |
import os | |
import cv2 | |
import sys | |
import numpy as np |
<?php | |
add_filter('wp2static_detect_sitemaps', function() { | |
return false; | |
}); | |
// add_filter('wp2static_detect_parent_theme', function() { | |
// return false; | |
// }); |
I hereby claim:
To claim this, I am signing this object:
import os, datetime, time | |
for dir in os.listdir('.'): | |
if os.path.isdir(dir): | |
dates = [] | |
for file in os.listdir(dir): | |
if file.endswith(('.jpg', '.jpeg')): | |
photo = os.path.join(dir, file) |
import bpy | |
for scene in bpy.data.scenes: | |
print('rendering: ' + scene.name) | |
bpy.context.screen.scene = scene | |
scene.render.filepath = '//render/' + scene.name + '/' + scene.name | |
scene.render.resolution_percentage = 100 | |
scene.render.image_settings.file_format = 'H264' |
RewriteEngine On | |
# redirect subdomains to matching folders | |
RewriteCond %{HTTPS} !=on | |
RewriteCond %{HTTP_HOST} !^www\. [NC] | |
RewriteCond %{SERVER_ADDR} !=127.0.0.1 | |
RewriteCond %{SERVER_ADDR} !=::1 | |
RewriteCond %{HTTP_HOST} !.*\.yourhost.com | |
RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L] |
// RANGES | |
// We use these functions to define ranges for various things, like media queries. | |
@function lower-bound($range){ | |
@if length($range) <= 0 { | |
@return 0; | |
} | |
@return nth($range,1); | |
} | |
@function upper-bound($range) { |
<?php | |
// USAGE | |
// include easymail.php `include('easymail.php');` | |
// Use like this `sendMail('to which mail address', | |
// 'message', | |
// 'subject', | |
// 'from which mail address', | |
// 'name to', | |
// 'name from');` |