(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| #!/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" |
| # 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 |
| <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; |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
|  |