Ingredient | Quantity |
---|---|
Flour (00 or bread/all-purpose) | 875g (about 7 cups) |
Water | 525g (2 1/4 cups) for 00 flour (60% hydration) / 569g (2 1/3 cups) for bread/AP flour (65% hydration) |
Salt | 17.5g (3 tsp or 1 tbsp + 1 tsp) |
Active Dry Yeast | 3.5g (about 1 tsp) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eu | |
function current_kernel_version() { | |
uname -r | sed -r 's/-[a-z]+//' | |
} | |
function kernels() { | |
dpkg -l linux-{image,headers,modules,hwe,modules-extra}-"[0-9]*" | awk '/ii/{print $2}' | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -ex | |
set -o pipefail | |
# Check for sudo | |
if [[ $EUID -eq 0 ]]; then | |
echo "This script must not be run as root" | |
exit 1 | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import vtkImageMapper from 'vtk.js/Sources/Rendering/Core/ImageMapper'; | |
import * as vtkMath from 'vtk.js/Sources/Common/Core/Math'; | |
const { SlicingMode } = vtkImageMapper; | |
const ScreenSide = { | |
top: Symbol('top'), | |
bottom: Symbol('bottom'), | |
left: Symbol('left'), | |
right: Symbol('right'), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import simd | |
enum Axis { | |
enum Data { | |
case I | |
case J | |
case K | |
} | |
enum World { |
Ref: http://dicom.nema.org/medical/dicom/current/output/chtml/part03/sect_C.7.6.2.html#sect_C.7.6.2.1.1
The Image Orientation (Patient) dicom tag is (0020,0037)
, and is defined as 6 elements: "Ax, Ay, Az, Bx, By, Bz"
.
When described as a 3x3 rotation matrix R
, it's equivalent to:
Ax Bx Cx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Parameters | |
os_target_version=11 | |
gdcm_tag=v2.8.9 | |
install_dir=/usr/local/Frameworks/gdcm | |
# Directories | |
script_dir=$(cd $(dirname $0) || exit 1; pwd) | |
src_dir=${script_dir}/gdcm-src |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cmake /path/to/src \ | |
# -GXcode \ # or Ninja | |
# -DQt5_DIR=/path/to/Qt/5.13.0/ios/lib/cmake/Qt5 \ | |
# -DCMAKE_SYSTEM_NAME=iOS \ | |
# -DCMAKE_OSX_DEPLOYMENT_TARGET=11 \ | |
# -DCMAKE_INSTALL_PREFIX=/usr/local/frameworks \ | |
# -DCMAKE_OSX_ARCHITECTURES="arm64" \ # arm64 for device, x86_64 for simulator (but x86_64 not in installed Qt5 ios static libs?) | |
cmake_minimum_required (VERSION 3.14 FATAL_ERROR) | |
project (Foo VERSION 1.0 LANGUAGES C CXX) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <sstream> | |
#include <algorithm> | |
// Utility methods to be able to convert between various anatomical coordinate systems | |
namespace vtkAnatomicalOrientation { | |
enum class Axis { L, R, P, A, S, I, None }; | |
static const Axis ValidAxes[6] = { Axis::L, Axis::R, Axis::P, Axis::A, Axis::S, Axis::I }; | |
static std::string AxisToString(Axis axis) { | |
switch (axis) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[filter "lfs"] | |
clean = git-lfs clean -- %f | |
smudge = git-lfs smudge -- %f | |
process = git-lfs filter-process | |
required = true | |
[alias] | |
graph = log --graph --decorate --color --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' | |
lg = graph --first-parent | |
merges = lg --merges | |
amend = commit --amend --no-edit --signoff |
NewerOlder