Skip to content

Instantly share code, notes, and snippets.

Found multiple options for uploading, please choose one:
[1] /dev/cu.usbserial-10 (CP2102N USB to UART Bridge Controller)
[2] Over The Air (tendair-table.local)
(number): 1
esptool v5.1.0
Serial port /dev/cu.usbserial-10:
Connecting......................................
ERROR Running command failed: Failed to connect to ESP32-C3: No serial data received.
For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html
ERROR Please try running esptool --before default-reset --after hard-reset --baud 460800 --port /dev/cu.usbserial-10 --chip esp32c3 write-flash -z --flash-size detect 0x10000 /Users/alpha/src/tendair/.esphome/build/tendair-table/.pioenvs/tendair-table/firmware.bin 0x0 /Users/alpha/src/tendair/.esphome/build/tendair-table/.pioenvs/tendair-table/bootloader.bin 0x8000 /Users/alpha/src/tendair/.esphome/build/tendair-table/.pioenvs/tendair-table/partitions.bin 0x9000 /Users/alpha/src/tendair/.esphome/build/tendair-table/.pioenvs/tendair-table/ota_data_in
---
title: 'How Buildings Learn: What Happens After They''re Built'
author: Stewart Brand
notes:
- location: 3%
highlight: Almost no buildings adapt well. They’re designed not to adapt; also budgeted
and financed not to, constructed not to, administered not to, maintained not to,
regulated and taxed not to, even remodeled not to. But all buildings (except monuments)
adapt anyway, however poorly, because the usages in and around them are changing
constantly.
from pydantic import BaseModel, ConfigDict, Field
class Foo(BaseModel):
class_id: int = Field(validation_alias="id", serialization_alias="id")
model_config = ConfigDict(validate_by_name=True, serialize_by_alias=True)
class TestFoo:
from pydantic import BaseModel, ConfigDict, Field
class Foo(BaseModel):
class_id: int = Field(validation_alias="id", serialization_alias="id")
model_config = ConfigDict(validate_by_name=True, serialize_by_alias=True)
class TestFoo:
require "benchmark"
def func_a(*arrays)
enumerators = arrays.map {|a| (a.each + [Float::INFINITY]).each }
output = Set.new
until enumerators.all? { _1.peek.infinite? }
output << enumerators.min {|a,b| a.peek <=> b.peek }.next
end
output
end
- layout: title
content: |
# Pry
- content: |
# Installation
### Global
```console
from dataclasses import dataclass
from typing import Literal, Protocol, Optional
class Side:
...
class Wombat:
...
#!/usr/bin/env ruby
require "json"
require "net/http"
require "uri"
require "irb"
sentry_auth_token = ENV.fetch("SENTRY_AUTH_TOKEN")
# https://codingdojo.org/kata/Args/
require "minitest"
class TestArgs < Minitest::Test
def test_args
parser = ArgsParser.new(l: :bool, p: :int, d: :str)
args = parser.parse(*%w[-l -p 8080 -d /usr/logs])