F1rst ? 15 chars aaaaarggghhhhhh

f1rst???:trollface:

30 chars 30 chars 30 chars.

O responde a este correo para publicar. A ver

uyyy un @SAn !

Ahí puse que el mínimo del topic sea 10, porque…

>>> len("hola mundo")
10
2 Me gusta
>>> import this
The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
1 me gusta

Ohhh, tenemos medallas y likes !!!

A ver algo de code:
Corto y pego desde un .py:
Con simple o triple ´ la indentacion de las primeras lineas se perdio
Triple ´, lo mismo, y seleccionando el texto y dando al boton de texto preformateado igual.

def handle_notify(ev_id, pin, mode, ts):
    global traceback_in_handle_notify, tb_sys_exc_info
    if ev_id >= ev_name_to_id["unknown_e"]:
        sender = ev_name_to_id["unknown_e"]
    else:
        sender = ev_id_to_name[ev_id]

    if ((sender ==  "serial_e") and
        (pin // 256 == se_cmd_name_to_id["print_double_se"])):
        val = mode.f2
    else:
        val = mode.ul

    exception_rised = False
    try:
        if sender == "serial_e":
            text = helper_handle_serial(pin, val, ts)
            multi_out.out("[%10d] %s:" % (ts, text))
        elif sender == "unknown_e":
            msg = "[%10d] unknown_e: ev_id, pin, mode - %d, %d, %s" % (ts, ev_id, pin, val)
            blinker.signal("error").send(message=msg, timestamp=ts)
            multi_out.out(msg)
        else:
            multi_out.out("[%10d] %s: %d, %s" % (ts, sender, pin, val))
        blinker.signal(sender).send(pin=pin, val=val, timestamp=ts)
    except Exception as ex:
        exception_rised = True
        msg = "Err: Exception in handle_notify: " + repr(ex)
        traceback_in_handle_notify = ex
        tb_sys_exc_info = sys.exc_info()
    except KeyboardInterrupt as ex:
        exception_rised = True
        msg = "info: exit arduino program by Ctrl + C"
    if exception_rised:
        blinker.signal("terminate").send(message=msg)

A ver si en un editor convierto tab a espacios:

def handle_notify(ev_id, pin, mode, ts):
    global traceback_in_handle_notify, tb_sys_exc_info
    if ev_id >= ev_name_to_id["unknown_e"]:
        sender = ev_name_to_id["unknown_e"]
    else:
        sender = ev_id_to_name[ev_id]

    if ((sender ==  "serial_e") and
        (pin // 256 == se_cmd_name_to_id["print_double_se"])):
        val = mode.f2
    else:
        val = mode.ul

    exception_rised = False
    try:
        if sender == "serial_e":
            text = helper_handle_serial(pin, val, ts)
            multi_out.out("[%10d] %s:" % (ts, text))
        elif sender == "unknown_e":
            msg = "[%10d] unknown_e: ev_id, pin, mode - %d, %d, %s" % (ts, ev_id, pin, val)
            blinker.signal("error").send(message=msg, timestamp=ts)
            multi_out.out(msg)
        else:
            multi_out.out("[%10d] %s: %d, %s" % (ts, sender, pin, val))
        blinker.signal(sender).send(pin=pin, val=val, timestamp=ts)
    except Exception as ex:
        exception_rised = True
        msg = "Err: Exception in handle_notify: " + repr(ex)
        traceback_in_handle_notify = ex
        tb_sys_exc_info = sys.exc_info()
    except KeyboardInterrupt as ex:
        exception_rised = True
        msg = "info: exit arduino program by Ctrl + C"
    if exception_rised:
        blinker.signal("terminate").send(message=msg)

Ah, okey, no le gusta los tabs parece.

No tenemos colereado de sintaxis? ```python no lo hace.

Ahh, el preview perdia la indentacion del primer bloque, pero luego de publicar se vé bien.

Replica desde el correo ?

Si, funciona contestar desde el correo.

Seleccionar texto y click Responder abre el editor con el texto quoteado, bien.

Medallas custom:

  • elegante_pythonista
  • improvisador_impresionante
  • comunicador_untrolleable

Este mensaje quizá lo deje, quizá lo borre. Es solamente para aprender a usar discourse, first time user, sorry.
Tenemos :blonde_woman:t3: emoticons, elijo directamente el tono de piel y todos los emoticons se agregan con el mismo tono.

Puedo citar a alguien

Agregar imágenes

Poner fechas
2020-04-25T19:00:00Z2020-05-24T03:00:00Z

Este texto será borroso

Agregar un link
pyar

Mostrar texto preformateado:

import rodi
import time

robot = rodi.RoDI()



n = 10000
robot.blink(100)

while True:
    if robot.see() < 10:
        robot.pixel(100, 0, 0)
        robot.move_right()
    else:
        robot.pixel(0, 100, 0)
        robot.move_forward()
1 me gusta

def hi():
print(“hi”)

esto es solo una prueba con código

cita

:wave:

Hola, solo venia a jugar con el chiche nuevo. Gracias a quienes se hayan encargado de la mudanza y gracias a quienes mantuvieron tanto tiempo la lista!
:v:t5:

2 Me gusta

dfffffffffffffffffffffffffffffffff

fdhhhhhh

hhhhhhhhhhhhh :soccer:

Me parece que Discourse silención a Tinolin automáticamente por algo como “escribió muy rápido” (ya lo des-silenciamos).

Creo que es por este post.

Corolario: no escriban boludeces.

1 me gusta

soy solo una vìctima ja escribo esto muy despacio.

para referencia https://blog.discourse.org/2018/06/understanding-discourse-trust-levels/

1 me gusta

Muy lindo el discourse, muy moderno :raised_hands:t4:

Está quedando muy bueno!

pero…pero…esto es internet!!!:trolleybus: