Created
August 20, 2016 10:44
-
-
Save tocttou/f82f730be453f872395c5f30df89b763 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cvfy | |
app = cvfy.register("nongh:0.0.0.0:5237349:5001:8003:localhost") | |
@cvfy.crossdomain | |
@app.listen() | |
def getsizes(): | |
cvfy.sendGraphArray([ | |
[ | |
{ 'x': 1, 'y': 2 }, | |
{ 'x': 2, 'y': 5 }, | |
{ 'x': 3, 'y': 8 }, | |
{ 'x': 4, 'y': 9 }, | |
{ 'x': 5, 'y': 13 } | |
], | |
[ | |
{ 'x': 1, 'y': 13 }, | |
{ 'x': 2, 'y': 9 }, | |
{ 'x': 3, 'y': 8 }, | |
{ 'x': 4, 'y': 5 }, | |
{ 'x': 5, 'y': 13 } | |
] | |
]) | |
return 'OK' | |
app.run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment