News for hackers. Stuff that matters.

ajstarks

Show HN: Decksh – a DSL for presentations and data visualizations

https://github.com/ajstarks/decksh

decksh is a domain-specific language for presentations, information displays, and data visualizations. I built decksh as a way to have complete control over my presentations, and to have a portable, documented, long-lasting format for information.decksh generates the deck[1] markup language which uses a percentage-based coordinate system, and may be rendered as PDF, SVG, or PNG. decksh is...

( Read More... | 1 comment | 2 points | on HN )
Re:Presentation Slides with Markdown on Monday April 28, 2025 @12:50PM (#43823459)
FYI, I use decksh [1][2] a DSL (aka "little language") for decks, information displays and charts decksh generates deck[3] markup that is rendered as PDF, SVG, or PNG.

[1] https://speakerdeck.com/ajstarks/decksh-a-little-language-fo...

[2] https://speakerdeck.com/ajstarks/decksh-object-reference

[3] https://github.com/ajstarks/deck/blob/master/README.md

Re:A Retrospective on the Source Code Control System [pdf] on Tuesday January 07, 2025 @06:38PM (#42629070)
See related thread at the Unix Heritage Society mailing list: https://www.tuhs.org/pipermail/tuhs/2024-December/031185.htm...
Re:Zed on Linux Is Here on Wednesday July 10, 2024 @04:35PM (#40931213)
Re: #2, use

"buffer_font_weight": 600

in the settings.json to fix the font rendering.

Re:Ask HN: Favorite Random Markup Language on Thursday March 07, 2024 @02:08PM (#39633278)
Re:Ask HN: What PDF viewer do you use? on Saturday June 11, 2022 @10:06PM (#31710575)
Linux: mupdf, Windows: Sumatra PDF
Re:Ask HN: What do use to create slides? on Sunday June 03, 2018 @11:08AM (#17219868)
I use pdfdeck, a client of the Deck package [1,2]. Samples [3,4]

pdfdeck reads deck markup, and generates the PDF. The markup is created by hand or generated by other programs, for example the dchart [5,6] client.

I tend to avoid templates and work from a blank canvas.

[1] https://github.com/ajstarks/deck [2] https://speakerdeck.com/ajstarks/deck-a-go-package-for-prese... [3] https://speakerdeck.com/ajstarks/go-for-information-displays [4] https://speakerdeck.com/ajstarks/a-view-of-design-and-user-e... [5] https://github.com/ajstarks/deck/tree/master/cmd/dchart [6] https://speakerdeck.com/ajstarks/dchart-charts-from-deck-mar...

Re:UTF-8 history on Wednesday September 13, 2017 @03:44PM (#15241895)
Re:SVG can do that? on Wednesday August 16, 2017 @10:55AM (#15027913)
Re:SVG has more potential on Tuesday September 27, 2016 @04:24PM (#12592821)
An alternative to to hand-written SVG is to use a (Go) library like svgo [1] to generate the markup programmatically. More info is also at [2] and [3]

[1] http://github.com/ajstarks/svgo [2] https://speakerdeck.com/ajstarks/the-other-side-of-go-progra... [3] https://www.youtube.com/watch?v=nuDO1oQxARs

Re:How to create NBA shot charts in Python on Thursday August 06, 2015 @08:15PM (#10020285)
Now part of the SVGo package: https://github.com/ajstarks/svgo/blob/master/shotchart/shotc... get data from the network or local files)
Re:Image Processing with Go on Monday June 22, 2015 @12:36PM (#9759465)
See also: gift (Go image filtering toolkit), and its command line tool:

https://github.com/disintegration/gift

https://github.com/ajstarks/gift

Re:Ask HN: What presentation software/tools do you use? on Monday April 20, 2015 @11:10AM (#9408586)
I use the deck package [1, 2, 3], and the pdfdeck[4] client. As stated earlier, using PDFs simplifies both presenting and distribution.

The deck packages uses a simplified markup that is portable, easy to machine-generate, facilitates source control, and not locked to a vendor.

[1] https://speakerdeck.com/ajstarks/deck-a-go-package-for-prese...

[2] http://godoc.org/github.com/ajstarks/deck

[3] http://godoc.org/github.com/ajstarks/deck/generate

[4] https://github.com/ajstarks/deck/tree/master/cmd/pdfdeck

Re:Apollo 11 Flight Plan – Final [pdf] on Saturday December 27, 2014 @09:51PM (#8804965)
Unassuming yet momentous line item on page 1-2:(j) EVA for 2 hours 40 minutes
Re:The Command-Line Office on Thursday March 06, 2014 @06:56PM (#7357426)
Re:Show HN: Vintage Cartoons [video] on Saturday June 22, 2013 @02:42PM (#5924691)
contains offensive and racist "vintage" content -- "Confederate Honey"
Re:SVG, Use it Already on Saturday June 23, 2012 @10:38PM (#4152430)
Re:Go version 1 is released on Wednesday March 28, 2012 @09:00PM (#3769129)
I created SVGo, a Go package for generating SVG. (http://github.com/ajstarks/svgo) I use it for programming visualizations, and other creative coding tasks. For example, I use the goplay command and a browser, to "sketch with code", showing the code and resulting picture in one view -- I make a change, hit a keystroke and immediately see the result. (http://www.flickr.com/photos/ajstarks/6198774781/in/set-7215...)

SVGo paper from SVG Open 2011: (https://www.svgopen.org/2011/papers/34-SVGo_a_Go_Library_for...)

Samples: (http://www.flickr.com/photos/ajstarks/sets/72157623441699483...)

Here's another one in 178 lines of Go: https://gist.github.com/1371135

Older »