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
/*========================================================================= | |
Program: Insight Segmentation & Registration Toolkit | |
Module: $RCSfile: ImageViewer.cxx,v $ | |
Language: C++ | |
Date: $Date: 2008-05-10 19:56:09 $ | |
Version: $Revision: 1.4 $ | |
Copyright (c) 2002 Insight Consortium. All rights reserved. | |
See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details. |
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
.... | |
void VTKImageIO2::StripSymmetricTensorBinaryBufferSymmetry( const void *fullBuffer, | |
void *strippedBuffer, | |
StreamingImageIOBase::SizeType num ) | |
{ | |
std::streamsize bytesRemaining = num; | |
const SizeType componentSize = this->GetComponentSize(); | |
SizeType pixelSize = componentSize * 6; | |
char zero[1024]; |
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 | |
info = """Add reviewers to a Gerrit change. | |
Authors of files that were edited are nominated as potential reviewers. | |
*Caveats* | |
- Should be executed from the root of the repository. | |
- Should be executed while checked out on the topic branch to be pushed to |
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 | |
# automatically give password to scripts that use ssh/scp and do not have public | |
# key authentification available. | |
PASSWORD = 'abc123' | |
import pexpect | |
import sys |
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 csv | |
import os | |
import sys | |
import subprocess | |
if len(sys.argv) < 2: | |
print('input class name CSV file') | |
sys.exit(1) |
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/sh | |
if test $# -lt 1; then | |
echo 'input old to new csv file' | |
exit 1 | |
fi | |
sed -e 's%^%s/%' -e 's%,%/%' -e 's%$%/g%' < "$1" > sed_script | |
find CMake Documentation CMakeLists.txt Examples Modules Testing Utilities Wrapping \ |
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
/*========================================================================= | |
* | |
* Copyright Insight Software Consortium | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0.txt | |
* |
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 | |
# Send a tmux, desktop, and audio notification after the completion | |
# of the given command when using tmux. | |
# | |
# Requires: tmux | |
# Recommended: espeak, libnotify | |
tmux_window=$(/usr/bin/tmux list-windows \ | |
-F "#{window_active} #{window_index} #{window_name}" | \ |
OlderNewer