Skip to content

Instantly share code, notes, and snippets.

View erasebegin's full-sized avatar

Chris Haupt erasebegin

View GitHub Profile
[language-server.scls]
command = "simple-completion-language-server"
[language-server.scls.config]
max_completion_items = 100 # set max completion results len for each group: words, snippets, unicode-input
feature_words = true # enable completion by word
feature_snippets = true # enable snippets
snippets_first = true # completions will return before snippets by default
snippets_inline_by_word_tail = false # suggest snippets by WORD tail, for example text `xsq|` become `x^2|` when snippet `sq` has body `^2`
feature_unicode_input = false # enable "unicode input"
@erasebegin
erasebegin / puer.md
Created December 19, 2024 15:05
Pu'er Tea

Pu'er tea (普洱茶, Pǔ'ěr chá) is a type of fermented and aged tea that originates from Yunnan Province in China. It is highly valued for its unique flavor, health benefits, and cultural significance. Here's an overview of Pu'er tea:


1. Types of Pu'er Tea

Pu'er tea comes in two main varieties, based on how it is processed:

  • Sheng Pu'er (生普洱):
    Also called "raw" Pu'er, it is naturally fermented over a long period (years or even decades).
  • Flavor: Starts with a fresh, astringent taste and develops complex, mellow flavors as it ages.
@erasebegin
erasebegin / page.tsx
Created April 11, 2024 09:35
Example of Hygraph in Next 14
import { Suspense } from "react";
import MaterialsSections from "./components/MaterialsSections";
import PageHeader from "./components/PageHeader";
import { Loader2 } from "lucide-react";
export default async function Home() {
const { errors, data } = await fetch(process.env.HYGRAPH_URL as string, {
method: "POST",
headers: {
"Content-Type": "application/json",
import React, { useState, useEffect } from "react";
import styled from "styled-components";
import Panel from "./Panel";
import TrayButton from "./TrayButton";
import Tech from "./skills/Tech";
import Illustration from "./skills/Illustration";
import Misc from "./skills/Misc";
import trayIconSkills from "../../../img/tray-icon-fixed.svg";
import trayIconContact from "../../../img/tray-icon3.svg";
import { BsFillEnvelopeFill, BsFillEnvelopeOpenFill } from "react-icons/bs";