Skip to content

Instantly share code, notes, and snippets.

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

Yuri Serrano yurijserrano

🏠
Working from home
View GitHub Profile
public RadioButton nueva_tarjeta() {
rb_ciudad1.setText("Hola laura");
Toast.makeText(getApplicationContext(),"Hello Javatpoint",Toast.LENGTH_SHORT).show();
return testButton;
}
@yurijserrano
yurijserrano / josefix2.java
Created September 6, 2019 18:29
Jose Fix 2 - Problem 1
public void nueva_tarjeta() {
rb_ciudad1.setText("Hola laura");
Toast.makeText(getApplicationContext(),"Hello Javatpoint",Toast.LENGTH_SHORT).show();
}
@yurijserrano
yurijserrano / joseClickListener.java
Created September 6, 2019 18:47
Jose setOnClickListener
RadioButton btn = (RadioButton) findViewById(R.id.mybutton);
btn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
ira2(v);
}
});
@yurijserrano
yurijserrano / quizverification.java
Created September 12, 2019 16:23
Quiz - Verification
String respuesta = edtEditText.getText().toString().toUpperCase();
if(respuesta.equals("PERU") || respuesta.equals("PERÚ")){
return true;
}else{
return false;
}
import java.util.concurrent.TimeUnit;
public class Main
{
public static void main(String[] args) {
long startTime = System.nanoTime();
String word = "Hola mi nombre es Juri";
System.out.println("Result: " + vowelOnly(word));
long endTime = System.nanoTime();
long totalTime = (endTime - startTime);
import java.util.concurrent.TimeUnit;
public class Main
{
public static void main(String[] args) {
long startTime = System.nanoTime();
String word = "Hola mi nombre es Juri";
System.out.println("Result: " + vowelOnly(word));
long endTime = System.nanoTime();
long totalTime = (endTime - startTime);
@yurijserrano
yurijserrano / form.html
Created February 18, 2024 08:05
Form - Example
<!DOCTYPE html>
<html>
<head>
<title>E-commerce Registration</title>
</head>
<body>
<h2>E-commerce Registration Form</h2>
<form action="/submit_registration" method="post">
@yurijserrano
yurijserrano / checkbox.html
Created February 18, 2024 08:37
Checkbox Example
<input type="checkbox" />
@yurijserrano
yurijserrano / index-solution.html
Created February 20, 2024 18:20
Ordering Elements Demo - Exercise Solution
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Exercise 1</title>
<meta content="width=device-width, initial-scale=1, maximum-scale=1" name="viewport"/>
<style>
.container {
display: flex;
flex-direction: row-reverse; /* Changed from column to row-reverse */
@yurijserrano
yurijserrano / app.js
Created February 27, 2024 00:28
NEW SOLUTION - The Default Action
document.addEventListener('DOMContentLoaded', function() {
const links = document.querySelectorAll('#ga-99cff7');
links.forEach(link => {
link.addEventListener('click', function(event) {
event.preventDefault();
console.log("Wow! We didn't navigate to a new page!");
});
});
});