Skip to content

Instantly share code, notes, and snippets.

View cdman's full-sized avatar
💭
I may be slow to respond.

Attila-Mihaly Balazs cdman

💭
I may be slow to respond.
View GitHub Profile

This document has moved!

It's now here, in The Programmer's Compendium. The content is the same as before, but being part of the compendium means that it's actively maintained.

@merqurio
merqurio / example.py
Created October 14, 2014 08:43
Flask image file upload with Google App Engine (GAE) Blobstore Example, with Google Cloud Storage (GCS)
# Render the template for the upload form:
@app.route("/upload")
def upload():
uploadUri = blobstore.create_upload_url('/submit', gs_bucket_name=BUCKET_NAME)
return render_template('upload.html', uploadUri=uploadUri)
# Place your uploadUri in the form path (html):
'''<form action="{{ uploadUri }}" method="POST" enctype="multipart/form-data">'''
@neomatrix369
neomatrix369 / PerformanceRelated.md
Last active November 3, 2023 20:27
Interesting links in the areas of HPC, low latency, mechanical harmony/sympathy, garbage collection