Skip to content

Instantly share code, notes, and snippets.

View NikarashiHatsu's full-sized avatar
🎯
Focusing

Aghits Nidallah NikarashiHatsu

🎯
Focusing
View GitHub Profile
@NikarashiHatsu
NikarashiHatsu / toggle.blade.php
Created November 22, 2023 12:07
Light / Dark Toggle Challenge
<label for="toggle" class="relative p-4 rounded-[6rem] w-56 overflow-hidden shadow-[inset_0_0px_8px_4px_rgb(0_0_0_/0.3)]">
<input id="toggle" checked type="checkbox" class="hidden peer">
{{-- Ambient --}}
<div class="transition duration-300 ease-in-out absolute -z-30 w-72 h-72 -translate-y-1/2 top-1/2 translate-x-0 peer-checked:-translate-x-8 bg-[#6182b8] rounded-full peer-checked:bg-[rgb(46,58,76)]"></div>
<div class="transition duration-300 ease-in-out absolute -z-30 w-64 h-64 -translate-y-1/2 top-1/2 translate-x-[-6.25rem] peer-checked:translate-x-[2rem] bg-[#7a93c5] rounded-full peer-checked:bg-[#4a5364]"></div>
<div class="transition duration-300 ease-in-out absolute -z-30 w-64 h-64 -translate-y-1/2 top-1/2 translate-x-[-8.5rem] peer-checked:translate-x-[4.5rem] bg-[#8ca5cd] rounded-full peer-checked:bg-[#666d7b]"></div>
{{-- Clouds --}}
<div class="transition duration-300 ease-in-out relative top-24 -right-4 transform -z-20 peer-checked:translate-x-full">
@bashbunni
bashbunni / .zshrc
Created January 4, 2023 16:28
CLI Pomodoro for Linux
# study stream aliases
# Requires https://github.com/caarlos0/timer to be installed. spd-say should ship with your distro
declare -A pomo_options
pomo_options["work"]="45"
pomo_options["break"]="10"
pomodoro () {
if [ -n "$1" -a -n "${pomo_options["$1"]}" ]; then
val=$1
@ikr4-m
ikr4-m / duitRupiah.js
Created September 19, 2019 13:42
Ubah tampilan uangmu dalam bentuk JS
/**
* Diambil dari https://www.malasngoding.com/membuat-format-rupiah-dengan-javascript/
* Dimodifikasi sendiri oleh saya, Ikramullah Latif @github/skymunn
*/
/**
* Uang menjadi fixed
* @param {string} angka Harus string karena ada fungsi String.replace masalahnya
* @param {string} prefix Prefix uang, kosongkan kalau mau tetap rupiah
*/
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active July 7, 2024 21:08
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@AgentOak
AgentOak / youtube_formats.md
Last active June 28, 2024 01:51
Youtube Format IDs

Last updated: April 2021

Also known as itag or format codes and way back they could be specified with the fmt parameter (e.g. &fmt=22). Depending on the age and/or popularity of the video, not all formats will be available.

DASH video

Resolution AV1 HFR High AV1 HFR AV1 VP9.2 HDR HFR VP9 HFR VP9 H.264 HFR H.264
MP4 MP4 MP4 WebM WebM WebM MP4 MP4
@jszobody
jszobody / Undies.php
Last active February 12, 2022 15:59
Get/set any class private property
<?php
/**
* Access/modify any instance private property.
*/
class Undies {
protected $instance;
protected $setter;
protected $getter;