Skip to content

Instantly share code, notes, and snippets.

View fakeyanss's full-sized avatar
🤪
Focusing

fakeyanss

🤪
Focusing
View GitHub Profile
@fakeyanss
fakeyanss / actionlist.vim
Created February 26, 2024 12:35 — forked from zchee/actionlist.vim
IdeaVim actionlist
--- Actions ---
$Copy <M-C>
$Cut <M-X> <S-Del>
$Delete <Del> <BS> <M-BS>
$LRU
$Paste <M-V>
$Redo <M-S-Z> <A-S-BS>
$SearchWeb <A-S-G>
$SelectAll <M-A>
$Undo <M-Z>
@fakeyanss
fakeyanss / README.md
Created December 6, 2022 09:10 — forked from chuyik/README.md
macOS 给 Git(Github) 设置代理(HTTP/SSH)
@fakeyanss
fakeyanss / zhihu_novels_spider.py
Created September 29, 2019 15:21
统计知乎问题:有哪些可称为「神作」的网络小说?所有答案推荐的书名出现次数,https://www.zhihu.com/question/37985771
import csv
import os
import re
from functools import reduce
import requests
# 知乎有反爬虫,加入http headers伪装浏览器
headers = {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36",
@fakeyanss
fakeyanss / install-oh-my-zsh.sh
Created May 13, 2019 07:20 — forked from hewerthomn/install-oh-my-zsh.sh
Offline install of oh-my-zsh on Ubuntu
main() {
# Use colors, but only if connected to a terminal, and that terminal
# supports them.
if which tput >/dev/null 2>&1; then
ncolors=$(tput colors)
fi
if [ -t 1 ] && [ -n "$ncolors" ] && [ "$ncolors" -ge 8 ]; then
RED="$(tput setaf 1)"
GREEN="$(tput setaf 2)"
YELLOW="$(tput setaf 3)"