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
# raspberry | |
Host pi1 | |
User youUser | |
HostName 192.168.0.103 #replace with your raspberri pi's ip | |
PreferredAuthentications publickey | |
IdentityFile ~/.ssh/id_rsa |
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 <MotorShield.h> | |
const int buttonPin = 2; | |
const int ledPin = 13; | |
MS_DCMotor motor(MOTOR_A); | |
int buttonState = 0; | |
int gruaState = 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
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() |
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
language: node_js | |
node_js: | |
- 0.9 | |
before_script: | |
- npm install -g grunt-cli |
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
describe('a listener', function(){ | |
describe('without nothing', function(){ | |
it('does nothing', function(){ | |
var userRepo = new UserRepo([]); | |
var listener = new listenerModule.Listener(userRepo); | |
listener.start(); | |
}); | |
}); |
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
module.exports = function(grunt) { | |
// Project configuration. | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
mochacli: { | |
options: { | |
reporter: 'nyan', | |
bail: 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
#include <DCMotor.h> | |
DCMotor motor0(M0_EN, M0_D0, M0_D1); | |
DCMotor motor1(M1_EN, M1_D0, M1_D1); | |
void setup() | |
{ | |
} | |
void loop() |
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
(function () { | |
"use strict"; | |
function parseBenefit(text) { | |
var type = "otro"; | |
var value = ""; | |
if (text != "") { | |
var numberPattern = /\d+/g; | |
var result = text.match(numberPattern); |
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
[TestFixture] | |
class MailBuilderTest | |
{ | |
[Test] | |
public void TestContactInformation() | |
{ | |
// arrange | |
ContactInformation contactInformation = new ContactInformation() | |
{ | |
FirstName = "Homero", |
NewerOlder