Skip to content

Instantly share code, notes, and snippets.

View tfkhdyt's full-sized avatar
🇵🇸
Free Palestine

Taufik Hidayat tfkhdyt

🇵🇸
Free Palestine
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">
const printErrorShouldLoginBefore = () => {
console.log(
'%cError, script failed to parse your data',
'font-size: 18px; color: #f00; background: #000;'
);
throw new Error('NOT_LOGGED_IN');
};
const printGenericError = (err) => {
console.log(
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active August 5, 2025 23:20
Conventional Commits Cheatsheet
Basic
=====
[Shift]+[Mod]+[Enter] - launch terminal.
[Mod]+[b] - show/hide bar.
[Mod]+[p] - dmenu for running programs like the x-www-browser.
[Mod]+[Enter] - push acive window from stack to master, or pulls last used window from stack onto master.
[Mod] + [j / k] - focus on next/previous window in current tag.
@limitedmage
limitedmage / pyramid.cpp
Created August 24, 2011 16:41
Sierpinski Gasket in OpenGL + GLUT
#include <windows.h>
#include <GL/glut.h>
#include <cstdlib>
#include <ctime>
// menu item
#define MENU_SMOOTH 1
#define MENU_FLAT 0
// Function prototypes