It's All Writing.

Writing makes you happy.

Entries from 2020-01-01 to 1 year

(Compectitive Programming's solution) Transformation at C++

Problem http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_9_D Code ( Solution ) gist.github.com

How to receive a Big Integer, process it and return it at node

Code gist.github.com This sample code is also a solution to the problem at the following URL of atcoder. * https://atcoder.jp/contests/abc178/tasks/abc178_b The code receive input parameters formatted as below from stdin. 1 2 1 1 3 5 -4 -2…

How to implement exlusive control at node

Premise Do you have such an experience that a bug was entered by neglecting exclusive control during asynchronous process with Promise at node? If you want to implement exclusive control, you have to use some library which you'll find out …

SRMLogger v2.1.1 release

SRMLogger v2.1.1 release You can get App which named SRMLogger from below. srmlogger.io What’s New The following changes have been made in version 2.1.1. Change of stimulation (average) is also plotted on the graph support android 5.0 over…

How to get dark mode settings on iOS at React Native

Environment React Native react-native-appearance Code You can get the iOS color scheme using react-native-appearance. gist.github.com

How to read config.ini which define configuration values at golang

Environment go ( golang ) Premise You have a config.ini file which define configuration values as follows and you want to load it with go. gist.github.com Code We can easily do this using package ini. If you have not installed ini, you can…

How to sort Objects by multiple fields at Apex

Environment Apex Premise You can sort List of Objects with using sort method as below. gist.github.com In above example, shops is sorted by name ascending order ( Shop A, Shop B, Shop C). But what if you want to sort by multiple fields in …

How to change from a class component which using MobX to a function component in React Native

Premise If you don't need to maintain state, it's prefer to use function component than class component. But, If you've already implemented class component, you also need to know how to change it. I also implemented a class component using…