### AndroidStudio ###
# Built application files
*.apk
*.ap_
*.aab
This file contains hidden or 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 limpiarUrlImagen(urlCompleta) { | |
| try { | |
| const urlObjeto = new URL(urlCompleta); | |
| // urlObjeto.origin -> Protocolo + Dominio (ej: "https://via.placeholder.com") | |
| // urlObjeto.pathname -> La ruta del archivo (ej: "/150/FF0000/FFFFFF") | |
| return urlObjeto.origin + urlObjeto.pathname; | |
| } catch (e) { | |
| console.error("Error al parsear la URL:", urlCompleta, e); | |
| return urlCompleta; // En caso de URL inválida, devuelve la original o maneja el error | |
| } |
This file contains hidden or 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
| /* | |
| Let M be a not empty set of integer numbers, find the first subset of 2 numbers of M which sum N. For instance, let's say we've got a set of numbers [2, 5, 8, 14, 0] and N = 10, the resulting subset should be [2, 8]. | |
| Challenge | |
| You're required to create a function that receives an array (M) and integer value (N). This function has to return an array of the first possible solution. | |
| 🚨 We're looking to someone who can imagine future problems while is coding. | |
| */ | |
This file contains hidden or 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
| // Selecciona el elemento de entrada por su ID | |
| const inputElement = document.querySelector('#react-select-113-input'); | |
| const skills = [ | |
| // Lenguajes | |
| "Kotlin", "Java", "Swift", "Objective-C", "JavaScript", | |
| // Frameworks y Librerías | |
| "Android SDK", "Jetpack Compose", "Picasso", "Glide", "Lottie", | |
| "Hilt", "Koin", "Gson", "JSON", "Moshi", |
This file contains hidden or 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
| //solution completed: | |
| //https://developer.android.com/codelabs/basic-android-kotlin-compose-kotlin-fundamentals-practice-problems?hl=es-419&continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-2-pathway-1%3Fhl%3Des-419%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-kotlin-fundamentals-practice-problems#8 | |
| fun main(){ | |
| notifications() | |
| tycketCine() | |
| catalogSong() | |
| } | |
| //5. Catálogo de canciones |
This file contains hidden or 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
| /** | |
| Excercise : https://developer.android.com/codelabs/basic-android-kotlin-compose-function-types-and-lambda?hl=es-419&continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-2-pathway-1%3Fhl%3Des-419%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-function-types-and-lambda#0 | |
| */ | |
| fun main() { | |
| val trickFunction = ::trick | |
| trickFunction() | |
| trickAsVariable() | |
| trickWhitType() | |
| trickWhitParam("Javier Solis") |
This file contains hidden or 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
| # PRIMERA SOLUCION DEL PROBLEMA | |
| # Python code to demonstrate math.factorial() | |
| """ | |
| para que no quede una array super largo | |
| convendria una estructura de dictionario | |
| para darles mas peso como un grafo con pesos | |
| asi el array queda fijo y solo queda multiplicar los pesos segun como | |
| valla avanzando | |
| """ | |
| def getLetterIndices(indice,source,letter): |
This file contains hidden or 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
| TabHost host = (TabHost)findViewById(R.id.tabHost); | |
| host.setup(); | |
| //Tab 1 | |
| TabHost.TabSpec spec = host.newTabSpec("Tab One"); | |
| spec.setContent(R.id.tab1); | |
| spec.setIndicator("Tab One"); | |
| host.addTab(spec); | |
| //Tab 2 |
This file contains hidden or 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.app.Activity; | |
| import android.content.Context; | |
| import android.graphics.Typeface; | |
| import android.support.v4.app.FragmentActivity; | |
| import android.view.View; | |
| import android.view.ViewGroup; | |
| import android.widget.EditText; | |
| import android.widget.TextView; |
This file contains hidden or 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
| @Override | |
| public void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| setContentView(R.layout.activity_comments); | |
| String htmlComments = getHtmlComment("yourId", "yourShortName"); | |
| webDisqus = (WebView) findViewById(R.id.disqus); | |
| // set up disqus | |
| WebSettings webSettings2 = webDisqus.getSettings(); |
NewerOlder