Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Jean-Christophe Fillion-Robin jcfr

🎯
Focusing
Block or report user

Report or block jcfr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jcfr
jcfr / vtkITKTransformInverse.h
Created Mar 9, 2019
vtkITKTransformInverse.h difference between Slicer PR#1099 and PR#1096
View vtkITKTransformInverse.h
// PR#1096
// https://github.com/Slicer/Slicer/pull/1096/commits/5d8cce93acfcd9504e98cb318e1ddff92afea723#diff-685fe5dc92e213efacb56c685635f8a7
/*=========================================================================
Program: Visualization Toolkit
Module: $RCSfile: vtkITKTransformInverse.h,v $
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
View maker_layer_structures.py
from allensdk.api.queries.rma_api import RmaApi
import allensdk.core.json_utilities as ju
all_structs = []
root = RmaApi().model_query("Structure", criteria="[graph_id$eq1],[acronym$eqgrey]")[0]
all_structs.append(root)
View dmctk-CMakeCache.txt
# This is the CMakeCache file.
# For build in directory: /work/Slicer-build/DCMTK-build
# It was generated by CMake: /usr/bin/cmake
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the editor.
# If you do want to change a value, simply edit, save, and exit the editor.
# The syntax for the file is as follows:
# KEY:TYPE=VALUE
# KEY is the name of a variable in the cache.
# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
@jcfr
jcfr / CMakeLists.txt
Last active Aug 9, 2018
Project created while working on Slicer issue "4595: multiple rules generate slicer (ninja error)". See https://issues.slicer.org/view.php?id=4595
View CMakeLists.txt
cmake_minimum_required(VERSION 3.12)
project(Test LANGUAGES CXX)
# launcher executable
set(CTKAppLauncher_EXECUTABLE ${CMAKE_CURRENT_BINARY_DIR}/fake_launcher_executable)
file(WRITE ${CTKAppLauncher_EXECUTABLE} "")
# application and executable name
View CMakeLists.txt
cmake_minimum_required(VERSION 3.12)
set(CMAKE_CXX_STANDARD 11)
project(Test)
option(${PROJECT_NAME}_SUPERBUILD "Build ${PROJECT_NAME} and the projects it depends on." ON)
if(${PROJECT_NAME}_SUPERBUILD)
include("${CMAKE_CURRENT_SOURCE_DIR}/SuperBuild.cmake")
@jcfr
jcfr / Dockerfile
Last active Aug 2, 2018 — forked from manthey/Dockerfile
Manylinux docker file to install libtiff and openslide
View Dockerfile
#FROM quay.io/pypa/manylinux1_x86_64
FROM dockcross/manylinux-x64
# FROM quay.io/pypa/manylinux1_i686
# Includes glibc 2.5
RUN mkdir /build
WORKDIR /build
RUN yum install -y \
# for easier development
View verify_cmake_check_for_bad_ssl_cert.cmake
#
# slicer_check_cmake_https
#
# Check if CMake supports downloading files using the HTTPS protocol. Fail if
# HTTPS is unsupported.
#
# CMake should support HTTPS when compiled with CMAKE_USE_OPENSSL enabled.
#
# Based on the script created by Jean-Christophe Fillion-Robin:
# https://gist.github.com/jcfr/e88a2a7cbc4ddd235186
View cronjob_docker_cleanup.sh
#!/bin/bash
#
# This script maintained at https://gist.github.com/jcfr/0bb9b695a5f1511a4b66f9e872d44743
#
#
# Source: https://lebkowski.name/docker-volumes/#recap
#
@jcfr
jcfr / slicer_git_history_350_largest_files.txt
Created Mar 27, 2018
List of the 350 largest files committed into Slicer Git history based of Slicer/Slicer@27109 mapping to r27109 from 2018-03-26
View slicer_git_history_350_largest_files.txt
size pack_size sha location
55MiB 55MiB 2cadcca7dd65c008c03ca0786ed3b02ad86cc900 Modules/Meshing/Testing/Data/CA05042124RFinal.img.gz
22MiB 4.9MiB 56760af8680e9ff7e857a97b384fb9c0b974ea11 Modules/Meshing/Testing/Data/lumbar_smoothed_04075.stl
15MiB 4.6MiB 0b64a9fbd9a0b02f65c726da71b7128013b94e3a Modules/CLI/RigidRegistration/Data/Baseline/RigidRegistrationTest02.nrrd
13MiB 13MiB d8ffda6d56ebd27758e54d3550dd64ff362a9589 Applications/CLI/BRAINSTools/BRAINSCommonLib/TestData/OutDefField_orientedImage.nii.gz
13MiB 7.0MiB f56677b93dfcf31975dd86e2b4cff954795467e5 Modules/CLI/ModelToLabelMap/Data/Input/OAS10001.img
12MiB 11MiB 82101881013d74236903d672b5e85b138cd96acd Modules/TumorGrowth/Testing/Script-Results/TG_Deformable_Deformation_Inverse.mha
12MiB 11MiB 3d8a4983f4df3b7c5f77f6d945ce415d0495c1c7 Modules/TumorGrowth/Testing/GUI-Results/TG_Deformable_Deformation_Inverse.mha
@jcfr
jcfr / git_list_largest_file_from_history.sh
Last active Mar 28, 2018
Shell script listing the N largest file found in the history of a git-versioned project
View git_list_largest_file_from_history.sh
#!/bin/bash
set -eo pipefail
#
# This script will list the N largest files found in the history of a Git project.
#
# References:
# * https://docs.acquia.com/article/removing-large-files-git-without-losing-history
# * https://stackoverflow.com/questions/10622179/how-to-find-identify-large-files-commits-in-git-history
You can’t perform that action at this time.