Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chubin/cheat.sh
/ functions
Functions
281 in github.com/chubin/cheat.sh
⨍
Functions
281
◇
Types & classes
83
↳
Endpoints
4
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
Function
adapter_by_name
Return adapter having this name, or None if nothing found
lib/adapter/adapter.py:343
Function
answer
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
Method
calculate_bg
(i, j)
lib/panela/panela_colors.py:432
Method
calculate_color
(i, j)
lib/panela/panela_colors.py:414
Function
code_blocks
Split `text` into blocks of text and code. Return list of tuples TYPE, TEXT
lib/fmt/comments.py:277
Function
colorize_internal_firstpage_v1
Colorize "/:firstpage-v1". Legacy.
lib/fmt/internal.py:97
Method
current_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
Method
cut
lib/panela/panela_colors.py:140
Function
delete
Remove `key` from the database
lib/cache.py:67
Method
empty_line
(line)
lib/panela/panela_colors.py:266
Method
fetch_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
Method
filter
(self, record)
bin/app.py:66
Function
find_nearest_color
(hex_color)
lib/panela/colors.py:16
Function
format_text
Renders `text` according to markdown rules. Uses `highlighter` for syntax highlighting. Returns a dictionary with "output" and "links".
lib/fmt/markdown.py:15
Function
get
Read `value` by `key`, and deserialize it if needed
lib/cache.py:49
Method
get_answers
Find cheat sheets for the topic. Args: `topic` (str): the name of the topic of the cheat sheet Returns:
lib/routing.py:168
Function
get_lexer_name
Rewrite `section_name` for the further lexer search (for syntax highlighting)
lib/languages_data.py:262
Method
get_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
Method
get_list
(prefix=None)
lib/adapter/internal.py:118
Method
get_list
(prefix=None)
lib/adapter/internal.py:159
Method
get_list
(self, prefix=None)
lib/adapter/rosetta.py:147
Method
get_list
(self, prefix=None)
lib/adapter/question.py:130
Method
get_state
Return the saved `state` of the repository. If state cannot be read, return None
lib/adapter/adapter.py:286
Method
get_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
Method
get_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
Method
is_found
check if `topic` is available CAUTION: only root is checked
lib/adapter/adapter.py:82
Method
is_found
(self, topic)
lib/adapter/internal.py:108
Method
is_found
(topic)
lib/adapter/internal.py:122
Method
is_found
(self, topic)
lib/adapter/internal.py:162
Method
is_found
(self, topic)
lib/adapter/cmd.py:117
Method
is_found
(self, topic)
lib/adapter/cmd.py:158
Method
is_found
(self, topic)
lib/adapter/cmd.py:184
Method
is_found
Return whether `topic` is a valid learnxiny topic
lib/adapter/learnxiny.py:51
Method
is_found
(self, topic)
lib/adapter/cheat_sheets.py:136
Method
is_found
(self, _)
lib/adapter/rosetta.py:153
Method
is_found
(self, topic)
lib/adapter/question.py:133
Method
k
(x)
lib/panela/panela_colors.py:507
Method
left_spaces
(line)
lib/panela/panela_colors.py:254
Function
main
()
share/scripts/cacheCleanup.go:47
Method
paint
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
Method
paste
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
Function
postprocess
(answer, keyword, options, request_options=None)
lib/postprocessing.py:5
Function
put
Save `value` with `key`, and serialize it if needed
lib/cache.py:34
Method
put_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
Method
put_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
Method
put_rectangle
Draw rectangle (x1,y1), (x2,y2) using <char> character, <color> and <background> color
lib/panela/panela_colors.py:471
Method
put_string
Put string <s> with foreground color <color> and background color <background> ad <col>, <row>
lib/panela/panela_colors.py:311
Method
reset
Reset all counters for all IPs
lib/limits.py:93
Method
right_spaces
(line)
lib/panela/panela_colors.py:263
Method
save_state
Save state `state` of the repository. Must be called after the cache clean up.
lib/adapter/git_adapter.py:136
Function
send_favicon
Return static file `favicon.ico`. Can be served by the HTTP frontend.
bin/app.py:117
Function
send_malformed
Return static file `malformed-response.html`. Can be served by the HTTP frontend.
bin/app.py:126
Function
send_static
Return static file `path`. Can be served by the HTTP frontend.
bin/app.py:108
Function
test_header_split
()
lib/cheat_wrapper_test.py:34
Method
update_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
Function
visualize
Renders `answer_data` as ANSI output.
lib/frontend/ansi.py:44
Function
visualize
(answer_data, request_options)
lib/frontend/html.py:37
← previous
201–281 of 281, ranked by callers