News for hackers. Stuff that matters.
Re:A terminal-based presentation tool with colors and effects by vortex_ape on Sunday August 30, 2020 @02:01PM (#24324587)
Hey, author here! Just wanted to add that you can write your slides using Markdown (most of its features are supported).

Also reposting my comment from the asciimatics post that was here yesterday:

I made this on top of asciimatics, which is awesome! I had a lot of fun making this thanks to all the effects asciimatics already has.

I was also able to extend an internal asciimatics class to add a feature for pre-recorded playable code blocks. It lets you play code in your terminal presentation like someone's typing it! You can learn more about it here: https://present.readthedocs.io/en/latest/codio.html

Re:A terminal-based presentation tool with colors and effects by vortex_ape on Sunday August 30, 2020 @02:44PM (#24324927)
PS: I've been wanting to build this ever since I watched Brandon Rhodes' North Bay Python 2017 keynote! https://www.youtube.com/watch?v=rrMnmLyYjU8

It's a talk about (in Brandon's words) ASCII art animation, software architecture, the mysteries of UNIX terminal settings, and the glories of Plain Text. You should totally check it out!

Re:A terminal-based presentation tool with colors and effects by vortex_ape on Sunday August 30, 2020 @03:20PM (#24325175)
PPS: In case you're interested in speaker notes, I used `present` + tmux + a keylogger + reveal.js speaker notes view for a presentation last week. I posted about it here: https://vinayak.io/2020/08/24/day-11-reveal-keylogger-tmux-p...

Though I want to work on a terminal-based speaker notes view some time! https://github.com/vinayak-mehta/present/issues/5

Re:A terminal-based presentation tool with colors and effects by swyx on Sunday August 30, 2020 @08:21PM (#24327261)
i gotta say, every time i see a bay area python meetup on youtube, it's always super high quality. as someone who doesnt live in the bay area, i am very jealous. please pass along my compliments to organizers and i wish i could replicate it in my city.
Re:A terminal-based presentation tool with colors and effects by vortex_ape on Monday August 31, 2020 @04:03AM (#24329364)
Same, I'm not in the bay area and found this Youtube video from 2017 only 3 months ago. https://2019.northbaypython.org/ is an awesome conference that happens there every year.
Re:A terminal-based presentation tool with colors and effects by lanna on Sunday August 30, 2020 @04:13PM (#24325566)
I created a similar REPL presentation tool for Scala: https://github.com/marconilanna/REPLesent
Re:A terminal-based presentation tool with colors and effects by vortex_ape on Sunday August 30, 2020 @04:45PM (#24325799)
REPLesent looks cool!
Re:A terminal-based presentation tool with colors and effects by TedDoesntTalk on Sunday August 30, 2020 @03:11PM (#24325115)
How did you do the matrix raining code in the demo? I did not see it in the examples. I use an mp4 of that as a screen saver but would love it in terminal instead!
Re:A terminal-based presentation tool with colors and effects by m3at on Sunday August 30, 2020 @09:05PM (#24327512)
Here is how to do it with a few lines of bash:

  function matrix () {
      echo -e "\e[1;40m"
      clear
      while :; do
          echo $LINES $COLUMNS $(( $RANDOM % $COLUMNS)) $(( $RANDOM % 72 ))
          sleep 0.05
      done|awk '{
          letters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわをん@#$%^&*()";
          c=$4; letter=substr(letters,c,1);a[$3]=0;for (x in a) {o=a[x];a[x]=a[x]+1; printf "\033[%s;%sH\033[2;32m%s",o,x,letter;
          printf "\033[%s;%sH\033[1;37m%s\033[0;0H",a[x],x,letter;if (a[x] >= $1) { a[x]=0; } }
      }'
  }
Re:A terminal-based presentation tool with colors and effects by vortex_ape on Sunday August 30, 2020 @03:16PM (#24325150)
You can use the matrix effect by adding `<!-- effect=matrix -->` to the top of your slide! :)

These effects are supported right now: fireworks, explosions, stars, matrix, plasma. I plan to add more asciimatics effects soon!

Re:A terminal-based presentation tool with colors and effects by ksaj on Sunday August 30, 2020 @04:16PM (#24325579)
I'm hoping for <-- effect=gol --> for a Game of Life simulation. For whatever reason, it comes up in my talks often. It seems I exude geekness acme whenever I talk about hacking and self-propagating code.
Re:A terminal-based presentation tool with colors and effects by vortex_ape on Sunday August 30, 2020 @04:36PM (#24325728)
That would be awesome! I'll work on it and add it some time! Opened https://github.com/vinayak-mehta/present/issues/45 to track it :D
Re:A terminal-based presentation tool with colors and effects by vicnicius on Sunday August 30, 2020 @03:25PM (#24325217)
Re:A terminal-based presentation tool with colors and effects by Macuyiko on Sunday August 30, 2020 @03:35PM (#24325288)
Relies on the asciimatics Matrix effect, looks like: https://github.com/peterbrittain/asciimatics/blob/master/asc...
Re:A terminal-based presentation tool with colors and effects by vortex_ape on Sunday August 30, 2020 @04:45PM (#24325797)
Yes! `present` is built on asciimatics.
Re:A terminal-based presentation tool with colors and effects by szszrk on Tuesday September 01, 2020 @02:12AM (#24339014)
Hey! It's super cool, but can't work it out how to run this on a few environemnts. Tried Ubuntu and centos, always get ModuleNotFoundError: No module named 'dataclasses'.

Centos 8.2, Python 3.6.8, present Version: 0.4.0, pip 9.0.3. Tried with global and user install in pip. Not really a python dev, more of a user :)

Re:A terminal-based presentation tool with colors and effects by szszrk on Tuesday September 01, 2020 @05:35AM (#24339965)
I just found some issues on it on github, will try to sort it out, sorry for calling here first, just expected all dependencies to be there and didn't realized "dataclasses" could be a project name!:)
Re:A terminal-based presentation tool with colors and effects by swyx on Sunday August 30, 2020 @08:23PM (#24327268)
could i ask about more details on shipping this? what made you start working on it? how long did you work on it to an initial state? have you had any practical work-related side benefits of doing something like this, or is it pure hobby?
Re:A terminal-based presentation tool with colors and effects by vortex_ape on Monday August 31, 2020 @07:34AM (#24330375)
I started working on this at the Recurse Center two weeks ago.

As for practical work-related side benefits, I've neither had my open-source work weigh in on the hiring process (as everyone still asks algorithms/data structures questions) nor earned much money through it. But I love building open-source tools that would be useful for people, including me (I used `present` for a talk some days ago), so you could say it's just a hobby at this point.

Re:A terminal-based presentation tool with colors and effects by swyx on Monday August 31, 2020 @07:36AM (#24330388)
oh wow, very nice! well congrats on shipping this and i'm sure the exercise will come in useful in unexpected ways!
Re:A terminal-based presentation tool with colors and effects by vortex_ape on Monday August 31, 2020 @07:38AM (#24330404)
Thanks! An unrelated question: how do you track HN comments? (since you replied to this one so quickly!)
Re:A terminal-based presentation tool with colors and effects by swyx on Monday August 31, 2020 @10:09AM (#24331588)
i used to use a hn comment reply notification tool at my old job, but no this one i just happened to check my replies at the right time
Re:A terminal-based presentation tool with colors and effects by BOOSTERHIDROGEN on Monday August 31, 2020 @12:34AM (#24328523)
I cant running this apps

  \appdata\local\programs\python\python38\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
Re:A terminal-based presentation tool with colors and effects by vortex_ape on Monday August 31, 2020 @07:37AM (#24330399)
Can you raise an issue with some detail on how you installed it along with the full traceback? https://github.com/vinayak-mehta/present/issues Your OS, Python version and terminal emulator details will also help.

I'll take a look!

Re:A terminal-based presentation tool with colors and effects by stojano on Sunday August 30, 2020 @02:11PM (#24324670)
love it... thanks
Re:A terminal-based presentation tool with colors and effects by vortex_ape on Monday August 31, 2020 @07:36AM (#24330389)
Glad you liked it!