Skip to content

Commit bfc2e0b

Browse files
committed
Just rename files to save and load
1 parent 2c3bcc3 commit bfc2e0b

File tree

6 files changed

+26
-2
lines changed

6 files changed

+26
-2
lines changed

convert.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
dojos = []
44

5-
File.open("dojos.json") do |file|
5+
File.open("dojos_earth.json") do |file|
66
dojos = JSON.load(file)
77
end
88

dojos.geojson

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

dojos_earth.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

dojos_japan.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

get-dojos-from-earth.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{
2+
"query": {
3+
"verified": 1,
4+
"deleted": 0,
5+
"fields$": [
6+
"name",
7+
"geo_point",
8+
"stage",
9+
"url_slug",
10+
"start_time",
11+
"end_time",
12+
"private",
13+
"frequency",
14+
"alternative_frequency",
15+
"day"
16+
]
17+
}
18+
}' 'https://zen.coderdojo.com/api/2.0/dojos' --output dojos_earth.json

get-dojos-from-japan.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
curl -X GET --header 'Content-Type: application/json' --header 'Accept: application/json' \
3+
'https://coderdojo.jp/dojos.json' --output dojos_japan.json
4+

0 commit comments

Comments
 (0)