Skip to content

Instantly share code, notes, and snippets.

View nicolay-r's full-sized avatar
🤗

Nicolay Rusnachenko nicolay-r

🤗
View GitHub Profile
@hamoid
hamoid / justTheDocsToPDF.bash
Last active January 23, 2026 12:02
Downloads a just-the-docs website and converts it into a PDF file for offline reading
#!/bin/bash
filename="openrndr-guide"
domain="guide.openrndr.org"
path="" # /some/folder/ if the guide is not located at /
mkdir -p /tmp/manual
cd /tmp/manual || exit
# curl downloads the index page of the website

Ubuntu 22.04 for Deep Learning

In the name of God

This gist contains steps to setup Ubuntu 22.04 for deep learning.


Install Ubuntu 22.04

@mrajchl
mrajchl / sitk_read_nii.py
Created June 8, 2018 15:01
Reading a .nii image with SimpleITK
import SimpleITK as sitk
import numpy as np
# A path to a T1-weighted brain .nii image:
t1_fn = './brain_t1_0001.nii'
# Read the .nii image containing the volume with SimpleITK:
sitk_t1 = sitk.ReadImage(t1_fn)
# and access the numpy array: