mirror of
https://github.com/chubin/cheat.sh.git
synced 2024-12-17 21:31:48 +03:00
Correct spelling mistake.
This commit is contained in:
parent
453753497e
commit
3ce21e7d6b
@ -162,7 +162,7 @@ Read more about the programming languages queries below.
|
|||||||
## Command line client, cht.sh
|
## Command line client, cht.sh
|
||||||
|
|
||||||
The cheat.sh service has its own command line client (`cht.sh`), that,
|
The cheat.sh service has its own command line client (`cht.sh`), that,
|
||||||
comparing to quering the service directly with `curl`,
|
comparing to querying the service directly with `curl`,
|
||||||
has several useful features:
|
has several useful features:
|
||||||
|
|
||||||
* Special shell mode with a persistent queries context and readline support;
|
* Special shell mode with a persistent queries context and readline support;
|
||||||
@ -654,7 +654,7 @@ of the repository, whom belongs the current cheat sheet.
|
|||||||
You can edit the cheat sheet directly in your browser (you need a github account for it).
|
You can edit the cheat sheet directly in your browser (you need a github account for it).
|
||||||
There is a edit button in the top right corner. If you click on it, an editor will be open.
|
There is a edit button in the top right corner. If you click on it, an editor will be open.
|
||||||
There you will change the cheat sheet (under the hood: the upstrem repository is forked, your changes are
|
There you will change the cheat sheet (under the hood: the upstrem repository is forked, your changes are
|
||||||
commited in the forked repository, a pull request to the upstream repository owner is sent).
|
committed in the forked repository, a pull request to the upstream repository owner is sent).
|
||||||
|
|
||||||
![cheat.sh cheat sheets repositories](http://cheat.sh/files/edit-cheat-sheet.png)
|
![cheat.sh cheat sheets repositories](http://cheat.sh/files/edit-cheat-sheet.png)
|
||||||
|
|
||||||
|
@ -148,7 +148,7 @@ def _classify_lines(lines):
|
|||||||
|
|
||||||
def _wrap_lines(lines_classes, unindent_code=False):
|
def _wrap_lines(lines_classes, unindent_code=False):
|
||||||
"""
|
"""
|
||||||
Wrap classified lines. Add the splitted lines to the stream.
|
Wrap classified lines. Add the split lines to the stream.
|
||||||
If `unindent_code` is True, remove leading four spaces.
|
If `unindent_code` is True, remove leading four spaces.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -179,7 +179,7 @@ def _render_html(query, result, editable, repository_button, request_options):
|
|||||||
|
|
||||||
edit_button = ''
|
edit_button = ''
|
||||||
if editable:
|
if editable:
|
||||||
# It's possible that topic directory starts with omited underscore
|
# It's possible that topic directory starts with omitted underscore
|
||||||
if '/' in query:
|
if '/' in query:
|
||||||
query = '_' + query
|
query = '_' + query
|
||||||
edit_page_link = 'https://github.com/chubin/cheat.sheets/edit/master/sheets/' + query
|
edit_page_link = 'https://github.com/chubin/cheat.sheets/edit/master/sheets/' + query
|
||||||
@ -268,7 +268,7 @@ def _visualize(query, keyword, answers, request_options, html=None): # pylint: d
|
|||||||
def cheat_wrapper(query, request_options=None, html=False):
|
def cheat_wrapper(query, request_options=None, html=False):
|
||||||
"""
|
"""
|
||||||
Giant megafunction that delivers cheat sheet for `query`.
|
Giant megafunction that delivers cheat sheet for `query`.
|
||||||
If `html` is True, the answer is formated as HTML.
|
If `html` is True, the answer is formatted as HTML.
|
||||||
Additional request options specified in `request_options`.
|
Additional request options specified in `request_options`.
|
||||||
|
|
||||||
This function is really really bad, and should be rewritten
|
This function is really really bad, and should be rewritten
|
||||||
|
@ -245,7 +245,7 @@ def _get_cheat(topic):
|
|||||||
def _get_cheat_sheets(topic):
|
def _get_cheat_sheets(topic):
|
||||||
"""
|
"""
|
||||||
Get the cheat sheet topic from the own repository (cheat.sheets).
|
Get the cheat sheet topic from the own repository (cheat.sheets).
|
||||||
It's possible that topic directory starts with omited underscore
|
It's possible that topic directory starts with omitted underscore
|
||||||
"""
|
"""
|
||||||
filename = PATH_CHEAT_SHEETS + "%s" % topic
|
filename = PATH_CHEAT_SHEETS + "%s" % topic
|
||||||
if not os.path.exists(filename):
|
if not os.path.exists(filename):
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
"""
|
"""
|
||||||
Global configuration of the project.
|
Global configuration of the project.
|
||||||
All hardcoded pathes should be (theoretically) here.
|
All hardcoded paths should be (theoretically) here.
|
||||||
"""
|
"""
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ import itertools
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
After panela will be ready for it, it will be splitted out in a separate project,
|
After panela will be ready for it, it will be split out in a separate project,
|
||||||
that will be used for all chubin's console services.
|
that will be used for all chubin's console services.
|
||||||
There are several features that not yet implemented (see ___doc___ in Panela)
|
There are several features that not yet implemented (see ___doc___ in Panela)
|
||||||
|
|
||||||
@ -206,7 +206,7 @@ class Panela:
|
|||||||
"""
|
"""
|
||||||
Paste <panela> starting at <x1>, <y1>.
|
Paste <panela> starting at <x1>, <y1>.
|
||||||
If <extend> is True current panela space will be automatically extended
|
If <extend> is True current panela space will be automatically extended
|
||||||
If <transparence> is True, then <panela> is overlayed and characters behind them are seen
|
If <transparence> is True, then <panela> is overlaid and characters behind them are seen
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# FIXME:
|
# FIXME:
|
||||||
@ -278,7 +278,7 @@ class Panela:
|
|||||||
|
|
||||||
def put_point(self, col, row, char=None, color=None, background=None):
|
def put_point(self, col, row, char=None, color=None, background=None):
|
||||||
"""
|
"""
|
||||||
Puts charachter with color and background color on the field.
|
Puts character with color and background color on the field.
|
||||||
Char can be a Point or a character.
|
Char can be a Point or a character.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@ -305,7 +305,7 @@ class Panela:
|
|||||||
def put_line(self, x1, y1, x2, y2, char=None, color=None, background=None):
|
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) fith foreground color <color>, background color <background>
|
||||||
and charachter <char>, if specified.
|
and character <char>, if specified.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def get_line(start, end):
|
def get_line(start, end):
|
||||||
|
@ -453,7 +453,7 @@ function encode(string,start,end,i,ret,pos,sc,buf) {
|
|||||||
}
|
}
|
||||||
if(dumpStatus==dsNew) {
|
if(dumpStatus==dsNew) {
|
||||||
# After moving/clearing we are now ready to write
|
# After moving/clearing we are now ready to write
|
||||||
# somthing to the screen so start recording now
|
# something to the screen so start recording now
|
||||||
ret=ret"\n"
|
ret=ret"\n"
|
||||||
dumpStatus=dsActive
|
dumpStatus=dsActive
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user