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
! Block the LinkedIn feed | |
www.linkedin.com##.scaffold-layout__main:matches-path(feed) | |
! Block all distracting elements of stackexchange/stackoverflow | |
stackexchange.com##.tex2jax_ignore.module | |
stackexchange.com##.ps-relative.js-freemium-cta | |
stackexchange.com##.mb16.s-anchors__grayscale.s-anchors.s-sidebarwidget__yellow.s-sidebarwidget | |
stackoverflow.com##.tex2jax_ignore.module | |
stackoverflow.com##.ps-relative.js-freemium-cta |
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
auth.lower + year + shorttitle(1, 1).lower |
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
g++ -v && g++ -dM -E -x c++ /dev/null | grep -F __cplusplus |
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
dpkg -l | grep <package_name> |
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
# Check for the presence of AVX and figure out the flags to use for it. | |
macro(CHECK_FOR_AVX) | |
set(AVX_FLAGS) | |
include(CheckCXXSourceRuns) | |
set(CMAKE_REQUIRED_FLAGS) | |
# Check for AVX | |
if (MSVC) | |
if (NOT MSVC_VERSION LESS 1600) |
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.22 FATAL_ERROR) | |
# pull vcpkg-cmake-integration from github and let it set up vcpkg | |
include(FetchContent) | |
FetchContent_Declare( | |
vcpkg_cmake_integration | |
GIT_REPOSITORY https://github.com/bitmeal/vcpkg-cmake-integration.git | |
GIT_TAG origin/master # either manually specify a tag here (e.g. v0.2.2) or use latest master | |
) | |
FetchContent_MakeAvailable(vcpkg_cmake_integration) |