Skip to content

Instantly share code, notes, and snippets.

View HwDhyeon's full-sized avatar
💭
😀

황동현 HwDhyeon

💭
😀
View GitHub Profile
@HwDhyeon
HwDhyeon / sigungu.json
Created April 22, 2021 07:21 — forked from pjt3591oo/sigungu.json
한국의 모든 시/군/구 전국 지역 좌표 JSON 대한민국 지역 좌표 pre_rendered
{
"서울특별시/강남구": {
"lat": "37.4951",
"long": "127.06278"
},
"서울특별시/강동구": {
"lat": "37.55274",
"long": "127.14546"
},
"서울특별시/강북구": {
@HwDhyeon
HwDhyeon / ProgressBarDecorator.py
Created November 16, 2020 08:05 — forked from Garfounkel/ProgressBarDecorator.py
A python decorator that prints a progress bar when a decored function yields it's current progress.
import time
import sys
class ProgressBarPrinter:
def __init__(self, width, step, stream, fname):
self.width = width
self.block_progress = 0
self.current_progress = 0
self.start_time = time.time()
"""An empty database object on which to implement a database I/O module."""
from abc import ABCMeta
from abc import abstractmethod
class Database(metaclass=ABCMeta):
"""Methods and properties required for database connection are defined."""
def __enter__(self):
Python 13 hrs 52 mins ██████████████████▉░░ 90.5%
Other 1 hr 22 mins █▊░░░░░░░░░░░░░░░░░░░ 8.9%
CSV 5 mins ▏░░░░░░░░░░░░░░░░░░░░ 0.6%
Docker 0 secs ░░░░░░░░░░░░░░░░░░░░░ 0.0%
YAML 0 secs ░░░░░░░░░░░░░░░░░░░░░ 0.0%
@HwDhyeon
HwDhyeon / I'm an early 🐤
Last active May 31, 2022 00:02
I'm an early 🐤
🌞 Morning 226 commits ███████▎░░░░░░░░░░░░░ 35.0%
🌆 Daytime 378 commits ████████████▎░░░░░░░░ 58.5%
🌃 Evening 42 commits █▎░░░░░░░░░░░░░░░░░░░ 6.5%
🌙 Night 0 commits ░░░░░░░░░░░░░░░░░░░░░ 0.0%
@HwDhyeon
HwDhyeon / average.c
Created June 3, 2020 05:54
무한정 정수를 입력받고 평균을 구하기 (realloc 활용)
#include <stdio.h>
#include <stdlib.h>
// Integer data define
typedef struct Data Data;
struct Data {
int num;
};
// Integer data control functions
@HwDhyeon
HwDhyeon / deletePush
Created April 28, 2020 07:52
가장 최근에 원격저장소에 올라간 푸시기록 삭제하기
> git reset HEAD^
More? ^
> git push --force
@HwDhyeon
HwDhyeon / deleteBranch
Created April 16, 2020 06:19
git branch를 삭제하고 github에 반영하기
git branch --delete(-D) [branch name]
git push origin :[branch name]
@HwDhyeon
HwDhyeon / easy_ssh_client.go
Last active November 29, 2023 01:49
SSH Client를 Go로 쉽게 구현하기
package main
import (
"fmt"
"io/ioutil"
"log"
"net"
"time"
"golang.org/x/crypto/ssh"
@HwDhyeon
HwDhyeon / check_parameter.Jenkinsfile
Created March 11, 2020 00:30
젠킨스 빌드 시 파라미터가 존재하는지 확인하고 없다면 기본값 설정하기
def MY_VARIABLE = null
if(env.my_parameter) {
MY_VARIABLE = env.my_parameter
} else {
MY_VARIABLE = "default value"
}
echo "parameter set: ${MY_VARIABLE}"