1
0
mirror of https://github.com/chubin/cheat.sh.git synced 2026-06-20 05:06:44 +02:00

Fix typos

Found via `codespell -S tests -L alltime,tread`
This commit is contained in:
Kian-Meng Ang
2023-03-12 14:10:02 +08:00
parent 571377f2f7
commit 9e1cab3807
6 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -360,7 +360,7 @@ let g:syntastic_shell_checkers = ['shellcheck']
scrooloose / syntastic 構文チェックプラグイン
cheat.sh-vim Vimのサポート
Syntasticは警告とエラー(code analysysツールで見つかった: jshint 、 jshint 、 pylint 、 shellcheckt etc.), and cheat.sh-vim`を表示すると、エディタに書き込まれたプログラミング言語のクエリに関するエラーと警告と回答の説明が表示されます。
Syntasticは警告とエラー(code analysisツールで見つかった: jshint 、 jshint 、 pylint 、 shellcheckt etc.), and cheat.sh-vim`を表示すると、エディタに書き込まれたプログラミング言語のクエリに関するエラーと警告と回答の説明が表示されます。
cheat.sh Vimプラグインの最も重要な機能が表示されているデモをご覧ください(5分):
+2 -2
View File
@@ -306,7 +306,7 @@ class Panela:
def put_line(self, x1, y1, x2, y2, char=None, color=None, background=None):
"""
Draw line (x1, y1) - (x2, y2) fith foreground color <color>, background color <background>
Draw line (x1, y1) - (x2, y2) fill foreground color <color>, background color <background>
and character <char>, if specified.
"""
@@ -394,7 +394,7 @@ class Panela:
def paint(self, x1, y1, x2, y2, c1, c2=None, bg1=None, bg2=None, angle=None, angle_bg=None):
"""
Paint rectangle (x1,y1) (x2,y2) with foreground color c1 and background bg1 if specified.
If spefied colors c2/bg2, rectangle is painted with linear gradient (inclined under angle).
If specified colors c2/bg2, rectangle is painted with linear gradient (inclined under angle).
"""
def calculate_color(i, j):
+1 -1
View File
@@ -160,7 +160,7 @@ class Router(object):
wrongly_formatted_random = topic[:-8]
return wrongly_formatted_random
#Here if not a random requst, we just forward the topic
#Here if not a random request, we just forward the topic
return topic
def get_answers(self, topic: str, request_options:Dict[str, str] = None) -> List[Dict[str, Any]]:
+1 -1
View File
@@ -61,7 +61,7 @@ oeis() (
# Print Description (%N)
grep '%N' $DOC | sed "s/^.*${ID} //"
printf '\n'
# Print Sequence (Three sections %S %T nd %U)
# Print Sequence (Three sections %S %T and %U)
grep '%S' $DOC | sed "s/^.*${ID} //" | tr -d '\n' > $TMP/seq
grep '%T' $DOC | sed "s/^.*${ID} //" | tr -d '\n' >> $TMP/seq
grep '%U' $DOC | sed "s/^.*${ID} //" | tr -d '\n' >> $TMP/seq
+2 -2
View File
@@ -114,7 +114,7 @@ You can switch the mode with the --mode switch:
cht.sh --mode lite # use https://cheat.sh/ only
cht.sh --mode auto # use local installation
For intallation and standalone usage, you need \`git\`, \`python\`,
For installation and standalone usage, you need \`git\`, \`python\`,
and \`virtualenv\` to be installed locally.
EOF
return
@@ -731,7 +731,7 @@ cmd_update() {
curl -s "${CHTSH_URL}"/:cht.sh > "$TMP2"
if ! cmp "$0" "$TMP2" > /dev/null 2>&1; then
if grep -q ^__CHTSH_VERSION= "$TMP2"; then
# section was vaildated by us already
# section was validated by us already
args=(--shell "$section")
cp "$TMP2" "$0" && echo "Updated. Restarting..." && rm "$TMP2" && CHEATSH_RESTART=1 exec "$0" "${args[@]}"
else
+3 -3
View File
@@ -36,8 +36,8 @@ search term will be displayed:
{1curl cht.sh/tar}{2~extract}
If the name of the cheat sheet is omitted, and only the serch query is specified,
all cheat sheets in the namespace are scanned, and the found occurrencies
If the name of the cheat sheet is omitted, and only the search query is specified,
all cheat sheets in the namespace are scanned, and the found occurrences
are displayed:
{1curl cht.sh/}{2~extract}
@@ -147,7 +147,7 @@ Text in the answers is syntactically formatted as comment in the correspondent
programming language
When using cht.sh, you can copy the result of the last query into the selection
buffer (you may also call it "clibpoard") using {2C} (or {2c}, with text):
buffer (you may also call it "clipboard") using {2C} (or {2c}, with text):
{1cht.sh/python> reverse list}
{4...}