gst-launch-1.0 -v filesrc location= /home/rein/Videos/big_buck_bunny_720p_30mb_0_0.mp4 ! decodebin ! videoconvert ! jpegenc ! rtpjpegpay ! udpsink host=localhost port=5000
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
PS1='[\[\033[01;34m\]\w\[\033[00m\]] $(__git_ps1 "(%s)") \n\$ ' |
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
#define MASK32(nbits) ((0xffffffff)>> (32-nbits)) | |
uint32_t extractSignal(uint8_t* frame, uint8_t startbit, uint8_t length, bool is_big_endian) | |
{ | |
uint8_t startByte = startbit/8; | |
uint8_t startBitInByte = startbit % 8; | |
uint8_t endByte = 0; | |
uint8_t count = 0; | |
uint8_t target = frame[startByte] >> startBitInByte; | |
uint8_t currentTargetLength = (8-startBitInByte); |
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
#include <stdint.h> | |
#include <iostream> | |
#define MASK32(nbits) ((0xffffffff)>> (32-nbits)) | |
uint32_t extractSignal(const uint8_t* frame, const uint8_t startbit, const uint8_t length, bool is_big_endian) | |
{ | |
uint8_t startByte = startbit / 8; | |
uint8_t startbit_in_byte = startbit % 8; | |
uint8_t end_byte = 0; |
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
#include <stdint.h> //uint typedefinitions, non-rtw! | |
#include <iostream> | |
#define MASK64(nbits) ((0xffffffffffffffff)>> (64-nbits)) | |
inline float toPhysicalValue(uint64_t target, float factor, float offset, bool is_signed) | |
{ | |
if (is_signed) | |
return ( (int64_t) target ) * factor + offset; |
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
# Reset author of last commit | |
git su rein | |
git commit --amend --reset-author | |
# PS1 | |
PS1='[\[\033[01;34m\]\w\[\033[00m\]] $(__git_ps1 "(%s)") \n\$ ' |
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
while true; do echo `fortune` | cowsay | wall -n; sleep 2; 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
# @brief | |
# Performs file upload validation for django. The original version implemented | |
# by dokterbob had some problems with determining the correct mimetype and | |
# determining the size of the file uploaded (at least within my Django application | |
# that is). | |
# @author dokterbob | |
# @author jrosebr1 | |
import mimetypes |
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
""" | |
Python implementation of the color map function for the PASCAL VOC data set. | |
Official Matlab version can be found in the PASCAL VOC devkit | |
http://host.robots.ox.ac.uk/pascal/VOC/voc2012/index.html#devkit | |
""" | |
import numpy as np | |
from skimage.io import imshow | |
import matplotlib.pyplot as plt | |
def color_map(N=256, normalized=False): |
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
# Replace the organization and num pages ,, | |
ORGANIZATION=tue-robotics && \ | |
NUM_PAGES=20 && \ | |
for i in $(seq 1 $NUM_PAGES); do for i in `curl -s https://api.github.com/orgs/$ORGANIZATION/repos?page=$i |grep html_url|awk 'NR%2 == 0'|cut -d ':' -f 2-3|tr -d '",'`; do git clone $i.git; done; done |
OlderNewer