Skip to content

Instantly share code, notes, and snippets.

@havvg
havvg / .gitconfig
Created December 20, 2011 15:42
git pretty history
[alias]
ph = log --graph --pretty=pretty-history --abbrev-commit --date=relative
[pretty]
pretty-history = format:%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset
@cmelchior
cmelchior / Imager.kt
Created December 23, 2023 19:03
Show how to capture a snapshot from a screen built using Compose inside Kotlin Notebooks
package dk.ilios.jervis.ui
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier