Skip to content

Instantly share code, notes, and snippets.

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