Skip to content

Commit 29a2219

Browse files
committed
initial commit
0 parents  commit 29a2219

File tree

6,615 files changed

+10968915
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

6,615 files changed

+10968915
-0
lines changed

hacker-slides.otl

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
sandstorm reveal
2+
? configuration
3+
[ ] create slides
4+
markdown
5+
ace editor
6+
iframe
7+
? handle html when needed
8+
[ ] self host js
9+
[ ] python server for html+save
10+
[ ] offline/download
11+
[ ] verson control (git?)
12+
[ ] sync slide position and text
13+
[ ] use meteor
14+
[ ] home and sys directories should not be needed
15+
[ ] clean up reveal (static) directory

initial-slides.md

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Hacker Slides
2+
3+
### Hack together simple slides
4+
5+
---
6+
7+
## The Basics
8+
9+
- Seperate slides using '`---`' on a blank line
10+
- Write github flavored markdown
11+
- You must save manually for now (top right)
12+
- There is also a speaker view, with notes
13+
- Press `?` with focus on the presentation for shortcuts
14+
15+
Note:
16+
- Press `s` to open the speaker view
17+
- Anything after `Note:` will only appear here
18+
19+
---
20+
21+
## Learn more
22+
23+
- [RevealJS Demo/Manual](http://lab.hakim.se/reveal-js/#/)
24+
- [RevealJS Project/README](https://github.com/hakimel/reveal.js)
25+
- [GitHub Flavored Markdown](https://help.github.com/articles/github-flavored-markdown/)

main.py

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/usr/bin/python3
2+
3+
import shutil
4+
import os
5+
6+
from flask import Flask
7+
from flask import request
8+
9+
app = Flask(__name__)
10+
11+
@app.route('/')
12+
def index():
13+
return app.send_static_file('index.html')
14+
15+
@app.route('/slides.md', methods=['GET'])
16+
def get_slides():
17+
with open("/var/slides.md") as fp:
18+
return fp.read()
19+
20+
# TODO: PUT
21+
@app.route('/slides.md', methods=['POST'])
22+
def save_slides():
23+
new_slides = request.get_data()
24+
with open('/var/slides.md', 'wb') as fp:
25+
fp.write(new_slides)
26+
return "OK"
27+
28+
if __name__ == '__main__':
29+
if not os.path.isfile("/var/slides.md"):
30+
shutil.copy("initial-slides.md", "/var/slides.md")
31+
app.run('0.0.0.0', 8000, debug=True)

requirements.txt

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
flask
2+
Werkzeug
3+
Jinja2
4+
itsdangerous
5+
markupsafe

0 commit comments

Comments
 (0)