Python Duck Typing, LBYL, EAFP

Duck Typing A programming style which does not look at an object’s type to determine if it has the right interface; instead, the method or attribute is simply called or used (“If it looks like a duck and quacks like a duck, it must be a duck.”) By emphasizing interfaces rather than specific types, well-designed ... Read more

Python debugging

Show list of all available attributes and methods for the object we pass in: Helpful debug info: Show help info:

JavaScript sort

Alternative syntax with arrow function: Sort array of numbers:

Python Number

Working with Numeric Data with Python - Integer and Float

Python OOP

Python OOP Classes and Instances: Python OOP Class Variables: Class Variables shared for all instances of the class. Python OOP classmethods Python OOP staticmethods Python OOP Inheritance - Creating Subclasses Python OOP Special (Magic/Dunder) Methods More info on Special (Magic/Dunder) Methods Special method names. Python OOP Property Decorators - Getters, Setters, and Deleters Source: CoreyMS.com

Sharing Data between Angular Components

Parent to Child: Sharing Data via Input parent.component.ts: child.component.ts: Child to Parent: Sharing Data via ViewChild ViewChild allows a one component to be injected into another, giving the parent access to its attributes and functions. One caveat, however, is that child won’t be available until after the view has been initialized. This means we need ... Read more

Jokes

One-liners: Welcome to Earth, enjoy your stay. Easy peasy lemon squeezy Easy breezy. Haters gonna hate. Potatoes gonna potate. So wanna be a player... But your wheels ain't fly You gotta hit is up To get a pimp down ride