Skip to content

Instantly share code, notes, and snippets.

View nicogerber's full-sized avatar

Nicolas Gerber nicogerber

View GitHub Profile
@nicogerber
nicogerber / amiraCorrectNiftiOrientation.tcl
Last active December 18, 2018 10:34
[Amira - Correct Nifti Image Loading] Rotate image by 180 deg around world z by pressing the F3 key #amira
#
# You may place this script in {AMIRA_ROOT}/resources/Amira/Amira.init
# to be automatically loaded in Amira at startup
#
# Created to fix a bug in Amira 5 when loading Nifti images
# Convenience shortcut to rotate a selected image (HxUniformScalarField3)
proc onKeyF3 { } {
set done 0
foreach module [all -selected HxUniformScalarField3] {
@nicogerber
nicogerber / win10colors.cmd
Created April 27, 2020 10:54 — forked from mlocati/win10colors.cmd
ANSI Colors in standard Windows 10 shell
@echo off
setlocal
call :setESC
cls
echo %ESC%[101;93m STYLES %ESC%[0m
echo ^<ESC^>[0m %ESC%[0mReset%ESC%[0m
echo ^<ESC^>[1m %ESC%[1mBold%ESC%[0m
echo ^<ESC^>[4m %ESC%[4mUnderline%ESC%[0m