Skip to content

Instantly share code, notes, and snippets.

View hansonkim's full-sized avatar

Hanson Kim hansonkim

View GitHub Profile
@hansonkim
hansonkim / slots-and-dataclass.ipynb
Created November 21, 2022 17:20
slots and dataclass
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hansonkim
hansonkim / wgs84.ipynb
Created November 21, 2022 16:01
WGS84 좌표계 카텍 좌표계 변환.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hansonkim
hansonkim / CRNValidator.java
Last active July 28, 2019 23:18
JAVA 사업자 등록번호 유효성 검사
/**
* 사업자 번호 유효성 검사
* Created by Hanson on 2017-07-04.
*/
public class CRNValidator {
private final static int[] LOGIC_NUM = {1, 3, 7, 1, 3, 7, 1, 3, 5, 1};
public final static boolean isValid(String regNum) {
@hansonkim
hansonkim / RRNValidator.java
Last active June 9, 2019 23:09
JAVA 주민등록 번호 검사
/**
* 주민등록번호 유효성 검사
* Created by Hanson on 2017-07-04.
*/
public class RRNValidator {
private final static int[] LOGIC_NUM = {2, 3, 4, 5, 6, 7, 8, 9, 2, 3, 4, 5};
public final static boolean isValid(String regNum) {
if (!isNumeric(regNum) || regNum.length() != 13)