GNGene Nakagakiingenakag.hashnode.dev·Aug 9, 2021 · 3 min readSet up keybindings for vim users on macOSHello! I recently set up keybindings for my MacBook that were useful to me as a vim user. I'm going to share how I set up the following keybindings: caps lock as both esc and control control + H,J,K,L as arrow key alternatives Shortcuts to certain ...01G
GNGene Nakagakiingenakag.hashnode.dev·Aug 4, 2021 · 2 min readLeading zeros in CSV dataExporting to CSV is not always a fun task but it is usually required because it makes it easier for other people to analyze the data. I recently implemented a feature to export data to CSV but some people had trouble using the data. The software peop...00
GNGene Nakagakiingenakag.hashnode.dev·Aug 3, 2021 · 2 min readText selection between symbols in vimI love vim, and I always use either vim in a terminal or a vim emulator in my IDE. One of the commands I use most frequently is the text selection between symbols. Using vib to select text inside between parenthesis You can type vib inside a pair of ...00
GNGene Nakagakiingenakag.hashnode.dev·Aug 2, 2021 · 1 min readLocalDateで日にちの比較目的 LocalDateを使った日にちの比較で引っかかりそうな点を発見したのでみんなに知ってもらいたいです。 TLDR 2つのLocalDateの日にちを比較するときはChronoUnitとPeriodが役立ちます。ChronoUnitは日時の単位(年、月、日など)ごとに違いを計算するのに役立ちます。Periodは年、月、日に割り当てたあとの日にちの単位の違いを計算するのに役立ちます。説明だけだと分かりづらいので下記の例を見てください。 LocalDate startDate = LocalDa...00
GNGene Nakagakiingenakag.hashnode.dev·Aug 1, 2021 · 2 min readEquality of Integer and Long objects in JavaTLDR Use the equals method when checking if Integer or Long objects are equal. Integer a = 1000; Integer b = 1000; a.equals(b); // true a == b; // false Using == sometimes returns incorrect results Checking the equality of Integer objects with the ...00