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 <Servo.h> | |
Servo myservo; | |
int val = 90; | |
void setup() { | |
// put your setup code here, to run once: | |
Serial.begin(9600); | |
myservo.attach(10); |
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
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 |
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
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; |
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 <iostream> | |
#include <string> | |
using namespace std; | |
void number(int value){ | |
cout << "Hello, the number is " << value << "!\n"; | |
} | |
int main() |
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 <iostream> | |
#include <string> | |
#include <vector> | |
#include <stdlib.h> | |
using namespace std; | |
void operation(vector<int> nv){ | |
int contador=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
/** | |
* 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) |
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 <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"; |
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 <SoftwareSerial.h> | |
SoftwareSerial BTserial(9, 8); // RX | TX | |
char c; | |
String comando; | |
int IN1 = 10; | |
int IN2 = 11; | |
int IN3 = 12; | |
int IN4 = 13; |
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
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(){ |
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
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 |
OlderNewer