Skip to content

Instantly share code, notes, and snippets.

View ykro's full-sized avatar

Adrián Catalán ykro

  • Elemental Geeks
  • Guatemala
View GitHub Profile
@ykro
ykro / prompts.md
Last active February 2, 2026 00:13

1. ¿Me organiza mi 14/02?

Genera una lista de 7 mujeres residentes en Ciudad de Guatemala, de 20 a 35 años para una serie de citas de San Valentín. PROHIBIDO usar nombres que suenen a telenovela, nombres compuestos anticuados o nombres genéricos de base de datos vieja. Usá nombres reales, cortos, modernos que escuchas hoy en Guate, tipo apodo (ej. Mafer, Jen, Ash).

Requerimientos por cada perfil:

  • Nombre: Solo primer nombre, usa nombres comunes en Ciudad de Guatemala.
  • Personalidad: Define un arquetipo (ej. la intelectual, la aventurera, la foodie, la ejecutiva "workaholic", etc.).
  • Intereses y Gustos: Incluye 3 intereses específicos (ej. prefiere música en vivo, le apasiona la arquitectura, es amante del vino tinto, etc.).
  • Preferencia de Ambiente: Describe qué tipo de lugar prefiere (ej. una terraza con vista, un lugar minimalista y silencioso, un ambiente rústico).
float greyScale(in vec3 col) {
return dot(col, vec3(0.2126, 0.7152, 0.0722));
}
void mainImage( out vec4 fragColor, in vec2 fragCoord ){
vec2 q = fragCoord.xy / iResolution.xy;
vec3 col = texture(iChannel0, q).rgb;
vec3 res = vec3(greyScale(col));
fragColor = vec4(res, 1.0);
}
@ykro
ykro / implementaci-n-de-una-red-neuronal-convolucional-con-tensorflow.ipynb
Created June 2, 2024 01:02
Implementación de una Red Neuronal Convolucional con TensorFlow.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
tench, Tinca tinca
goldfish, Carassius auratus
great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias
tiger shark, Galeocerdo cuvieri
hammerhead, hammerhead shark
electric ray, crampfish, numbfish, torpedo
stingray
cock
hen
ostrich, Struthio camelus
@ykro
ykro / Greeting.kt
Created November 10, 2017 21:20
Android MVC
class Person(var firstName: String, var lastName: String) //model
class MainActivity : AppCompatActivity() { //view + controller
private var model: Person = Person("Adrian", "Catalan")
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
btnShowGreet.setOnClickListener {
@ykro
ykro / Greeting.kt
Created November 10, 2017 21:18
Android Clean
interface View {
fun setGreeting(greeting: String)
}
interface Presenter {
fun onDestroy()
fun getGreeting()
}
interface Interactor {
@ykro
ykro / MVPGreeting.kt
Created November 10, 2017 21:17
Android MVP
interface View {
fun setGreeting(greeting: String)
}
interface Presenter {
fun onDestroy()
fun getGreeting()
}
class Person(var firstName: String, var lastName: String)
@ykro
ykro / Boards.h
Last active October 11, 2015 06:16
Firmata Arduino zero Boards.h
/* Boards.h - Hardware Abstraction Layer for Firmata library */
#ifndef Firmata_Boards_h
#define Firmata_Boards_h
#include <inttypes.h>
#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h" // for digitalRead, digitalWrite, etc
#else
http://telescopio.galileo.edu/curso/desarrollo-de-aplicaciones-para-android/
Las presentaciones están en https://speakerdeck.com/ykro y el código en https://github.com/ykro
Semana 1
https://github.com/ykro/androidmooc-clase1
http://www.youtube.com/playlist?list=PLwZVPRbWJRU2yKLLk3G-3FlQnSFXmuMEt
http://www.youtube.com/playlist?list=PLwZVPRbWJRU3aghfi0XsLDRutRdQ4euZ3
Semana 2
https://github.com/ykro/androidmooc-clase2