Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/piranha/piu.clj
Simple pastebin
https://github.com/piranha/piu.clj
clojure graalvm-native-image highlight pastebin
Last synced: 18 days ago
JSON representation
Simple pastebin
- Host: GitHub
- URL: https://github.com/piranha/piu.clj
- Owner: piranha
- License: mit
- Created: 2020-03-11T07:58:00.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-03-19T16:36:36.000Z (8 months ago)
- Last Synced: 2024-10-04T10:45:57.949Z (about 1 month ago)
- Topics: clojure, graalvm-native-image, highlight, pastebin
- Language: Clojure
- Homepage: https://paste.in.ua
- Size: 642 KB
- Stars: 16
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - piranha/piu.clj - Simple pastebin (clojure)
README
# paste.in.ua
`piu.clj` is an open source application powering [paste.in.ua](https://paste.in.ua) - a simple pastebin service.
It's written in Clojure and compiles down to a single binary using GraalVM with Native Image plugin. See [releases](https://github.com/piranha/piu.clj/releases) for the compiled binary.
## Features
- 800 lines of code (including HTML templates)
- simple file based store
- short random paste id
- editing your own paste
- click a line number and then press shift and click another one and you got a [highlight](https://paste.in.ua/4yb9/#8-13)
- a [few shortcuts](https://paste.in.ua/about/#shortcuts)
- all of [Highlight.js](https://highlightjs.org/static/demo/) supported languages
- JSON [pretty-printing](https://paste.in.ua/dsfq/?pretty)
- [rendering Markdown](https://paste.in.ua/4yb9/render/)
- a simple [API](https://paste.in.ua/about/#api) and, as a result:
- a [command-line utility](https://paste.in.ua/piu)
- an [Emacs utility](https://paste.in.ua/piu.el)