2024-06-30 - 2024-07-06

Next »

Discovered tools Link to heading

  • chrome-ai - Vercel AI provider for Chrome built-in model (Gemini Nano)
  • pgrx - Build Postgres Extensions with Rust!
  • Unicorn - A magical full-stack framework for Django
  • Reactor - Phoenix LiveView but for Django
  • deadcode and vulture - Find dead Python code

Read articles Link to heading

Read news Link to heading

Watched videos Link to heading

Books being read Link to heading

Learned Link to heading

  • Send arguments into a generator in Python
    In [1]: def generator():
        ...:     while True:
        ...:         received = yield 'DATA'
        ...:         print('Received:', received)
        ...:
    
    In [2]: g = generator()
    
    In [3]: next(g)
    Out[3]: 'DATA'
    
    In [4]: g.send(1)
    Received: 1
    Out[4]: 'DATA'
    
    In [5]: g.send(2)
    Received: 2
    Out[5]: 'DATA'
    

Next »