Aldo Bedrij

Results 5 issues of Aldo Bedrij

```python from yattag import Doc, indent doc, tag, text = Doc().tagtext() with tag('div'): with tag('item'): doc.cdata('6*9') with tag('item'): doc.cdata('42') result = indent( doc.getvalue(), indentation = ' '*2, ) print(result) ```...

this would fix issues like https://github.com/ponyorm/pony/issues/241 instead of the hackish datetime string conversion it uses the timestamp to obtain a well formed result regardless of timezone information or microseconds

```docker # alpine-slim/Dockerfile ENTRYPOINT ["/docker-entrypoint.sh"] EXPOSE 80 STOPSIGNAL SIGQUIT CMD ["nginx", "-g", "daemon off;"] ``` ```bash # entrypoint/docker-entrypoint.sh if [ "$1" = "nginx" ] || [ "$1" = "nginx-debug" ];...

``` import audioread filename = 'some_audio_file.ogg' try: for K in range(2048): with audioread.audio_open(filename) as audio: print(K, audio.duration) except audioread.exceptions.NoBackendError: with open(filename, 'rb') as file: # OSError: [Errno 24] Too many...

```python from pony import orm db = orm.Database() class Person(db.Entity): name = orm.Optional(str) vehicles = orm.Set('Car') class Person_fts(db.Entity): rowid = orm.Optional(int) class Car(db.Entity): model = orm.Optional(str) owner = orm.Optional('Person') class...