1
1
mirror of https://github.com/chubin/cheat.sh.git synced 2024-11-23 19:43:33 +03:00

Correct spelling mistake.

This commit is contained in:
Edward Betts 2018-07-11 17:18:20 +01:00
parent 453753497e
commit 3ce21e7d6b
7 changed files with 12 additions and 12 deletions

View File

@ -162,7 +162,7 @@ Read more about the programming languages queries below.
## Command line client, cht.sh
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:
* 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).
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
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)

View File

@ -148,7 +148,7 @@ def _classify_lines(lines):
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.
"""

View File

@ -179,7 +179,7 @@ def _render_html(query, result, editable, repository_button, request_options):
edit_button = ''
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:
query = '_' + 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):
"""
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`.
This function is really really bad, and should be rewritten

View File

@ -245,7 +245,7 @@ def _get_cheat(topic):
def _get_cheat_sheets(topic):
"""
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
if not os.path.exists(filename):

View File

@ -1,6 +1,6 @@
"""
Global configuration of the project.
All hardcoded pathes should be (theoretically) here.
All hardcoded paths should be (theoretically) here.
"""
from __future__ import print_function

View File

@ -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.
There are several features that not yet implemented (see ___doc___ in Panela)
@ -206,7 +206,7 @@ class Panela:
"""
Paste <panela> starting at <x1>, <y1>.
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:
@ -278,7 +278,7 @@ class Panela:
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.
"""
@ -305,7 +305,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>
and charachter <char>, if specified.
and character <char>, if specified.
"""
def get_line(start, end):

View File

@ -453,7 +453,7 @@ function encode(string,start,end,i,ret,pos,sc,buf) {
}
if(dumpStatus==dsNew) {
# 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"
dumpStatus=dsActive
}