This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Name: tmux sesh | |
// Description: Opens a tmux session | |
import '@johnlindquist/kit'; | |
const sessionsCmd = await $`tmux list-sessions`; | |
let sessions = sessionsCmd.stdout; | |
sessions = sessions | |
.split('\n') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone --depth 1 https://github.com/wbthomason/packer.nvim ~/.local/share/nvim/site/pack/packer/start/packer.nvim | |
git clone --bare https://github.com/nikolovlazar/dotfiles.git $HOME/.dotfiles | |
function dotfiles { | |
/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME $@ | |
} | |
mkdir -p .config-backup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<AspectRatio ratio={16 / 9}> | |
<svg | |
width='100%' | |
height='100%' | |
viewBox='0 0 298 216' | |
fill='none' | |
xmlns='http://www.w3.org/2000/svg' | |
> | |
<rect width='298' height='216' fill='white' /> | |
<path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Composable | |
fun Modal() { | |
Column( | |
horizontalAlignment = Alignment.CenterHorizontally, | |
modifier = Modifier.padding(40.dp), | |
) { | |
Icon( | |
Icons.Filled.Email, | |
"icon", | |
tint = Color(52, 120, 246), // similar to the iOS one |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//: An example Modal UI built with SwiftUI | |
import SwiftUI | |
import PlaygroundSupport | |
struct ContentView: View { | |
@State private var emailAddress = "" | |
var body: some View { | |
VStack(spacing: 16) { | |
Image(systemName: "envelope.fill") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<AspectRatio ratio={16 / 9}> | |
<svg | |
width='100%' | |
height='100%' | |
viewBox='0 0 384 216' | |
fill='none' | |
xmlns='http://www.w3.org/2000/svg' | |
> | |
<rect width='384' height='216' fill='white' /> | |
<rect x='140' y='92' width='87' height='32' rx='6' fill='#319795' /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<AspectRatio ratio={16 / 9}> | |
<svg | |
width='100%' | |
height='100%' | |
viewBox='0 0 480 270' | |
fill='none' | |
xmlns='http://www.w3.org/2000/svg' | |
> | |
<rect width='480' height='270' fill='white' /> | |
<path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<AspectRatio ratio={16 / 9}> | |
<svg | |
width='100%' | |
height='100%' | |
viewBox='0 0 480 270' | |
fill='none' | |
xmlns='http://www.w3.org/2000/svg' | |
> | |
<rect width='480' height='270' fill='white' /> | |
<path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<AspectRatio ratio={16 / 9}> | |
<svg | |
width='100%' | |
height='100%' | |
viewBox='0 0 480 270' | |
fill='none' | |
xmlns='http://www.w3.org/2000/svg' | |
> | |
<rect width='480' height='270' fill='white' /> | |
<rect x='172' y='97' width='136' height='76' rx='38' fill='#3182CE' /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<AspectRatio ratio={16 / 9}> | |
<svg | |
width='100%' | |
height='100%' | |
viewBox='0 0 480 270' | |
fill='none' | |
xmlns='http://www.w3.org/2000/svg' | |
> | |
<rect width='480' height='270' fill='white' /> | |
<path |