Skip to content

Instantly share code, notes, and snippets.

View SyNeto's full-sized avatar

Ernesto Jiménez Villaseñor SyNeto

View GitHub Profile
@SyNeto
SyNeto / temp.py
Created November 17, 2021 18:49
Obtains current CPU temperature an prints it.
#!/usr/bin/env python3
import os
def main() -> None:
"""
For Raspbian OS:
Obtains current CPU temperature an prints it.
"""
@SyNeto
SyNeto / main.py
Last active January 10, 2023 19:23
Generic Types Python
# Run the type checks installing mypy and executing mypy main.py
import asyncio
from typing import TypeVar, Protocol, Generic
# Any class that implements the _UserPorfile protocol (static duck typing)
# will be accepted by update_user_profile function as a valid profile
class UserProfile:
"""User profile class."""

📈 SEO - Estrategia Inicial de Posicionamiento para revwiz.ai


🔍 Buscar Palabras Clave Rentables

  1. Entender qué busca el usuario ideal
    • ¿Qué problemas enfrentan las personas que podrían contratar los servicios de Revwiz?
    • ¿Qué términos usan para buscarlos?
  • ¿Qué soluciones están buscando en plataformas como Google, YouTube o foros especializados?
@SyNeto
SyNeto / diskpart_cheatsheet.md
Created May 7, 2025 16:20
Diskpart Cheatsheet

DiskPart Cheatsheet (Windows Console)

Herramienta de línea de comandos para administrar discos, particiones y volúmenes en Windows.

Iniciar DiskPart:

> diskpart

Listar Discos, Volúmenes y Particiones:

Uso Declarativo de RxJS con useEffect en React

🌟 Objetivo

Integrar programación reactiva (RxJS/Observables) en componentes de React de forma declarativa y reutilizable, permitiendo:

  • Suscripción automática con useEffect
  • Encapsulamiento de lógica en una función utilitaria (useObservable)
  • Desuscripción automática al desmontar el componente
  • Integración sencilla con Firebase Auth o cualquier otro observable
@SyNeto
SyNeto / gist-update-flows.md
Created September 11, 2025 03:17
Gistly: Flujos de Actualización de Gists - Discovery Document
@SyNeto
SyNeto / gist-update-flows.md
Created September 11, 2025 03:28
Gistly: Gist Update Flows - Discovery Document (Updated with Directory Flows)
@SyNeto
SyNeto / gist-update-flows.md
Created September 11, 2025 03:39
Gistly: Gist Update Flows - Discovery Document (Fixed Mermaid Diagrams)
@SyNeto
SyNeto / elixir_study_guide.md
Created September 13, 2025 19:40
This comprehensive guide provides a structured learning path for mastering Elixir, from functional programming fundamentals to building distributed, fault-tolerant systems.

The complete Elixir programming study guide

This comprehensive guide provides a structured learning path for mastering Elixir, from functional programming fundamentals to building distributed, fault-tolerant systems. Each section includes clear objectives, hands-on exercises, curated resources, and common pitfalls to avoid.

Part I: Foundations

1. Elixir fundamentals and syntax

Learning objectives

  • Master interactive development with IEx for exploration and debugging
@SyNeto
SyNeto / AUTH_PROVIDER_IMPLEMENTATION_GUIDE.md
Last active November 8, 2025 10:52
Auth Provider Implementation Guide - MicroCommerce SDK

Auth Provider Implementation Guide

Branch: feat/auth-service-auth-provider-interface Goal: Implement AuthProvider interface in SDK as infrastructure


Overview

We're creating the authentication abstraction layer in the SDK, following the same pattern as DatabaseConnector. This is infrastructure code that other services will consume.