Skip to content

Instantly share code, notes, and snippets.

@andreasBihlmaier
andreasBihlmaier / gist:8e9590b5294c29137d8f
Created June 10, 2015 20:44
Cd_current completion zsh
#compdef Cd_current
List_current_dirs() {
ps ewwo command | \
fgrep -v COMMAND | \
awk '{ match($0,/PWD=[^ ][^ ]*/); { print substr($0, RSTART + 4, RLENGTH - 4) } }' | \
grep -v '\[^' | \
grep -v $HOME\$ | \
sort | \
uniq
<robot name="collada_unit_centimeter">
<link name="block">
<inertial>
<mass value="1"/>
<origin rpy="0 0 0" xyz="0 0 0"/>
<inertia ixx="1" ixy="0" ixz="0" iyy="1" iyz="0" izz="1"/>
</inertial>
<visual name="visual">
<origin rpy="0 0 0" xyz="0 0 0"/>
<geometry>
@andreasBihlmaier
andreasBihlmaier / InteractiveImageMap.py
Last active August 29, 2015 14:08
InteractiveImageMap
"""
Syntax:
{{{#!InteractiveImageMap
picsrc;;width=WIDTH
area1;;shape=rect|circle|poly;;coords=V1,V2,...,Vn;;tooltip=TOOLTIP[;;description=DESCRIPTION]
area2;;shape=rect|circle|poly;;coords=V1,V2,...,Vn;;tooltip=TOOLTIP[;;description=DESCRIPTION]
}}}
8259373db6b7f71b984badd61e6c3ada344d942011690da144c51e90a04a57f4
<?xml version="1.0"?>
<model>
<name>Camera ROS</name>
<version>1.0</version>
<sdf>model.sdf</sdf>
<author>
<name>Nate Koenig</name>
<email>nate@osrfoundation.org</email>
<sdf version='1.4'>
<world name='default'>
<light name='sun' type='directional'>
<cast_shadows>1</cast_shadows>
<pose>0 0 10 0 -0 0</pose>
<diffuse>0.8 0.8 0.8 1</diffuse>
<specular>0.2 0.2 0.2 1</specular>
<attenuation>
<range>1000</range>
<constant>0.9</constant>
<sdf version='1.4'>
<world name='default'>
<light name='sun' type='directional'>
<cast_shadows>1</cast_shadows>
<pose>0 0 10 0 -0 0</pose>
<diffuse>0.8 0.8 0.8 1</diffuse>
<specular>0.2 0.2 0.2 1</specular>
<attenuation>
<range>1000</range>
<constant>0.9</constant>