Skip to content

Instantly share code, notes, and snippets.

View emma-k-alexandra's full-sized avatar
⌨️
Starting more projects than I can finish

Emma K Alexandra emma-k-alexandra

⌨️
Starting more projects than I can finish
View GitHub Profile
@emma-k-alexandra
emma-k-alexandra / wmata-rail-stations-alphabetical.md
Last active March 31, 2024 12:12
All WMATA MetroRail stations and their station codes as a Markdown table in alphabetical order as of March 31st, 2024
Code Name
G03 Addison Road-Seat Pleasant
F06 Anacostia
F02 Archives-Navy Memorial-Penn Quarter
C06 Arlington Cemetery
N12 Ashburn
K04 Ballston-MU
G01 Benning Road
A09 Bethesda
@emma-k-alexandra
emma-k-alexandra / wmata-rail-stations-alphabetical.csv
Created March 31, 2024 12:10
All WMATA MetroRail stations and their station codes in alphabetical order as of March 31st, 2024
G03 Addison Road-Seat Pleasant
F06 Anacostia
F02 Archives-Navy Memorial-Penn Quarter
C06 Arlington Cemetery
N12 Ashburn
K04 Ballston-MU
G01 Benning Road
A09 Bethesda
C12 Braddock Road
F11 Branch Ave
@emma-k-alexandra
emma-k-alexandra / wmata-rail-stations.md
Created March 31, 2024 12:01
All WMATA MetroRail stations and their station codes as a Markdown table as of March 31st, 2024
Code Name
A01 Metro Center
A02 Farragut North
A03 Dupont Circle
A04 Woodley Park-Zoo/Adams Morgan
A05 Cleveland Park
A06 Van Ness-UDC
A07 Tenleytown-AU
A08 Friendship Heights
@emma-k-alexandra
emma-k-alexandra / wmata-rail-stations.csv
Last active August 20, 2024 23:18
All WMATA MetroRail stations and their station codes as of March 31st, 2024
Code Name
A01 Metro Center
A02 Farragut North
A03 Dupont Circle
A04 Woodley Park-Zoo/Adams Morgan
A05 Cleveland Park
A06 Van Ness-UDC
A07 Tenleytown-AU
A08 Friendship Heights
A09 Bethesda
@emma-k-alexandra
emma-k-alexandra / zip-the-worst-way.js
Created January 17, 2024 03:27
Fun with Object.groupBy and Map.groupBy
/**
* This is a fun attempt to implement a `zip` function using the new Object.groupBy and Map.groupBy functions because I hate index math.
*/
/**
* A silly implementation of zip using [Object.groupBy](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/groupBy).
*
* It's zip! Great explanation here of the Python implementation (which is better than this one)
* @see https://docs.python.org/3.3/library/functions.html#zip
*
@emma-k-alexandra
emma-k-alexandra / Request
Created October 12, 2022 22:21
Trains to New Carrollton return `null` `DestinationCode` from GetPredictions JSON endpoint in WMATA API
GET https://api.wmata.com/StationPrediction.svc/json/GetPrediction/K06 HTTP/1.1
Host: api.wmata.com
api_key: API_KEY_HERE
@emma-k-alexandra
emma-k-alexandra / forward-to-trailing-slash-plugin.js
Last active September 26, 2023 12:33
Vite multi-page app trailing slash dev server workaround for https://github.com/vitejs/vite/issues/6596
/**
* Forwards routes in the given list to a route with a trailing slash in the dev server
* Useful for multi page vite apps where all rollup inputs are known.
*
* Vite fix is upcoming, which will make this plugin unnecessary
* https://github.com/vitejs/vite/issues/6596
*/
export default routes => ({
name: 'forward-to-trailing-slash',
configureServer(server) {
@emma-k-alexandra
emma-k-alexandra / View+Size.swift
Created January 17, 2022 21:11
Assign the size of a SwiftUI View to a Binding - Based on Federico Zanetello's `readSize`
import SwiftUI
/*
Example
struct MyView: View {
@State private var childSize = CGSize.zero
var body: some View {
ChildView()
@emma-k-alexandra
emma-k-alexandra / scrollama-web-components.html
Created March 17, 2021 02:49
Scrollama + Web Components
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Scrollama + Web Components</title>
</head>
<body>
<!-- The web component -->
@emma-k-alexandra
emma-k-alexandra / cscsw_cva.csv
Last active April 24, 2022 16:56
UPDATE: Please check this folder for more IDs (4/24/22): https://github.com/emma-k-alexandra/Laundry-IDs/tree/main/output All CSC Service Works CVAs available (as of February 15th, 2021) to revalue card via https://www.sdirevalue.com/JustPurchaseCode.aspx Place value in column "cva" into the "CVA ID" field
address name cva
9700 Sumac Road Des Plaines IL 60016 Glen Oaks Apts 1
9700 Sumac Road Des Plaines IL 60016 Glen Oaks Apts 2
9700 Sumac Road Des Plaines IL 60016 Glen Oaks Apts 3
9700 Sumac Road Des Plaines IL 60016 Glen Oaks Apts 4
9700 Sumac Road Des Plaines IL 60016 Glen Oaks Apts 5
9700 Sumac Road Des Plaines IL 60016 Glen Oaks Apts 6
9700 Sumac Road Des Plaines IL 60016 Glen Oaks Apts 7
733 Bode Circle Hoffman Estates IL 60169 Autumn Chase Apts 10
755 Bode Circle Hoffman Estates IL 60169 Autumn Chase Apts 11