Skip to content

Instantly share code, notes, and snippets.

View wey-gu's full-sized avatar
Believe in OpenSource and build in public w/ magic to help others do the same.

Wey Gu wey-gu

Believe in OpenSource and build in public w/ magic to help others do the same.
View GitHub Profile
wey-gu / paul_graham_essay.txt
Created March 12, 2024 09:06
Paul Graham Essay
What I Worked On
February 2021
Before college the two main things I worked on, outside of school, were writing and programming. I didn't write essays. I wrote what beginning writers were supposed to write then, and probably still are: short stories. My stories were awful. They had hardly any plot, just characters with strong feelings, which I imagined made them deep.
The first programs I tried writing were on the IBM 1401 that our school district used for what was then called "data processing." This was in 9th grade, so I was 13 or 14. The school district's 1401 happened to be in the basement of our junior high school, and my friend Rich Draves and I got permission to use it. It was like a mini Bond villain's lair down there, with all these alien-looking machines — CPU, disk drives, printer, card reader — sitting up on a raised floor under bright fluorescent lights.
The language we used was an early version of Fortran. You had to type programs on punch cards, then stack them in the card reader and press a
wey-gu / KnowledgeGraphIndex_vs_VectorStoreIndex_vs_CustomIndex_combined.ipynb
Last active March 10, 2024 17:37
Example to load docs from a new page in Wikipedia: created after the 2021 Sept, where 1. how to best leverage kg + vector store backed custom index was demonstrated, 2. the extra cost, performance was evaluated. For review of
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
wey-gu / .py
Created March 23, 2023 06:32
# nebulagraph --> networkX
## 从 NebulaGraph 中获得一张图,存储为 pd dataframe
from import ConnectionPool
from nebula3.Config import Config
import pandas as pd
from typing import Dict
from import ResultSet
wey-gu /
Last active December 31, 2023 08:41
Counter-Strike 1.6 with Bots on ChromeOS


For newer devices, install the ChromeOS Steam (Beta), for Intel gen-7 i5 like me, install the steam for Linux version directly, and it worked like a charm!

CS 1.6

Just go to lib of Steam and Install


wey-gu /
Created December 26, 2023 12:59
NeoVim Clipboard configuration for ChromeOS terminal
sudo mv clipboard-provider /usr/bin/
sudo chmod +x /usr/bin/clipboard-provider
-- Check if clipboard-provider is executable
if vim.fn.executable('clipboard-provider') then
wey-gu /
Last active November 13, 2023 11:14
NebulaGraph v1 scan data after schema alter

Quickly setup env

git clone --branch v1.0
cd nebula-docker-compose
docker-compose up -d

docker run --rm -ti --network=host vesoft/nebula-console:v1.2.1 -u root -p nebula --addr= --port=3699
wey-gu /
Last active April 4, 2023 06:54
Extract Data from wikipedia for World Cup 2022 Dataset
wey-gu /
Last active February 22, 2023 07:39
Run ControlNet Video on colab notebook