Skip to content

Instantly share code, notes, and snippets.

@an-sangkil
an-sangkil / BinarySearch.java
Last active November 14, 2017 08:25
이진탐색 알고리즘
package com.knkcorp.justget.test;
import java.util.Arrays;
import org.junit.Test;
/**
* Description :
*
@an-sangkil
an-sangkil / BaseMailSender.java
Created October 4, 2016 02:49
Bulk Main Sender
package com.knkcorp.tms.common.mail;
import java.util.List;
import javax.mail.Message;
import org.springframework.stereotype.Component;
@Component
public interface BaseMailSender {
@an-sangkil
an-sangkil / adplay.js
Created June 28, 2016 00:39
HTML5 video and image play
document.onkeydown = function(evt) {
evt = evt || window.event;
console.log(evt.keyCode);
switch (evt.keyCode) {
case 27: //ESC
AdPlayer.vidplay();
// 광고를 종료 하시겠습니까?
if (confirm('광고를 종료 하시겠습니까?')) {
location.href = '<%=CONTEXT_PATH%>/이동 경로..';
@an-sangkil
an-sangkil / CattleController.java
Created January 17, 2016 13:36
QueryDSL Paging / Hibernate
/**
* <pre>
* Class Name : CattleController.java
* Description :
* Modification Information
*
* 수정일       수정자    수정내용
* ──────────── ───────── ───────────────────────────────
* 2016. 1. 11. ask 최초생성
* </pre>
/**
* <pre>
* Class Name : AddressController.java
* Description :
* Modification Information
*
* 수정일       수정자    수정내용
* ──────────── ───────── ───────────────────────────────
* 2016. 1. 4. ask 최초생성
* </pre>
@an-sangkil
an-sangkil / AllthatCache.java
Created December 14, 2015 02:01
JAVA Cache
package oo.cjoext.service.allthat.common.cache;
public class AllthatCache {
private String name;
private int hitCount;
private Object object;
public AllthatCache() {
@an-sangkil
an-sangkil / HttpConnector.java
Last active November 17, 2015 00:43
HttpRestTemplateTest
import java.net.SocketTimeoutException;
import java.util.Iterator;
import java.util.List;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
package proxy;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
public class DebugHandler implements InvocationHandler {
public DebugHandler() {
}
@an-sangkil
an-sangkil / build.xml
Last active August 29, 2015 14:15
Ant File copy & deploy
<?xml version="1.0"?>
<project default="main" basedir=".">
<echo message="pulling in property files"/>
<!--
<copy todir="c:\test\kkkk\">
<fileset dir="c:\test\" >
<include name="**/*.*" />
@an-sangkil
an-sangkil / SfAbstractReportCommonDao.java
Last active August 5, 2021 10:05
Mybatis ResultHandler
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.xxxxx.beans.SfProjectVerificationReport;