Skip to content

Commit 3eb490e

Browse files
committed
updates: gnuplot, visidata
1 parent a4ac96c commit 3eb490e

File tree

7 files changed

+121
-51
lines changed

7 files changed

+121
-51
lines changed

ai/lr.org

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Example 3D https://gist.github.com/aricooperdavis/c658fc1c5d9bdc5b50ec94602328073b

ai/self.org

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,17 @@
113113
- needs JWT
114114
- obtain JWT https://www.smn.gob.ar/pronostico
115115
- headers={"Referer": "https://www.smn.gob.ar/"}
116+
- https://www.hidro.gov.ar/Observatorio/Astronomia.asp?op=1
117+
POST https://www.hidro.gov.ar/Observatorio/REsol.asp
118+
- https://www.hidro.gov.ar/Observatorio/Astronomia.asp?op=3
119+
POST https://www.hidro.gov.ar/Observatorio/RELuna.asp
120+
#+begin_src sh
121+
CSRFToken=OWY4NmQwODE4ODRjN2Q2NTlhMmZlYWEwYzU1YWQwMTVhM2JmNGYxYjJiMGI4MjJjZDE1ZDZMGYwMGEwOA==
122+
Localidad=BUENOS+AIRES
123+
Mes=Ene
124+
Fanio=2025
125+
B1=
126+
#+end_src
116127
- https://en.wikipedia.org/wiki/MNIST_database
117128
- Modified NIST (National Institute of Standards and Technology)
118129
- 28x28 grayscale

