Skip to content

Instantly share code, notes, and snippets.

View kavdev's full-sized avatar

Alexander Kavanaugh kavdev

View GitHub Profile
@kavdev
kavdev / snippet.js
Last active August 20, 2017 19:43
User badge background color based on letter
badgeColors = [
"#f28920", "#49b75e", "#33ccb6", "#d13b7f", "#733aef", "#c8d60b", "#598ece", "#ea537a", "#dd9c4e",
"#6da877", "#b4f741", "#7775cc", "#8ca579", "#2c57f4", "#dd9c5b", "#e8e862", "#d11c4b", "#d3b34a",
"#4cd39f", "#599bfc", "#4eea95", "#ea47a8", "#c46f55", "#2588bf", "#6d6457", "#7e649e"
]
backgroundColor = badgeColors[("{{ user.last_name|index:0|title }}".charCodeAt() - 65) % 26]
@kavdev
kavdev / 01_resources.md
Last active January 26, 2024 18:35
Engineering Onboarding Docs

Keybase proof

I hereby claim:

  • I am kavdev on github.
  • I am kavdev (https://keybase.io/kavdev) on keybase.
  • I have a public key whose fingerprint is 7119 D023 A652 2C35 C6F9 187D 5BBC 899D 08B1 760B

To claim this, I am signing this object: