Skip to content

Instantly share code, notes, and snippets.

@thewtex
thewtex / itk-dask-blogpost.ipynb
Created March 3, 2023 12:43 — forked from GenevieveBuckley/itk-dask-blogpost.ipynb
ITK + Dask notebooks (August 2022)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@thewtex
thewtex / README.md
Last active January 19, 2018 21:33 — forked from juanpabloaj/README.md
Total of pip packages downloaded, separated by Python versions

Total of pip packages downloaded separated by Python versions

From September 26, 2017 to November 31, 2017.

Python versions from 2.6 to 3.6

downloads by version

@thewtex
thewtex / githubprivatereposetup.md
Created November 15, 2017 22:58 — forked from shivarajp/githubprivatereposetup.md
Jenkins Github private repository credentials setup

I just had to set up Jenkins to use GitHub. My notes (to myself, mostly):

Detailed Instructions

For setting up Jenkins to build GitHub projects. This assumes some ability to manage Jenkins, use the command line, set up a utility LDAP account, etc. Please share or improve this Gist as needed.

Install Jenkins Plugins

get both the git and github plugin http://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin

@thewtex
thewtex / transfer.fish
Created February 26, 2017 22:42 — forked from nl5887/transfer.fish
Bash and zsh alias for transfer.sh. Transfers files and directories to transfer.sh.
function transfer
if test (count $argv) -eq 0
echo "No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md"
return 1
end
## get temporarily filename, output is written to this file show progress can be showed
set tmpfile ( mktemp -t transferXXX )
## upload stdin or file
#ifndef _Registration_hpp
#define _Registration_hpp
#include <iostream>
//#include "Types.hpp"
#include <itkImageRegistrationMethod.h>
#include <itkTranslationTransform.h>
#include <itkMeanSquaresImageToImageMetric.h>
#include <itkLinearInterpolateImageFunction.h>
cmake_minimum_required( VERSION 2.8 )
project( Registration )
find_package( ITK REQUIRED )
include( ${ITK_USE_FILE} )
include_directories( ${CMAKE_CURRENT_SOURCE_DIR} )
add_executable( ${PROJECT_NAME} main.cpp )
cmake \
-DITK_BUILD_DEFAULT_MODULES:BOOL=OFF \
-DBUILD_TESTING:BOOL=OFF \
-DBUILD_EXAMPLES:BOOL=OFF \
-DITKGroup_Core:BOOL=OFF \
-DModule_ITKCommon:BOOL=ON \
-DCMAKE_SIZEOF_UNSIGNED_SHORT=2   \
-DCMAKE_TOOLCHAIN_FILE=/home/ibanez/src/emscripten/cmake/Platform/Emscripten.cmake -DCMAKE_BUILD_TYPE=Debug -G "Unix Makefiles"  ~/src/ITK
#!/usr/bin/env python
"""
simple example script for running and testing notebooks.
Usage: `ipnbdoctest.py foo.ipynb [bar.ipynb [...]]`
Each cell is submitted to the kernel, and the outputs are compared with those stored in the notebook.
"""
import os,sys,time