Created
July 4, 2013 02:15
-
-
Save aaronj1335/5924397 to your computer and use it in GitHub Desktop.
yaml example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # we'll format our research in YAML. it should be pretty easy to figure out the | |
| # format, but generally a line starts w/ a key followed by a colon and a space, | |
| # and then the value | |
| # | |
| # if you want to check whether you've properly formatted it, you can run | |
| # something like: | |
| # | |
| # python -c "import yaml; print yaml.load(open('assets/data/crises/CRI_SVRBLD.yaml').read())" | |
| # | |
| # note that you need to format dates according to iso 8601, so if you have a | |
| # date like "Apr 24, 2013, and you don't know how to format it, run this: | |
| # | |
| # python -c "import yaml; print yaml.load(open('assets/data/crises/CRI_SVRBLD.yaml').read())" | |
| name: Savar building collapse | |
| kind: structural failure | |
| location: Savar, Bengladesh | |
| date_time: 2013-04-24T00:00:00 | |
| human_impact: 1,127 people died, approximately 2,500 people were injured | |
| economic_impact: relatively little outside of the Savar district | |
| # if you've got a really long line, you can make it multiline like this: | |
| resources_needed: | | |
| monetary donations to Bangladesh Association of Delaware Valley (BADV, | |
| http://badv.org) | |
| ways_to_help: | | |
| only shop at stores that have signed the Accord on Factory and Building | |
| Safety in Bangladesh | |
| (http://en.wikipedia.org/wiki/Bangladesh_Fire_and_Building_Safety_Agreement) | |
| # note that the 'citations' and 'external_links' get parsed into lists. for | |
| # citations i just went to the bottom of the wikipedia article and grabbed the | |
| # first few links. the only external link i figure we need to add is the | |
| # wikipedia link. | |
| citations: | |
| - http://www.thedailystar.net/beta2/news/like-a-pack-of-cards-it-crumbles/ | |
| - http://news.yahoo.com/bangladesh-collapse-search-over-death-toll-1-127-122554495.html | |
| - http://www.bbc.co.uk/news/world-asia-22450419 | |
| external_links: | |
| - http://en.wikipedia.org/wiki/2013_Savar_building_collapse | |
| images: | |
| - http://news.bbcimg.co.uk/media/images/67478000/jpg/_67478091_tv017871294.jpg | |
| videos: | |
| maps: | |
| social: | |
| organizations: | |
| people: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment