Skip to content

Instantly share code, notes, and snippets.

View emenjivar's full-sized avatar
🇸🇻

carlos menjivar emenjivar

🇸🇻
View GitHub Profile
@emenjivar
emenjivar / AnimatedTypingIndicator.kt
Created June 23, 2024 17:39
Animated typing indicator in jetpack compose
/**
* Display an animated typing indicator with a configurable number of dots.
*
* @param modifier The modifier to be applied to the component.
* @param configuration The configuration for the component's appearance.
* @param totalDots The total number of dots displayed in the indicator.
*/
@Composable
fun AnimatedTypingIndicator(
modifier: Modifier = Modifier,
@emenjivar
emenjivar / controller.php
Created August 13, 2020 05:02
PHP fastRoute implementation
<?php
require_once __DIR__.'/routeHTTP.php';
$route = new RouteHTTP();
$route->addRoute('GET', '/user', function() {
$page = isset($_GET['page']) ? $_GET['page'] : 1;
//llamada a funcion de service
});
@emenjivar
emenjivar / std_stack.c
Created April 20, 2020 02:50
Implementacion de una pila en C
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
//definicion de estructuras
typedef struct nodo {
int valor;
struct nodo *siguiente;
//struct nodo *anterior;
@emenjivar
emenjivar / lista_enlazada.c
Last active April 9, 2020 05:05
implementacion de una lista enlazada en C
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#define TRUE 1
#define FALSE 0
//definicion de estructuras
typedef struct nodo {
int valor;
struct nodo *siguiente;