{"id":13513671,"url":"https://github.com/jacksingleton/hacker-slides","last_synced_at":"2025-03-27T05:30:46.172Z","repository":{"id":27102050,"uuid":"30569480","full_name":"jacksingleton/hacker-slides","owner":"jacksingleton","description":"A simple app that combines Ace Editor and RevealJS. You can write markdown on the left, and preview your presentation on the right.","archived":false,"fork":false,"pushed_at":"2019-10-31T10:55:52.000Z","size":28115,"stargazers_count":663,"open_issues_count":22,"forks_count":51,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-03-23T04:01:52.980Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jacksingleton.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-10T01:55:15.000Z","updated_at":"2024-11-28T22:55:32.000Z","dependencies_parsed_at":"2022-09-02T04:51:42.799Z","dependency_job_id":null,"html_url":"https://github.com/jacksingleton/hacker-slides","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacksingleton%2Fhacker-slides","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacksingleton%2Fhacker-slides/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacksingleton%2Fhacker-slides/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacksingleton%2Fhacker-slides/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jacksingleton","download_url":"https://codeload.github.com/jacksingleton/hacker-slides/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245791248,"owners_count":20672664,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T05:00:34.709Z","updated_at":"2025-03-27T05:30:42.942Z","avatar_url":"https://github.com/jacksingleton.png","language":"CSS","funding_links":[],"categories":["CSS"],"sub_categories":[],"readme":"# Sandstorm Hacker Slides\n\n![Screenshot](https://cloud.githubusercontent.com/assets/1058938/6180867/9acdea84-b2df-11e4-8ae8-b01f2c4d7e1d.png)\n\nA simple app that combines [Ace Editor](https://github.com/ajaxorg/ace/) and [RevealJS](https://github.com/hakimel/reveal.js)\n\nYou can write markdown on the left, and preview your presentation on the right.\n\n[![Try it on Sandstorm](https://img.shields.io/badge/try-live%20demo-783189.svg)](https://demo.sandstorm.io/appdemo/7qvcjh7gk0rzdx1s3c8gufd288sesf6vvdt297756xcv4q8xxvhh)\n\n## Hack on Hacker Slides\n\nI built this app very quickly and it is unfortunately not one of my main\npriorities right now. Contributions are very welcome!\n\nHacker Slides uses [vagrant-spk](https://github.com/sandstorm-io/vagrant-spk), so dev setup is quite easy.\n\n1. You will need vagrant-spk installed. If you get an error running the\nfollowing command, follow the [vagrant-spk installation\ninstructions](https://docs.sandstorm.io/en/latest/vagrant-spk/installation/)\n\n  ```bash\n  $ vagrant-spk -h\n  usage: /home/jack/bin/vagrant-spk [-h] [--work-directory WORK_DIRECTORY]\n  ...\n  ```\n\n2. Make sure you have [virtualbox](https://www.virtualbox.org/wiki/Downloads) installed before bringing up vagrant vm\n\n  ```bash\n  $ VirtualBox -h\n  Oracle VM VirtualBox Manager 5.0.0\n  ...\n  ```\n\n3. Bring up the Vagrant VM\n\n  ```bash\n  $ vagrant-spk up\n  ```\n\n4. Start the application in dev mode\n\n  ```bash\n  $ vagrant-spk dev\n  ```\n\n5. Navigate to the Sandstorm dev instance\n\n  `http://local.sandstorm.io:6080/`\n\nHere are some things to know about the code base.\n\n* It's a little hacky (it is _Hacker_ Slides after all :))\n* [RevealJS 3.0.0](https://github.com/hakimel/reveal.js/tree/3.0.0) has been\n  copied into the `static/revealjs` directory.\n* `main.py` is a super simple python server that mainly just accepts GETs and\n  PUTs for `/slides.md` and reads and saves markdown from/to `/var/slides.md`\n* `index.{html,js}` is the one and only main page for the app. Its only job is to\n  load Ace Editor on the left side of the screen, and `slides.html` in an\n  iframe on the right side.\n* `slides.{html,js}` sets up RevealJS to load markdown from `/slides.md`. It\n  also knows how to reload the markdown via a postMessage call.\n* `save.js` adds a debounced `keyup` handler to the editor that a) fires off an\n  ajax PUT to save the markdown content and b) sends a postMessage message to\n  the RevealJS iframe telling it to reload its markdown preview (which\n  currently roundtrips to the server again)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacksingleton%2Fhacker-slides","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacksingleton%2Fhacker-slides","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacksingleton%2Fhacker-slides/lists"}