Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kaakaa/swipe-go
Create Swipe.to slide from Gists markdown file.
https://github.com/kaakaa/swipe-go
Last synced: 23 days ago
JSON representation
Create Swipe.to slide from Gists markdown file.
- Host: GitHub
- URL: https://github.com/kaakaa/swipe-go
- Owner: kaakaa
- Created: 2015-05-26T14:37:01.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-07-29T14:17:44.000Z (over 9 years ago)
- Last Synced: 2024-04-14T18:21:37.811Z (9 months ago)
- Language: Go
- Size: 1.85 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
swipe-go
========Create Swipe.to slide from Gists markdown file.
* Uploading Markdown in [Gists](https://gist.github.com/ "Gists") to [Swipe.to](https://www.swipe.to/markdown/ "Swipe.to")
Example
=======* This [gists markdown](https://gist.github.com/kaakaa/29ceacc3a8fa7b86f6bd "gists markdown") transforms to [Swipe document](https://www.swipe.to/0913ck "Swipe document")
Usage
=====go get this repostiroy
----------------------```
$ go get github.com/kaakaa/swipe-go
```Write
-----main.go
```
package mainimport (
"github.com/kaakaa/swipe-go"
)func main() {
swipe.SwipeUpload()
}
```Run
---```
$ go run main.go
Gist Document Infomation
Gist User ID(default: kaakaa)?
Gist Document ID(default: 29ceacc3a8fa7b86f6bd)?info: Downloading Gist File 'https://gist.githubusercontent.com/kaakaa/29ceacc3a8fa7b86f6bd/raw/slide.md'
Complete Downloading (7153 Bytes)Input Swipe.to Account Info
Swipe Email(default: [email protected])?
Swipe Password?Complete Uploading ===> https://www.swipe.to/edit/00000000000000000000000000000000
```
Configuration
-------------* Follow is configuration file format for Gist / Swipe.to / slide format
* place conf.json in current directoryconf.json
```
{
"Gist" : {
"User": "default",
"DocId": "abcdefghijklmnopqrst",
"FileName": "slide.md"
},
"Swipe" : {
"Email": "[email protected]",
"Password": "pass",
"Coloring": true
}
}
```Rules
=====* Headers must be written in underline-ish style
```
OKH1
==
``````
NG# H1
```* Horizontal must be written in Asterisks style
```
OK
* * *
``````
NG---
```