Skip to content

Instantly share code, notes, and snippets.

View awong-dev's full-sized avatar

Albert J. Wong awong-dev

  • Seattle
View GitHub Profile
@awong-dev
awong-dev / 2022_2023_individual_school_expenditures.md
Created November 15, 2024 10:25
2022-2023 F196 Expenditures by Category for the 4 proposed schools in 2024
Budget Category North Beach Sacajewea Sanislo Stevens
Teaching $4,703,004.66 $3,745,920.86 $2,798,710.64 $2,133,890.54
Principal Office $508,197.73 $385,685.13 $409,689.50 $362,218.07
Teaching Support $282,486.22 $272,033.58 $370,283.80 $256,912.67
Other Support Activities $222,382.81 $199,180.83 $184,004.32 $208,177.46
Central Administration $2,125.78 $14,171.85 - -
Uncategorized $31.03 $2,339.53 - $2,113.22
@awong-dev
awong-dev / gist:43c88318b95da1d661de062e971c8b3c
Last active March 20, 2020 23:22
Covert sheets flat-row format into object map.
function toDataByLocation(data) {
const headers = data.values[0];
const approvedIndex = headers.findIndex( e => e === 'Approved' );
const stateIndex = headers.findIndex( e => e === 'State?' );
const cityIndex = headers.findIndex( e => e === 'City' );
const data_by_location = {};
const published_entries = data.values.slice(1).filter((entry) => entry[approvedIndex] === "x");
published_entries.forEach( entry => {