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
__author__ = 'cholloway' | |
import argparse | |
from OdomProcessor import OdomProcessor | |
parser = argparse.ArgumentParser(description='Process odometries in bag file.', argument_default=argparse.SUPPRESS) | |
parser.add_argument('--data_topics', type=list, nargs='+', help='The odometry topic') | |
parser.add_argument('--labels', type=list, nargs='+', help='The topic labels for the graphs') | |
parser.add_argument('--foldername', type=list, nargs='?', help='The foldername containing the bags') | |
parser.add_argument('--filename', type=str, nargs='?', help='The filename of the bag') |
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
import os | |
import urllib | |
import urllib2 | |
import ast | |
import wget | |
from PIL import Image | |
from collections import Counter | |
service = "https://datamarket.accesscontrol.windows.net/v2/OAuth2-13" | |
# you will need to generate your own client id and key in Azure |
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
<filetype binary="false" description="Verilog" name="Verilog"> | |
<highlighting> | |
<options> | |
<option name="LINE_COMMENT" value="//" /> | |
<option name="COMMENT_START" value="/*" /> | |
<option name="COMMENT_END" value="*/" /> | |
<option name="HEX_PREFIX" value="" /> | |
<option name="NUM_POSTFIXES" value="" /> | |
<option name="HAS_PARENS" value="true" /> | |
<option name="HAS_STRING_ESCAPES" value="true" /> |
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 | |
# GUI-related packages | |
pkgs=" | |
xserver-xorg-video-fbdev | |
xserver-xorg xinit | |
gstreamer1.0-x gstreamer1.0-omx gstreamer1.0-plugins-base | |
gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-alsa | |
gstreamer1.0-libav | |
epiphany-browser |
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
import UI.NCurses | |
import Control.Monad (forM_) | |
import Data.Int | |
num_accross = 24 | |
num_down = 9 | |
colors = [ColorMagenta, ColorRed, ColorYellow, ColorGreen, ColorBlue, ColorCyan, ColorWhite, ColorBlack] | |
main = runCurses $ do |
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 commands import getstatusoutput | |
def branches(remote=False): | |
command = "git branch" + (" -r" if remote else "") | |
return [br.strip() for br in getstatusoutput(command)[1].replace("*", "").split("\n")] | |
local_branches = branches() | |
remote_branches = branches(remote=True) |
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 threading import Thread, enumerate | |
import logging | |
def fails(): | |
for i in range(999999999): | |
assert i < 9999999 | |
def succeeds(): |
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/sh | |
### BEGIN INIT INFO | |
# Provides: appengine | |
# Required-Start: $local_fs $network $named $time $syslog | |
# Required-Stop: $local_fs $network $named $time $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Description: runs an instance of dev_appserver | |
### END INIT INFO |
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 os.path import join, dirname, abspath | |
from matplotlib import pyplot | |
from matplotlib.cbook import get_sample_data | |
from numpy import linspace | |
from numpy.core.umath import pi | |
from numpy.ma import sin | |
# poo-mark came from emojipedia: | |
# https://emojipedia-us.s3.amazonaws.com/thumbs/120/apple/96/pile-of-poo_1f4a9.png | |
poo_img = pyplot.imread(get_sample_data(join(dirname(abspath(__file__)), "poo-mark.png"))) |
OlderNewer