Skip to content

Instantly share code, notes, and snippets.

View rahulkriplani's full-sized avatar
😇

rahulkriplani

😇
View GitHub Profile
type Trip = {
pickup: string;
drop: string;
warehouse?: string;
}
type Shipment = {
pickups: string[];
drops: string[];
warehouse: string;
interface UserData {
user_id: number;
device_id: string;
logged_in: string;
logged_out: string;
lastSeenAt: string
}
function calculateMonthlyUsers(user_data: UserData[]): Map<string, {loggedIn: Set<number>, active: Set<number>}> {
const monthlyUsers = new Map<string, {loggedIn: Set<number>, active: Set<number>}>();
@rahulkriplani
rahulkriplani / index.html
Last active November 10, 2021 13:56
freeCodeCampTributePage
<main id="main">
<h1 id="title">Dr. Norman Borlaug</h1>
<figure id="img-div">
<img id="image" src="https://cdn.freecodecamp.org/testable-projects-fcc/images/tribute-page-main-image.jpg"
alt="Dr. Norman Borlaug seen standing in Mexican wheat field with a group of biologists"
/>
<figcaption id="img-caption">
Dr. Norman Borlaug, third from the left, trains biologists in Mexico on
how to increase wheat yields - part of his life-long war on hunger.
</figcaption>