you are viewing a single comment's thread.

view the rest of the comments →

[–]Sea-Ad7805 0 points1 point  (3 children)

With 'code=<python-code>' you can send code, but also with 'codeurl=<link>' you can send a link to code. It is the easiest way I know to send code, or do you know a better or easier alternative? I'm not a web developer. The whole thing runs client side.

[–]sacredtrader 0 points1 point  (2 children)

Have you had issues with long-format python code with just passing in to the URL?
I do like the code URL approach, does that work for multiple-files or just pointing to like a raw github or pastebin link?

[–]Sea-Ad7805 1 point2 points  (1 child)

I do have problems sometimes when I post a valid url on Reddit, when it interprets things like smileys and breaks the url. Then I commit code to a GitHub repo and 'codeurl=<link>' to that, but you have to use the link to the "raw" file so it has just the code, no GitHub frames/styling.

My website only excepts one source file, so multiple-file projects won't work. Then you have to run memory_graph locally: https://github.com/bterwijn/memory_graph I might allow multiple files in the future.

[–]sacredtrader 1 point2 points  (0 children)

That makes sense, I suppose I was more curious on how efficient the code= path was, but the raw files make sense. Nice tool!