MCPcopy Create free account

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

Functions281 in github.com/chubin/cheat.sh

↓ 39 callersMethodstrip
Strip panela: remove empty spaces around panels rectangle
lib/panela/panela_colors.py:249
↓ 25 callersMethodlocal_repository_location
Return local repository location. If name `self._repository_url` for the class is not specified, return None It is possible t
lib/adapter/adapter.py:162
↓ 23 callersMethodput_point
Puts character with color and background color on the field. Char can be a Point or a character.
lib/panela/panela_colors.py:291
↓ 14 callersMethodread
Read template from `filename`
lib/panela/panela_colors.py:643
↓ 9 callersMethodupdate
the built-in __init__ doesn't call update, and the built-in update doesn't call __setitem__, so `update` should be overridden
lib/config.py:177
↓ 8 callersFunctionrgb_from_str
(s)
lib/panela/colors.py:10
↓ 6 callersFunction_log
(*message)
lib/fetch.py:28
↓ 5 callersMethodget_topics_list
List of topics returned on /:list
lib/routing.py:63
↓ 4 callersMethod_rosetta_get_list
(self, query, task=None)
lib/adapter/rosetta.py:54
↓ 3 callersFunction_add_section_name
(query)
lib/cheat_wrapper.py:23
↓ 3 callersMethod_format_page
Trivial tldr Markdown implementation. * Header goes until the first empty line after > prefixed lines. * code surrounded wit
lib/adapter/tldr.py:31
↓ 3 callersMethod_get_limit
(self, interval)
lib/limits.py:67
↓ 3 callersFunction_run_cmd
(cmd)
lib/fetch.py:38
↓ 3 callersFunction_time_caps
(minutes, hours, days)
lib/limits.py:25
↓ 3 callersFunctionfatal
Fatal error function. The function is being used in the standalone mode only
lib/globals.py:13
↓ 3 callersFunctionrun
(args)
bin/release.py:17
↓ 2 callersFunction_all_subclasses
(cls)
lib/adapter/adapter.py:333
↓ 2 callersFunction_classify_lines
(lines)
lib/fmt/comments.py:115
↓ 2 callersFunction_cleanup_lines
Cleanup `lines` a little bit: remove empty lines at the beginning and at the end; remove too many empty lines in between.
lib/fmt/comments.py:63
↓ 2 callersMethod_clear_counters_if_needed
(self)
lib/limits.py:100
↓ 2 callersMethod_cut_block
(self, block, start_block=False)
lib/adapter/learnxiny.py:109
↓ 2 callersFunction_get_abspath
Find absolute path of the specified `path` according to its
lib/adapter/cmd.py:12
↓ 2 callersMethod_get_list
(self, prefix=None)
lib/adapter/adapter.py:68
↓ 2 callersMethod_get_page_dict
Return answer_dict for the `query`.
lib/routing.py:113
↓ 2 callersFunction_is_html_needed
Basing on `user_agent`, return whether it needs HTML or ANSI
bin/app.py:96
↓ 2 callersFunction_load_config_from_file
(default_config, filename)
lib/config.py:246
↓ 2 callersFunction_parse_options
Parse search options string into optiond_dict
lib/search.py:37
↓ 2 callersFunction_sanitize_dirnames
Remove (or add) leading _ in the directories names in `filename` The `restore` param means that the path name should be restored from the que
lib/adapter/cheat_sheets.py:21
↓ 2 callersFunction_show_usage
()
lib/fetch.py:214
↓ 2 callersFunction_wrap_lines
Wrap classified lines. Add the split lines to the stream. If `unindent_code` is True, remove leading four spaces.
lib/fmt/comments.py:164
↓ 2 callersFunctioncolor_mapping
(clr)
lib/panela/panela_colors.py:33
↓ 2 callersMethodcopy
(self, x1, y1, x2, y2)
lib/panela/panela_colors.py:119
↓ 2 callersMethodget_list
Get list of topics for `prefix`
lib/adapter/learnxiny.py:181
↓ 2 callersMethodget_topic_type
Return list of topic types for `topic` or ["unknown"] if topic can't be determined.
lib/routing.py:86
↓ 2 callersMethodname
Return name of the adapter
lib/adapter/adapter.py:61
↓ 2 callersMethodrepository_url
Return URL of the upstream repository
lib/adapter/adapter.py:212
↓ 2 callersFunctionrewrite_editor_section_name
section name cen be specified in form "editor:editor-filetype" and it will be rewritten into form "filetype" basing on the editor filetyp
lib/languages_data.py:227
↓ 1 callersFunction__main__
()
lib/fmt/comments.py:336
↓ 1 callersMethod_absolute_path
(self, val)
lib/config.py:163
↓ 1 callersFunction_answer_add_comments
(answer, request_options=None)
lib/postprocessing.py:13
↓ 1 callersFunction_answer_filter_by_keyword
(answer, keyword, options, request_options=None)
lib/postprocessing.py:36
↓ 1 callersFunction_are_you_offline
()
lib/adapter/upstream.py:19
↓ 1 callersFunction_back_color
(code)
lib/fmt/internal.py:34
↓ 1 callersFunction_beautify
Main function that actually does the whole beautification job.
lib/fmt/comments.py:247
↓ 1 callersFunction_colorize
(text)
lib/fmt/markdown.py:28
↓ 1 callersFunction_colorize_ansi_answer
( topic, answer, color_style, # pylint: disable=too-many-arguments highlight_all=True, hi
lib/frontend/ansi.py:76
↓ 1 callersFunction_colorize_line
(line)
lib/fmt/internal.py:103
↓ 1 callersFunction_commenting_script
(lines_blocks, filetype)
lib/fmt/comments.py:217
↓ 1 callersFunction_config_locations
Return three possible config locations where configuration can be found: * `_WORKDIR`, `_CONF_FILE_WORKDIR`, `_CONF_FILE_MYDIR`
lib/config.py:57
↓ 1 callersMethod_extract_blocks
(self)
lib/adapter/learnxiny.py:142
↓ 1 callersFunction_extract_color_number
(text, stripped, factor=1)
lib/fmt/internal.py:62
↓ 1 callersFunction_fetch_locations
(known_location)
lib/fetch.py:52
↓ 1 callersFunction_filter_by_keyword
(answer, keyword, options)
lib/postprocessing.py:41
↓ 1 callersFunction_find_supported_language
(accepted_languages)
bin/app.py:189
↓ 1 callersFunction_format_section
(section_text, config=None, highlighter=None)
lib/fmt/markdown.py:45
↓ 1 callersMethod_get_command
(self, topic, request_options=None)
lib/adapter/cmd.py:30
↓ 1 callersFunction_get_filenames
(path)
lib/adapter/git_adapter.py:11
↓ 1 callersMethod_get_filetype
Return language name (filetype) for `topic`
lib/adapter/adapter.py:125
↓ 1 callersMethod_get_list_answer
(self, topic, request_options=None)
lib/adapter/internal.py:73
↓ 1 callersFunction_get_nested
Return value for a hierrachical key (like a.b.c). Return None if nothing found. If there is a key with . in the name, and a subdictionary
lib/config.py:215
↓ 1 callersMethod_get_output_format
(self, topic)
lib/adapter/adapter.py:113
↓ 1 callersMethod_get_page
Return page for `topic`
lib/adapter/adapter.py:107
↓ 1 callersMethod_get_stat
(self)
lib/adapter/internal.py:59
↓ 1 callersMethod_get_task
(self, lang, query)
lib/adapter/rosetta.py:83
↓ 1 callersFunction_github_button
(topic_type)
lib/frontend/html.py:56
↓ 1 callersFunction_html_wrapper
Convert ANSI text `data` to HTML
lib/frontend/html.py:81
↓ 1 callersMethod_is_block_separator
(self, before, now, after)
lib/adapter/learnxiny.py:93
↓ 1 callersFunction_join_paragraphs
(paragraphs)
lib/postprocessing.py:43
↓ 1 callersFunction_language_name
(name)
lib/fmt/comments.py:43
↓ 1 callersMethod_limit_exceeded
(self, interval, ip_address)
lib/limits.py:62
↓ 1 callersFunction_limited_answer
(answer)
lib/frontend/ansi.py:64
↓ 1 callersFunction_limited_entry
()
lib/search.py:28
↓ 1 callersFunction_line_type
Classify each line and say which of them are text (0) and which of them are code (1). A line is considered to be code, if it starts
lib/fmt/comments.py:85
↓ 1 callersFunction_load_config_from_environ
(config)
lib/config.py:192
↓ 1 callersMethod_load_rosetta_code_names
()
lib/adapter/rosetta.py:36
↓ 1 callersMethod_log_visit
(self, interval, ip_address)
lib/limits.py:57
↓ 1 callersFunction_parse_accept_language
(accept_language)
bin/app.py:171
↓ 1 callersFunction_parse_query
(query)
lib/cheat_wrapper.py:71
↓ 1 callersMethod_parse_query
(query)
lib/adapter/rosetta.py:76
↓ 1 callersMethod_process_line
(self, line)
lib/panela/panela_colors.py:637
↓ 1 callersFunction_process_text
(text)
lib/fmt/internal.py:53
↓ 1 callersFunction_proxy
(*args, **kwargs)
bin/app.py:212
↓ 1 callersMethod_read_cheatsheet
(self)
lib/adapter/learnxiny.py:120
↓ 1 callersFunction_remove_empty_lines_from_beginning
(lines)
lib/fmt/comments.py:47
↓ 1 callersFunction_remove_empty_lines_from_end
(lines)
lib/fmt/comments.py:55
↓ 1 callersFunction_remove_initial_underscore
(filename)
lib/adapter/cheat_sheets.py:15
↓ 1 callersFunction_render_html
( query, result, editable, repository_button, topics_list, request_options )
lib/frontend/html.py:77
↓ 1 callersMethod_report_excessive_visits
(self, interval, ip_address)
lib/limits.py:70
↓ 1 callersFunction_reverse_palette
(code)
lib/fmt/internal.py:30
↓ 1 callersFunction_rewrite_aliases
(word)
lib/cheat_wrapper.py:43
↓ 1 callersFunction_rewrite_section_name
Rewriting special section names: * EDITOR:NAME => emacs:go-mode
lib/cheat_wrapper.py:48
↓ 1 callersFunction_run_vim_script
Apply `script_lines` to `lines_classes` and returns the result
lib/fmt/comments.py:185
↓ 1 callersFunction_sanitize_query
(query)
lib/cheat_wrapper.py:65
↓ 1 callersFunction_save_cheatsheet
Save posted cheat sheet `cheatsheet` with `topic_name` in the spool directory
lib/post.py:16
↓ 1 callersFunction_split_into_paragraphs
(text)
lib/fmt/markdown.py:24
↓ 1 callersFunction_split_paragraphs
(text)
lib/postprocessing.py:47
↓ 1 callersMethod_starting_page
(self, query)
lib/adapter/rosetta.py:122
↓ 1 callersFunction_unindent_code
(line, shift=0)
lib/fmt/comments.py:154
↓ 1 callersFunction_update_adapter
Update implementation. If `adptr` returns no update_command(), it is being ignored.
lib/fetch.py:121
↓ 1 callersFunction_visualize
(answers, request_options, search_mode=False)
lib/frontend/ansi.py:126
next →1–100 of 281, ranked by callers