Skip to content

Instantly share code, notes, and snippets.

@Kinmarui
Kinmarui / 55-bytes-of-css.md
Created September 26, 2022 12:03 — 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;
}
@Kinmarui
Kinmarui / gist:bc77dc7c3bca091289829a99e2eb185d
Created January 11, 2018 21:38
Java builder to Kotlin regex replace
.builder\(\)(\n(.*)\((.*)\))+.build\(\)
\s\.(.*?)\((.*)\)
build())
->
)
BaseInterval\.builder\(\)
@Kinmarui
Kinmarui / hooks\post-receive
Created July 19, 2016 15:05
Autocreate git branch after user creates feature branch
#!/bin/sh
read oldrev newrev refname
branch=$(git rev-parse --symbolic --abbrev-ref $refname)
echo "branch is $branch"
echo "oldrev is $oldrev and newrev is $newrev"
if [[ $branch =~ feature-.+ ]]; then
PWD=$(pwd)
WORKTREE=/Workdir/${PWD##*/}