Skip to content

A personal collection of python related code snippets. Includes a wide variety of useful/useless code samples.

License

Notifications You must be signed in to change notification settings

frissyn/py-snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

py-snippets

A personal collection of python related code snippets. Includes a wide variety of useful/useless code samples. Comes with a simple interactive CLI!

CLI Showcase

Snippet Index

Dynamically interprets the type of given string using eval.

Splits list into sublists with a maximum length of the given size. Return list of sublists.

Decorator that outputs the time elapsed during the given function.

Generator that spilts list into sublists with a maximum length of the given size. Returns next sublist on each iteration.

Prints a string char by char to stdout, pausing between each char for a given amount of milliseconds.

Returns True if given list contains unique values. Returns False otherwise.

About

A personal collection of python related code snippets. Includes a wide variety of useful/useless code samples.

Resources

License

Stars

Watchers

Forks