Skip to content

Instantly share code, notes, and snippets.

Avatar

Adam Donahue adamdonahue

View GitHub Profile
@adamdonahue
adamdonahue / myUberSpend.js
Created Mar 3, 2018
Quick-and-dirty script to calculate my total Uber spend - must be run via rider.uber.com after log-in
View myUberSpend.js
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++) {
View components.base-table.js
import Ember from 'ember';
const { computed } = Ember;
export default Ember.Component.extend({
value: computed(function() {
return 'BASE';
})
});
View components.base-table.js
import Ember from 'ember';
const { computed } = Ember;
export default Ember.Component.extend({
value: computed(function() {
return 'BASE';
})
});