Skip to content

Instantly share code, notes, and snippets.

@tocttou
Created August 20, 2016 10:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tocttou/f82f730be453f872395c5f30df89b763 to your computer and use it in GitHub Desktop.
Save tocttou/f82f730be453f872395c5f30df89b763 to your computer and use it in GitHub Desktop.
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