Instruction
stringlengths
14
778
input_code
stringlengths
0
4.24k
output_code
stringlengths
1
5.44k
Update the SphinxExamples Remote Module.
# Contact: Matt McCormick <matt.mccormick@kitware.com> itk_fetch_module(SphinxExamples "This module builds the examples found at http://itk.org/ITKExamples/" GIT_REPOSITORY ${git_protocol}://itk.org/ITKExamples.git # 2015-07-09 GIT_TAG 2bc08a52aa0437da776cc777157f25b7b525b46f )
# Contact: Matt McCormick <matt.mccormick@kitware.com> itk_fetch_module(SphinxExamples "This module builds the examples found at http://itk.org/ITKExamples/" GIT_REPOSITORY http://itk.org/ITKExamples.git # 2016-01-27 GIT_TAG 3dfb50ce56c79cbc3f889d402ce1a920c1663a0f )
Check for errors with -Weverything
SET (CMAKE_C_COMPILER "clang") SET (CMAKE_CXX_COMPILER "clang++") SET(CMAKE_C_FLAGS "-pipe -Wall -Wextra -Wshadow -Wformat=2 -Wwrite-strings -std=c99 -pedantic" CACHE STRING "" FORCE) SET(CMAKE_C_FLAGS_RELEASE "-O2 -fomit-frame-pointer" CACHE STRING "" FORCE) SET(CMAKE_C_FLAGS_DEBUG "-O0 -ggdb" CACHE STRING "" FORCE)...
SET (CMAKE_C_COMPILER "clang") SET (CMAKE_CXX_COMPILER "clang++") SET(CMAKE_C_FLAGS "-pipe -Weverything -std=c99 -pedantic" CACHE STRING "" FORCE) SET(CMAKE_C_FLAGS_RELEASE "-O2 -fomit-frame-pointer" CACHE STRING "" FORCE) SET(CMAKE_C_FLAGS_DEBUG "-O0 -ggdb" CACHE STRING "" FORCE) IF(NOT CMAKE_BUILD_TYPE ) SET(CMA...
Address memory leak, remove NumPy build dep in BridgeNumPy
# Contact: Matt McCormick <matt.mccormick@kitware.com> itk_fetch_module(BridgeNumPy "This module contains wrapper code to convert ITK Image's to NumPy array's and back. For example: import itk ImageType = itk.Image[itk.F, 2] image = ImageType.New() array = itk.PyBuffer[ImageType].GetArrayFromImage...
# Contact: Matt McCormick <matt.mccormick@kitware.com> itk_fetch_module(BridgeNumPy "This module contains wrapper code to convert ITK Image's to NumPy array's and back. For example: import itk ImageType = itk.Image[itk.F, 2] image = ImageType.New() array = itk.PyBuffer[ImageType].GetArrayFromImage...
Improve boost helper for reconfigures.
# Help CMake find recent Boost MSVC binaries without manual configuration. if(MSVC AND (NOT Boost_INCLUDE_DIR OR NOT Boost_LIBRARY_DIR)) math(EXPR _vs_ver "${MSVC_VERSION} / 100 - 6") if(CMAKE_CXX_SIZEOF_DATA_PTR EQUAL 8) set(_libdir "lib64-msvc-${_vs_ver}.0") else() set(_libdir "lib32-msvc-...
# Help CMake find recent Boost MSVC binaries without manual configuration. if(MSVC AND (NOT Boost_INCLUDE_DIR OR NOT Boost_LIBRARY_DIR)) math(EXPR _vs_ver "${MSVC_VERSION} / 100 - 6") if(CMAKE_CXX_SIZEOF_DATA_PTR EQUAL 8) set(_libdir "lib64-msvc-${_vs_ver}.0") else() set(_libdir "lib32-msvc-...
Disable building swift-lldb with modules until Swift is modularized.
set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING "") set(CMAKE_EXPORT_COMPILE_COMMANDS ON CACHE BOOL "") set(LLVM_TARGETS_TO_BUILD X86;ARM;AArch64 CACHE STRING "") set(LLVM_INSTALL_TOOLCHAIN_ONLY ON CACHE BOOL "") set(LLVM_ENABLE_ASSERTIONS ON CACHE BOOL "") set(LLVM_ENABLE_MODULES ON CACHE BOOL "") # Release builds ...
set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING "") set(CMAKE_EXPORT_COMPILE_COMMANDS ON CACHE BOOL "") set(LLVM_TARGETS_TO_BUILD X86;ARM;AArch64 CACHE STRING "") set(LLVM_INSTALL_TOOLCHAIN_ONLY ON CACHE BOOL "") set(LLVM_ENABLE_ASSERTIONS ON CACHE BOOL "") # Unfortunately this is blocked on Swift being properly modu...
Update libusb to fix get_device_list hang
message(STATUS "Use external libusb") include(ExternalProject) ExternalProject_Add( libusb GIT_REPOSITORY "https://github.com/libusb/libusb.git" GIT_TAG "v1.0.22" UPDATE_COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/third-party/libusb/CMakeLists.txt ${CMAKE_CURR...
message(STATUS "Use external libusb") include(ExternalProject) ExternalProject_Add( libusb GIT_REPOSITORY "https://github.com/libusb/libusb.git" GIT_TAG "2a7372db54094a406a755f0b8548b614ba8c78ec" # "v1.0.22" + Mac get_device_list hang fix UPDATE_COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CU...
Add missing module dependencies for ITKTestKernel.
set(DOCUMENTATION "This Module contains helper classes used for the Testing infrastructure of ITK. As an application developer you should not normally need any of these classes. However, they are essential for the quality control system supporting ITK.") itk_module(ITKTestKernel DEPENDS ITKIOPNG ITKIOMeta ...
set(DOCUMENTATION "This Module contains helper classes used for the Testing infrastructure of ITK. As an application developer you should not normally need any of these classes. However, they are essential for the quality control system supporting ITK.") itk_module(ITKTestKernel DEPENDS ITKIOBioRad ITKIOBMP ...
Add a comment explaining ppc64le vs. powerpc64le
set(CMAKE_SYSTEM_NAME Linux) set(CMAKE_SYSTEM_PROCESSOR ppc64le) set(CMAKE_C_COMPILER powerpc64le-linux-gnu-gcc) set(CMAKE_CXX_COMPILER powerpc64le-linux-gnu-g++)
set(CMAKE_SYSTEM_NAME Linux) # Linux and GNU have different names for little-endian 64-bit PowerPC. # # Linux calls it "ppc64le"[1], and that's what CMake ends up using for # CMAKE_SYSTEM_PROCESSOR since it's set using `uname -r`[2] which comes from # the kernel. # # GNU calls it "powerpc64le"[3], so we use that to na...
Use CMake TIMESTAMP, remove newline from TODAY
# This script returns the current date in ISO format # # YYYY-MM-DD # MACRO (TODAY RESULT) IF (WIN32) EXECUTE_PROCESS(COMMAND "cmd" " /C date +%Y-%m-%d" OUTPUT_VARIABLE ${RESULT}) string(REGEX REPLACE "(..)/(..)/..(..).*" "\\1/\\2/\\3" ${RESULT} ${${RESULT}}) ELSEIF(UNIX) if (DEFINED ENV...
# This script returns the current date in ISO format # # YYYY-MM-DD # MACRO (TODAY RESULT) if (DEFINED ENV{SOURCE_DATE_EPOCH} AND NOT WIN32) EXECUTE_PROCESS(COMMAND "date" "-u" "-d" "@$ENV{SOURCE_DATE_EPOCH}" "+%Y-%m-%d" OUTPUT_VARIABLE ${RESULT} OUTPUT_STRIP_TRAILING_WHITESPACE) ...
Add error handling to discovery module
set(_DISCOVER_SCRIPT "${CMAKE_CURRENT_LIST_DIR}/../Scripts/CppUTestBuildTimeDiscoverTests.cmake") # Create target to discover tests function (cpputest_buildtime_discover_tests tgt) add_custom_command( TARGET ${tgt} POST_BUILD COMMAND ${CMAKE_COMMAND} -D "TESTS_DETAILED:BOOL=${TESTS_DETAILED}" ...
set(_DISCOVER_SCRIPT "${CMAKE_CURRENT_LIST_DIR}/../Scripts/CppUTestBuildTimeDiscoverTests.cmake") # Create target to discover tests function (cpputest_buildtime_discover_tests tgt) if(NOT TARGET ${tgt}) message(FATAL_ERROR "Cannot discover tests for target \"${tgt}\" " "which is not built by this pro...
Fix the version in the user guide.
<?xml version="1.0" encoding="utf-8"?> <!-- This file contains all common entities. tnt.ent is built by cmake from tnt.ent.cmake. --> <!ENTITY tnt_version "@TARANTOOL_VERSION@"> <!-- Include the standard ISO 8879 publishing entities --> <!ENTITY % isopub PUBLIC "ISO 8879:1986//ENTITIES Publishing//EN//XML" ...
<?xml version="1.0" encoding="utf-8"?> <!-- This file contains all common entities. tnt.ent is built by cmake from tnt.ent.cmake. --> <!ENTITY tnt_version "@PACKAGE_VERSION@"> <!-- Include the standard ISO 8879 publishing entities --> <!ENTITY % isopub PUBLIC "ISO 8879:1986//ENTITIES Publishing//EN//XML" ...
Add the CTK external library dirs to the link dirs.
# message("In package CTK config") find_package(CTK REQUIRED) list(APPEND ALL_INCLUDE_DIRECTORIES ${CTK_INCLUDE_DIRS}) list(APPEND ALL_LIBRARIES ${CTK_LIBRARIES}) link_directories(${CTK_LIBRARY_DIRS})
# message("In package CTK config") find_package(CTK REQUIRED) list(APPEND ALL_INCLUDE_DIRECTORIES ${CTK_INCLUDE_DIRS}) list(APPEND ALL_LIBRARIES ${CTK_LIBRARIES}) link_directories(${CTK_LIBRARY_DIRS} ${CTK_EXTERNAL_LIBRARY_DIRS})
Add missing alias for installed builds
include(CMakeFindDependencyMacro) find_dependency(range-v3 0.10.0) include(${CMAKE_CURRENT_LIST_DIR}/jegp-targets.cmake)
include(CMakeFindDependencyMacro) find_dependency(range-v3 0.10.0) include(${CMAKE_CURRENT_LIST_DIR}/jegp-targets.cmake) add_library(jegp::jegp INTERFACE IMPORTED) target_link_libraries(jegp::jegp INTERFACE jegp)
Fix duplication of WARN_ONLY in test where WARN_ONLY is not required.
# /test/CreateTargetForUnusedFunctionCheckWarnOnly.cmake # Adds some sources to the global unused function check properties and adds # checks to a newly created external target, but only for warnings. # # See LICENCE.md for Copyright Information. include (${CPPCHECK_COMMON_UNIVERSAL_CMAKE_DIRECTORY}/CPPCheck.cmake) in...
# /test/CreateTargetForUnusedFunctionCheckWarnOnly.cmake # Adds some sources to the global unused function check properties and adds # checks to a newly created external target. # # See LICENCE.md for Copyright Information. include (${CPPCHECK_COMMON_UNIVERSAL_CMAKE_DIRECTORY}/CPPCheck.cmake) include (${CPPCHECK_COMMO...
Add support for 4k/12MP inputs
# Maturity level "snapshot" / "release" set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot") # "full commit hash of device side binary" set(DEPTHAI_DEVICE_SIDE_COMMIT "165ade159396e09389e2c66572b15edc1770d1f8") # "version if applicable" set(DEPTHAI_DEVICE_SIDE_VERSION "")
# Maturity level "snapshot" / "release" set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot") # "full commit hash of device side binary" set(DEPTHAI_DEVICE_SIDE_COMMIT "28471d4d80ffe0dcd9c251544e5da2aecfc2ec48") # "version if applicable" set(DEPTHAI_DEVICE_SIDE_VERSION "")
Fix the hardcoded Debian package dependencies
#Tweaks for the different package types if (${CPACK_GENERATOR} STREQUAL "DEB") #set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON) set(CPACK_DEBIAN_PACKAGE_DEPENDS "libc6 (>=2.7-18), openssl (>=1.0.1f), zlib (>=1.2.8), czmq (>=1.4.1), apr-accre (>= 1.5.0), apr-util-ACCRE (>=1.5.3), zeromq (=>4.0.1)") elseif (${CPACK_GENERAT...
#Tweaks for the different package types if (${CPACK_GENERATOR} STREQUAL "DEB") #set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON) set(CPACK_DEBIAN_PACKAGE_DEPENDS "libc6 (>=2.7-18), openssl (>=1.0.1f), zlib1g (>= 1:1.1.4), czmq (>=1.4.1), libapr-accre1 (>= 1.5.0), libapr-accre-util1 (>=1.5.3), libzmq3 (>=4.0.1)") elseif ($...
Add link to the bug
# Copyright (c) 2015, Ruslan Baratov, Alexandre Pretyman # All rights reserved. if(DEFINED HUNTER_CMAKE_PROJECTS_QT_HUNTER_CMAKE) return() else() set(HUNTER_CMAKE_PROJECTS_QT_HUNTER_CMAKE 1) endif() include(hunter_add_version) include(hunter_cacheable) include(hunter_configuration_types) hunter_add_version( ...
# Copyright (c) 2015, Ruslan Baratov, Alexandre Pretyman # All rights reserved. if(DEFINED HUNTER_CMAKE_PROJECTS_QT_HUNTER_CMAKE) return() else() set(HUNTER_CMAKE_PROJECTS_QT_HUNTER_CMAKE 1) endif() include(hunter_add_version) include(hunter_cacheable) include(hunter_cmake_args) include(hunter_configuration_types...
Add Karabiner-DriverKit-VirtualHIDDevice/include to header search path
# Common configurations set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15" CACHE STRING "Minimum OS X deployment version") set(CMAKE_CXX_STANDARD 17) include_directories(SYSTEM ${CMAKE_CURRENT_LIST_DIR}/vendor) include_directories(SYSTEM ${CMAKE_CURRENT_LIST_DIR}/vendor/cget/include) include_directories(${CMAKE_CURRENT_LIST_DI...
# Common configurations set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15" CACHE STRING "Minimum OS X deployment version") set(CMAKE_CXX_STANDARD 17) include_directories(SYSTEM ${CMAKE_CURRENT_LIST_DIR}/vendor) include_directories(SYSTEM ${CMAKE_CURRENT_LIST_DIR}/vendor/cget/include) include_directories(SYSTEM ${CMAKE_CURRENT_...
Refactor VTK_ADD_EXECUTABLE macro to build forwarding executables.
if(NOT VTK_INSTALL_EXPORT_NAME) set(VTK_INSTALL_EXPORT_NAME VTKTargets) endif() MACRO(VTK_ADD_LIBRARY name) ADD_LIBRARY(${name} ${ARGN}) SET_PROPERTY(GLOBAL APPEND PROPERTY VTK_TARGETS ${name}) ENDMACRO(VTK_ADD_LIBRARY) MACRO(VTK_ADD_EXECUTABLE name) ADD_EXECUTABLE(${name} ${ARGN}) SET_PROPERTY(GLOBAL APPEN...
if(NOT VTK_INSTALL_EXPORT_NAME) set(VTK_INSTALL_EXPORT_NAME VTKTargets) endif() MACRO(VTK_ADD_LIBRARY name) add_library(${name} ${ARGN}) set_property(GLOBAL APPEND PROPERTY VTK_TARGETS ${name}) ENDMACRO(VTK_ADD_LIBRARY) MACRO(VTK_ADD_EXECUTABLE name) if(UNIX AND VTK_BUILD_FORWARDING_EXECUTABLES) add_execu...
Update IOSTL module for KWStyle test.
# Contact: Luis Ibanez <luis.ibanez@kitware.com> itk_fetch_module(IOSTL "This module contains classes for reading and writing QuadEdgeMeshes using the STL (STereoLithography)file format. http://hdl.handle.net/10380/3452" GIT_REPOSITORY https://github.com/InsightSoftwareConsortium/ITKSTLMeshIO.git GIT_TAG 933359...
# Contact: Luis Ibanez <luis.ibanez@kitware.com> itk_fetch_module(IOSTL "This module contains classes for reading and writing QuadEdgeMeshes using the STL (STereoLithography)file format. http://hdl.handle.net/10380/3452" GIT_REPOSITORY https://github.com/InsightSoftwareConsortium/ITKSTLMeshIO.git GIT_TAG 300fff...
Switch back to staging repo for CDash
## This file should be placed in the root directory of your project. ## Then modify the CMakeLists.txt file in the root directory of your ## project to incorporate the testing dashboard. ## ## # The following are required to submit to the CDash dashboard: ## ENABLE_TESTING() ## INCLUDE(CTest) set(DART_TESTING_TIME...
## This file should be placed in the root directory of your project. ## Then modify the CMakeLists.txt file in the root directory of your ## project to incorporate the testing dashboard. ## ## # The following are required to submit to the CDash dashboard: ## ENABLE_TESTING() ## INCLUDE(CTest) set(DART_TESTING_TIME...
Revert removing saving test log to file
macro(package_add_test TESTNAME) add_executable(${TESTNAME}.x ${ARGN}) target_compile_options(${TESTNAME}.x PRIVATE -Wunused-parameter -Wall) target_link_libraries(${TESTNAME}.x JPetFramework Boost::unit_test_framework) add_test(NAME ${TESTNAME}.x COMMAND ${TESTNAME}.x "--log_level=ERROR --log_format=XM...
macro(package_add_test TESTNAME) add_executable(${TESTNAME}.x ${ARGN}) target_compile_options(${TESTNAME}.x PRIVATE -Wunused-parameter -Wall) target_link_libraries(${TESTNAME}.x JPetFramework Boost::unit_test_framework) add_test(NAME ${TESTNAME}.x COMMAND ${TESTNAME}.x "--log_level=ERROR --log_format=XM...
Fix pthread issue. Per target include directories.
# gtest. include(ExternalProject) ExternalProject_Add(gtest_ext SVN_REPOSITORY "http://googletest.googlecode.com/svn/tags/release-1.7.0" BINARY_DIR "${CMAKE_BINARY_DIR}/third-party/gtest-build" SOURCE_DIR "${CMAKE_BINARY_DIR}/third-party/gtest-src" CMAKE_ARGS "${gtest_cmake_args}" ...
# gtest. include(ExternalProject) ExternalProject_Add(gtest_ext SVN_REPOSITORY "http://googletest.googlecode.com/svn/tags/release-1.7.0" BINARY_DIR "${CMAKE_BINARY_DIR}/third-party/gtest-build" SOURCE_DIR "${CMAKE_BINARY_DIR}/third-party/gtest-src" CMAKE_ARGS "${gtest_cmake_args}" ...
Update config file for new cdash board.
set(UPDATE_TYPE "true") set(MEMORYCHECK_SUPPRESSIONS_FILE ${CMAKE_SOURCE_DIR}/tests/valgrind.supp) set(CTEST_PROJECT_NAME "libssh") set(CTEST_NIGHTLY_START_TIME "04:00:00 CET") set(CTEST_DROP_METHOD "http") set(CTEST_DROP_SITE "my.cdash.org") set(CTEST_DROP_LOCATION "/submit.php?project=${CTEST_PROJECT_NAME}") set(C...
set(UPDATE_TYPE "true") set(MEMORYCHECK_SUPPRESSIONS_FILE ${CMAKE_SOURCE_DIR}/tests/valgrind.supp) set(CTEST_PROJECT_NAME "libssh") set(CTEST_NIGHTLY_START_TIME "01:00:00 CET") set(CTEST_DROP_METHOD "http") set(CTEST_DROP_SITE "test.libssh.org") set(CTEST_DROP_LOCATION "/submit.php?project=libssh") set(CTEST_DROP_SI...
Set SimpleITK version to 2.0.0
# # ONLY MODIFY TO CHANGE VERSION # # The number of commits since last this file has changed is used to # define "dev" and "post", modification of this file will reset that # version. # # Version info set(SimpleITK_VERSION_MAJOR 1) set(SimpleITK_VERSION_MINOR 3) set(SimpleITK_VERSION_PATCH 0) #set(SimpleITK_VERSION_T...
# # ONLY MODIFY TO CHANGE VERSION # # The number of commits since last this file has changed is used to # define "dev" and "post", modification of this file will reset that # version. # # Version info set(SimpleITK_VERSION_MAJOR 2) set(SimpleITK_VERSION_MINOR 0) set(SimpleITK_VERSION_PATCH 0) #set(SimpleITK_VERSION_T...
Exclude data directory and meshes from submission archive.
# for submission generation set (CPACK_GENERATOR "") set (CPACK_SOURCE_GENERATOR "ZIP") set (CPACK_INCLUDE_TOPLEVEL_DIRECTORY OFF) list (APPEND CPACK_SOURCE_IGNORE_FILES build/) set (CPACK_SOURCE_PACKAGE_FILE_NAME ${CMAKE_PROJECT_NAME}-${PROJECT_AUTHOR_SHORTNAME}) # add out-of-source directories set (CPACK_SOURCE_INS...
# for submission generation set (CPACK_GENERATOR "") set (CPACK_SOURCE_GENERATOR "ZIP") set (CPACK_INCLUDE_TOPLEVEL_DIRECTORY OFF) list (APPEND CPACK_SOURCE_IGNORE_FILES build/ data/ .*\.mesh) set (CPACK_SOURCE_PACKAGE_FILE_NAME ${CMAKE_PROJECT_NAME}-${PROJECT_AUTHOR_SHORTNAME}) # add out-of-source directories set (C...
Disable PhysFS tests. For some reason they tried to build by default on Mac.
# Build a local version INCLUDE(ExternalProject) SET(physfs_PREFIX ${CMAKE_CURRENT_BINARY_DIR}/physfs) SET(physfs_CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR> -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DCMAKE_DEBUG_POSTFIX=d ) ExternalProject_Add(physfs PREFIX ${physfs_PREFIX} ...
# Build a local version INCLUDE(ExternalProject) SET(physfs_PREFIX ${CMAKE_CURRENT_BINARY_DIR}/physfs) SET(physfs_CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR> -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DCMAKE_DEBUG_POSTFIX=d -DPHYSFS_BUILD_TEST=FALSE -DPHYSFS_BUILD_WX_TEST=FALSE )...
Update to point at new CDash.
# Copyright 2006-2008 The FLWOR Foundation. # # 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 # # Unless required by applicable law or agreed t...
# Copyright 2006-2008 The FLWOR Foundation. # # 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 # # Unless required by applicable law or agreed t...
Change pkgconfig hiredis library search method
find_package(PkgConfig) if (PKG_CONFIG_FOUND) pkg_search_module(SHARED_HIREDIS REQUIRED hiredis) endif() find_path(HIREDIS_INCLUDE_DIR hiredis/hiredis.h HINTS ${SHARED_HIREDIS_INCLUDEDIR} ${SHARED_HIREDIS_INCLUDE_DIRS} ${LIMIT_SEARCH}) find_library(HIREDIS_LIBRARY NAMES hiredis HINTS ${SHARED_HIREDIS_LIBDIR} ...
find_package(PkgConfig) if (PKG_CONFIG_FOUND) pkg_check_modules(SHARED_HIREDIS REQUIRED hiredis) endif() find_path(HIREDIS_INCLUDE_DIR hiredis/hiredis.h HINTS ${SHARED_HIREDIS_INCLUDEDIR} ${SHARED_HIREDIS_INCLUDE_DIRS} ${LIMIT_SEARCH}) find_library(HIREDIS_LIBRARY NAMES hiredis HINTS ${SHARED_HIREDIS_LIBDIR} ...
Update msgpack-c package to doesn't compile examples and tests
# !!! DO NOT PLACE HEADER GUARDS HERE !!! include(hunter_add_version) include(hunter_cacheable) include(hunter_download) include(hunter_pick_scheme) hunter_add_version( PACKAGE_NAME msgpack VERSION "1.4.1" URL "https://github.com/hunter-packages/msgpack-c/archive/cpp-1.4.1-hunter-p1.tar.gz" SHA1 55e5e...
# !!! DO NOT PLACE HEADER GUARDS HERE !!! include(hunter_add_version) include(hunter_cacheable) include(hunter_download) include(hunter_pick_scheme) hunter_add_version( PACKAGE_NAME msgpack VERSION "1.4.1" URL "https://github.com/hunter-packages/msgpack-c/archive/cpp-1.4.1-hunter-p1.tar.gz" SHA1 5074d...
Fix build failures on platforms with a lib named aio
# Locate async I/O libraries on a host OS. IF (UNIX) FIND_PATH(ASYNC_IO_INCLUDE_DIR libaio.h PATH_SUFFIXES include PATHS ~/Library/Frameworks /Library/Frameworks /usr/local /opt/local /opt/csw ...
# Locate async I/O libraries on a host OS. IF (UNIX) FIND_PATH(ASYNC_IO_INCLUDE_DIR libaio.h PATH_SUFFIXES include PATHS ~/Library/Frameworks /Library/Frameworks /usr/local /opt/local /opt/csw ...
Update FW with stereo LR-check, subpixel fixes; extended mode is not available
# Maturity level "snapshot" / "release" set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot") # "full commit hash of device side binary" set(DEPTHAI_DEVICE_SIDE_COMMIT "eb3b3cfd94b306ae38f114c1c98b090cb3fe2671") # "version if applicable" set(DEPTHAI_DEVICE_SIDE_VERSION "")
# Maturity level "snapshot" / "release" set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot") # "full commit hash of device side binary" set(DEPTHAI_DEVICE_SIDE_COMMIT "06a2d8b03e7903024ed58e3a74161440438a6da3") # "version if applicable" set(DEPTHAI_DEVICE_SIDE_VERSION "")
Update FW: log warnings for unimplemented `initialControl` commands, changes to shared
# Maturity level "snapshot" / "release" set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot") # "full commit hash of device side binary" set(DEPTHAI_DEVICE_SIDE_COMMIT "c1d766103180bf0e8893b07314ec3382e054f6e8") # "version if applicable" set(DEPTHAI_DEVICE_SIDE_VERSION "")
# Maturity level "snapshot" / "release" set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot") # "full commit hash of device side binary" set(DEPTHAI_DEVICE_SIDE_COMMIT "bb7bda62770e68d9e6de69ce2801ab87d9fa1047") # "version if applicable" set(DEPTHAI_DEVICE_SIDE_VERSION "")
Update FW: fix sporadic scaling issue or crash, when rectified streams are used for NN input
# Maturity level "snapshot" / "release" set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot") # "full commit hash of device side binary" set(DEPTHAI_DEVICE_SIDE_COMMIT "1bd254499ebd4d54cfd247aa6f15b8379d458aa4") # "version if applicable" set(DEPTHAI_DEVICE_SIDE_VERSION "")
# Maturity level "snapshot" / "release" set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot") # "full commit hash of device side binary" set(DEPTHAI_DEVICE_SIDE_COMMIT "4311773fde2eab53793380420f88c7ac6b46fbcb") # "version if applicable" set(DEPTHAI_DEVICE_SIDE_VERSION "")
Add support for Yolo v6 decoding
# Maturity level "snapshot" / "release" set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot") # "full commit hash of device side binary" set(DEPTHAI_DEVICE_SIDE_COMMIT "796eb3f58b24447286ee88ba2278c52709133591") # "version if applicable" set(DEPTHAI_DEVICE_SIDE_VERSION "")
# Maturity level "snapshot" / "release" set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot") # "full commit hash of device side binary" set(DEPTHAI_DEVICE_SIDE_COMMIT "52f7331e81fc872f2191fd473adc96032675f518") # "version if applicable" set(DEPTHAI_DEVICE_SIDE_VERSION "")
Use correct name in tests template documentation.
# Set the test name, 'test_' will be prepended to the # name set here set(CURRENT_TEST <test-name>) # Set a category name to enable running commands like: # ctest -R <category-label> # which will run the tests matching this category-label. # Can be left empty (or just not set) set(CURRENT_CATEGORY <category-label>)...
# Set the test name, 'test_' will be prepended to the # name set here set(CURRENT_TEST <test-name>) # Set a category name to enable running commands like: # ctest -R <category-label> # which will run the tests matching this category-label. # Can be left empty (or just not set) set(CURRENT_CATEGORY <category-label>)...
Reduce the number of wrapped types to avoid the hierarchy gaps warnings
WRAP_CLASS("itk::BinaryThresholdProjectionImageFilter" POINTER_WITH_SUPERCLASS) WRAP_IMAGE_FILTER_SCALAR(2) # reduce the output dimension by 1, if possible FOREACH(t ${WRAP_ITK_SCALAR}) FOREACH(t2 ${WRAP_ITK_INT}) FOREACH(d ${WRAP_ITK_DIMS}) DECREMENT(d1 ${d}) FILTER_DIMS(d2 "${d1}") ...
WRAP_CLASS("itk::BinaryThresholdProjectionImageFilter" POINTER_WITH_SUPERCLASS) WRAP_IMAGE_FILTER_SCALAR(2) # reduce the output dimension by 1, if possible FOREACH(t ${WRAP_ITK_SCALAR}) # FOREACH(t2 ${WRAP_ITK_INT}) SET(t2 ${t}) FOREACH(d ${WRAP_ITK_DIMS}) DECREMENT(d1 ${d}) FILTER...
Remove extra SplitComponent module dependency
# Maintainer: Matt McCormick <matt.mccormick@kitware.com> set(DOCUMENTATION "This module contains a filter to compute higher order accurate numerical derivatives and gradients from an input scalar image. field from a displacement field image. Higher Order Accurate Derivative and Gradient Calculation in ITK http://www.i...
# Maintainer: Matt McCormick <matt.mccormick@kitware.com> set(DOCUMENTATION "This module contains a filter to compute higher order accurate numerical derivatives and gradients from an input scalar image. field from a displacement field image. Higher Order Accurate Derivative and Gradient Calculation in ITK http://www.i...
Disable -Wdeprecated-declarations in cmake builds
set(CMAKE_CXX_FLAGS_COMMON "-g -Wall -Wextra") set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_COMMON}") set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_COMMON} -O3") set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -std=gnu++14") function(apply_folly_compile_options_to_target THETARGET) target_compile_definitions(${TH...
set(CMAKE_CXX_FLAGS_COMMON "-g -Wall -Wextra") set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_COMMON}") set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_COMMON} -O3") set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -std=gnu++14") function(apply_folly_compile_options_to_target THETARGET) target_compile_definitions(${TH...
Update Mosaic Remote Module GIT_TAG
#Contact: Rémi Cresson <remi.cresson@teledetection.fr> otb_fetch_module(Mosaic "This module provides one application dedicated to images mosaicking A more detailed description can be found on the project website: https://github.com/remicres/otb-mosaic " GIT_REPOSITORY https://github.com/remicres/otb-mosaic.git GI...
#Contact: Rémi Cresson <remi.cresson@teledetection.fr> otb_fetch_module(Mosaic "This module provides one application dedicated to images mosaicking A more detailed description can be found on the project website: https://github.com/remicres/otb-mosaic " GIT_REPOSITORY https://github.com/remicres/otb-mosaic.git GI...
Fix MSVC compiler version to one where all tests pass.
message("Making build directory: ${CMAKE_CURRENT_SOURCE_DIR}/msvc/build") file(MAKE_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/msvc) file(MAKE_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/msvc/build) message("Generating project files...") execute_process(COMMAND ${CMAKE_COMMAND} ${CMAKE_CURRENT_SOURCE_DIR} -T v142 -A Win32 -DCMAKE...
message("Making build directory: ${CMAKE_CURRENT_SOURCE_DIR}/msvc/build") file(MAKE_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/msvc) file(MAKE_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/msvc/build) message("Generating project files...") execute_process(COMMAND ${CMAKE_COMMAND} ${CMAKE_CURRENT_SOURCE_DIR} -T v142,version=14.29.16...
Fix configure with Boost TPL installed from system package manager
GLOBAL_SET(BoostOrg_INCLUDE_DIRS "${Boost_INCLUDE_DIRS}") GLOBAL_SET(BoostOrg_LIBRARY_DIRS "${Boost_LIBRARY_DIRS}") TRIBITS_TPL_FIND_INCLUDE_DIRS_AND_LIBRARIES( BoostOrg REQUIRED_HEADERS boost/version.hpp boost/mpl/at.hpp REQUIRED_LIBS_NAMES boost_mpi boost_serialization ) # Use CMake FindBoost module to chec...
GLOBAL_SET(BoostOrg_INCLUDE_DIRS "${Boost_INCLUDE_DIRS}") GLOBAL_SET(BoostOrg_LIBRARY_DIRS "${Boost_LIBRARY_DIRS}") TRIBITS_TPL_FIND_INCLUDE_DIRS_AND_LIBRARIES( BoostOrg REQUIRED_HEADERS boost/version.hpp boost/mpl/at.hpp REQUIRED_LIBS_NAMES boost_mpi boost_serialization ) # Use CMake FindBoost module to chec...
Add a comment about BOOST_MANGLED_NAMESPACE
set(cmakefiles_dir "${sprokit_binary_dir}/CMakeFiles") if (CMAKE_CROSSCOMPILING) set(BOOST_MANGLE_NAMESPACE "boost" CACHE STRING "The mangled boost namespace") else () set(boost_mangle_namespace_path "${cmakefiles_dir}/boost_mangle_namespace.cxx") file(WRITE "${boost_mangle_namespace_path}" " #include <boo...
set(cmakefiles_dir "${sprokit_binary_dir}/CMakeFiles") if (CMAKE_CROSSCOMPILING) set(BOOST_MANGLE_NAMESPACE "boost" CACHE STRING "The mangled boost namespace") else () set(boost_mangle_namespace_path "${cmakefiles_dir}/boost_mangle_namespace.cxx") file(WRITE "${boost_mangle_namespace_path}" " #include <boo...
Update FW: - support for camera modules with IMX380 sensor id, reusing IMX378 driver (some Arducam IMX577(?)) - soft-reset the sensor before config, to fix streaming with some Arducam modules
# Maturity level "snapshot" / "release" set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot") # "full commit hash of device side binary" set(DEPTHAI_DEVICE_SIDE_COMMIT "d4c86b3b232f37796293cf0c995d61fa276b9837") # "version if applicable" set(DEPTHAI_DEVICE_SIDE_VERSION "")
# Maturity level "snapshot" / "release" set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot") # "full commit hash of device side binary" set(DEPTHAI_DEVICE_SIDE_COMMIT "25e22d27838d599121d1b6d9fc131456efc49a46") # "version if applicable" set(DEPTHAI_DEVICE_SIDE_VERSION "")
Update SphinxExamples to lastest master branch
# Contact: Matt McCormick <matt.mccormick@kitware.com> itk_fetch_module(SphinxExamples "This module builds the examples found at https://itk.org/ITKExamples/" GIT_REPOSITORY ${git_protocol}://github.com/InsightSoftwareConsortium/ITKExamples.git GIT_TAG 3966234dc803b269a8acad2dcdc8ef9ffbda4940 )
# Contact: Matt McCormick <matt.mccormick@kitware.com> itk_fetch_module(SphinxExamples "This module builds the examples found at https://itk.org/ITKExamples/" GIT_REPOSITORY ${git_protocol}://github.com/InsightSoftwareConsortium/ITKExamples.git GIT_TAG abaac79d3380b23a6cd38ac772c91302463ed3c3 )
Update FW - [ImageManip][bug fix][setCropRotatedRect] Adding a fix for the case when the center of the rectangle crop is very close to the image border
# Maturity level "snapshot" / "release" set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot") # "full commit hash of device side binary" set(DEPTHAI_DEVICE_SIDE_COMMIT "35d2c8c5f2b082326334c982d54ae16908f1315d") # "version if applicable" set(DEPTHAI_DEVICE_SIDE_VERSION "")
# Maturity level "snapshot" / "release" set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot") # "full commit hash of device side binary" set(DEPTHAI_DEVICE_SIDE_COMMIT "69f4a4f521e5f3029d30582a5e6ad4352340d12a") # "version if applicable" set(DEPTHAI_DEVICE_SIDE_VERSION "")
Add check for boost version to set appropriate c++ standard.
set(CMAKE_CXX_STANDARD 11 CACHE INTERNAL "specifies the C++ standard whose features are requested to build this target") set(CMAKE_CXX_STANDARD_REQUIRED ON) if (NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") ### Even though CMAKE_CXX_STANDARD_REQUIRED is supported since CMake 3.1, it doesn't work for Emscripten em...
find_package(Boost 1.56.0 REQUIRED) if(Boost_VERSION VERSION_LESS "1.72.0") set(CMAKE_CXX_STANDARD 11 CACHE INTERNAL "specifies the C++ standard whose features are requested to build this target") else() set(CMAKE_CXX_STANDARD 14 CACHE INTERNAL "specifies the C++ standard whose features are requested to build this t...
Update the SimpleITK_DIR version to the current SimpleITK version
set(proj SimpleITKExamples) # Set dependency list set(SimpleITKExamples_DEPENDENCIES "SimpleITK") if (${BUILD_EXAMPLES} ) file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/${proj}-build/CMakeCacheInit.txt" "${ep_common_cache}" ) ExternalProject_Add(${proj} DOWNLOAD_COMMAND "" UPDATE_COMMAND "" SOURCE_DIR ${CM...
set(proj SimpleITKExamples) # Set dependency list set(SimpleITKExamples_DEPENDENCIES "SimpleITK") if (${BUILD_EXAMPLES} ) file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/${proj}-build/CMakeCacheInit.txt" "${ep_common_cache}" ) ExternalProject_Add(${proj} DOWNLOAD_COMMAND "" UPDATE_COMMAND "" SOURCE_DIR ${CM...
Fix missing increment, causing infinite loop consuming all memory
/* Copyright (C) 2012 Harald Sitter <sitter@kde.org> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later versio...
/* Copyright (C) 2012 Harald Sitter <sitter@kde.org> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later versio...
Add fast-math and neon flags on raspi
otto_include_board(parts/ui/egl) otto_include_board(parts/audio/rtaudio) set(OTTO_USE_FBCP ON)
otto_include_board(parts/ui/egl) otto_include_board(parts/audio/rtaudio) set(OTTO_USE_FBCP ON) set(CMAKE_LINKER_FLAGS_RELEASE "${CMAKE_LINKER_FLAGS_RELEASE} -ffast-math -funsafe-math-optimizations -mfpu=neon-vfpv4")
Add Debian dependencies to cpack config
SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "Andreas Grob <vilarion@illarion.org>") set(CPACK_PACKAGE_VENDOR "Illarion e.V.") set(CPACK_PACKAGE_VERSION_MAJOR ${PROJECT_VERSION_MAJOR}) set(CPACK_PACKAGE_VERSION_MINOR ${PROJECT_VERSION_MINOR}) set(CPACK_PACKAGE_VERSION_PATCH ${PROJECT_VERSION_PATCH}) set(CPACK_RESOURCE_FILE_LICE...
SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "Andreas Grob <vilarion@illarion.org>") set(CPACK_PACKAGE_VENDOR "Illarion e.V.") set(CPACK_PACKAGE_VERSION_MAJOR ${PROJECT_VERSION_MAJOR}) set(CPACK_PACKAGE_VERSION_MINOR ${PROJECT_VERSION_MINOR}) set(CPACK_PACKAGE_VERSION_PATCH ${PROJECT_VERSION_PATCH}) set(CPACK_RESOURCE_FILE_LICE...
Bring back missing symlink for yarn process.
# NodeJS: For building admin-ui Ember app. ExternalProject_Add( nodejs URL https://nodejs.org/dist/v${NODEJS_VERSION}/node-v${NODEJS_VERSION}-linux-x64.tar.xz URL_HASH SHA256=${NODEJS_HASH} CONFIGURE_COMMAND "" BUILD_COMMAND "" INSTALL_COMMAND rsync -a -v <SOURCE_DIR>/ ${DEV_INSTALL_PREFIX}/ ) ExternalProj...
# NodeJS: For building admin-ui Ember app. ExternalProject_Add( nodejs URL https://nodejs.org/dist/v${NODEJS_VERSION}/node-v${NODEJS_VERSION}-linux-x64.tar.xz URL_HASH SHA256=${NODEJS_HASH} CONFIGURE_COMMAND "" BUILD_COMMAND "" INSTALL_COMMAND rsync -a -v <SOURCE_DIR>/ ${DEV_INSTALL_PREFIX}/ ) ExternalProj...
Include the proper header file
# Check for settings from VXL that are incompatible with flags. set(cmakefiles_dir "${vistk_binary_dir}/CMakeFiles") if (VISTK_ENABLE_PEDANTIC) if (CMAKE_CROSSCOMPILING) message(WARNING "The `-pedantic` flag is not recommended when " "cross-compiling.") else () set(vxl_has_float_decls_path "...
# Check for settings from VXL that are incompatible with flags. set(cmakefiles_dir "${vistk_binary_dir}/CMakeFiles") if (VISTK_ENABLE_PEDANTIC) if (CMAKE_CROSSCOMPILING) message(WARNING "The `-pedantic` flag is not recommended when " "cross-compiling.") else () set(vxl_has_float_decls_path "...
Upgrade C++ REST SDK from version 2.10.16 to 2.10.18
set(proj cpprestsdk) set(proj_DEPENDENCIES Boost ZLIB) if(MITK_USE_${proj}) set(${proj}_DEPENDS ${proj}) if(DEFINED ${proj}_DIR AND NOT EXISTS ${${proj}_DIR}) message(FATAL_ERROR "${proj}_DIR variable is defined but corresponds to non-existing directory!") endif() if(NOT DEFINED ${proj}_DIR) set(cmak...
set(proj cpprestsdk) set(proj_DEPENDENCIES Boost ZLIB) if(MITK_USE_${proj}) set(${proj}_DEPENDS ${proj}) if(DEFINED ${proj}_DIR AND NOT EXISTS ${${proj}_DIR}) message(FATAL_ERROR "${proj}_DIR variable is defined but corresponds to non-existing directory!") endif() if(NOT DEFINED ${proj}_DIR) set(cmak...
Change to use GoogleTest for github repo with update
# Make sure this file is included only once get_filename_component(CMAKE_CURRENT_LIST_FILENAME ${CMAKE_CURRENT_LIST_FILE} NAME_WE) if(${CMAKE_CURRENT_LIST_FILENAME}_FILE_INCLUDED) return() endif() set(${CMAKE_CURRENT_LIST_FILENAME}_FILE_INCLUDED 1) set(proj GTest) set(GTEST_TARGET_VERSION 1.8.0) set(GTEST_DOWNLOAD_...
# Make sure this file is included only once get_filename_component(CMAKE_CURRENT_LIST_FILENAME ${CMAKE_CURRENT_LIST_FILE} NAME_WE) if(${CMAKE_CURRENT_LIST_FILENAME}_FILE_INCLUDED) return() endif() set(${CMAKE_CURRENT_LIST_FILENAME}_FILE_INCLUDED 1) set(proj GTest) set(GTEST_GIT_REPOSITORY "${git_protocol}://github....
Use static linking for oss-fuzz
find_path(MBEDTLS_INCLUDE_DIRS mbedtls/ssl.h HINTS ${MBEDTLS_FOLDER_INCLUDE}) find_library(MBEDTLS_LIBRARY mbedtls HINTS ${MBEDTLS_FOLDER_LIBRARY}) find_library(MBEDX509_LIBRARY mbedx509 HINTS ${MBEDTLS_FOLDER_LIBRARY}) find_library(MBEDCRYPTO_LIBRARY mbedcrypto HINTS ${MBEDTLS_FOLDER_LIBRARY}) set(MBEDTLS_LIBRARIES ...
find_path(MBEDTLS_INCLUDE_DIRS mbedtls/ssl.h HINTS ${MBEDTLS_FOLDER_INCLUDE}) if(UA_BUILD_OSS_FUZZ) # oss-fuzz requires static linking of libraries set(MBEDTLS_LIBRARY /usr/lib/x86_64-linux-gnu/libmbedtls.a) set(MBEDX509_LIBRARY /usr/lib/x86_64-linux-gnu/libmbedx509.a) set(MBEDCRYPTO_LIBRARY /usr/lib/x...
Fix link to download libdill.
# !!! DO NOT PLACE HEADER GUARDS HERE !!! include(hunter_add_version) include(hunter_cacheable) include(hunter_cmake_args) include(hunter_download) include(hunter_pick_scheme) hunter_add_version( PACKAGE_NAME libdill VERSION "1.6" URL "https://github.com/isaachier/libdill/archive/hunter-1.6-p1.tar.gz" ...
# !!! DO NOT PLACE HEADER GUARDS HERE !!! include(hunter_add_version) include(hunter_cacheable) include(hunter_cmake_args) include(hunter_download) include(hunter_pick_scheme) hunter_add_version( PACKAGE_NAME libdill VERSION "1.6" URL "https://github.com/hunter-packages/libdill/archive/hunter-1.6.tar.gz" ...
Add newline at the end of *.cmake
set(CMAKE_INSTALL_PREFIX $ENV{CMAKE_INSTALL_PREFIX}) include(cmake_install.cmake)
set(CMAKE_INSTALL_PREFIX $ENV{CMAKE_INSTALL_PREFIX}) include(cmake_install.cmake)
Set PETSc language bindings to CXX for mac
message(AUTHOR_WARNING "TODO: Implement module test.") find_package(PETSc REQUIRED)
message(AUTHOR_WARNING "TODO: Implement module test.") if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") find_package(PETSc COMPONENTS CXX REQUIRED) else(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") find_package(PETSc REQUIRED) endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
Enable coverage also for release build
# Set necessary compile and link flags if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall -Wformat -Wno-format-extra-args -Wformat-security -Wformat-nonliteral -Wformat=2 -Wextra -Wnon-virtual-dtor -fPIC -O...
# Set necessary compile and link flags if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall -Wformat -Wno-format-extra-args -Wformat-security -Wformat-nonliteral -Wformat=2 -Wextra -Wnon-virtual-dtor -fPIC -O...
Revert "Change an option to check process"
# # Copyright (C) 2005-2019 Centre National d'Etudes Spatiales (CNES) # # This file is part of Orfeo Toolbox # # https://www.orfeo-toolbox.org/ # # 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 Licens...
# # Copyright (C) 2005-2019 Centre National d'Etudes Spatiales (CNES) # # This file is part of Orfeo Toolbox # # https://www.orfeo-toolbox.org/ # # 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 Licens...
Update GIT_TAG for Mosaic module
#Contact: Rémi Cresson <remi.cresson@teledetection.fr> otb_fetch_module(Mosaic "This module provides one application dedicated to images mosaicking A more detailed description can be found on the project website: https://github.com/remicres/otb-mosaic " GIT_REPOSITORY https://github.com/remicres/otb-mosaic.git GI...
#Contact: Rémi Cresson <remi.cresson@teledetection.fr> otb_fetch_module(Mosaic "This module provides one application dedicated to images mosaicking A more detailed description can be found on the project website: https://github.com/remicres/otb-mosaic " GIT_REPOSITORY https://github.com/remicres/otb-mosaic.git GI...
Fix CPack creating -qtX packages
set(CPACK_PACKAGE_VENDOR "Daniel Nicoletti") set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "A Web Framework built on top of Qt, using the simple and elegant approach of Catalyst (Perl) framework.") set(CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/README.md") set(CPACK_PACKAGE_CONTACT "Daniel Nicoletti <dantti12@gmai...
set(CPACK_PACKAGE_VENDOR "Daniel Nicoletti") set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "A Web Framework built on top of Qt, using the simple and elegant approach of Catalyst (Perl) framework.") set(CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/README.md") set(CPACK_PACKAGE_CONTACT "Daniel Nicoletti <dantti12@gmai...
Remove useless whitespace from CMake code
# Try to find the Botan library. # # Defines: # # BOTAN_FOUND - set if the system has the Botan library # BOTAN_LIBRARIES - the linker libraries needed to use the Botan library # BOTAN_INCLUDE_DIRS - the path to the include files of the Botan library # # Copyright (c) 2017 Peter Nirschl <peter.nirschl@gmail.com> # ...
# Try to find the Botan library. # # Defines: # # BOTAN_FOUND - set if the system has the Botan library # BOTAN_LIBRARIES - the linker libraries needed to use the Botan library # BOTAN_INCLUDE_DIRS - the path to the include files of the Botan library # # Copyright (c) 2017 Peter Nirschl <peter.nirschl@gmail.com> # #...
Fix missing dependency in ADD_BISON_SOURCE
# Bison handling MACRO(FIND_BISON) IF(NOT BISON_EXECUTABLE) MESSAGE("-- Looking for bison executable") FIND_PROGRAM(BISON_EXECUTABLE bison) IF(NOT BISON_EXECUTABLE) MESSAGE(FATAL_ERROR "bison not found - aborting") ENDIF(NOT BISON_EXECUTABLE) ENDIF(NOT BISON_EXECUTABLE) ENDMACRO(FIND_BISON) MACRO(ADD_BIS...
# Bison handling MACRO(FIND_BISON) IF(NOT BISON_EXECUTABLE) MESSAGE("-- Looking for bison executable") FIND_PROGRAM(BISON_EXECUTABLE bison) IF(NOT BISON_EXECUTABLE) MESSAGE(FATAL_ERROR "bison not found - aborting") ENDIF(NOT BISON_EXECUTABLE) ENDIF(NOT BISON_EXECUTABLE) ENDMACRO(FIND_BISON) MACRO(ADD_BIS...
Add helper for finding XML2 library
# Find the native XML2 includes and library # # XML2_INCLUDE_DIRS - where to find header files. # XML2_LIBRARIES - List of libraries. # XML2_FOUND - True if XML2 is found. # Find the include path find_path(XML2_INCLUDE_DIR libxml2/libxml/xpath.h) find_library(XML2_LIBRARY NAMES xml2) if (XML2_LIBRARY AND XML2_INCLU...
Save serialized text to input element
#= require trix/controllers/text_controller #= require trix/controllers/toolbar_controller #= require trix/controllers/debug_controller class Trix.EditorController constructor: (textElement, toolbarElement, inputElement, debugElement) -> @textController = new Trix.TextController textElement, createText(inputElem...
#= require trix/controllers/text_controller #= require trix/controllers/toolbar_controller #= require trix/controllers/debug_controller class Trix.EditorController constructor: (textElement, toolbarElement, @inputElement, debugElement) -> @text = @createText() @textController = new Trix.TextController textEl...
Update the docs about the default version
CI.Versions = default_ruby: "1.9.3-p194" old_ruby: "1.8.7-p358" default_node: "0.8.12" default_php: "5.3.10-1ubuntu3.5" solr: "4.3.1"
CI.Versions = default_ruby: "1.9.3-p448" old_ruby: "1.8.7-p358" default_node: "0.8.12" default_php: "5.3.10-1ubuntu3.5" solr: "4.3.1"
Improve resiliency of getSupportedLanguages() unit test
humanizeDuration = require ".." getSupportedLanguages = humanizeDuration.getSupportedLanguages assert = require "assert" fs = require "fs" path = require "path" describe "getLanguageSupport", -> definitionsPath = path.resolve(__dirname, "definitions") languages = [] for file in fs.readdirSync(definitionsPath)...
humanizeDuration = require ".." getSupportedLanguages = humanizeDuration.getSupportedLanguages assert = require "assert" fs = require "fs" path = require "path" describe "getLanguageSupport", -> it "lists all supported languages", -> definitionsPath = path.resolve(__dirname, "definitions") languages = []...
Change folder to match new osKite default
class ViewerAppController extends KDViewController KD.registerAppClass this, name : "Viewer" route : "/Develop" multiple : yes openWith : "forceNew" behavior : "application" preCondition : condition : (options, cb)-> {path, vmName} = options ...
class ViewerAppController extends KDViewController KD.registerAppClass this, name : "Viewer" route : "/Develop" multiple : yes openWith : "forceNew" behavior : "application" preCondition : condition : (options, cb)-> {path, vmName} = options ...
Fix bug on presentations list
$ -> if $("#presentation-list").length > 0 updateCurrent = -> window.localStorage["left-screen"] = $(".current .left").html() window.localStorage["right-screen"] = $(".current .right").html() moveToSlide = (slide) -> $("#presentation-list .current").removeClass("current") $(slide).add...
$ -> if $("#presentation-list").length > 0 updateCurrent = -> window.localStorage["left-screen"] = $(".current .left").html() window.localStorage["right-screen"] = $(".current .right").html() moveToSlide = (slide) -> $("#presentation-list .current").removeClass("current") $(slide).add...
Update spec for new status bar label
{$} = require 'atom-space-pen-views' PackageManager = require '../lib/package-manager' Q = require 'q' describe "package updates status view", -> beforeEach -> outdatedPackage = name: 'out-dated' spyOn(PackageManager.prototype, 'loadCompatiblePackageVersion').andCallFake -> spyOn(PackageManager.pro...
{$} = require 'atom-space-pen-views' PackageManager = require '../lib/package-manager' Q = require 'q' describe "package updates status view", -> beforeEach -> outdatedPackage = name: 'out-dated' spyOn(PackageManager.prototype, 'loadCompatiblePackageVersion').andCallFake -> spyOn(PackageManager.pro...
Remove keybinding cruft, make Ctrl-K work again
# Keybindings require three things to be fully defined: A selector that is # matched against the focused element, the keystroke and the command to # execute. # # Below is a basic keybinding which registers on all platforms by applying to # the root workspace element. # For more detailed documentation see # https://ato...
'.platform-darwin atom-workspace': 'cmd-p': 'megafinder:toggle' '.platform-win32 atom-workspace, .platform-linux atom-workspace': 'ctrl-alt-p': 'megafinder:toggle' '.megafinder atom-text-editor': 'enter': 'megafinder:confirm-selected-or-first' 'tab': 'megafinder:autocomplete' 'up': 'megafinder:move-cursor-u...
Reduce number of AJAX calls in variant autocomplete.
# variant autocompletion $(document).ready -> if $("#variant_autocomplete_template").length > 0 window.variantTemplate = Handlebars.compile($("#variant_autocomplete_template").text()) window.variantStockTemplate = Handlebars.compile($("#variant_autocomplete_stock_template").text()) window.variantLineItemT...
# variant autocompletion $(document).ready -> if $("#variant_autocomplete_template").length > 0 window.variantTemplate = Handlebars.compile($("#variant_autocomplete_template").text()) window.variantStockTemplate = Handlebars.compile($("#variant_autocomplete_stock_template").text()) window.variantLineItemT...
Add title and template attrs on Ember side
a = DS.attr ETahi.TaskTemplate = DS.Model.extend phaseTemplate: DS.belongsTo('phaseTemplate') journalTaskType: DS.belongsTo('journalTaskType') title: Em.computed.oneWay('journalTaskType.title')
a = DS.attr ETahi.TaskTemplate = DS.Model.extend phaseTemplate: DS.belongsTo('phaseTemplate') journalTaskType: DS.belongsTo('journalTaskType') title: a('string') template: a()
Fix async failing test in sample app
Tinytest.add 'passing test', (test)-> console.log 'passing test' test.isTrue true Tinytest.add 'failing test', (test)-> console.log 'failing test' test.isTrue false, 'failing test message' Tinytest.add 'throwing test', (test)-> console.log 'throwing test' throw new Error('throwing test message')...
Tinytest.add 'passing test', (test)-> console.log 'passing test' test.isTrue true Tinytest.add 'failing test', (test)-> console.log 'failing test' test.isTrue false, 'failing test message' Tinytest.add 'throwing test', (test)-> console.log 'throwing test' throw new Error('throwing test message')...
Allow repo to not exist :)
# Description: # Get the CI status reported to GitHub for a repo and pull request # # Dependencies: # "githubot": "0.4.x" # # Configuration: # HUBOT_GITHUB_TOKEN # HUBOT_GITHUB_USER # HUBOT_GITHUB_API # # Commands: # hubot repo show <repo> - shows activity of repository # # Notes: # HUBOT_GITHUB_API allow...
# Description: # Get the CI status reported to GitHub for a repo and pull request # # Dependencies: # "githubot": "0.4.x" # # Configuration: # HUBOT_GITHUB_TOKEN # HUBOT_GITHUB_USER # HUBOT_GITHUB_API # # Commands: # hubot repo show <repo> - shows activity of repository # # Notes: # HUBOT_GITHUB_API allow...
Select randomly from all subject sets
class Subjects queue: [] api: null current: null query: sort: 'queued' page_size: "30" constructor: (@api, @project, @subject_set_id)-> @query.workflow_id = @project?.links.workflows[0] @query.subject_set_id = @subject_set_id update: (opts) -> @[opt] = value for opt, value of opts ...
class Subjects queue: [] api: null current: null query: sort: 'queued' page_size: "30" constructor: (@api, @project, @subject_set_id)-> @query.workflow_id = @project?.links.workflows[0] # @query.subject_set_id = @subject_set_id update: (opts) -> @[opt] = value for opt, value of opt...
Revert to larger game board
INFOBAR_SIZE = 30 TILE_SIZE = 40 X_TILES = 16 Y_TILES = 12 X_TILES = 6 Y_TILES = 6 GAME_WIDTH = TILE_SIZE * X_TILES GAME_HEIGHT = TILE_SIZE * Y_TILES + INFOBAR_SIZE LOGGER = new Civilization.Game.Logger() cpuCount = 2 cpuColors = [ 0x5CB85C, 0xF0AD4E, 0xD9534F, 0x5BC0DE ] cpus = [] cpus.push(new Civilization...
INFOBAR_SIZE = 30 TILE_SIZE = 40 X_TILES = 16 Y_TILES = 12 GAME_WIDTH = TILE_SIZE * X_TILES GAME_HEIGHT = TILE_SIZE * Y_TILES + INFOBAR_SIZE LOGGER = new Civilization.Game.Logger() cpuCount = 2 cpuColors = [ 0x5CB85C, 0xF0AD4E, 0xD9534F, 0x5BC0DE ] cpus = [] cpus.push(new Civilization.Entity.CPU("CPU #{i}", ...
Add all created editors to a collection of editors so they can be controlled on the page
# Place all the behaviors and hooks related to the matching controller here. # All this logic will automatically be available in application.js. # You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/ # #= require epiceditor Inquest.Questions ||= {} Inquest.Questions.init = -> new EpicEdi...
# Place all the behaviors and hooks related to the matching controller here. # All this logic will automatically be available in application.js. # You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/ # #= require epiceditor Inquest.Questions ||= {} Inquest.editors ||= [] Inquest.Questions...
Fix linking to id with location hash
TentAdmin.Routers.main = new class MainRouter extends Marbles.Router routes: { "" : "root" "profile" : "profile" "apps" : "apps" } root: => @navigate('/profile', { replace: true, trigger: true }) profile: => window.scrollTo(0, 0) new Marbles.Views.Profile container: TentAdmin...
TentAdmin.Routers.main = new class MainRouter extends Marbles.Router routes: { "" : "root" "profile" : "profile" "apps" : "apps" } resetScrollPosition: => hash_fragment = window.location.hash window.scrollTo(0, 0) window.location.hash = hash_fragment root: => @navigate('/...
Add lineman build task to copy generated files
# Exports an object that defines # all of the configuration needed by the projects' # depended-on grunt tasks. # # You can familiarize yourself with all of Lineman's defaults by checking out the parent file: # https://github.com/testdouble/lineman/blob/master/config/application.coffee # module.exports = require(proc...
# Exports an object that defines # all of the configuration needed by the projects' # depended-on grunt tasks. # # You can familiarize yourself with all of Lineman's defaults by checking out the parent file: # https://github.com/testdouble/lineman/blob/master/config/application.coffee # module.exports = require(proc...
Fix eventric include for the watcher task
if typeof window isnt 'undefined' root = window else root = global if !root._spec_setup root.sinon = require 'sinon' root.mockery = require 'mockery' root.chai = require 'chai' root.expect = chai.expect root.sandbox = sinon.sandbox.create() sinonChai = require 'sinon-chai' chai.use sinonC...
if typeof window isnt 'undefined' root = window else root = global if !root._spec_setup root.sinon = require 'sinon' root.mockery = require 'mockery' root.chai = require 'chai' root.expect = chai.expect root.sandbox = sinon.sandbox.create() sinonChai = require 'sinon-chai' chai.use sinonC...
Send action also as property
noflo = require 'noflo' debug = require('debug') 'noflo-ui:state' exports.getComponent = -> c = new noflo.Component c.inPorts.add 'action', datatype: 'all' c.outPorts.add 'pass', datatype: 'object' c.state = {} c.shutdown = -> c.state = {} noflo.helpers.WirePattern c, in: 'action' out:...
noflo = require 'noflo' debug = require('debug') 'noflo-ui:state' exports.getComponent = -> c = new noflo.Component c.inPorts.add 'action', datatype: 'all' c.outPorts.add 'pass', datatype: 'object' c.state = {} c.shutdown = -> c.state = {} noflo.helpers.WirePattern c, in: 'action' out:...
Handle new-style and legacy actions separately
noflo = require 'noflo' debug = require('debug') 'noflo-ui:state' exports.getComponent = -> c = new noflo.Component c.inPorts.add 'action', datatype: 'all' c.inPorts.add 'state', datatype: 'object' c.outPorts.add 'pass', datatype: 'object' c.inPorts.state.on 'data', (state) -> c.state = stat...
noflo = require 'noflo' debug = require('debug') 'noflo-ui:state' exports.getComponent = -> c = new noflo.Component c.inPorts.add 'action', datatype: 'all' c.inPorts.add 'state', datatype: 'object' c.outPorts.add 'pass', datatype: 'object' c.inPorts.state.on 'data', (state) -> c.state = stat...
Add descriptions to DSL spec
describe "Dsl", { given: -> @target = {} @dsl = new Witness.Dsl @target when: -> @dsl.activate() then: [ # Core DSL functions are added to target object -> "wait" of @target -> "async" of @target -> "defineAction" of @target -> "defineActions" of @target -> typeof @target.should == "...
describe "Dsl", { "given a DSL that will write into a target object": -> @target = {} @dsl = new Witness.Dsl @target "when the DSL is activated": -> @dsl.activate() "then core DSL functions are added to target object": [ -> "wait" of @target -> "async" of @target -> "defineAction" of @targ...
Use built-in array methods instead of underscore
{_, Range} = require 'atom' module.exports = class RangeFinder # Public @rangesFor: (editor) -> new RangeFinder(editor).ranges() # Public constructor: (@editor) -> # Public ranges: -> selectionRanges = @selectionRanges() if _.isEmpty(selectionRanges) [@sortableRangeForEntireBuffer()] ...
{Range} = require 'atom' module.exports = class RangeFinder # Public @rangesFor: (editor) -> new RangeFinder(editor).ranges() # Public constructor: (@editor) -> # Public ranges: -> selectionRanges = @selectionRanges() if selectionRanges.length is 0 [@sortableRangeForEntireBuffer()] ...
Add name class to span
{Subscriber} = require 'emissary' module.exports = class FileView extends HTMLElement Subscriber.includeInto(this) initialize: (@file) -> @subscribe @file, 'destroyed', => @unsubscribe() @classList.add('file', 'entry', 'list-item') @fileName = document.createElement('span') @appendChild(@fileNam...
{Subscriber} = require 'emissary' module.exports = class FileView extends HTMLElement Subscriber.includeInto(this) initialize: (@file) -> @subscribe @file, 'destroyed', => @unsubscribe() @classList.add('file', 'entry', 'list-item') @fileName = document.createElement('span') @fileName.classList.a...
Use active editor from root view instead of ivar
{View} = require 'space-pen' Editor = require 'editor' $ = require 'jquery' Point = require 'point' module.exports = class JumpToLineView extends View @activate: (rootView) -> new JumpToLineView(rootView) @content: -> @div class: 'jump-to-line', => @subview 'miniEditor', new Editor(mini: true) @d...
{View} = require 'space-pen' Editor = require 'editor' $ = require 'jquery' Point = require 'point' module.exports = class JumpToLineView extends View @activate: (rootView) -> new JumpToLineView(rootView) @content: -> @div class: 'jump-to-line', => @subview 'miniEditor', new Editor(mini: true) @d...
Add specs for main module
describe 'Package-Deps', -> PackageDeps = require('../lib/main') describe '::packagesToInstall', -> it 'works', -> spyOn(atom.packages, 'getLoadedPackage').andReturn({ metadata: { 'package-deps': ['linter', 'atom-hack'] } }) atom.packages.resolvePackagePath.andCallF...
describe 'Package-Deps', -> window.__steelbrain_package_deps = new Set() describe '::packagesToInstall', -> it 'works', -> spyOn(atom.packages, 'getLoadedPackage').andReturn({ metadata: { 'package-deps': ['linter', 'atom-hack'] } }) atom.packages.resolvePackagePath....
Remove unnecessary comma in define
define [ 'underscore', './workflows/results' ], (_, mods...) -> _.extend {}, mods...
define [ 'underscore' './workflows/results' ], (_, mods...) -> _.extend {}, mods...
Improve expectation_helper in Mocha tests
Ext.apply window, expectToSee: (el) -> expect(Ext.isObject(el) || Ext.isElement(el)).to.be.ok() expectToNotSee: (el) -> expect(Ext.isString(el)).to.be.ok() expectDisabled: (cmp) -> expect(cmp.isDisabled()).to.be(true) expectInvisibleBodyOf: (cmp) -> expect(cmp.body.isVisible()).to.be false
Ext.apply window, expectToSee: (el) -> expect(Ext.isObject(el) || Ext.isElement(el)).to.be.ok() expectToNotSee: (el) -> expect(Ext.isString(el)).to.be.ok() expectDisabled: (cmp) -> throw cmp + " not found" if Ext.isString(cmp) expect(cmp.isDisabled()).to.be(true) expectInvisibleBodyOf: (cmp) ...
Remove credentials filtering when logging in after registering
_ = require('lodash-contrib') url = require('url') async = require('async') resin = require('resin-sdk') ui = require('../ui') log = require('../log/log') errors = require('../errors/errors') permissions = require('../permissions/permissions') helpers = require('../helpers/helpers') exports.login = (params) -> async....
_ = require('lodash-contrib') url = require('url') async = require('async') resin = require('resin-sdk') ui = require('../ui') log = require('../log/log') errors = require('../errors/errors') permissions = require('../permissions/permissions') helpers = require('../helpers/helpers') exports.login = (params) -> async....
Remove unnecessary require of should
neither = require('./../lib/neither') should = require('should') describe 'neither', -> it 'should accept a boolean and return an object with nor', -> neither(true).should.be.an.instanceOf(neither.Neither) neither(true).nor.should.be.a.Function neither(true).test.should.be.a.Function describe 'nor', -...
neither = require('./../lib/neither') describe 'neither', -> it 'should accept a boolean and return an object with nor', -> neither(true).should.be.an.instanceOf(neither.Neither) neither(true).nor.should.be.a.Function neither(true).test.should.be.a.Function describe 'nor', -> context 'both are fal...
Fix session user name data field
koding = require './../bongo' module.exports = (req, res) -> { JAccount, JSession } = koding.models {nickname} = req.params {clientId} = req.cookies JSession.fetchSession clientId, (err, result)-> return res.status(400).end() if err or not result { username } = result.session JAccount.one { "pr...
koding = require './../bongo' module.exports = (req, res) -> { JAccount, JSession } = koding.models {nickname} = req.params {clientId} = req.cookies JSession.fetchSession clientId, (err, result)-> return res.status(400).end() if err or not result { username } = result.session JAccount.one { "pr...
Check for working status as well as queued
class ResquePoller @INTERVAL: 2000 constructor: (opts) -> @$elem = opts.elem @url = opts.url @intervalID = setInterval(@_poll, opts.interval || ResquePoller.INTERVAL) # private _poll: => $.getJSON @url, (resp) => @_handleResponse(resp) _handleResponse: (resp) -> return if resp....
class ResquePoller @INTERVAL: 2000 constructor: (opts) -> @$elem = opts.elem @url = opts.url @intervalID = setInterval(@_poll, opts.interval || ResquePoller.INTERVAL) # private _poll: => $.getJSON @url, (resp) => @_handleResponse(resp) _handleResponse: (resp) -> return if resp....
Remove ivars set in constructor
_ = require 'underscore-plus' {Range} = require 'atom' module.exports = class Snippet @wordRegex: /[^\s'"<>;]+/ name: null prefix: null body: null lineCount: null tabStops: null constructor: ({@name, @prefix, @bodyText, bodyTree}) -> @body = @extractTabStops(bodyTree) extractTabStops: (bodyTree)...
_ = require 'underscore-plus' {Range} = require 'atom' module.exports = class Snippet @wordRegex: /[^\s'"<>;]+/ lineCount: null tabStops: null constructor: ({@name, @prefix, @bodyText, bodyTree}) -> @body = @extractTabStops(bodyTree) extractTabStops: (bodyTree) -> tabStopsByIndex = {} bodyText...
Make JCrop use window height as boxWidth
document.addEventListener 'turbolinks:load', -> new AvatarCropper() class AvatarCropper constructor: -> $('#cropbox').Jcrop aspectRatio: 1 setSelect: [0, 0, 600, 600] boxWidth: 500 boxHeight: 400 onSelect: @update onChange: @update update: (coords) => $('#avatar_crop_...
document.addEventListener 'turbolinks:load', -> new AvatarCropper() class AvatarCropper constructor: -> $('#cropbox').Jcrop aspectRatio: 1 setSelect: [0, 0, 600, 600] boxWidth: window.innerWidth boxHeight: window.innerHeight onSelect: @update onChange: @update update: (co...
Send entire config object into sidekiq
NotificationPlugin = require "../../notification-plugin" class Email extends NotificationPlugin SIDEKIQ_WORKER = "ErrorEmailWorker" SIDEKIQ_QUEUE = "error_emails" @receiveEvent: (config, event, callback) -> config.sidekiq.enqueue SIDEKIQ_WORKER, [event.trigger.type, event.error.id, config?.includeMetadata],...
NotificationPlugin = require "../../notification-plugin" class Email extends NotificationPlugin SIDEKIQ_WORKER = "ErrorEmailWorker" SIDEKIQ_QUEUE = "error_emails" @receiveEvent: (config, event, callback) -> sidekiq = config.sidekiq delete config.sidekiq sidekiq.enqueue SIDEKIQ_WORKER, [event.trigge...
Add keyboard shortcut for sort lines
# Your keymap # # Atom keymaps work similarly to style sheets. Just as style sheets use # selectors to apply styles to elements, Atom keymaps use selectors to associate # keystrokes with events in specific contexts. # # You can create a new keybinding in this file by typing "key" and then hitting # tab. # # Here's an e...
# Your keymap # # Atom keymaps work similarly to style sheets. Just as style sheets use # selectors to apply styles to elements, Atom keymaps use selectors to associate # keystrokes with events in specific contexts. # # You can create a new keybinding in this file by typing "key" and then hitting # tab. # # Here's an e...