Curvature is a measure of how tightly a curve bends. A circle of radius r has curvature 1/r. So a…
Continue Readingcircle
On Invariants.
On Invariants. What is an invariant?Andrew PritchardBlockedUnblockFollowFollowingMay 10The specification of a program should be its class invariantsAim to write programs…
Continue Reading“Pattern matching” with Typescript done right
U : never}type ShapeTypeMap = ShapeMap<Shape>// Result:type ShapeTypeMap = { Square: Square; Circle: Circle; Rectangle: Rectangle;}3. Convert map of discriminant…
Continue ReadingSome Neat CSS Tricks — Clip-path And Transform
For circles you specify the percentage of your diameter along with where the center of your circle is, and for…
Continue Reading