Skip to content

Instantly share code, notes, and snippets.

View marcmantei's full-sized avatar

Marc Mantei marcmantei

View GitHub Profile
@gto76
gto76 / python-cheathseet-by-gpt.md
Last active July 24, 2023 12:53
Comprehensive Python Cheatsheet up to Datetime, generated by ChatGPT after it was provided with the Dictionary section and grilled about the formatting for some time.

Comprehensive Python Cheatsheet

This version of the Comprehensive Python Cheatsheet was generated by ChatGPT after it was provided with the Dictionary section of the original and grilled about the formatting of the generated String and Set sections with approximately 10 queries. The rest were generated using the '<title>?' query.

List

<list> = []                                   # Creates an empty list.
<list> = [<el>, ...]                          # Creates a list with elements.
<el> = <list>[<index>]                        # Accesses the element at index. Raises IndexError if out of bounds.
<list>[<index>] = <el>                        # Assigns element at index. Raises IndexError if out of bounds.
@vshotarov
vshotarov / shelfBase.py
Last active February 23, 2023 23:49
Maya base class for building custom shelves.
import maya.cmds as mc
def _null(*args):
pass
class _shelf():
'''A simple class to build shelves in maya. Since the build method is empty,
it should be extended by the derived class to build the necessary shelf elements.