

// Long form example | |
const pizzas = [ | |
{ | |
name: 'Margarita', | |
toppings: ['Cheese', 'Tomato'] | |
}, | |
{ | |
name: 'Hawaiian', | |
toppings: ['Cheese', 'Tomato', 'Ham', 'Pineapple'] | |
}, |
name: Deploy on push to master | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
name: deploy | |
runs-on: ubuntu-latest | |
steps: |
// 1. Add your API key and secret below | |
// 2. Run `npm i flickrapi` to install the SDK dependency | |
// 3. Run 'node auth.js` and follow the instructions | |
// (will open browser window, need to paste number back in terminal and copy entire output) | |
const Flickr = require('flickrapi') | |
const FLICKR_API_KEY = 'YOUR-API-KEY' | |
const FLICKR_SECRET = 'YOUR-API-SECRET' | |
Flickr.authenticate({ |
I hereby claim:
To claim this, I am signing this object:
See the instructions in README.md for how to run the code.
When developing a feature, you should start by scoping out a spec, developing tests against that spec and writing code against the tests. Working with others to review the spec before starting development is encouraged.
A sentence describing the reason for the changes in this pull request.
A few sentences / bullet points describing the goals of this change and the implementation.
Technical Story: [description | ticket/issue URL]
The old version is still viewable here, but the code and the data has been much improved and now lives at:
function golfScore(par, strokes) { | |
// Only change code below this line | |
if (strokes === 1) { | |
return "Hole-in-one!"; | |
} else if (strokes <= (par - 2)) { | |
return "Eagle"; | |
} else if (strokes === (par - 1)) { | |
return "Birdie"; |