Skip to content

Instantly share code, notes, and snippets.

View pestefo's full-sized avatar
🏠
Working from home

Pablo Estefó pestefo

🏠
Working from home
View GitHub Profile
@pestefo
pestefo / testing-robulab.md
Created July 2, 2014 10:55
Testing Robulab v1

#Testing Robulab

In this tutorial we will make basic tests to assert that both the robulab robot and the laptop are configured correctly. We will consider as well configured if we can start a PhaROS node that handle robulab robot, so we can publish motion messages through rostopic pub command and make it to move.

Pre-conditions

  1. Robulab charged and switched on.
  2. Laptop with Ubuntu 14.04
  3. ROS Indigo installed on laptop (How to install ROS Indigo in Ubuntu 14.04)
  4. Your .bashrc file you should look like this:
@pestefo
pestefo / testing-robulab.md
Last active August 29, 2015 14:03
Testing Robulab v 0.1

#Testing Robulab

In this tutorial we will make basic tests to assert that both the robulab robot and the laptop are configured correctly. We will consider as well configured if we can start a PhaROS node that handle robulab robot, so we can publish motion messages through rostopic pub command and make it to move.

Pre-conditions

  1. Robulab charged and switched on.
  2. Laptop with Ubuntu 14.04
  3. ROS Indigo installed on laptop (How to install ROS Indigo in Ubuntu 14.04)
  4. Your .bashrc file you should look like this:
|builder|
builder := ROPunchcardBuilder new.
builder addModels: #( 'Sed' 'molestie' 'nec' 'nisi quis' 'vestibulum' 'Morbi tempus' 'luctus' 'commodo' ).
builder addMetric: [:word | word size] namedAs: 'length'.
builder addMetric: [:word | word size * 3 ] namedAs: 'length * 3'.
builder addMetric: [:word | word size / 2 ] namedAs: 'length / 2'.
builder minColor: Color green.
builder maxColor: Color red.
builder open.
@pestefo
pestefo / dragNodeAndMoveEdge.st
Last active December 20, 2015 19:09
Making edges follow their nodes
RODraggable>>initializeElement: element
| svgElement |
svgElement := element shape svgElement.
svgElement
drag: [ :dx :dy |
| bboxCurrent |
bboxCurrent := svgElement getBBox.
svgElement translate: ((element position x) - (bboxCurrent x) + dx) y: ((element position y) -(bboxCurrent y) + dy).
]
/******** Codigo que va en el {% block js%} del base.html ******/
$('#Ingreso').ready(function(){
$.ajaxSetup ({
cache: false
});
// ORIGINAL: var ajax_load = "<img src='img/load.gif' alt='loading...' />";
// Imagen o texto a mostrar mientras carga la URL... podría ser un spinner o algo asi
var ajax_load = "<p>BUENAAAAAAA</p>";
// Url a donde se va a dirigir