Skip to content

Instantly share code, notes, and snippets.

View SyNeto's full-sized avatar

Ernesto Jiménez Villaseñor SyNeto

  • Bedu
  • CDMX, México
View GitHub Profile

📈 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 / 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."""
@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 / foo.bas
Created July 21, 2021 07:10
ALPA (Assembly Language Programming Aid)
0 rem
100 rem ************ alpa ***********
101 rem * *
110 rem * p.rosham, 12/4/1984 *
111 rem * and danny davis *
112 rem * *
115 rem * assembly language *
116 rem * programming aid *
118 rem * *
119 rem * typed by syneto *

Intructions to configure gunicorn with systemd

/etc/systemd/system/gunicorn.socket

[Unit]
Description=gunicorn socket

[Socket]
ListenStream=/run/gunicorn.sock
@SyNeto
SyNeto / keys.cfg
Last active April 4, 2021 16:18
Key numeric maping by position
Escape = 1
D1 = 2
D2 = 3
D3 = 4
D4 = 5
D5 = 6
D6 = 7
D7 = 8
D8 = 9
D9 = 10
<script>
import { onMount } from 'svelte';
import { posts } from './blogStore.js';
onMount(async () => {
const data = await fetchPosts();
posts.set(data);
})
const fetchPosts = async (url=null) => {
@SyNeto
SyNeto / synetos.itermcolors
Created August 27, 2019 04:21
Iterm colors
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.0</real>
#! /usr/bin/env python3
import csv
import ntpath
import pathlib
import shutil
from unicodedata import normalize
def clean_string(text):
@SyNeto
SyNeto / Links.md
Created November 14, 2018 02:33
Articulos Clase JavaScript Fundamentos