Skip to content

Instantly share code, notes, and snippets.

View tifandotme's full-sized avatar

Tifan Dwi Avianto tifandotme

View GitHub Profile
import { useEffect, useMemo, useState } from "react";
import { loadAll } from "@tsparticles/all"; // if you are going to use `loadAll`, install the "@tsparticles/all" package too.
import { type Container, type ISourceOptions } from "@tsparticles/engine";
import Particles, { initParticlesEngine } from "@tsparticles/react";
export function Confetti() {
const [init, setInit] = useState(false);
useEffect(() => {
initParticlesEngine(async (engine) => {
@tifandotme
tifandotme / giscus.css
Last active April 20, 2024 14:27
giscus
/*! MIT License
* Copyright (c) 2018 GitHub Inc.
* https://github.com/primer/primitives/blob/main/LICENSE
*/
main {
--color-prettylights-syntax-comment: #6e7781;
--color-prettylights-syntax-constant: #0550ae;
--color-prettylights-syntax-entity: #8250df;
--color-prettylights-syntax-storage-modifier-import: #24292f;
@tifandotme
tifandotme / static-filters.txt
Last active October 26, 2024 15:03
uBlock Origin filter list
!==============> YOUTUBE (DESKTOP)
! HOMEPAGE
! feed
!youtube.com##ytd-browse[page-subtype="home"]
!youtube.com##ytd-guide-entry-renderer > a[title="Home"]
! sections
youtube.com##span:has-text(/Shorts/):upward(ytd-rich-section-renderer)
youtube.com##span:has-text(/Breaking news/):upward(ytd-rich-section-renderer)