Skip to content

Instantly share code, notes, and snippets.

"""Simplest example to show json.load()/LimitedStream issue.
Steps to reproduce:
* $ FLASK_APP=test.py flask run
* $ echo '{"test": "data"}' | curl -X PUT -d @- -H Content-Type:application/json http://localhost:5000/get_json # works
* $ echo '{"test": "data"}' | curl -X PUT -d @- -H Content-Type:application/json http://localhost:5000/ # errors out:
Traceback:
[...]
@iguanaonmystack
iguanaonmystack / StraightQuotes2CurlyQuotes.bas
Created September 3, 2016 15:15 — forked from dajare/StraightQuotes2CurlyQuotes.bas
LibreOffice Macro - straight quotes to curly
sub StraightQuotes2CurlyQuotes
' Thanks to Tintazul for refinements
' https://gist.github.com/Tintazul/deb5e137cabf86ddf4c2
' Now updated to work with LibreOffice Writer Version: 5.2.0.4
rem ----------------------------------------------------------------------
rem define variables
dim document as object
dim dispatcher as object
dim undo as object