This file contains 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
import Ember from 'ember'; | |
const { computed } = Ember; | |
export default Ember.Component.extend({ | |
value: computed(function() { | |
return 'BASE'; | |
}) | |
}); |
This file contains 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
import Ember from 'ember'; | |
const { computed } = Ember; | |
export default Ember.Component.extend({ | |
value: computed(function() { | |
return 'BASE'; | |
}) | |
}); |
This file contains 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
async function myUberSpend() { | |
async function costForPage(pageNumber) { | |
const response = await fetch(`trips?page=${pageNumber}`, { | |
credentials: 'include' | |
}); | |
const text = await response.text(); | |
const prices = $(text).find("td.text--right"); | |
if (!prices.length) return; | |
let costForPage = 0.0; | |
for (var i = 0; i < prices.length; i++) { |