This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| two tasks: | |
| 1. install skill: `npx skills add https://github.com/andrewyng/context-hub --skill get-api-docs -a opencode -g -y` | |
| 2. install chub: `npm install -g @aisuite/chub` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| from lxml import etree | |
| import geoip2.database | |
| import requests | |
| GEOIP = { | |
| 'country': geoip2.database.Reader('GeoLite2-Country.mmdb'), | |
| 'city': geoip2.database.Reader('GeoLite2-City.mmdb'), | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from __future__ import unicode_literals | |
| def test2(): | |
| assert '100分' == EMOJI_RE.sub('', '💯100分') | |
| def test_full(): | |
| assert '' == EMOJI_RE.sub('', '😀') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ZSH_THEME_GIT_PROMPT_PREFIX="(" | |
| ZSH_THEME_GIT_PROMPT_SUFFIX=")" | |
| ZSH_THEME_GIT_PROMPT_DIRTY=" ✗" | |
| ZSH_THEME_GIT_PROMPT_CLEAN=" ✔" | |
| PROMPT='%m %{$FG[010]%}%~%{$FG[208]%} $(git_prompt_info)%{$reset_color%] ' | |
| RPROMPT=" %{$fg[green]%}%(1j.%j.)%{$reset_color%}" |