hacker-slides

A simple app that combines Ace Editor and RevealJS. You can write markdown on the left, and preview your presentation on the right.

  • 所有者: jacksingleton/hacker-slides
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

Sandstorm Hacker Slides

Screenshot

A simple app that combines Ace Editor and RevealJS

You can write markdown on the left, and preview your presentation on the right.

Try it on Sandstorm

Hack on Hacker Slides

I built this app very quickly and it is unfortunately not one of my main
priorities right now. Contributions are very welcome!

Hacker Slides uses vagrant-spk, so dev setup is quite easy.

  1. You will need vagrant-spk installed. If you get an error running the
    following command, follow the vagrant-spk installation
    instructions
$ vagrant-spk -h
usage: /home/jack/bin/vagrant-spk [-h] [--work-directory WORK_DIRECTORY]
...
  1. Make sure you have virtualbox installed before bringing up vagrant vm
$ VirtualBox -h
Oracle VM VirtualBox Manager 5.0.0
...
  1. Bring up the Vagrant VM
$ vagrant-spk up
  1. Start the application in dev mode
$ vagrant-spk dev
  1. Navigate to the Sandstorm dev instance

http://local.sandstorm.io:6080/

Here are some things to know about the code base.

  • It's a little hacky (it is Hacker Slides after all :))
  • RevealJS 3.0.0 has been
    copied into the static/revealjs directory.
  • main.py is a super simple python server that mainly just accepts GETs and
    PUTs for /slides.md and reads and saves markdown from/to /var/slides.md
  • index.{html,js} is the one and only main page for the app. Its only job is to
    load Ace Editor on the left side of the screen, and slides.html in an
    iframe on the right side.
  • slides.{html,js} sets up RevealJS to load markdown from /slides.md. It
    also knows how to reload the markdown via a postMessage call.
  • save.js adds a debounced keyup handler to the editor that a) fires off an
    ajax PUT to save the markdown content and b) sends a postMessage message to
    the RevealJS iframe telling it to reload its markdown preview (which
    currently roundtrips to the server again)

主要指标

概览
名称与所有者jacksingleton/hacker-slides
主编程语言CSS
编程语言Shell (语言数: 7)
平台
许可证MIT License
所有者活动
创建于2015-02-10 01:55:15
推送于2019-10-31 10:55:52
最后一次提交2016-04-24 23:22:11
发布数4
最新版本名称0.4 (发布于 )
第一版名称0.1 (发布于 )
用户参与
星数665
关注者数21
派生数52
提交数115
已启用问题?
问题数42
打开的问题数19
拉请求数7
打开的拉请求数4
关闭的拉请求数2
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?