-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.read
70 lines (52 loc) · 1.91 KB
/
index.read
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
Red [
Title: "piechart"
File: "index.read"
]
Article: [
Title: {Miniapps.Space}
Screen-copies: [
.title: {Piechart}
.image: https://i.imgur.com/aIWrtIo.png
]
Source: [
.title: {ReAdABLE Source [(What is the ReAdABLE Human Format?)](http://readablehumanformat.com)}
.text: {[http://myminiapps.space/piechart/index.read](https://github.com/lepinekong/myminiapps/blob/master/piechart/index.read)
}
.app-url: http://myminiapps.space/piechart.red
.doc-Url: http://myminiapps.space/piechart
]
Pre-Requisites: [
.title: {Pre-requisite}
.text: {
- Download [red-lang on red-lang.org](https://www.red-lang.org/p/download.html) (only 1 Mb)
or
- Paste this oneliner in Powershell:
}
.code: {
New-Item -ItemType Directory -Force -Path C:\red;(New-Object System.Net.WebClient).DownloadFile('https://static.red-lang.org/dl/win/red-063.exe','c:\red\red.exe');Start-Process -Filepath 'c:\red\red.exe'
}
.text: {Then run and type in red console: }
.code: {
do read http://myminiapps.space/piechart.red
}
]
Usage: [
.title: {Usage}
.text: {Type one of command examples:
- piechart ; for help
- piechart [label1 10 "label 2" 20] ; for one line data block
- piechart [ ; for multiple lines data block
label1 10
"label 2" 20
]
- piechart/title [Salary 5000 Financials 1000] "My Revenues"
- piechart/title "My Revenues" [Salary 5000 Financials 1000]
- piechart/clipboard ; for string of data from clipboard without bracket
- For passing data variable, embed variable with () for example:
.data: [label1 10 "label 2" 20]
piechart (.data)
}
]
]
do read http://readablehumanformat.com/lib.red
markdown-gen