Skip to content

Instantly share code, notes, and snippets.

View DzunN86's full-sized avatar
πŸ€
Learning vim

Dzun Nurroin DzunN86

πŸ€
Learning vim
View GitHub Profile
#!/usr/bin/env bash
if [[ $# -eq 1 ]]; then
selected=$1
else
selected=$(find ~/work ~/personal ~/projects -mindepth 1 -maxdepth 1 -type d | fzf)
fi
if [[ -z $selected ]]; then
exit 0
#!/bin/sh
# Copy any font (folder name) to the $font variable from here:
# https://github.com/ryanoasis/nerd-fonts/tree/master/patched-fonts
font=Meslo
fontpath="$HOME/.local/share/fonts"
version="2.3.3"
wget https://github.com/ryanoasis/nerd-fonts/releases/download/v"$version"/$font.zip
mkdir -p "$fontpath"
@DzunN86
DzunN86 / .zshrc
Last active June 26, 2024 04:43
.dotfiles
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:$HOME/.local/bin:/usr/local/bin:$PATH
# Path to your Oh My Zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time Oh My Zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
@DzunN86
DzunN86 / ArrayField.vue
Created September 2, 2023 03:23
Simple ArrayField implementation in vue
<script setup>
import { ref } from "vue";
const form = ref({
nama_faktur: "",
metode_pembayaran: "",
biaya: [
{
kelas: "",
biaya: [],
-- Handle umur dan wafat
SELECT tanggal_lahir, tanggal_wafat, CURDATE(),
TIMESTAMPDIFF(YEAR, tanggal_lahir, if(tanggal_wafat IS NOT NULL, tanggal_wafat, CURDATE())) AS umur
FROM person;
-- Get Total, dan total Berdasarkan Jenis Kelamin
SELECT COUNT(*) AS total,
SUM(CASE WHEN person.jenis_kelamin="L" THEN 1 ELSE 0 END) AS PUTRA,
SUM(CASE WHEN person.jenis_kelamin="P" THEN 1 ELSE 0 END) AS PUTRI
FROM person;
@DzunN86
DzunN86 / Ganbatte-kudasai.gif
Last active May 10, 2021 23:25
滝本 ひちみ
Ganbatte-kudasai.gif
@DzunN86
DzunN86 / introrx.md
Created January 12, 2021 11:56 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@DzunN86
DzunN86 / Ganbatte kudasai.gif
Last active January 3, 2021 04:29
γŒγ‚“γ°γ£γ¦
Ganbatte kudasai.gif
![Dzunn86](https://github-readme-stats.vercel.app/api?username=dzunn86&show_icons=true&theme=merko)