Skip to content

Commit

Permalink
Replace yml with yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
invisibleroads committed May 23, 2024
1 parent cfcb7c1 commit 9772881
Show file tree
Hide file tree
Showing 53 changed files with 410 additions and 96 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ scripts:
- path: run.py
authorization:
tokens:
- path: tokens.yml
- path: tokens.yaml
groups:
- configuration:
x: a
Expand Down
File renamed without changes.
14 changes: 14 additions & 0 deletions automate-plus.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
crosscompute: 0.9.4
imports:
- path: automate.yaml
- path: see-airport-traffic/automate.yaml
- path: gather-internet-speeds/automate.yaml
- path: gather-cell-towers/automate.yaml
- path: make-pdf/automate.yaml
- path: merge-pdfs/automate.yaml
- path: set-points/automate.yaml
display:
templates:
- id: base
path: base.html
15 changes: 0 additions & 15 deletions automate-plus.yml

This file was deleted.

14 changes: 14 additions & 0 deletions automate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
crosscompute: 0.9.4
imports:
- path: diff-texts/automate.yaml
- path: make-qr/automate.yaml
- path: paint-letters/automate.yaml
- path: see-ip-address/automate.yaml
- path: show-flashcards/automate.yaml
- path: subscribe-newsletter/automate.yaml
- path: watch-machine/automate.yaml
display:
templates:
- id: base
path: base.html
14 changes: 0 additions & 14 deletions automate.yml

This file was deleted.

File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions convert-image/automate.yml → convert-image/automate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,11 @@ batches:
- folder: batches/standard
scripts:
- command: python3 run.py {input_folder} {output_folder} {debug_folder}
environment:
packages:
- id: pillow
manager: pip
- id: reportlab
manager: pip
- id: svglib
manager: pip
1 change: 0 additions & 1 deletion convert-image/setup.sh

This file was deleted.

File renamed without changes.
File renamed without changes.
34 changes: 34 additions & 0 deletions diff-texts/automate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
crosscompute: 0.9.4
name: Compare Text
slug: compare-text
description: Compare differences between two texts using the diff algorithm
version: 0.0.1
input:
variables:
- id: text1
view: text
path: text1.txt
- id: text2
view: text
path: text2.txt
templates:
- path: input.md
output:
variables:
- id: diff
view: text
path: diff.txt
templates:
- path: output.md
batches:
- folder: batches/standard
scripts:
- command: bash run.sh
display:
styles:
- path: style.css
pages:
- id: output
configuration:
design: none
File renamed without changes.
5 changes: 5 additions & 0 deletions gather-cell-towers/automate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
crosscompute: 0.9.4
imports:
- path: report-tower/automate.yaml
- path: map-towers/automate.yaml
5 changes: 0 additions & 5 deletions gather-cell-towers/automate.yml

This file was deleted.

40 changes: 40 additions & 0 deletions gather-cell-towers/map-towers/automate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
crosscompute: 0.9.4
name: Map Cell Towers
description: See a map of cell towers as submitted by users
version: 0.0.1
output:
variables:
- id: map
view: map-mapbox
path: locations.geojson
configuration:
style: mapbox://styles/mapbox/satellite-streets-v11
layers:
- type: circle
paint:
circle-color: ['match', ['get', 'is_contributed'], 1, 'orange', 'yellow']
circle-radius: 5
templates:
- path: output.md
batches:
- folder: batches/standard
datasets:
- path: datasets/cell-towers.csv
reference:
uri: https://query.data.world/s/cfxj66w6rvg3zhk3r25dum575czl3q
- folder: datasets/runs
reference:
folder: ../report-tower/runs
scripts:
- path: run.ipynb
environment:
interval: 1 hour
display:
pages:
- id: automation
configuration:
design: output
- id: output
configuration:
design: none
23 changes: 23 additions & 0 deletions gather-cell-towers/report-tower/automate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
crosscompute: 0.9.4
name: Report Cell Tower
description: Report the location of a cell tower to help people get better reception and faster data
version: 0.0.1
input:
variables:
- id: location
view: map-mapbox-location
path: variables.dictionary
label: Drop Pin to Annotate Cell Tower Location
configuration:
longitude: -76.872932
latitude: 42.380592
zoom: 10
style: mapbox://styles/mapbox/satellite-streets-v11
templates:
- path: input.md
output:
templates:
- path: output.md
batches:
- folder: batches/standard
5 changes: 5 additions & 0 deletions gather-internet-speeds/automate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
crosscompute: 0.9.4
imports:
- path: report-speed/automate.yaml
- path: map-speeds/automate.yaml
5 changes: 0 additions & 5 deletions gather-internet-speeds/automate.yml

