Skip to content

Instantly share code, notes, and snippets.

View kztera's full-sized avatar
🎯
Focusing

Khoa Nguyen kztera

🎯
Focusing
  • Vietnam
  • 12:01 (UTC +07:00)
View GitHub Profile
@pinei
pinei / README.md
Last active October 24, 2025 00:31
A Carousel component for Quartz v4.5

Description

What is a Carousel Component?

A carousel (also known as a slider or image gallery) is a UI component that displays a series of content items (in this case, images) in a rotating fashion. Users can navigate through the content using:

  • Navigation arrows (previous/next buttons)
  • Dot indicators (click to jump to specific slides)
  • Keyboard navigation (arrow keys)
  • Touch/swipe gestures (on mobile devices)
@ilovefreesw
ilovefreesw / reg.bat
Created March 24, 2022 07:17
A batch script for Windows to Fix "Some settings are managed by your organization". Works on Windows 10 and Windows 11.
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies" /f
reg delete "HKCU\Software\Microsoft\WindowsSelfHost" /f
reg delete "HKCU\Software\Policies" /f
reg delete "HKLM\Software\Microsoft\Policies" /f
reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies" /f
reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsStore\WindowsUpdate" /f
reg delete "HKLM\Software\Microsoft\WindowsSelfHost" /f
reg delete "HKLM\Software\Policies" /f
reg delete "HKLM\Software\WOW6432Node\Microsoft\Policies" /f
reg delete "HKLM\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Policies" /f
@jjvillavicencio
jjvillavicencio / setup.sh
Last active December 3, 2025 05:16
Install Android SDK on Windows Bash (WSL)
cd /home/<user>/
sudo apt-get install unzip
wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip
unzip sdk-tools-linux-4333796.zip -d Android
rm sdk-tools-linux-4333796.zip
sudo apt-get install -y lib32z1 openjdk-8-jdk
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
export PATH=$PATH:$JAVA_HOME/bin
printf "\n\nexport JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64\nexport PATH=\$PATH:\$JAVA_HOME/bin" >> ~/.bashrc
cd Android/tools/bin
@wojteklu
wojteklu / clean_code.md
Last active December 12, 2025 01:36
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules