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
| #!/bin/bash | |
| ## Conventions: | |
| ## | |
| ## Working directory has the same name as the s3 bucket. | |
| ## Script is executed from the parent of this directory. | |
| ## | |
| BUCKET=$1 |
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
| var ballots[] | |
| onEvent("submitBtn", "click", function(){ | |
| var newBallot = [getNumber("rank1"), getNumber("rank2"), getNumber("rank3"), getNumber("rank4"), getNumber("rank5")] | |
| ballots.push(newBallot) | |
| console.log (newBallot) | |
| console.log ("We now have " + ballots.length + " in our system!" | |
| }); | |
| // Here's a little sample to show how you might begin to tabulate the ballots... | |
| function tabulateBallots() { |
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
| <DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Test Vue List</title> | |
| <meta charset='utf-8'> | |
| <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script> | |
| <script src="https://unpkg.com/vuex"></script> | |
| <script src="https://unpkg.com/axios/dist/axios.min.js"></script> | |
| </head> |
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
| Vue.component('event-list-item', { | |
| template: "<h4>{{ item.title }}</h4>", | |
| props: { | |
| ikey: { | |
| type: String, | |
| required: true | |
| } | |
| }, | |
| data: function() { | |
| return { |
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
| /* | |
| * This is only going to show a list of the keys themselves. | |
| * | |
| * Expected output: | |
| * - key1 | |
| * - key2 | |
| * - key3 | |
| */ | |
| Vue.component('event-list', { | |
| template: "<div><ul><li v-for='key in list'>{{ key }}</li></div>", |
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
| state: { | |
| list: ['key1', 'key2', 'key3'], | |
| items: { | |
| key1: { title: "Title 1"}, | |
| key2: { title: "Title 2"}, | |
| key3: { title: "Title 3"} | |
| } | |
| } | |
NewerOlder