Skip to content

Instantly share code, notes, and snippets.

View Cyrus-Kiprop's full-sized avatar
🏠
Working from home

Cyrus Kiprop Cyrus-Kiprop

🏠
Working from home
View GitHub Profile
@jirfag
jirfag / component.tsx
Last active August 8, 2024 18:23
React/Gatsby Table of Contents
import React, { createRef } from "react"
import throttle from "lodash/throttle"
// Import styled components (see the Styles section below).
import {
TocDiv,
TocLink,
TocIcon,
TocTitle,
TocToggleOpener,
@BretFisher
BretFisher / pcat-install.sh
Last active February 6, 2024 14:41
On macOS: Install pygmentize and alias pcat for shell code syntax highlighting
# first install pygmentize to the mac OS X or macOS system with the built-in python
sudo easy_install Pygments
# then add alias to your ~/.bash_profile or ~/.bashrc or ~/.zshrc etc.
alias pcat='pygmentize -f terminal256 -O style=native -g'