Skip to content

Instantly share code, notes, and snippets.

View gauvinalexandre's full-sized avatar

Alexandre Gauvin gauvinalexandre

View GitHub Profile
import os
import argparse
import nibabel as nib
from nibabel.streamlines import Field
from nibabel.orientations import aff2axcodes
def build_argparser():
DESCRIPTION = "Convert tractograms (TCK -> TRK)."
@sytrus-in-github
sytrus-in-github / testColorfulQuiver3d.py
Created April 14, 2017 15:11
example script for matplotlib(2.0.0) quiver 3d custom coloring for each arrow
# tested with python 2 + matplotlib 2.0.0
from mpl_toolkits.mplot3d import axes3d
import matplotlib.pyplot as plt
import numpy as np
def getMaxXYZ(vec3ds):
mx, my, mz = vec3ds[0]
for (x, y, z) in vec3ds:
mx, my, mz = (max(x, mx), max(y, my), max(z, mz))
@bitsurgeon
bitsurgeon / nvidia.md
Last active June 20, 2024 16:56
install Nvidia driver on Ubuntu with Secure Boot

Install Nvidia Driver on Ubuntu 18.04.3

Secure Boot

This section applies to machines with Secure Boot, such as ThinkPad.

  1. Before installation, switch to "Discrete Graphics" in BIOS, if both Intel and Nvidia graphics are present.
  2. During installation, make sure to select the "Install third-party software for graphics and Wi-Fi hardware and addition media formats" in "Updates and other software" screen.
  3. Select "Configure Secure Boot", and set password.
  4. Continue Ubuntu installation as normal.