Skip to content

Instantly share code, notes, and snippets.

@yosevu
Last active September 5, 2017 17:03
Show Gist options
  • Select an option

  • Save yosevu/c1fcef7dd3f45d2ee05b17e3c1b83606 to your computer and use it in GitHub Desktop.

Select an option

Save yosevu/c1fcef7dd3f45d2ee05b17e3c1b83606 to your computer and use it in GitHub Desktop.
Normalized quote feeds
const quoteFeedsById = {
feed1: {
name: 'Programming',
quoteIds: ['quote1', 'quote2']
},
feed2: {
name: 'Stoic',
quoteIds: ['quote3', 'quote4']
}
};
const quotesById = {
quote1: {
text:'Every great developer you know got there by solving problems they were unqualified to solve until they actually did it.',
source: 'Patrick McKenzie',
liked: false
},
quote2: {
text: 'Hofstadter\'s Law: It always takes longer than you expect, even when you take into account Hofstadter\'s Law.',
source: 'Douglas Hofstadter',
liked: false
},
quote3: {
text: 'The obstacle on the path becomes the way.',
source: 'Marcus Aurelius',
liked: false
},
quote4: {
text: 'It is impossible for a man to learn what he thinks he already knows.',
source: 'Epictetus',
liked: false
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment