GithubHelp home page GithubHelp logo

sulizaurio / hacker-slides Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jacksingleton/hacker-slides

0.0 2.0 0.0 27.46 MB

License: MIT License

Ruby 1.05% Shell 1.53% Cap'n Proto 1.15% Python 0.87% CSS 46.56% JavaScript 42.32% HTML 6.52%

hacker-slides's Introduction

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)

hacker-slides's People

Contributors

jacksingleton avatar paulproteus avatar jeau avatar zarvox avatar coyotebush avatar neynah avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.