MCPcopy Create free account

hub / github.com/chubin/cheat.sh / functions

Functions281 in github.com/chubin/cheat.sh

Method_get_page
Return cheat sheet for `topic` or empty string if nothing found
lib/adapter/learnxiny.py:32
Method_get_page
(self, topic, request_options=None)
lib/adapter/latenz.py:25
Method_get_page
(self, topic, request_options=None)
lib/adapter/cheat_sheets.py:75
Method_get_page
Content of the `topic` dir is the list of the pages in the dir
lib/adapter/cheat_sheets.py:121
Method_get_page
Go through pages/{common,linux,osx,sunos,windows}/ and as soon as anything is found, format and return it.
lib/adapter/tldr.py:70
Method_get_page
(self, topic, request_options=None)
lib/adapter/git_adapter.py:43
Method_get_page
(self, topic, request_options=None)
lib/adapter/rosetta.py:127
Method_get_page
Find answer for the `topic` question.
lib/adapter/question.py:57
Method_is_block_separator
(self, before, now, after)
lib/adapter/learnxiny.py:275
Method_is_block_separator
(self, before, now, after)
lib/adapter/learnxiny.py:318
Method_is_block_separator
(self, before, now, after)
lib/adapter/learnxiny.py:413
Method_is_block_separator
(self, before, now, after)
lib/adapter/learnxiny.py:450
Method_is_block_separator
(self, before, now, after)
lib/adapter/learnxiny.py:485
Method_is_block_separator
(self, before, now, after)
lib/adapter/learnxiny.py:549
Method_is_block_separator
(self, before, now, after)
lib/adapter/learnxiny.py:581
Method_is_block_separator
(self, before, now, after)
lib/adapter/learnxiny.py:613
Method_is_block_separator
(self, before, now, after)
lib/adapter/learnxiny.py:658
Method_is_block_separator
(self, before, now, after)
lib/adapter/learnxiny.py:713
Method_is_block_separator
(self, before, now, after)
lib/adapter/learnxiny.py:753
Method_is_block_separator
(self, before, now, after)
lib/adapter/learnxiny.py:792
Method_is_block_separator
(self, before, now, after)
lib/adapter/learnxiny.py:831
Method_is_block_separator
(self, before, now, after)
lib/adapter/learnxiny.py:856
Method_is_block_separator
(self, before, now, after)
lib/adapter/learnxiny.py:914
Function_strip_hyperlink
(query)
lib/cheat_wrapper.py:68
Functionadapter_by_name
Return adapter having this name, or None if nothing found
lib/adapter/adapter.py:343
Functionanswer
Main rendering function, it processes incoming weather queries. Depending on user agent it returns output in HTML or ANSI format. Incomi
bin/app.py:256
Methodcalculate_bg
(i, j)
lib/panela/panela_colors.py:432
Methodcalculate_color
(i, j)
lib/panela/panela_colors.py:414
Functioncode_blocks
Split `text` into blocks of text and code. Return list of tuples TYPE, TEXT
lib/fmt/comments.py:277
Functioncolorize_internal_firstpage_v1
Colorize "/:firstpage-v1". Legacy.
lib/fmt/internal.py:97
Methodcurrent_state_command
Get current state of repository (current revision). This is used to find what cache entries should be invalidated.
lib/adapter/git_adapter.py:113
Methodcut
lib/panela/panela_colors.py:140
Functiondelete
Remove `key` from the database
lib/cache.py:67
Methodempty_line
(line)
lib/panela/panela_colors.py:266
Methodfetch_command
Initial fetch of the repository. Return cmdline that has to be executed to fetch the repository. Skipping if `self._repositor
lib/adapter/git_adapter.py:65
Methodfilter
(self, record)
bin/app.py:66
Functionfind_nearest_color
(hex_color)
lib/panela/colors.py:16
Functionformat_text
Renders `text` according to markdown rules. Uses `highlighter` for syntax highlighting. Returns a dictionary with "output" and "links".
lib/fmt/markdown.py:15
Functionget
Read `value` by `key`, and deserialize it if needed
lib/cache.py:49
Methodget_answers
Find cheat sheets for the topic. Args: `topic` (str): the name of the topic of the cheat sheet Returns:
lib/routing.py:168
Functionget_lexer_name
Rewrite `section_name` for the further lexer search (for syntax highlighting)
lib/languages_data.py:262
Methodget_line
Bresenham's Line Algorithm Produces a list of tuples from start and end Source: http://www.roguebasin.com/index.php?title=Bre
lib/panela/panela_colors.py:325
Methodget_list
(prefix=None)
lib/adapter/internal.py:118
Methodget_list
(prefix=None)
lib/adapter/internal.py:159
Methodget_list
(self, prefix=None)
lib/adapter/rosetta.py:147
Methodget_list
(self, prefix=None)
lib/adapter/question.py:130
Methodget_state
Return the saved `state` of the repository. If state cannot be read, return None
lib/adapter/adapter.py:286
Methodget_updates_list
Return the pages that have to be invalidated if the files `updates_files_list` were updated in the repository.
lib/adapter/adapter.py:309
Methodget_updates_list_command
Return list of updates since the last update whose id is saved as the repository state. The list is used to invalidate the cache.
lib/adapter/git_adapter.py:160
Methodis_found
check if `topic` is available CAUTION: only root is checked
lib/adapter/adapter.py:82
Methodis_found
(self, topic)
lib/adapter/internal.py:108
Methodis_found
(topic)
lib/adapter/internal.py:122
Methodis_found
(self, topic)
lib/adapter/internal.py:162
Methodis_found
(self, topic)
lib/adapter/cmd.py:117
Methodis_found
(self, topic)
lib/adapter/cmd.py:158
Methodis_found
(self, topic)
lib/adapter/cmd.py:184
Methodis_found
Return whether `topic` is a valid learnxiny topic
lib/adapter/learnxiny.py:51
Methodis_found
(self, topic)
lib/adapter/cheat_sheets.py:136
Methodis_found
(self, _)
lib/adapter/rosetta.py:153
Methodis_found
(self, topic)
lib/adapter/question.py:133
Methodk
(x)
lib/panela/panela_colors.py:507
Methodleft_spaces
(line)
lib/panela/panela_colors.py:254
Functionmain
()
share/scripts/cacheCleanup.go:47
Methodpaint
Paint rectangle (x1,y1) (x2,y2) with foreground color c1 and background bg1 if specified. If specified colors c2/bg2, rectangle is pa
lib/panela/panela_colors.py:406
Methodpaste
Paste <panela> starting at <x1>, <y1>. If <extend> is True current panela space will be automatically extended If <transparen
lib/panela/panela_colors.py:210
Functionpostprocess
(answer, keyword, options, request_options=None)
lib/postprocessing.py:5
Functionput
Save `value` with `key`, and serialize it if needed
lib/cache.py:34
Methodput_circle
Draw cricle with center in (x, y) and radius r (x1,y1), (x2,y2) using <char> character, <color> and <background> color
lib/panela/panela_colors.py:501
Methodput_line
Draw line (x1, y1) - (x2, y2) fill foreground color <color>, background color <background> and character <char>, if specified.
lib/panela/panela_colors.py:319
Methodput_rectangle
Draw rectangle (x1,y1), (x2,y2) using <char> character, <color> and <background> color
lib/panela/panela_colors.py:471
Methodput_string
Put string <s> with foreground color <color> and background color <background> ad <col>, <row>
lib/panela/panela_colors.py:311
Methodreset
Reset all counters for all IPs
lib/limits.py:93
Methodright_spaces
(line)
lib/panela/panela_colors.py:263
Methodsave_state
Save state `state` of the repository. Must be called after the cache clean up.
lib/adapter/git_adapter.py:136
Functionsend_favicon
Return static file `favicon.ico`. Can be served by the HTTP frontend.
bin/app.py:117
Functionsend_malformed
Return static file `malformed-response.html`. Can be served by the HTTP frontend.
bin/app.py:126
Functionsend_static
Return static file `path`. Can be served by the HTTP frontend.
bin/app.py:108
Functiontest_header_split
()
lib/cheat_wrapper_test.py:34
Methodupdate_command
Update of the repository. Return cmdline that has to be executed to update the repository inside `local_repository_location()
lib/adapter/git_adapter.py:89
Functionvisualize
Renders `answer_data` as ANSI output.
lib/frontend/ansi.py:44
Functionvisualize
(answer_data, request_options)
lib/frontend/html.py:37
← previous201–281 of 281, ranked by callers