June 13, 2021
#Angular
#Javascript
#Typescript
If you have gotten this error before, then you have been trying to implement a rowData mapping onto Ag-Grid.. and failed!
ImmutableService requires …
Read Article →
June 12, 2021
#Git
If you have accidentally committed the wrong files into Git, but haven’t yet pushed it to the server, you can recover, or undo your commit as …
Read Article →
June 11, 2021
#Kotlin
There are times when you need to extract an object into a number of variables.
Let’s take the example below:
val (id, name, position, …
Read Article →
June 10, 2021
#Python
The challenge
Everyone knows passphrases. One can choose passphrases from poems, songs, movies names and so on but frequently they can be guessed due …
Read Article →
June 9, 2021
#Kotlin
Unit corresponds to the void keyword in Java.
What is a Unit in Kotlin?
If you have a function that does not return a value, you can return a Unit …
Read Article →
June 8, 2021
#Kotlin
Functions are reusable pieces of code, often called Blocks, that as the name suggests, act as building blocks to piece together a program.
Each …
Read Article →
June 7, 2021
#Kotlin
Among all the many keywords that Kotlin comes with, there exists val and var. What are they used for? What are the differences, and why would you use …
Read Article →
June 6, 2021
#Angular
#Javascript
#Typescript
If you have an Ag-Grid, and want to automatically resize all the columns to fit the width of the viewport, you can use this hack.
The implementation …
Read Article →
June 5, 2021
#Angular
#Javascript
#Typescript
The easiest way to get the content of all rows’ data, back into a Javascript/Typescript array, is as follows.
Simply create a blank array, then …
Read Article →
June 4, 2021
#Python
The challenge
You are given an m x n binary matrix grid. An island is a group of 1‘s (representing land) connected 4-directionally (horizontal or …
Read Article →
June 3, 2021
#Excel
#Java
Apache POI provides a mechanism to work with Excel documents.
However, it has a missing feature when you want to only create a new sheet if one with …
Read Article →
June 2, 2021
#Python
The challenge
Automatons, or Finite State Machines (FSM), are extremely useful to programmers when it comes to software design. You will be given a …
Read Article →