Repository files navigation
Unpack list and dictionary : How to unpack list and dictionaries when passed as function arguments.
Send mail using SMTP : Script to send mail using SMTP from linux machine.
Pass string values to SQL query : Pass multiple string parameters to SQL query.
Function pointer in python : Simulate function pointer(as in C language) in python.
Memoization using function : Program to show memoization using function decorator.
Fibonacci number, memoization using class : Performance comparison to find nth fibonacci(using recursive approach) number with and without memoization.
Named-tuples : Few snippets to work with named tuples in python.
Optional mutable arguments : Optional mutable arguments retains its value in subsequent calls.
Connect MySQL in python : Python program to connect and execute query on MySQL.
Slots usage in python : slots usage in python, Used to save memory when large number of objects are created.
Map, filter, reduce : Map, filter and reduce in python.
new usage : Overwriting new method to implement singleton pattern.
Singleton pattern, using new : Implement singleton in python by overwriting new method.
Singleton pattern, using decorator : Implement singleton in python using decorator. This is recommended way of singleton pattern.
Make class iterable : Make an user defined class iterable, define iter and next .
Define a class : Define a class and instance methods.
Data/Static class variables : Create, access and update class/static variables.
Data hiding : Private(name mangling) data members in python
Static and class methods : Static and class methods.
Method overriding : Method overriding in python
Check object's membership : Check object membership using isinstance() and issubclass().
Access members of parents class : How to access methods and members of parent class from derived class.
Multiple inheritance : Multiple inheritance in python.
Lamda demo : Lambda operator in python.
Enumerate and zip : Enumerate and zip in python.
Generators : Usage of generators in python.
Property : Defining and using property in python.
Decorator : Decorator usage.
Decorator with arguments : Decorator with arguments.
Threading module : Example to show threading module usage.
Thread module : Example to show thread and lock usage in python.
Custom context manager using class : Impelement custom context manager using class.
Custom context manager using contextlib : Implement custom context manager using contextlib module.
String templates : String templates in python.
Sets demo : Set declaration and operations on them.
class object callable : call () demo, make class name and it's object callable.
Operator overloading : Operator overloading demo, show how '+' can be overloaded to add user defined objects.
Closures demo : Closures demo in python.
Global variables : Declare and access global variable in python.
Numpy basics : Basic functions, operations in python numpy.
Pandas basics : Basic functions, operations in pythons pandas.
Heap module : heapq module in python - In built min heap.
Telnet module : Check if (IP, PORT) is running using telnet.
Log rotation : Log rotation example.
Ping pong concurrency : Print ping pong using 2 threads running in synchronization.
Strings in C++ : Basic operations with strings in C++.
Vectors : Basic functions/operations on C++ vectors.
HashMaps : Basic operations with C++ hash maps.
You can’t perform that action at this time.