languages/compiled/makefile/self.org

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
- order does not matter
6767
- but if multiple % patterns match, will use the last one matched (deps stills stacked?)
6868
- multiple targets: for same dependencies
69-
- recommended phony ones: https://www.gnu.org/software/make/manual/html_node/Standard-Targets.html
69+
- [[https://www.gnu.org/software/make/manual/html_node/Standard-Targets.html][recommended]] phony ones:
7070
- all, help, clean, check, dist, run, deps, serve, deploy
7171
- test: make it depend of the final binary
7272
- (un)install: use PREFIX=/usr/local and DESTDIR

languages/interpreted/r/self.org

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
- wiki https://en.wikipedia.org/wiki/R_(programming_language)
2+
- home https://www.r-project.org/
3+
- manuals https://cran.r-project.org/manuals.html
4+
- 1993
5+
- by Ross Ihaka, Robert Gentleman
6+
- .r
7+
- image based
8+
- integrated windowing graphics (?
9+
10+
* cli
11+
12+
- R - repl
13+
- Rscript - runner

languages/music/csound.org

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
- Blue Tutorial
2-
https://www.youtube.com/watch?v=ODaL3N24_Dk
1+
- Blue Tutorial https://www.youtube.com/watch?v=ODaL3N24_Dk
2+
- Csound Clase https://www.youtube.com/watch?v=gqqhgawayvg
3+
- Csound: then and how https://www.youtube.com/watch?v=wBpVfpzVuaU
4+
- Acústica Cromberg Damus 2020 https://www.youtube.com/@AcusticaCrombergDamus/videos
5+
36
* drifter - game journal (-9) - csound hrtf
47
https://sendai.itch.io/drifter/devlog/102416/-9-csound-hrtf
58

terminal/tools/parsers/self.org

Lines changed: 47 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,3 @@
1-
- tool: tui https://www.visidata.org/
2-
- vids https://www.youtube.com/watch?v=yhunJc8Nu4g&list=PLxu7QdBkC7drrAGfYzatPGVHIpv4Et46W&index=5
3-
- doc https://www.visidata.org/docs/
4-
- doc https://jsvine.github.io/intro-to-visidata/
5-
- graph https://www.visidata.org/docs/graph/
6-
- csv, json, sqlite
7-
- # number, % float, $ currency, @ date, ~ any, z~ remove
8-
- ! make key, - to hide, gv to unhide
9-
- g. - to plot
10-
- : - split command, asks for regex
11-
- M - melt aka unpivot
12-
- Shift+F - frequency sheet/view
13-
- Shift+O - options sheet/view
14-
- Shift+I - Summary sheet/view
15-
- Shift+C - Columns sheet/view
16-
- ^ edit column name
17-
181
- tool: web ui https://datasette.io/
192
- tool: fake data generator https://github.com/multiprocessio/fakegen
203
- tool: yaml/json/xml/csv/toml https://github.com/TomWright/dasel
@@ -23,7 +6,53 @@
236
- tool: json (sql) https://github.com/SnellerInc/sneller
247
- tool: json/csv/parquet (sql) https://github.com/cube2222/octosql
258

26-
** html
9+
* visidata
10+
11+
- home https://www.visidata.org/
12+
- vids https://www.youtube.com/playlist?list=PLxu7QdBkC7drrAGfYzatPGVHIpv4Et46W
13+
- source: Python https://github.com/saulpw/visidata
14+
- doc https://www.visidata.org/docs/
15+
- doc https://jsvine.github.io/intro-to-visidata/
16+
- graph https://www.visidata.org/docs/graph/
17+
- [[https://www.visidata.org/formats][input support]]: csv, json, sqlite, xls, postgresql
18+
19+
#+begin_src sh
20+
$ visidata input.csv
21+
$ visidata --csv-delimiter ';' input.csv
22+
$ visidata -b input.csv -o output.json # convert .csv -> .json
23+
$ export LC_ALL=es_AR.UTF-8 # if needed to parse dates in spanish
24+
#+end_src
25+
26+
** keybinds
27+
28+
- CTRL+s save
29+
- CTRL+q exit to stdout
30+
- gu unselect all
31+
- gs select all
32+
- gz= apply formula on column selected in rows selected
33+
- za - new column
34+
- Shift-C + d to delete
35+
- z@ - custom date for column
36+
- = - new column python expression
37+
- + - adds an aggregator to column
38+
- # number, % float, $ currency, @ date, ~ any, z~ remove
39+
- ! make key, - to hide, gv to unhide
40+
- T - transpose matrix
41+
- . - to plot this column
42+
- g. - to plot all columns
43+
- gENTER - to filter by select
44+
- : - split by string, asks for regex
45+
- M - melt aka unpivot
46+
- [ ] - sort by column desc/asc
47+
- g[ g] - sort by multiple columns (prev selected!)
48+
- Shift+U - undo last
49+
- Shift+F - frequency sheet/view
50+
- Shift+O - options sheet/view
51+
- Shift+I - Summary sheet/view
52+
- Shift+C - Columns sheet/view
53+
- ^ edit column name
54+
55+
* html
2756
- https://github.com/mgdm/htmlq
2857
- https://github.com/TUVIMEN/reliq
2958
- https://github.com/htacg/tidy-html5

terminal/tools/visualization/gnuplot/self.org

Lines changed: 43 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
| wiki | https://en.wikipedia.org/wiki/Gnuplot |
88
| wiki | https://en.wikibooks.org/wiki/Gnuplot |
99
| online | https://hostcat.fhsu.edu/cdclark/static/apps/gnuplot/ |
10+
| source | http://sf.net/p/gnuplot/gnuplot-main/ |
1011
|--------+-------------------------------------------------------|
1112

1213
- 1986
@@ -16,10 +17,12 @@
1617

1718
* cli
1819

19-
#+begin_src
20-
gnuplot [x11 options] [options] [scriptfile ...]
20+
#+begin_src sh
21+
$ gnuplot [x11 options] [options] [scriptfile ...]
22+
$ GNUTERM=dumb gnuplot -e 'plot sin(x)'
2123
#+end_src
2224

25+
#+CAPTION: flags
2326
|-----------+----+------------+---------------------------------|
2427
| | -e | CMDS | |
2528
| | -c | FILE [ARG] | runs script S with given args |
@@ -28,6 +31,12 @@
2831
| --default | -d | - | do NOT read ~/.gnuplot |
2932
|-----------+----+------------+---------------------------------|
3033

34+
#+CAPTION: environment variables
35+
|---------+----------------------------------------|
36+
| GNUTERM | terminal override |
37+
| FIT_LOG | name of the log file, default: fit.log |
38+
|---------+----------------------------------------|
39+
3140
* language
3241

3342
#+begin_src gnuplot
@@ -62,6 +71,8 @@
6271
|-----------+------------------------------------+-----------------------------|
6372
| <r> | | |
6473
| multiplot | layout N,N | |
74+
| | title S | |
75+
| | offset N,N | |
6576
| unset | OPTION | |
6677
| set | OPTION [VALUE] | |
6778
| with | (l)ines[*], dots[.], lines(points) | |
@@ -177,32 +188,26 @@ b -0.890 1.000
177188
#+CAPTION: S ="string", N=number, F=float
178189
|------------+------------+-------------------------------------|
179190
| <c> | <c> | |
191+
| | | |
192+
|------------+------------+-------------------------------------|
180193
| table | "FILENAME" | save plot to file, unset it after |
181194
| encoding | utf8 | |
182195
|------------+------------+-------------------------------------|
183196
| title | S | the |
184197
| scale | N | |
185198
| output | S | saves into filepath, unset it after |
186199
| monochrome | _ | |
200+
| object | rectangle | |
187201
|------------+------------+-------------------------------------|
188202
| pause | N | seconds to pause |
189203
| +reread+ | - | REMOVED in 6.0 +reread input+ |
190204
|------------+------------+-------------------------------------|
191205

192-
#+CAPTIONS: background
193-
#+begin_src gnuplot
194-
set object rectangle \
195-
from screen 0,0 to screen 1,1 \
196-
behind \
197-
fillcolor rgb '$background' \
198-
fillstyle solid \
199-
noborder
200-
#+end_src
201-
202206
*** general: file parsing
203207

204208
|-------------+-----------------+----------------------------------|
205209
| <c> | <c> | |
210+
| | | |
206211
|-------------+-----------------+----------------------------------|
207212
| datafile | separator S | |
208213
| | separator tab | |
@@ -252,21 +257,21 @@ b -0.890 1.000
252257

253258
*** style
254259

255-
|-----------+---------------+----------------------------------|
256-
| <c> | <c> | |
257-
| fill | transparent | |
258-
| | solid | |
259-
| solid | F | |
260-
| noborder | _ | |
261-
| data | lines | sets default for *plot* with ... |
262-
| | histograms | |
263-
| line | N | can be later referenced on plot |
264-
| histogram | gap N | |
265-
| | cluster | |
266-
| | clustered | |
267-
| | rowstacked | |
268-
| | columnstacked | |
269-
|-----------+---------------+----------------------------------|
260+
|-------+-----------+---------------+----------------------------------|
261+
| | <c> | <c> | |
262+
| style | fill | transparent | |
263+
| | | solid | |
264+
| | solid | F | |
265+
| | noborder | _ | |
266+
| | data | lines | sets default for *plot* with ... |
267+
| | | histograms | |
268+
| | line | N | can be later referenced on plot |
269+
| | histogram | gap N | |
270+
| | | cluster | |
271+
| | | clustered | |
272+
| | | rowstacked | |
273+
| | | columnstacked | |
274+
|-------+-----------+---------------+----------------------------------|
270275

271276
#+CAPTION: gnuplot "test" command output
272277
#+ATTR_HTML: :width 500
@@ -308,6 +313,16 @@ http://gnuplot.info/demo/pm3dcolors.html
308313
}
309314
#+end_src
310315

316+
- background fullscreen rectangle
317+
#+begin_src gnuplot
318+
set object rectangle \
319+
from screen 0,0 to screen 1,1 \
320+
behind \
321+
fillcolor rgb '$background' \
322+
fillstyle solid \
323+
noborder
324+
#+end_src
325+
311326
* examples
312327

313328
- https://github.com/TheFox/gnuplot-examples
@@ -335,6 +350,4 @@ http://gnuplot.info/demo/pm3dcolors.html
335350
- to read from stdin "-" might not work in plot (?
336351
- use /dev/stdin
337352
- you cannot plot fields from differents files/inputs against each other
338-
- on multiplot, sometimes a plot will silently fail due some formatting issue
339-
- try adding ";"
340-
- try adding "\n"
353+
- on multiplot, sometimes a plot will silently fail (?

0 commit comments

Comments
 (0)