Skip to content
Snippets Groups Projects
Commit 192d2424 authored by Peter J. Keleher's avatar Peter J. Keleher
Browse files

auto

parent 9b215547
No related branches found
No related tags found
No related merge requests found
......@@ -232,8 +232,24 @@ https://sedna.cs.umd.edu/436clips/vids/horses.mp4"
```
You may upload URLs for recordings elsewhere, but try to keep them short (20-30 seconds,
max).
- I will build another small app that can be used to regenerate/reset the database. Link
will be here soon.
- You can regenerate a reasonable, syntacticly correct db as follows:
```
let root = Database.database().reference()
let vid1 = root.child("urls").childByAutoId()
vid1.setValue(["name": "Neo romps happily in the snow",
"tags": "dog,awesome,pet",
"url": "https://sedna.cs.umd.edu/436clips/vids/neo.mp4"])
root.child("seen/kendrick/\(vid1.key!)").setValue("1")
root.child("urls").childByAutoId().setValue(["name": "Meditation Sheep", "tags": "sheep,peaceful",
"url": "https://sedna.cs.umd.edu/436clips/vids/sheep.mp4"])
root.child("urls").childByAutoId().setValue(["name": "Beautiful Sunset", "tags": "sunset,peaceful",
"url": "https://sedna.cs.umd.edu/436clips/vids/sunset.mp4"])
root.child("urls").childByAutoId().setValue(["name": "Horses", "tags": "horses,rural,peaceful",
"url": "https://sedna.cs.umd.edu/436clips/vids/horses.mp4",
"likes": ["someone": "1", "someone else": "1"]])
```
## Grading
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment