Skip to content

Instantly share code, notes, and snippets.

View PhilippGrulich's full-sized avatar
👨‍🔬
Doing Research

Philipp Grulich PhilippGrulich

👨‍🔬
Doing Research
View GitHub Profile
cmake -D WITH_CUDA=ON -D ENABLE_FAST_MATH=1 -D CUDA_FAST_MATH=1 -D WITH_CUBLAS=1 -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D INSTALL_C_EXAMPLES=OFF -D INSTALL_PYTHON_EXAMPLES=OFF -D WITH_IPP=ON -D WITH_TBB=ON -D WITH_V4L=ON -D WITH_QT=OFF -D WITH_OPENGL=ON -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules -D BUILD_EXAMPLES=OFF ..
@PhilippGrulich
PhilippGrulich / Extend very large folder name on GitHub
Last active January 18, 2019 13:30
Extend very large folder name on GitHub. For example in the Graal Repo
var content = document.querySelectorAll(".js-navigation-item .content");
var message = document.querySelectorAll(".js-navigation-item .message");
if(content[0].style.maxWidth=="550px"){
content.forEach(x=> x.style.maxWidth=""); message.forEach(x=> x.style.maxWidth="");
}else{
content.forEach(x=> x.style.maxWidth="550px"); message.forEach(x=> x.style.maxWidth="100px");
}
@PhilippGrulich
PhilippGrulich / Display commit timestamp at github as javascript bookmark
Last active October 6, 2021 09:30
This simple js bookmark let you display the correct commit timestamp at github
javascript:(function() {
var relativeTimeElements = window.document.querySelectorAll("relative-time");
relativeTimeElements.forEach(function(timeElement){
timeElement.innerHTML = timeElement.innerHTML +" -- "+ timeElement.title;
})
}())