Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
###############################################################################
### Find all the window listed in emuWindows and saves/loads their geometry ###
### ###
### note: Check saved geometry values, WM and virtual desktop may ###
### create some offsets ###
###############################################################################
# Strangely xdotool seems to report doubled value on read for x and y
#!/usr/bin/env ruby
#
# Sort files in cwd by the date expressed in the filename
#
require 'chronic'
require 'optparse'
options = {}
optparse = OptionParser.new do |opts|
<joint name="rover_amalia_joint_chassis_leg_f_r" type="revolute">
<child>rover_amalia_leg_bar_f_r</child>
<parent>rover_amalia_chassis</parent>
<axis>
<xyz>0 1 0</xyz>
<dynamics/>
</axis>
<physics>
<ode>
<provide_feedback>true</provide_feedback>
@clynamen
clynamen / gist:441b41efcc643039ff89
Created October 18, 2014 21:32
working ft_sensor
<joint name="rover_amalia_joint_chassis_leg_f_r" type="revolute">
<child>rover_amalia_leg_bar_f_r</child>
<parent>rover_amalia_chassis</parent>
<axis>
<xyz>0 1 0</xyz>
<dynamics/>
</axis>
<physics>
<ode>
</ode>
function example()
clf
clear all
FREQ_INTERVAL = [3, 100];
N_INTERVAL = [10, 1000];
fun=@(x) sinc(x);
N = 10;
Fc = 5;
# coding: utf-8
# In[79]:
get_ipython().magic('matplotlib inline')
from pyrr import Quaternion, Matrix44, Vector3
import math
from math import sin, cos
import numpy as np
import matplotlib.pyplot as plt
@clynamen
clynamen / gist:cac5b6e9ba5f4f3cd7aa
Created March 24, 2015 19:42
matplotlib-trial2
# coding: utf-8
# In[146]:
get_ipython().magic('matplotlib inline')
from pyrr import Quaternion, Matrix44, Vector3, Vector4
import math
from math import sin, cos
import numpy as np
#!/usr/bin/env python
"""copy_forwarder
Usage:
copy_forwader.py <conf_filename> [-v]
Options:
-v --verbose Print debug info during execution
-h --help Print this help
#include <iostream>
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/core/core.hpp"
using namespace std;
using namespace cv;
int main(int argc, char **argv) {
Mat image;
#include <iostream>
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/core/core.hpp"
using namespace std;
using namespace cv;
int main(int argc, char **argv) {