Skip to content

Instantly share code, notes, and snippets.

View PreciousNyasulu's full-sized avatar
🦀
uuuhm

Precious Nyasulu PreciousNyasulu

🦀
uuuhm
View GitHub Profile
@Zekfad
Zekfad / conventional-commits.md
Last active May 29, 2025 12:42
Conventional Commits Cheatsheet

Quick examples

  • feat: new feature
  • fix(scope): bug in scope
  • feat!: breaking change / feat(scope)!: rework API
  • chore(deps): update dependencies

Commit types

  • build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
  • ci: Changes to CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
  • chore: Changes which doesn't change source code or tests e.g. changes to the build process, auxiliary tools, libraries
@anaclumos
anaclumos / RH.java
Last active October 25, 2024 09:02
Silicon Valley S06 E04 Richard Hendricks Sorted List Brute Force Search Code
(R. Hendricks 112) int index = 0;
(R. Hendricks 113) while (!element.equals(sortedList.get(index))
(R. Hendricks 114) && sortedList.size() > ++index);
(R. Hendricks 115) return index < sortedList.size() ? index : -1;