Skip to content

Instantly share code, notes, and snippets.

View raysubham's full-sized avatar

Subham Ray raysubham

View GitHub Profile
// Implement a caching function
const addNumbers = (a, b) => {
for (let i = 0; i < 1000000000; i++) {
// Do nothing
}
return a + b;
};
console.time("First time");
@raysubham
raysubham / starship.toml
Last active December 11, 2022 14:22
Starship Config
add_newline = true
format = "$all"
[battery]
full_symbol = "🔋"
charging_symbol = "⚡️"
discharging_symbol = "💀"
disabled = true