Re:Show HN: Plain Text Cryptocurrency Prices
by guillaumec on Tuesday June 14, 2022 @12:30PM
(#31741843)
Yes, since I got too many requests from HN, I had to enable the CDN. I didn't realize it would cache both html and terminal request together. I tried setting "Vary: User-Agent" but it didn't work. You can add: "?term=true" to make it work in terminal for now.
Re:Show HN: Plain Text Cryptocurrency Prices
by lazyvar on Tuesday June 14, 2022 @11:04AM
(#31740567)
Some small feedback if I may: Could you separate the link and the text on the main page? My first thought was: "This isn't text. I can't highlight or copy anything. It's actually the opposite of what the title says." But everything was as advertised when viewing an actual coin.
Re:Show HN: Plain Text Cryptocurrency Prices
by GabrielStarks on Tuesday June 14, 2022 @02:43PM
(#31744016)
Hi! I want say that Social media marketing is a best way for promotion product, service, your businesses or site… And this is a good strategy and excellent tool for attracting the attention of potential customers or for getting popular in social media networks. I will share professional site for safe social media marketing. If you want take high positions in the ranking, get organic traffic or be popular in social media networks… Just check this site, i think it will be very useful. https://get-accs.com/
Re:Show HN: Plain Text Cryptocurrency Prices
by olalonde on Tuesday June 14, 2022 @10:25AM
(#31739992)
Pretty cool, I noticed it works both in the browser and command line. I suppose you are using the User-Agent header to detect which version to serve? Which library did you use for the interface?
Re:Show HN: Plain Text Cryptocurrency Prices
by guillaumec on Tuesday June 14, 2022 @09:47AM
(#31739444)
Thanks for the comment! I wanted to keep the html and css as simple as possible so I didn't put much layout. If it gets traction I will improve that. Same thing for the font.
It's all hand crafted. My first time using golang so the code is probably not as efficient as it could be.
Re:Show HN: Plain Text Cryptocurrency Prices
by guillaumec on Tuesday June 14, 2022 @10:18AM
(#31739886)
I think the server code has a concurrent access bug that makes it crash in the middle of a request. Unfortunately due to the current charge I can't even restart it at the moment.
It would be nice to configure a list of coins to be displayed. Something like:
Also, you could reduce the HTML size significantly by using <i> instead of <span> and create a classnames for the colors.My preference for time is much longer-term. Trading too often can lead to ruin due to transaction fees (and/or emotion).
I'd use the 1 day, 30 day, and 365 day price changes instead of 1h, 24h, 7d.
Another small issue: I can't use autoscroll in Firefox because the whole page width is a link.
Cool site! Cheers!
Some things that can be improved:
- The UI is left justified on my mobile browser. It will look better if it is centered.
- The font is too small. Perhaps you could increase font size so users don't have to zoom in.
Also, did you a framework to generate plaintext front-end or is it hand crafted?
It's all hand crafted. My first time using golang so the code is probably not as efficient as it could be.
\xe2\x94\x82\n\xe2\x94\x94\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x98\n
Update: the server is back up and it looks fine on Firefox now. false alarm
https://web.archive.org/web/20220614131126/https://plaintext...
curl https://plaintextco.in/coins/bitcoin
<!DOCTYPE html> <title></title> <meta name="description" content="Plain text cryptocurrency prices"> <style> @font-face { font-family: 'dejavu-sans-mono'; src: url('/static/DejaVuSansMono.ttf') format('truetype'); } * { font-family: 'dejavu-sans-mono'; font-size: small; line-height: 120%; } </style>
<h1>plaintextco.in</h1>
<h1></h1>
<pre> Bitcoin (BTC)
It's impossible to read :(https://imgur.com/a/NPsN5N5