Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/btbytes/teh
/ functions
Functions
417 in github.com/btbytes/teh
⨍
Functions
417
◇
Types & classes
55
↓ 1 callers
Method
_ebcdic_to_ascii
(self, s)
lib/BeautifulSoup.py:1855
↓ 1 callers
Method
_encode_backslash_escapes
(self, text)
lib/markdown2.py:1309
↓ 1 callers
Method
_encode_email_address
(self, addr)
lib/markdown2.py:1338
↓ 1 callers
Function
_escape_hash
(s)
lib/markdown2.py:86
↓ 1 callers
Method
_escape_special_chars
(self, text)
lib/markdown2.py:626
↓ 1 callers
Method
_form_paragraphs
(self, text)
lib/markdown2.py:1250
↓ 1 callers
Method
_get_emacs_vars
Return a dictionary of emacs-style local variables. Parsing is done loosely according to this spec (and according to some in-practice
lib/markdown2.py:261
↓ 1 callers
Method
_get_pygments_lexer
(self, lexer_name)
lib/markdown2.py:1062
↓ 1 callers
Method
_hash_html_spans
(self, text)
lib/markdown2.py:650
↓ 1 callers
Function
_hr_tag_re_from_tab_width
(tab_width)
lib/markdown2.py:1578
↓ 1 callers
Function
_html_comment_re_from_tab_width
(tab_width)
lib/markdown2.py:1558
↓ 1 callers
Function
_nonnumber_float_constants
Try to return the Nan, Infinity, and -Infinity float values. This is unnecessarily complex because there is no standard platform- indepen
lib/demjson.py:229
↓ 1 callers
Method
_process_list_items
(self, list_str)
lib/markdown2.py:1031
↓ 1 callers
Function
_regex_from_encoded_pattern
foo' -> re.compile(re.escape('foo')) '/foo/' -> re.compile('foo') '/foo/i' -> re.compile('foo', re.I)
lib/markdown2.py:1418
↓ 1 callers
Method
_set_strictness
Changes the strictness behavior. Pass True to be very strict about JSON syntax, or False to be looser.
lib/demjson.py:910
↓ 1 callers
Method
_smartPop
We need to pop up to the previous tag of this type, unless one of this tag's nesting reset triggers comes between this tag and the pre
lib/BeautifulSoup.py:1198
↓ 1 callers
Method
_strip_footnote_definitions
A footnote definition looks like this: [^note-id]: Text of the note. May include one or more indented paragraphs.
lib/markdown2.py:513
↓ 1 callers
Method
_strip_link_definitions
(self, text)
lib/markdown2.py:470
↓ 1 callers
Method
_subMSChar
Changes a MS smart quote character to an XML or HTML entity.
lib/BeautifulSoup.py:1710
↓ 1 callers
Function
_test
()
lib/markdown2.py:1621
↓ 1 callers
Function
_test
()
lib/utils.py:24
↓ 1 callers
Method
_toUnicode
Given a string and its encoding, decodes the string into Unicode. %encoding is a string recognized by encodings.aliases
lib/BeautifulSoup.py:1749
↓ 1 callers
Method
_unhash_html_spans
(self, text)
lib/markdown2.py:673
↓ 1 callers
Method
_wrap_code
A function for use in a Pygments Formatter which wraps in <code> tags.
lib/markdown2.py:1077
↓ 1 callers
Function
_xml_encode_email_char_at_random
(ch)
lib/markdown2.py:1598
↓ 1 callers
Method
acronym
Process acronyms. Acronyms can have letters in upper and lower caps, or even numbers, provided that the numbers and upper caps are th
lib/textile.py:2096
↓ 1 callers
Method
allow
Allow the specified behavior (turn off a strictness check). The list of all possible behaviors is available in the behaviors property.
lib/demjson.py:934
↓ 1 callers
Function
auto_unicode_decode
Takes a string and tries to convert it to a Unicode string. This will return a Python unicode string type corresponding to the input string (
lib/demjson.py:614
↓ 1 callers
Function
browserDetect
()
static/scripts/dynamic.js:8
↓ 1 callers
Function
checkMechanicalTurk
()
static/scripts/dynamic.js:11
↓ 1 callers
Function
checkPaypal
()
static/scripts/dynamic.js:10
↓ 1 callers
Method
decode_composite
Intermediate-level JSON decoder for composite literal types (array and object). Takes text and a starting index, and returns either a Python
lib/demjson.py:1530
↓ 1 callers
Method
decode_javascript_identifier
Convert a JavaScript identifier into a Python string object. This method can be overriden by a subclass to redefine how JavaScript id
lib/demjson.py:1635
↓ 1 callers
Method
decode_string
Intermediate-level decoder for JSON string literals. Takes a string and a starting index, and returns a Python string (or unicode str
lib/demjson.py:1260
↓ 1 callers
Function
determine_float_precision
Returns a tuple (significant_digits, max_exponent) for the float type.
lib/demjson.py:161
↓ 1 callers
Method
encode_boolean
Encodes the Python boolean into a JSON Boolean literal.
lib/demjson.py:1066
↓ 1 callers
Method
encode_composite
Encodes just dictionaries, lists, or sequences. Basically handles any python type for which iter() can create an iterator object.
lib/demjson.py:1761
↓ 1 callers
Method
encode_default
This method is used to encode objects into JSON which are not straightforward. This method is intended to be overridden by subclasses which w
lib/demjson.py:1884
↓ 1 callers
Method
encode_equivalent
This method is used to encode user-defined class objects. The object being encoded should have a json_equivalent() method defined whi
lib/demjson.py:1858
↓ 1 callers
Method
encode_null
Produces the JSON 'null' keyword.
lib/demjson.py:1049
↓ 1 callers
Method
encode_number
Encodes a Python numeric type into a JSON numeric literal. The special non-numeric values of float('nan'), float('inf') and f
lib/demjson.py:1220
↓ 1 callers
Method
encode_string
Encodes a Python string into a JSON string literal.
lib/demjson.py:1378
↓ 1 callers
Method
encode_undefined
Produces the ECMAScript 'undefined' keyword.
lib/demjson.py:1045
↓ 1 callers
Method
escape
Do nothing. This is used to match escaped text. Nothing to see here! --- h1. Escaping If you don't want Textile pro
lib/textile.py:1971
↓ 1 callers
Function
extend_and_flatten_list_with_sep
( orig_seq, extension_seq, separator='' )
lib/demjson.py:521
↓ 1 callers
Method
findParents
Returns the parents of this Tag that match the given criteria.
lib/BeautifulSoup.py:295
↓ 1 callers
Method
find_codec
(self, charset)
lib/BeautifulSoup.py:1838
↓ 1 callers
Function
fixPosition
(box)
static/scripts/dynamic.js:153
↓ 1 callers
Method
footnotes
Add titles to footnotes references. This function searches for footnotes references like this [1], and adds a title to the link cont
lib/textile.py:2145
↓ 1 callers
Method
glyphs
Glyph formatting. This function replaces quotations marks, dashes and a few other symbol for numerical entities. The em/en dashes use
lib/textile.py:2372
↓ 1 callers
Method
grab_links
Grab link lookups. Check the text for link lookups, store them in a dictionary, and clean them up.
lib/textile.py:803
↓ 1 callers
Function
html_replace
Replacement outside HTML tags. Does a preg_replace only outside HTML tags.
lib/textile.py:479
↓ 1 callers
Function
ifInstructs
()
static/scripts/dynamic.js:7
↓ 1 callers
Method
image
Process each image. This method builds the <img> tag for each image in the text. It's separated from the 'images' method so it can be
lib/textile.py:2679
↓ 1 callers
Method
images
Process images. This function process images tags, with or without links. Images can have vertical and/or horizontal alignment, and c
lib/textile.py:2582
↓ 1 callers
Function
initAutoResize
()
static/scripts/dynamic.js:5
↓ 1 callers
Function
initializeFocus
()
static/scripts/dynamic.js:2
↓ 1 callers
Method
itex
Convert itex to MathML. If the itex2mml binary is set, we use it to convert the itex to MathML. Otherwise, the text is unprocessed an
lib/textile.py:1998
↓ 1 callers
Method
links
Process links. This function is responsible for processing links. It has some nice shortcuts to Google, Amazon and IMDB queries.
lib/textile.py:2701
↓ 1 callers
Function
main
()
webapp.py:47
↓ 1 callers
Function
main
(argv=sys.argv)
lib/markdown2.py:1625
↓ 1 callers
Function
make_entry
docstring for make_entry
shooin.py:24
↓ 1 callers
Function
markdown_path
(path, encoding="utf-8", html4tags=False, tab_width=DEFAULT_TAB_WIDTH, saf
lib/markdown2.py:106
↓ 1 callers
Method
normalize_attrs
(self, attrs)
lib/textile.py:514
↓ 1 callers
Method
ol
Build an ordered list. This function basically just sets the <ol></ol> with the right attributes, and then pass everything inside to
lib/textile.py:1677
↓ 1 callers
Method
output
Return processed HTML as a single string
lib/textile.py:569
↓ 1 callers
Method
preprocess
Pre-processing of the text. Remove whitespace, fix carriage returns.
lib/textile.py:787
↓ 1 callers
Method
prettify
(self, encoding=DEFAULT_OUTPUT_ENCODING)
lib/BeautifulSoup.py:691
↓ 1 callers
Method
prevent
Prevent the specified behavior (turn on a strictness check). The list of all possible behaviors is available in the behaviors property.
lib/demjson.py:948
↓ 1 callers
Method
process
Process the text. Here we actually process the text, splitting the text in blocks and applying the corresponding function to each
lib/textile.py:821
↓ 1 callers
Method
qtags
Quick tags formatting. This function does the inline formatting of text, like bold, italic, strong and also itex code. ---
lib/textile.py:2478
↓ 1 callers
Method
renderContents
Renders the contents of this tag as a string in the given encoding. If encoding is None, returns a Unicode string..
lib/BeautifulSoup.py:694
↓ 1 callers
Method
reset
(self)
lib/markdown2.py:168
↓ 1 callers
Method
reset
(self)
lib/BeautifulSoup.py:1124
↓ 1 callers
Method
reset
(self)
lib/textile.py:604
↓ 1 callers
Function
reversed
(sequence)
lib/markdown2.py:68
↓ 1 callers
Method
sanitize
Fix single tags. Fix tags like <img />, <br /> and <hr />. --- h1. Sanitizing Textile can help you generate valid X
lib/textile.py:866
↓ 1 callers
Method
skip_comment
Skips an ECMAScript comment, either // or /* style. The contents of the comment are returned as a string, as well as the index of the
lib/demjson.py:1463
↓ 1 callers
Method
skipws_any
Skips all whitespace, including comments and unicode whitespace Takes a string and a starting index, and returns the index of the nex
lib/demjson.py:1509
↓ 1 callers
Method
split_text
Process the blocks from the text. Split the blocks according to the signatures, join extended blocks and associate each one of them w
lib/textile.py:892
↓ 1 callers
Method
strip_format_control_chars
Filters out all Unicode format control characters from the string. ECMAScript permits any Unicode "format control characters" to appe
lib/demjson.py:1017
↓ 1 callers
Function
surrogate_pair_as_unicode
Takes a pair of unicode surrogates and returns the equivalent unicode character. The input pair must be a surrogate pair, with c1 in the range
lib/demjson.py:681
↓ 1 callers
Function
to_html
(body,markdown)
blog.py:105
↓ 1 callers
Method
ul
Build an unordered list. This function basically just sets the <ul></ul> with the right attributes, and then pass everything inside t
lib/textile.py:1788
↓ 1 callers
Function
unicode_as_surrogate_pair
Takes a single unicode character and returns a sequence of surrogate pairs. The output of this function is a tuple consisting of one or two unico
lib/demjson.py:698
↓ 1 callers
Method
unknown_starttag
(self, name, attrs, selfClosing=0)
lib/BeautifulSoup.py:1244
↓ 1 callers
Method
url
(self)
blog.py:35
↓ 1 callers
Function
utf32be_decode
Decodes a UTF-32BE byte string into a Unicode string.
lib/demjson.py:599
↓ 1 callers
Function
utf32le_decode
Decodes a UTF-32LE byte string into a Unicode string.
lib/demjson.py:584
Method
__abs__
(self)
lib/demjson.py:302
Method
__abs__
(self)
lib/demjson.py:375
Method
__abs__
(self)
lib/demjson.py:457
Method
__add__
(self,x)
lib/demjson.py:286
Method
__add__
(self,x)
lib/demjson.py:318
Method
__add__
(self,x)
lib/demjson.py:403
Method
__call__
(self, *args)
lib/markdown2.py:1543
Method
__call__
Calling a tag like a function is the same as calling its findAll() method. Eg. tag('a') returns a list of all the A tags found within
lib/BeautifulSoup.py:558
Method
__complex__
(self,*a)
lib/demjson.py:309
Method
__complex__
(self,*a)
lib/demjson.py:394
Method
__complex__
(self,*a)
lib/demjson.py:476
← previous
next →
101–200 of 417, ranked by callers