This file contains 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
Incorporated into: https://github.com/eacousineau/util |
This file contains 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
Incorporated into: https://github.com/eacousineau/util |
This file contains 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
for dir in a b c d; do | |
git init $dir | |
pushd $dir | |
touch test | |
echo $dir > bob | |
git add -A | |
git commit -m "Init" | |
popd | |
done | |
This file contains 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
#!/bin/bash | |
# Git Lightweight User Management | |
# To start a new user 'session' | |
# glum USER EMAIL | |
# To end user 'session' | |
# glum | |
glum-broken() { | |
# This shows an error, and replaces git in the current shell as an alias to this function |
This file contains 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
#!/usr/bin/python | |
import fnmatch | |
import argparse | |
import rosgraph.masterapi | |
import roslib | |
import rospy | |
import uuid | |
import sys | |
parser = argparse.ArgumentParser() |
This file contains 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
# ros-hydro-gazebo-* | |
ros-hydro-gazebo-msgs | |
ros-hydro-gazebo-msgs-current amd64 2.4.1-1precise ros-hydro-gazebo-msgs | |
ros-hydro-gazebo-plugins | |
ros-hydro-gazebo-plugins-current amd64 2.4.1-3precise ros-hydro-gazebo-plugins | |
ros-hydro-gazebo-ros | |
ros-hydro-gazebo-ros-control | |
ros-hydro-gazebo-ros-control-current amd64 2.4.1-1precise ros-hydro-gazebo-ros-control | |
ros-hydro-gazebo-ros-current amd64 2.4.1-3precise ros-hydro-gazebo-ros | |
ros-hydro-gazebo-ros-pkgs |
This file contains 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
%> @brief cellexpand Expand a cell (or array) value into the output | |
%> arguments. Similar to deal(), but only accepts one input argument. | |
%> @param X Cell or matrix vector to be distributed to varargout | |
function [varargout] = cellexpand(X) | |
if ismatrix(X) | |
X = num2cell(X); | |
end | |
assert(iscell(X)); |
This file contains 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 6a16f029b4d5d5be1fe202bc961d919d85764203 Mon Sep 17 00:00:00 2001 | |
From: eacousineau <[email protected]> | |
Date: Sat, 5 Apr 2014 13:31:49 -0500 | |
Subject: [PATCH] CMakeLists: Haphazardly add -fPIC for gcc to see if we can | |
squelch the Qt5.2 #error directive | |
--- | |
CMakeLists.txt | 5 +++++ | |
aeolus/CMakeLists.txt | 2 +- | |
audiofile/CMakeLists.txt | 4 +++- |
This file contains 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
#!/usr/bin/python | |
import sys | |
class Tee(object): | |
""" | |
Allow forking of output to stdout and other files | |
From: http://stackoverflow.com/questions/11325019/output-on-the-console-and-file-using-python | |
@author Thrustmaster <http://stackoverflow.com/users/227884/thrustmaster> | |
@author Eric Cousineau <[email protected]> | |
""" |
This file contains 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
#!/usr/bin/python | |
import numpy as np | |
def dict_list_to_recarray(items): | |
""" | |
@brief Take a loose list of dictionaries, and turn them into a recarray with | |
fields defined as 'object' for clarity | |
@param items Iterable collection of dictionaries | |
@author Eric Cousineau <[email protected]> | |
@note xref: http://docs.scipy.org/doc/numpy/reference/generated/numpy.core.records.fromrecords.html |
OlderNewer