This file contains hidden or 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
| #include <string> | |
| #include <iostream> | |
| using std::string; | |
| using std::cout; | |
| using std::endl; | |
| void foo(string &foo) { | |
| foo += "hello"; | |
| } |
This file contains hidden or 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
| diff -r a37008dd3341 ogre_tools_qt/CMakeLists.txt | |
| --- a/ogre_tools_qt/CMakeLists.txt Thu Dec 15 17:29:28 2011 -0800 | |
| +++ b/ogre_tools_qt/CMakeLists.txt Fri Dec 16 00:55:18 2011 -0600 | |
| @@ -40,12 +40,6 @@ | |
| set(X11_LIBS ${X11_LIBRARIES}) | |
| endif(UNIX AND NOT APPLE) | |
| -if(APPLE) | |
| - include_directories(/usr/X11/include) | |
| - link_directories(/usr/X11/lib) |
This file contains hidden or 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
| #include <cstdio> | |
| int main() { | |
| int a[10] = {0,1,2,3,4,5,6,7,8,9}; | |
| int i = 3; | |
| printf("%d %d\n", (a[4]), 4[a]); // => 4 4 | |
| printf("%d %d\n", (a[i]), i[a]); // => 3 3 | |
| } |
This file contains hidden or 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
| from matplotlib import pyplot | |
| from matplotlib.patches import Circle | |
| from shapely.geometry import Polygon, LineString | |
| from descartes.patch import PolygonPatch | |
| import math | |
| import numpy as np | |
| COLOR = { | |
| True: '#6699cc', | |
| False: '#ff3333' |
This file contains hidden or 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
| ∫ export | |
| declare -x Apple_PubSub_Socket_Render="/tmp/launch-d0dBqo/Render" | |
| declare -x CLICOLOR="yes" | |
| declare -x COMMAND_MODE="unix2003" | |
| declare -x CPLUS_INCLUDE_PATH="/usr/local/include:" | |
| declare -x DISPLAY="/tmp/launch-BId4X7/org.x:0" | |
| declare -x EDITOR="vim" | |
| declare -x FTP_PASSIVE="1" | |
| declare -x GL_ENABLE_DEBUG_ATTACH="YES" | |
| declare -x HISTCONTROL="erasedups:ignoreboth" |
This file contains hidden or 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
| a = {'toggle1': {None: 51.5, 'z': False, 'foobar' : { 3 : 7 } } } | |
| def flatten(aDict, path='', sep='/'): | |
| for k, v in aDict.iteritems(): | |
| new_path = path | |
| if k: | |
| new_path += sep + str(k) | |
| try: | |
| for i in flatten(v, new_path): |
This file contains hidden or 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
| ∫ rosmake | |
| [ rosmake ] No package specified. Building ['power_control_board'] | |
| [ rosmake ] Packages requested are: ['power_control_board'] | |
| [ rosmake ] Logging to directory/Users/john/.ros/rosmake/rosmake_output-20111007-124025 | |
| [ rosmake ] Expanded args ['power_control_board'] to: | |
| ['power_control_board'] | |
| [ rosmake ] Checking rosdeps compliance for packages power_control_board. This may take a few seconds. | |
| Failed to find rosdep pyserial for package power_control_board on OS:osx version:lion | |
| WARNING: Rosdeps [u'pyserial'] could not be resolved | |
| Failed to find rosdep pyserial for package power_control_board on OS:osx version:lion |
This file contains hidden or 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
| ∫ rosmake | |
| [ rosmake ] No package specified. Building ['move_base'] | |
| [ rosmake ] Packages requested are: ['move_base'] | |
| [ rosmake ] Logging to directory/Users/john/.ros/rosmake/rosmake_output-20110918-185909 | |
| [ rosmake ] Expanded args ['move_base'] to: | |
| ['move_base'] | |
| [ rosmake ] Checking rosdeps compliance for packages move_base. This may take a few seconds. | |
| Executing script below with cwd=/var/folders/q3/xzr40bsj6sjdclzckw3z2yt40000gn/T | |
| {{{ | |
| #!/bin/bash |
This file contains hidden or 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
| [rosmake-0] Starting >>> wxPython_swig_interface [ make ] | |
| [rosmake-0] Finished <<< wxPython_swig_interface No Makefile in package wxPython_swig_interface | |
| [ rosmake ] Last 40 linesswig: 36.4 sec ] [ 1 Active 15/17 Complete ] | |
| {------------------------------------------------------------------------------- | |
| config.status: creating Examples/test-suite/csharp/Makefile | |
| sed: 3: ./confstatyULHJ6/subs-4.sed: unescaped newline inside substitute pattern | |
| config.status: creating Examples/test-suite/guile/Makefile | |
| sed: 3: ./confstatyULHJ6/subs-4.sed: unescaped newline inside substitute pattern | |
| config.status: creating Examples/test-suite/guilescm/Makefile | |
| sed: 3: ./confstatyULHJ6/subs-4.sed: unescaped newline inside substitute pattern |
This file contains hidden or 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
| $ rosmake ros_comm | |
| [ rosmake ] Packages requested are: ['ros_comm'] | |
| [ rosmake ] Logging to directory/Users/john/.ros/rosmake/rosmake_output-20110818-235419 | |
| [ rosmake ] Expanded args ['ros_comm'] to: | |
| ['xmlrpcpp', 'roswtf', 'rostime', 'message_filters', 'cpp_common', 'topic_tools', 'rostopic', 'rostest', 'rosservice', 'rosparam', 'rosout', 'rosnode', 'rosmsg', 'rosmaster', 'roslaunch', 'rosgraph', 'rosconsole', 'rosbagmigration', 'rosbag', 'test_topic_tools', 'test_roswtf', 'test_rostopic', 'test_rostime', 'test_rostest', 'test_rosservice', 'test_rospy', 'test_rosparam', 'test_rosnode', 'test_rosmsg', 'test_rosmaster', 'test_roslib_comm', 'test_roslaunch', 'test_rosgraph', 'test_roscpp_serialization_perf', 'test_roscpp_serialization', 'test_roscpp', 'test_rosbag', 'test_ros', 'test_crosspackage', 'perf_roscpp' |