Skip to content

Instantly share code, notes, and snippets.

View internetmosquito's full-sized avatar

Alejandro Villamarin internetmosquito

View GitHub Profile
@internetmosquito
internetmosquito / gist:0748f2c52f6d03e6c7354041b5a71df2
Last active May 22, 2025 22:43
Cursor context for BuildApp MVP
## 1. Project Definition
**projectName**: BuildApp
**projectObjective**: Create a service that connects homeowners seeking renovation with verified professionals, offering AI-generated quotes, visual renovation suggestions, secure payments via escrow, and an integrated project management platform.
**targetMVPFeatures**:
- User management (CRUD operations)
- Registration (client and renovation professional)
@internetmosquito
internetmosquito / gist:b1c1f00ac99d9aa1f79cfdc21be36b5b
Last active June 11, 2018 10:32
How to encode images for Google Cloud Vision
images_names = list()
for iterator, image_file in enumerate(images):
image_path = os.path.join(folder_name, image_file)
images_names.append(self.path_leaf(image_path))
self.images_names.append(self.path_leaf(image_path))
with open(image_path, 'rb') as image:
image_content = base64.b64encode(image.read())
image_payload = {}
image_payload['image'] = {}
image_payload['image']['content'] = image_content.decode('UTF-8')