Skip to content

Instantly share code, notes, and snippets.

View aldajo92's full-sized avatar

Alejandro Gómez aldajo92

View GitHub Profile
#include <Servo.h>
Servo myservo;
int val = 90;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
myservo.attach(10);
deb http://old-releases.ubuntu.com/ubuntu/ raring main universe restricted multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ raring main universe restricted multiverse
deb http://old-releases.ubuntu.com/ubuntu/ raring-security main universe restricted multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ raring-security main universe restricted multiverse
deb http://old-releases.ubuntu.com/ubuntu/ raring-updates main universe restricted multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ raring-updates main universe restricted multiverse
deb http://old-releases.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse
clc; clear; close all;
tf = 1000;
R = 2.5;
Cv = 0.0769;
F1 = 0.32;
g = 9.8;
f=@(t,h) (F1 - Cv*sqrt(g*h))/(2*pi*R);
h0=4;
#include <iostream>
#include <string>
using namespace std;
void number(int value){
cout << "Hello, the number is " << value << "!\n";
}
int main()
#include <iostream>
#include <string>
#include <vector>
#include <stdlib.h>
using namespace std;
void operation(vector<int> nv){
int contador=0;
/**
* https://antonioleiva.com/collection-operations-kotlin/
*/
fun main(args: Array<String>) {
val list = listOf(1, 2, 3, 4, 5, 6)
println(list.any { it % 2 == 0 })
println(list.map { it + 1 })
val listPair = listOf(2, 4, 6, 8, 10)
#include <SoftwareSerial.h>
SoftwareSerial BTserial(2, 3); // RX | TX
String ANALOG1 = "analog1";
String ANALOG2 = "analog2";
String ANALOG3 = "analog3";
String OUT1 = "out1";
String OUT2 = "out2";
String OUT3 = "out3";
#include <SoftwareSerial.h>
SoftwareSerial BTserial(9, 8); // RX | TX
char c;
String comando;
int IN1 = 10;
int IN2 = 11;
int IN3 = 12;
int IN4 = 13;
var doc = $(document);
doc.ready(function(){
$("#buttonio1").click(function(){
// alert("The paragraph was clicked.");
window.open("https://www.google.com","_self")
});
});
/*document.getElementById("buttonio1").addEventListener("click", function(){
import android.annotation.SuppressLint
import android.app.AlertDialog
import android.app.Dialog
import android.app.DialogFragment
import android.content.Context
import android.databinding.DataBindingUtil
import android.databinding.ObservableBoolean
import android.databinding.ObservableField
import android.graphics.drawable.Drawable
import android.os.Bundle