Skip to content

Instantly share code, notes, and snippets.

@zmrdltl
zmrdltl / readme.md
Last active September 3, 2020 13:38
Github profile

zmrdltl's github stats

@zmrdltl
zmrdltl / readme.md
Last active September 5, 2020 15:58
solved.ac profile

😂trying to be good

Solved.ac프로필

@zmrdltl
zmrdltl / w
Created June 23, 2022 04:38
terraform lock
.
@zmrdltl
zmrdltl / prepare-commit-msg
Created September 4, 2022 05:22 — forked from aemonge/prepare-commit-msg
Angular Commit Message Conventions git hook, so you got your commit prepared to with the messages they expect ;)
#!/bin/bash
firstLine=`head -2 $1 | tail -1`
if [[ $firstLine == \#* ]]; then # Testing that the file starts with a comment, not yet a real commit ;)
echo '<type>(<component>): <subject>' > .prepare-commit-msg-temp
echo '' >> .prepare-commit-msg-temp
echo '<body>' >> .prepare-commit-msg-temp
echo '' >> .prepare-commit-msg-temp
echo '# types: feat, fix, docs, style, refactor, test, chore(mantean)' >> .prepare-commit-msg-temp
//볼링 한 game은 10번 frame으로 구성
//1 frame 당 2번 공 던지기 가능
//2번 공 번져서 모두 쓰러뜨림 -> spare -> 다음 라운드의 점수를 2배로
//1번에 -> strike -> 다음 + 다다음 라운드의 점수를 2배
//마지막 frame -> 3번 던질 수 있음 단, 2번을 최소 스페어해야됨
pub struct Game {
score: u32,
rolls: Vec<u32>,
}
@zmrdltl
zmrdltl / ConnectionManger.java
Last active October 13, 2022 02:07
jdbc connection class 예제
package com.tmax.dx.service.app;
import java.sql.Connection;
import java.sql.*;
import com.tmax.superobject.manager.DbcpConnectionManager;
public class ConnectionManager {
public Connection getConnection() throws SQLException {
return DbcpConnectionManager.getInstance().getConnection("DX_DATABASE");
}
}
🌞 Morning 8 commits ▎░░░░░░░░░░░░░░░░░░░░ 1.7%
🌆 Daytime 158 commits ███████▏░░░░░░░░░░░░░ 34.4%
🌃 Evening 202 commits █████████▏░░░░░░░░░░░ 44.0%
🌙 Night 91 commits ████▏░░░░░░░░░░░░░░░░ 19.8%
@zmrdltl
zmrdltl / 📊 Weekly development breakdown
Last active March 29, 2023 01:46
📊 Weekly development breakdown
Java 17 hrs 28 mins ██████████████▉░░░░░░ 71.3%
Rust 2 hrs 4 mins █▊░░░░░░░░░░░░░░░░░░░ 8.4%
TypeScript 1 hr 36 mins █▍░░░░░░░░░░░░░░░░░░░ 6.6%
Other 50 mins ▋░░░░░░░░░░░░░░░░░░░░ 3.4%
JSON 46 mins ▋░░░░░░░░░░░░░░░░░░░░ 3.2%