Skip to content

Instantly share code, notes, and snippets.

# raspberry
Host pi1
User youUser
HostName 192.168.0.103 #replace with your raspberri pi's ip
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
@ferclaverino
ferclaverino / home.feature
Created March 13, 2015 20:41
search scenario
Feature: Home
Como comprador
Quiero buscar teléfonos
Scenario: Busqueda de xoom
Given Estoy en "phones"
When Yo busco "xoom"
Then Veo "2" resultados
@ferclaverino
ferclaverino / home.feature
Last active August 29, 2015 14:17
starting protractor + cucumber + gherkin
Feature: Home
Como comprador
Quiero buscar teléfonos
Scenario: Titulo en la home
Given Estoy en "phones"
Then El título es "Google Phone Gallery"
@ferclaverino
ferclaverino / grua.ino
Last active December 27, 2015 18:39
Una grúa controlada con un único botón
#include <MotorShield.h>
const int buttonPin = 2;
const int ledPin = 13;
MS_DCMotor motor(MOTOR_A);
int buttonState = 0;
int gruaState = 0;
from time import sleep
from braianDriver.robot import Robot
robot = Robot()
def adelante(cuanto):
robot.set_forward()
robot.move(speed=Robot.SPEED_MEDIUM)
sleep(cuanto)
robot.stop()
var Authorization = function(anUserId) {
var userId = anUserId;
this.authorizeForInstitution = function(institution) {
if (isResponsable(institution)) {
$("[auth~='responsable-institucion']").show();
}
};
var isResponsable = function(institution) {
@ferclaverino
ferclaverino / .travis.yml
Created August 2, 2013 14:51
Integrate Travis CI + Grunt
language: node_js
node_js:
- 0.9
before_script:
- npm install -g grunt-cli
describe('a listener', function(){
describe('without nothing', function(){
it('does nothing', function(){
var userRepo = new UserRepo([]);
var listener = new listenerModule.Listener(userRepo);
listener.start();
});
});
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
mochacli: {
options: {
reporter: 'nyan',
bail: true
},
#include <DCMotor.h>
DCMotor motor0(M0_EN, M0_D0, M0_D1);
DCMotor motor1(M1_EN, M1_D0, M1_D1);
void setup()
{
}
void loop()