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 3.17.5) | |
message(STATUS "ENV{CUDA_PATH} [$ENV{CUDA_PATH}]") | |
message(STATUS "---- CMAKE_CUDA_COMPILER [${CMAKE_CUDA_COMPILER}]") | |
project(Sandbox) | |
set(CMAKE_CUDA_STANDARD 14) | |
set(CMAKE_CUDA_STANDARD_REQUIRED TRUE) |
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
set cmake_exe=C:\cmake-3.22.1\bin\cmake.exe | |
set root_dir=C:\P | |
set source_dir=%root_dir%\S | |
set build_dir=%root_dir%\S-rwdi | |
set build_type=RelWithDebInfo | |
cd %root_dir% | |
%cmake_exe% -G "Visual Studio 17 2022" -A x64 ^ |
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 asyncio | |
import time | |
def app_print(*args, **kwargs): | |
print(*args, **kwargs) | |
slicer.app.processEvents() | |
async def say_after(delay, what): |
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
class CustomAppShortcutBlocker(qt.QObject): | |
def eventFilter(self, object, event): | |
""" | |
Custom event filter for allowing only specific shortcuts. | |
""" | |
# See https://doc.qt.io/qt-5/qkeyevent.html#details | |
if event.type() == qt.QEvent.Shortcut: | |
# Only allow showing/hiding "Error log" | |
if event.key() == qt.QKeySequence("Ctrl+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
set(proj python-scikit-image) | |
# Set dependency list | |
set(${proj}_DEPENDENCIES | |
python | |
python-pip | |
python-setuptools | |
) | |
if(NOT DEFINED Slicer_USE_SYSTEM_${proj}) |
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
class EventManager(qt.QObject): | |
def eventFilter(self, object, event): | |
""" | |
Custom event filter for Slicer Main Window. | |
Inputs: Object (QObject), Event (QEvent) | |
""" | |
if event.type() == qt.QEvent.DragEnter: | |
self.dragEnterEvent(event) | |
return True |
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
Andras | |
Andruejol | |
Aucoin | |
Allowlist | |
Arial | |
Backend | |
Blocklist | |
Canaria | |
Cancelling | |
Cividis |
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
# SPDX-FileCopyrightText: 2023 Jean-Christophe Fillion-Robin <[email protected]> | |
# SPDX-License-Identifier: BSD-3-Clause | |
#----------------------------------------------------------------------------- | |
tag_name=collection-archives | |
release_name=CollectionArchives | |
git checkout --orphan=${tag_name} | |
git rm -rf . | |
#----------------------------------------------------------------------------- |
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
# SPDX-FileCopyrightText: 2023 Jean-Christophe Fillion-Robin <[email protected]> | |
# SPDX-License-Identifier: BSD-3-Clause | |
import ast | |
import argparse | |
import errno | |
import os | |
import sys | |
import astor |
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 | |
# This script allows to patch the Boost libraries changing the occurences of `@rpath` | |
# back to a full path specific to this dashboard. | |
# | |
# This is currently required by Slicer macOS packaging infrastructure. | |
set -euo pipefail | |
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" |
NewerOlder