Search Results for: ai
Angular check if object is empty in template
Solution which works with empty object, null and undefined as a value: Alternative solution:
Angular deprecated APIs and features
Angular deprecated APIs and features List of deprecated Angular APIs and features Angular deprecation practices Angular Changelog
Angular ngSwitch
html: Multiple switch cases with the same output:
Angular ngFor
Basic syntax html: Syntax with local variables: html: Syntax without markup: html:
Angular string interpolation
js: html: Basic math operations: html: Template reference variable html: Property binding js: html:
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 os
Python os
Python contextlib (Working with files - open, read, write, copy, binary)
Working with files using context manager: Example to get the list of files in the directory with context manager: Working with files (open, read, write, copy, binary) contextlib
Python debugging
Show list of all available attributes and methods for the object we pass in: Helpful debug info: Show help info: