Skip to content

Instantly share code, notes, and snippets.

View kaayce's full-sized avatar
🖤
Based

Patrick Nzediegwu kaayce

🖤
Based
View GitHub Profile
@kaayce
kaayce / exercise.tour.go
Created October 31, 2024 22:30 — forked from zyxar/exercise.tour.go
tour.golang exercise solutions
/* Exercise: Loops and Functions #43 */
package main
import (
"fmt"
"math"
)
func Sqrt(x float64) float64 {
z := float64(2.)

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

@kaayce
kaayce / 55-bytes-of-css.md
Created September 26, 2022 18:44 — forked from JoeyBurzynski/55-bytes-of-css.md
58 bytes of css to look great nearly everywhere

58 bytes of CSS to look great nearly everywhere

When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:

main {
  max-width: 38rem;
  padding: 2rem;
  margin: auto;
}
@kaayce
kaayce / prepare-commit-msg.sh
Created March 4, 2022 19:17 — forked from bartoszmajsak/prepare-commit-msg.sh
How to automatically prepend git commit with a branch name
#!/bin/bash
# This way you can customize which branches should be skipped when
# prepending commit message.
if [ -z "$BRANCHES_TO_SKIP" ]; then
BRANCHES_TO_SKIP=(master develop test)
fi
BRANCH_NAME=$(git symbolic-ref --short HEAD)
BRANCH_NAME="${BRANCH_NAME##*/}"