Skip to content

Instantly share code, notes, and snippets.

View thewtex's full-sized avatar
🌞
Getting into a release groove

Matt McCormick thewtex

🌞
Getting into a release groove
View GitHub Profile
@thewtex
thewtex / RecordAVideoBonsai.ipynb
Last active August 27, 2018 20:40
JupyterLab record an itk-jupyter-widgets bonsai tree volume video
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 / itkFourierStripeArtifactImageFilterPython.py
Created November 29, 2017 20:32
itkFourierStripeArtifactImageFilterPython.py
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.12
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info as _swig_python_version_info
if _swig_python_version_info >= (3, 0, 0):
new_instancemethod = lambda func, inst, cls: _itkFourierStripeArtifactImageFilterPython.SWIG_PyInstanceMethod_New(func)
else:
@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

#!/usr/bin/env bash
set -x
ctest -S KWDashboardScripts/metroplex_itk_codecov.cmake -V
cp KWDashboardScripts/itk_codecov.yml Tests/ITKCodeCov-build/codecov.yml
cd Tests/ITKCodeCov-build
# Capture coverage info
lcov --directory . --capture --output-file coverage.info
# Filter out system, third party files
# Client maintainer: [email protected]
cmake_minimum_required(VERSION 3.5)
set(CTEST_SITE "metroplex.kitware")
set(CTEST_BUILD_NAME "CodeCov")
set(CTEST_BUILD_CONFIGURATION "Debug")
set(CTEST_BUILD_FLAGS "")
set(CTEST_CMAKE_GENERATOR "Ninja")
set(CTEST_TEST_ARGS PARALLEL_LEVEL 12)
set(ENV{ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS} 8)
codecov:
notify:
require_ci_to_pass: no
disable_default_path_fixes: yes
fixes:
- "work/Tests/ITK/::"
- "work/Tests/ITKCodeCov-build/::"
ignore:
- "usr/include/.*"
@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
+ ./#work#Tests#ITK#Examples#Filtering#GradientMagnitudeImageFilter.cxx.gcov bytes=14495
+ ./#work#Tests#ITK#Examples#Filtering#SmoothingRecursiveGaussianImageFilter.cxx.gcov bytes=21478
+ ./#work#Tests#ITK#Examples#Filtering#LaplacianRecursiveGaussianImageFilter2.cxx.gcov bytes=15679
+ ./#work#Tests#ITK#Examples#Segmentation#LaplacianSegmentationLevelSetImageFilter.cxx.gcov bytes=26306
==> Appending adjustments
http://docs.codecov.io/docs/fixing-reports
+ Found 55595 adjustments
==> Uploading reports
url: https://codecov.io
query: branch=&commit=&build=&build_url=&tag=&slug=&yaml=&service=&flags=&pr=&job=