Skip to content

Instantly share code, notes, and snippets.

Avatar
👨‍🔬
Doing Research

Philipp Grulich PhilippGrulich

👨‍🔬
Doing Research
View GitHub Profile
@PhilippGrulich
PhilippGrulich / Extend very large folder name on GitHub
Last active Jan 18, 2019
Extend very large folder name on GitHub. For example in the Graal Repo
View Extend very large folder name on GitHub
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");
}
View gist:a5da4a802e3ac7fc2526a3e636aa4077
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 / Display commit timestamp at github as javascript bookmark
Last active Aug 2, 2019
This simple js bookmark let you display the correct commit timestamp at github
View Display commit timestamp at github as javascript bookmark
javascript:(function() {
var relativeTimeElements = window.document.querySelectorAll("relative-time");
relativeTimeElements.forEach(function(timeElement){
timeElement.innerHTML = timeElement.innerHTML +" -- "+ timeElement.title;
})
}())