mirror of
https://github.com/chubin/cheat.sh.git
synced 2026-06-20 13:16:44 +02:00
+1
-1
@@ -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分):
|
||||
|
||||
|
||||
@@ -318,7 +318,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.
|
||||
"""
|
||||
|
||||
@@ -408,7 +408,7 @@ class Panela:
|
||||
):
|
||||
"""
|
||||
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
@@ -162,7 +162,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(
|
||||
|
||||
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user