comamitc / pretty-print.net Goto Github PK
View Code? Open in Web Editor NEWHome Page: http://pretty-print.net
License: MIT License
Home Page: http://pretty-print.net
License: MIT License
EDN is a powerful data interchange format commonly used with Clojure and ClojureScript programs. It also doubles as a literal representation of most Clojure data structures, which are often printed to a REPL or console environment for debugging purposes.
Clojure core comes with clojure.pprint - which is a library to format Clojure code (and thus EDN) in a human-readable fashion.
As of January 2015, there are numerous online services to pretty print various data interchange formats (JSON, YAML, XML, etc), but there is no online service for printing an EDN string.
This project aims to build such a service and improve the usability of working with EDN data.
The very first keystroke after loading the page and focusing on the CodeMirror instance causes the cursor to go back to the start.
Maybe CodeMirror is mounting twice on the page?
This should just require some CSS on the <textarea>
where the results are displayed.
Per @oakmac we should tune this down a bit; I agree.
I'll probably opt for the CLJS / CLJ colors as primary since they are soft and go with the theme.
The site used to have this but has since been removed. We want to be able to track web traffic to ensure resources are OK on server until #34 is done.
Even though the server successfully deploys the process stays engaged and codeship marks it as a failure.
Loving all the improvements ๐. One last idea:
Every product, however small, benefits from a simple demonstration of what it can do.
In the context of http://pretty-print.net, a passive user may want to see what it does without having to fish for example input. Being able to insert a preset example(s) would certainly cut down the time and knowledge requirements for someone to develop an impression of the tool.
Seems like a good place to allow people to ask questions without opening issues.
This way users understand the risk with certain things like our Clojure Code / tools.reader hacks.
It is the editor used in the dev tools for both Firefox and Chrome, Light Table, Adobe Brackets, Bitbucket, and many other projects.
{:users [{:name "Dan", :age 23}
{:name "Sam", :gender :female}]
:aliases {"Dan" ["Dante" "Daniel"]
"Sam" ["Samantha", "Samoth"]}}
Gets output as
{:users [{:name "Dan", :age 23} {:name "Sam", :gender :female}],
:aliases {"Dan" ["Dante" "Daniel"], "Sam" ["Samantha" "Samoth"]}}
We need clean, simple UI to provide pretty-printing services for various input/output languages and data structures.
comamitc@ubuntu:~/dev/pretty-print.net/frontend$ lein cljsbuild auto
Compiling ClojureScript.
Compiling "public/js/main.min.js" from ["src-cljs"]...
Jan 18, 2015 11:40:20 PM com.google.javascript.jscomp.LoggerErrorManager println
SEVERE: /home/comamitc/dev/pretty-print.net/frontend/target/cljsbuild-compiler-0/cljs/core.js:19519: ERROR - Parse error. '}' expected
Jan 18, 2015 11:40:20 PM com.google.javascript.jscomp.LoggerErrorManager printSummary
WARNING: 1 error(s), 0 warning(s)
ERROR: JSC_PARSE_ERROR. Parse error. '}' expected at /home/comamitc/dev/pretty-print.net/frontend/target/cljsbuild-compiler-0/cljs/core.js line 19519 : 0
Successfully compiled "public/js/main.min.js" in 4.267 seconds.
Compiling "public/js/main.js" from ["src-cljs"]...
Successfully compiled "public/js/main.js" in 3.399 seconds.
This prevents html page from loading.
Hey, I really appreciate the work here - are you aware the site seems to be down?
The following is on a fresh load of http://pretty-print.net:
The header loads Paste EDN:
by default but the dropdown displays Clojure
The Clojure server, Node server, and development test server should all read their port numbers from a single config file in the project root.
lein ring uberjar
has the following complaint on build.
Warning: specified :main without including it in :aot.
Implicit AOT of :main will be removed in Leiningen 3.0.0.
If you only need AOT for your uberjar, consider adding :aot :all into your
:uberjar profile instead.
pretty-print.net is currently down. The UI loads, but the underlying functionality is busted. Console says it's a 502 Bad Gateway. Sounds like your backing service is down.
People that want to contribute can't right now without guessing.
Your online masterpiece (http://pretty-print.net/#/format/edn) seems to have done an excellent job of pretty-printing my Hiccup data; i just wanted to confirm with you that you intended it for that kind of use...?
I would also be interested in the data size limit (the biggest i've submitted is 36,479 characters).
On successful format, save settings to localstorage so that they can be recalled when revisiting the site.
http://pretty-print.net/ is no longer functioning due to me shutting down the JVM that could no longer run on my server due to memory constraints. I am, at this time, unable to keep up with this project and dedicate the resources to keep it running.
I'll be departing with the project with or without an owner by Feb 28th, 2016.
It would be handy if I could resize the window to be full screen to view more detail at once.
Hoping I can get some help with this
http://pretty-print.net/ is reporting bad gw when formatting:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.