Skip to content

Instantly share code, notes, and snippets.

The source of this page can be seen at: The source of above page is: https://gist.github.com/NikolausDemmel/b7a01f32adc10d28407e
It seems that in a wiki a code block with double squares `[[...]]` causes the whole code block to be rendered only as what is in between the brackets. It is fine in the preview, but it fails when viewing the page otherwise.
Example:
```
foo [[bar]]
```
@NikolausDemmel
NikolausDemmel / catkin_tools nosetests
Created December 17, 2015 00:32
catkin_tools nosetests
$ python setup.py nosetests
running nosetests
running egg_info
writing requirements to catkin_tools.egg-info/requires.txt
writing catkin_tools.egg-info/PKG-INFO
writing top-level names to catkin_tools.egg-info/top_level.txt
writing dependency_links to catkin_tools.egg-info/dependency_links.txt
writing entry points to catkin_tools.egg-info/entry_points.txt
reading manifest file 'catkin_tools.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
@NikolausDemmel
NikolausDemmel / ogre1.9.patch
Created February 15, 2015 20:37
ogre1.9 fix window release
diff --git a/RenderSystems/GL/src/OSX/OgreOSXCocoaWindow.mm b/RenderSystems/GL/src/OSX/OgreOSXCocoaWindow.mm
index 71f8f90..974d279 100644
--- a/RenderSystems/GL/src/OSX/OgreOSXCocoaWindow.mm
+++ b/RenderSystems/GL/src/OSX/OgreOSXCocoaWindow.mm
@@ -282,6 +282,7 @@ namespace Ogre {
}
mWindow = [mView window];
+ [mWindow retain];
mIsExternal = true;
@NikolausDemmel
NikolausDemmel / fix-1.9-HEAD.diff
Created July 18, 2014 11:46
Fix Ogre 1.9 for OS X Homebrew
# HG changeset patch
# User Nikolaus Demmel <nikolaus@nikolaus-demmel.de>
# Date 1405647279 -7200
# Branch v1-9
# Node ID 7a00a8c978afc15e08e5c3e3dcd9ce04afa37ee8
# Parent 7c776867621e1e41f1be5e49ecc01e8849a80ad2
Fixes for installation with homebrew.
diff --git a/CMake/Utils/OgreConfigTargets.cmake b/CMake/Utils/OgreConfigTargets.cmake
--- a/CMake/Utils/OgreConfigTargets.cmake
@NikolausDemmel
NikolausDemmel / fixogre1.8.patch
Created July 18, 2014 03:24
Fix Ogre 1.8 for OS X homebrew
# HG changeset patch
# User Nikolaus Demmel <nikolaus@nikolaus-demmel.de>
# Date 1405650868 -7200
# Branch v1-8
# Node ID 03c124a698adc54ba42a510423d463901497db4b
# Parent edccf8cc52e3b23c5ce0a3c4d15d64c0c67ad6e0
Fix for OS X homebrew
diff --git a/CMake/Packages/FindFreetype.cmake b/CMake/Packages/FindFreetype.cmake
--- a/CMake/Packages/FindFreetype.cmake
diff --git a/cmake/SearchForStuff.cmake b/cmake/SearchForStuff.cmake
--- a/cmake/SearchForStuff.cmake
+++ b/cmake/SearchForStuff.cmake
@@ -126,7 +126,7 @@
#################################################
# Find Simbody
set(SimTK_INSTALL_DIR ${SimTK_INSTALL_PREFIX})
- #list(APPEND CMAKE_MODULE_PATH ${SimTK_INSTALL_PREFIX}/share/cmake)
+ #list(APPEND CMAKE_MODULE_PATH ${SimTK_INSTALL_PREFIX}/share/cmake)
find_package(Simbody)
# HG changeset patch
# User Nikolay Kasyanov <corrmage@gmail.com>
# Date 1392318881 -14400
# Branch xcodeless-build-fixes
# Node ID 25cc89793bddebd59bb20f9edb5053952095eb94
# Parent 82b0e7ad3d1c215584811509977957ea9b0cc4a0
Don't use Xcode variables for non-Xcode builds
diff --git a/OgreMain/CMakeLists.txt b/OgreMain/CMakeLists.txt
--- a/OgreMain/CMakeLists.txt
@NikolausDemmel
NikolausDemmel / gist:cb8a30231a66efd5b07b
Last active August 29, 2015 14:01
Install ROS hydro on OS X
brew update
brew uninstall cmake
brew install nikolausdemmel/devel/cmake
brew install python libyaml
brew tap ros/hydro
brew tap osrf/simulation
brew tap homebrew/versions
brew tap homebrew/science
@NikolausDemmel
NikolausDemmel / gist:11128536
Created April 20, 2014 23:58
cuda failure boost/function and opencv
$ cat main.cu
#include <boost/function.hpp>
#include <opencv2/opencv.hpp>
$ nvcc -I "/usr/local/Cellar/boost-libstdcxx/1.55.0/include" -I/usr/local/Cellar/opencv-libstdcxx/2.4.8.2/include/opencv main.cu -v
nvcc warning : The 'compute_10' and 'sm_10' architectures are deprecated, and may be removed in a future release.
#$ _SPACE_=
#$ _CUDART_=cudart
#$ _HERE_=/Developer/NVIDIA/CUDA-6.0/bin
@NikolausDemmel
NikolausDemmel / editing some widget properties in the designer
Last active August 29, 2015 13:59
qt creator 3.1.0 with qt 5.3 crashes
$ lldb /Applications/Qt\ Creator.app
Current executable set to '/Applications/Qt Creator.app' (x86_64).
(lldb) run
Process 16322 launched: '/Applications/Qt Creator.app/Contents/MacOS/Qt Creator' (x86_64)
Process 16322 stopped
* thread #1: tid = 0x40670a, 0x00000001008660a4 QtGui`QWindow::type() const + 4, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x8)
frame #0: 0x00000001008660a4 QtGui`QWindow::type() const + 4
QtGui`QWindow::type() const + 4:
-> 0x1008660a4: movq 0x8(%rdi), %rax
0x1008660a8: movzbl 0x74(%rax), %eax