This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.math.BigDecimal; | |
import java.math.RoundingMode; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; | |
public abstract class DistributedAmountMap<T> { | |
protected abstract Long getId(T item); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.intellij.database.model.DasTable | |
import com.intellij.database.util.Case | |
import com.intellij.database.util.DasUtil | |
NOT_NULL_COLUMN_OPTION = ", nullable = false"; | |
TYPE_MAPPING = [ | |
(~/(?i)int8|bigint/) : "Long", | |
(~/(?i)int2|smallint|integer/) : "Integer", | |
(~/(?i)float|double|decimal|real|numeric/): "BigDecimal", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.intellij.database.model.DasTable | |
import com.intellij.database.util.Case | |
import com.intellij.database.util.DasUtil | |
NOT_NULL_COLUMN_OPTION = ", nullable = false"; | |
TYPE_MAPPING = [ | |
(~/(?i)int8|bigint/) : "Long", | |
(~/(?i)int2|smallint|integer/) : "Integer", | |
(~/(?i)float|double|decimal|real|numeric/): "BigDecimal", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Base64; | |
import org.springframework.security.crypto.factory.PasswordEncoderFactories; | |
public class ClientSecretGenerator { | |
/** | |
* encode clientId,clientSecret | |
* clientId:clientSecret | |
*/ | |
public static String base64EncodeAuthrizationBasicHeader(final String clientId, final String clientSecret) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* MySQL 소수점 올림, 버림, 반올림 */ | |
select ceil(10001.0001 / 1000) * 1000 as '11000' /* roundup(number, -3) */ | |
, ceil(10001.0001 / 100) * 100 as '10100' /* roundup(number, -2) */ | |
, ceil(10001.0001 / 10) * 10 as '10010' /* roundup(number, -1) */ | |
, ceil(10001.0001 / 1) * 1 as '10002' /* roundup(number, 0) */ | |
, ceil(10001.0001 / 0.1) * 0.1 as '10001.1' /* roundup(number, 1) */ | |
, ceil(10001.0001 / 0.01) * 0.01 as '10001.01' /* roundup(number, 2) */ | |
, ceil(10001.0001 / 0.001) * 0.001 as '10001.001' /* roundup(number, 3) */ | |
, truncate(99999.9999, -3) as '99000' /* rounddown(number, -3) */ | |
, truncate(99999.9999, -2) as '99900' /* rounddown(number, -2) */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Java +392/ -1 ████████████▍░░░░░░░░ 59.1% | |
Markdown +71/ -42 ██████▍░░░░░░░░░░░░░░ 30.9% | |
JavaScript +72/ -0 █▌░░░░░░░░░░░░░░░░░░░ 7.3% | |
Lua +13/ -0 ▎░░░░░░░░░░░░░░░░░░░░ 1.5% | |
Gradle +3/ -0 ░░░░░░░░░░░░░░░░░░░░░ 0.6% | |
YAML +5/ -0 ░░░░░░░░░░░░░░░░░░░░░ 0.3% | |
Roff +2/ -0 ░░░░░░░░░░░░░░░░░░░░░ 0.3% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
🌞 Morning 22 commits █░░░░░░░░░░░░░░░░░░░░ 4.8% | |
🌆 Daytime 105 commits ████▊░░░░░░░░░░░░░░░░ 22.9% | |
🌃 Evening 325 commits ██████████████▊░░░░░░ 70.8% | |
🌙 Night 7 commits ▎░░░░░░░░░░░░░░░░░░░░ 1.5% |