curl cheat.sh — instant answer on any question in any language about any programming language from command line

Posted Jul 2, 2018, 8:39 PM UTC

Posted Jul 2, 2018, 8:39 PM UTC
Similar to "howdoi"
It is similar to howdoi and similar to how2, but it has several differences: it is faster; it doesn't need to be installed; + has vim/emacs plugin + access to cheat sheets services. Actually here stack overflow answers is only one of the functions.
I gotta learn a syntax to figure out how to learn a syntax.
All right Xzibit.. that's enough for today.
EDIT: Yes, I realize it's "syntax".
I've seen you ccc talk about this! Really nice project, i'm using wttr.in since then on a daily base :)
Thank you! We have improved the service since that time and I'm excited about the features we are working currently on, and that, I hope, will be released soon
Woah!
I love these curl services. I don't use them day-to-day, but these can be invaluable if you have to jump on someone else's machine. Portability always scores points for me.
This is incredible!
got a download link?
That's crazy. Good job on a solid project!
Thank you! And stay tuned: several cool features should be released soon
Looking forward to seeing the updates!
Will be showing my work colleagues this tomorrow! Will let you know what they think haha.
Seems to give you the top voted answers to the first matching question on stackoverflow. Not very useful for bash questions, then; it'll give you an answer, just likely not a good one.
This.
The examples in the gif must have been hand-picked as known to have short code examples (or code examples at all). Most of what I'm putting in (and it's simple stuff: "tcp", "tcp+connection", "read file") are either spitting out comments-only (no code in S.O. answer), or a lot more code.
The syntax highlighting on output though, super nice. But it breaks piping/redirection.
?T switches the syntax highlighting off; and no, the question are not hand-picked, the service for out of service yesterday because of highload; just retry your questions now
u/spazzpp2 already mentioned
howdoi, https://github.com/gleitz/howdoiThere’s also “StackOverflow Importer” for Python, https://github.com/drathier/stack-overflow-import
This last one takes it a step further by getting an answer then checking if it’s valid. If it is, it imports it, if not, it tries the next highest voted.
For the next question add /1, /2 and so on: curl cht.sh/bash/sort+array/1 curl cht.sh/bash/sort+array/2 etc.