Skip to content

Instantly share code, notes, and snippets.

@Zhuinden
Zhuinden / MyFragment.java
Last active September 10, 2022 11:02
Nested child fragments for bottom navigation view in Java
public class MyFragment
extends Fragment {
public MyFragment() {
super(R.layout.my_fragment);
}
private int selectedIndex = 0;
private FirstFragment firstFragment;
@mwallner
mwallner / fzf-posh.md
Created September 27, 2019 09:15
using fzf to nagive directories in PowerShell

using fzf to nagive directories in PowerShell

simplest way: 1-liner

Set-Location (Get-Item $(fzf)).Directory.FullName

creating a function

@jseed
jseed / gist:5d022570ea52ee09a8f43913214496f1
Last active March 12, 2025 08:52
PowerShell command to delete all branches except master
git checkout master; git branch -D @(git branch | select-string -NotMatch "master" | Foreach {$_.Line.Trim()})
@zchee
zchee / actionlist.vim
Last active October 14, 2025 06:12
IdeaVim actionlist
--- Actions ---
$Copy <M-C>
$Cut <M-X> <S-Del>
$Delete <Del> <BS> <M-BS>
$LRU
$Paste <M-V>
$Redo <M-S-Z> <A-S-BS>
$SearchWeb <A-S-G>
$SelectAll <M-A>
$Undo <M-Z>