- Composite Pattern
Introduction The Composite Pattern is a structural design pattern that lets you compose objects into tree structures and then work with those structures as if they were individual objects. Think of a file system — a directory can contain files and other directories. Whether you ask for the size of…
- Postgres – JSON and JSONB
jsonb is a real column type with real operators, not a text field you parse in the application. -> versus ->>, the containment operator @> and the GIN index that makes it fast, jsonb_path_query, updating one key with jsonb_set, and expanding an array into rows. Ends with the harder question: which of your columns should NOT have been jsonb.
- CSS Introduction
CSS (Cascading Style Sheets) is used to style and lay out web pages — for example, to alter the font, color, size, and spacing of your content, split it into multiple columns, or add animations and other decorative features. It is a simple design language intended to simplify the process of making…
- Git branch
List all branches within a repository git branch //or git branch –list List all of remote branches git branch -a Create a local branch git branch {branch-name} Example: create a branch name test-100 git branch test-100 Check for the new created branch folaukaveinga@Folaus-MacBook-Pro-3 demo % git…
- Javascript Timing
Timing JavaScript code can be executed in time-intervals either by set a timeout and then execute a funciton or set an interval and then execute a function repeatedly. setTimeout(function, milliseconds) // wait 3 seconds and then execute function let timeout = setTimeout(function(){…