This file was deleted.

42 changes: 42 additions & 0 deletions gather-internet-speeds/map-speeds/automate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
crosscompute: 0.9.4
name: Map Internet Speeds
description: See a map of internet speeds as submitted by users
version: 0.0.1
output:
variables:
- id: map-speeds-download
view: map-deck-screengrid
path: speeds-download.json
configuration:
style: mapbox://styles/mapbox/dark-v11
position: d => [d[0], d[1]]
weight: d => d[2]
- id: map-speeds-upload
view: map-deck-screengrid
path: speeds-upload.json
configuration:
style: mapbox://styles/mapbox/dark-v11
position: d => [d[0], d[1]]
weight: d => d[2]
templates:
- path: output.md
batches:
- folder: batches/standard
datasets:
- folder: datasets/runs
reference:
folder: ../report-speed/runs
scripts:
- path: run.ipynb
environment:
image: python
packages:
- id: numpy
manager: pip
interval: 1 hour
display:
pages:
- id: automation
configuration:
design: output
35 changes: 35 additions & 0 deletions gather-internet-speeds/report-speed/automate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
crosscompute: 0.9.4
name: Report Internet Speed
description: Report your internet speed
version: 0.0.1
input:
variables:
- id: service-location
view: map-mapbox-location
path: variables.dictionary
label: Where are you? Press the button below to share your location. Location tracking will have low accuracy on a desktop but high accuracy on a smartphone.
configuration:
longitude: -104.715279
latitude: 44.590279
zoom: 10
style: mapbox://styles/mapbox/streets-v12
- id: download-speed
view: number
path: variables.dictionary
label: What is your download speed in megabits per second?
- id: upload-speed
view: number
path: variables.dictionary
label: What is your upload speed in megabits per second?
- id: service-provider
view: string
path: variables.dictionary
label: What is the name of your service provider?
templates:
- path: input.md
output:
templates:
- path: output.md
batches:
- folder: batches/standard
5 changes: 5 additions & 0 deletions gather-pomodoros/automate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
crosscompute: 0.9.4
imports:
- path: log-pomodoro/automate.yaml
- path: see-pomodoros/automate.yaml
5 changes: 0 additions & 5 deletions gather-pomodoros/automate.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ display:
design: none
authorization:
tokens:
- path: tokens.yml
- path: tokens.yaml
groups:
- configuration:
username: invisibleroads
Expand Down
Empty file.
File renamed without changes.
43 changes: 43 additions & 0 deletions make-pdf/automate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
crosscompute: 0.9.4
name: Convert Markdown to PDF
slug: convert-markdown-to-pdf
description: Convert markdown text into a PDF document
version: 0.0.1
input:
templates:
- path: input.md
variables:
- id: document-markdown
view: markdown
path: document.md
label: Enter markdown
- id: css-style
view: text
path: style.css
label: Enter styles in CSS format
output:
variables:
- id: document-pdf
view: pdf
path: document.pdf
- id: document-link
view: link
path: document.pdf
batches:
- folder: batches/standard
scripts:
- command: bash run.sh
environment:
packages:
- id: chromium
manager: dnf
- id: md-to-pdf
manager: npm
display:
styles:
- path: style.css
pages:
- id: output
configuration:
design: none
2 changes: 0 additions & 2 deletions make-pdf/setup.sh

This file was deleted.

33 changes: 33 additions & 0 deletions make-qr/automate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
crosscompute: 0.9.4
name: Make QR Code
slug: make-qr
description: Turn text into a QR code
version: 0.0.1
input:
variables:
- id: data
view: text
path: data.txt
templates:
- path: input.md
output:
variables:
- id: qr
view: image
path: qr.png
batches:
- folder: batches/standard
scripts:
- path: run.ipynb
environment:
packages:
- id: qrcode[pil]
manager: pip
display:
styles:
- path: style.css
pages:
- id: output
configuration:
design: none
2 changes: 0 additions & 2 deletions make-qr/setup.sh

This file was deleted.

Loading

0 comments on commit 9772881

Please sign in to comment.