This file contains 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 os | |
from subprocess import Popen, PIPE | |
cli_path = "/home/fbudin/DTIPrep-build" | |
cli_name = "DTIPrep" | |
cli_filepath = os.path.join(cli_path, cli_name) | |
#cli_filepath = slicer.modules.addscalarvolumes.path | |
process = Popen([cli_filepath, "--xml"], stdout=PIPE) | |
output = process.communicate()[0] |
This file contains 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
foreach(const QFileInfo &info, srcDir.entryInfoList(QDir::Dirs | QDir::Files | QDir::NoDotAndDotDot|QDir::System)) | |
{ | |
QString srcItemPath = srcPath + "/" + info.fileName(); | |
QString dstItemPath = dstPath + "/" + info.fileName(); | |
if (info.isDir()) | |
{ | |
std::cout<< "Directory" << std::endl; | |
} | |
else if (info.isFile()) | |
{ |
This file contains 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 | |
#http://stackoverflow.com/questions/11465258/xlib-h-not-found-when-building-graphviz-on-mac-os-x-10-8-mountain-lion | |
export CPPFLAGS=-I/opt/X11/include |
This file contains 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/csh | |
make | |
lcov --directory . --zerocounters | |
ctest | |
lcov --directory . --capture --output-file app.info | |
genhtml app.info | |
firefox ./index.html |
This file contains 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/env bash | |
name="Ubuntu15.10-auto" | |
image="http://releases.ubuntu.com/15.10/ubuntu-15.10-desktop-amd64.iso" | |
# To show list of os types available, type "VBoxManage list ostypes" | |
ostype="Ubuntu_64" | |
cpu="2" | |
memory="2048" | |
cpuexecutioncap="80" | |
image_basename=`basename $image` | |
#image_basename_no_ext="${image_basename%.*}" |
This file contains 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
From http://wiki.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/Build_Instructions#Ubuntu | |
sudo apt-get install subversion git-core git-svn | |
sudo apt-get install make gcc g++ libX11-dev libXt-dev libgl1-mesa-dev libglu1-mesa-dev libfontconfig-dev libxrender-dev libncurses5-dev | |
sudo apt-get install qt4-qmake | |
sudo apt-get install libqt4-dev libqt4-dev-bin libqt4-opengl-dev libqt4-qt3support libqt4-webkit-dev qt4-linguist-tools qt4-designer qtcreator | |
sudo apt-get install libssl-dev | |
mkdir ~/Support && cd Support | |
wget http://www.cmake.org/files/v3.4/cmake-3.4.1.tar.gz |
This file contains 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
#!/usr/bin/env python | |
import itk | |
import tempfile | |
import os | |
def pixel_type_from_IO(pixel, component,dimension): | |
import itk | |
if pixel == 'scalar': | |
PixelType = component |
This file contains 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
#!/usr/bin/env python | |
# Written by someone who posted it on Slack | |
import requests | |
links = [ | |
'https://github.com/kwmsmith/scipy-2017-cython-tutorial', | |
'https://github.com/gforsyth/numba_tutorial_scipy2017', | |
'https://github.com/sympy/scipy-2017-codegen-tutorial', |
This file contains 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_minimum_required(VERSION 2.8.10.2) | |
# | |
# This project allows to configure, build, archive and upload an OpenSSL install tree. | |
# | |
if(DEFINED UPLOAD_PACKAGE_SCRIPT) | |
set(MIDAS_URL "http://packages.kitware.com") | |
set(FOLDER_ID 203) |
This file contains 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
trap { Write-Error $_; Exit 1 } | |
if (![System.IO.File]::Exists(".\install-utils.ps1")) { | |
Write-Host "Download install-utils.ps1" | |
$url = "https://raw.githubusercontent.com/scikit-build/scikit-ci-addons/master/windows/install-utils.ps1" | |
$cwd = (Get-Item -Path ".\" -Verbose).FullName | |
(new-object net.webclient).DownloadFile($url, "$cwd\install-utils.ps1") | |
} | |
Import-Module .\install-utils.ps1 -Force |
OlderNewer