Skip to content

Instantly share code, notes, and snippets.

View dimasmiftah's full-sized avatar
💡

Dimas Miftahul Huda dimasmiftah

💡
View GitHub Profile
@dimasmiftah
dimasmiftah / App.java
Created August 4, 2022 20:55
CCDP - Template Method Pattern
import channel.Email;
import channel.Channel;
import channel.WhatsApp;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class App {
public static void main(String[] args) throws IOException {
@dimasmiftah
dimasmiftah / .zshrc
Created November 30, 2022 14:07
my zsh config
# Fig pre block. Keep at the top of this file.
[[ -f "$HOME/.fig/shell/zshrc.pre.zsh" ]] && builtin source "$HOME/.fig/shell/zshrc.pre.zsh"
cd Riset/
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
export PATH=/opt/homebrew/bin:$PATH
export PNPM_HOME="/Users/dimasmiftah/Library/pnpm"
export PATH="$PNPM_HOME:$PATH"

Arcanist diff dependent on another diff

Simulation

1. Create branch for part1 (on top of master branch)

git checkout master
git checkout -b part1
echo "some changes" >> part1.txt
git add -A
git commit -m 'part 1'