Skip to content

Instantly share code, notes, and snippets.

View namkyu's full-sized avatar

Namkyu Lee namkyu

View GitHub Profile
@namkyu
namkyu / web.xml
Created December 5, 2012 04:42
web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<display-name>springProject</display-name>
<description>incross spring3.1 sample project</description>
<!-- ============================================================= -->
<!-- log4j setting -->
import java.math.BigDecimal;
public class SingletonObjectPerformanceTest {
public static void main(String[] args) throws InterruptedException {
final Singleton singleton = new Singleton();
long startTime = System.currentTimeMillis();
for (int i = 0; i < 800000; i++) {
Thread t = new Thread() {
@namkyu
namkyu / GaussMathematics.java
Last active December 14, 2015 16:19
가우스 덧셈 계산식
package algorithm;
import static org.hamcrest.CoreMatchers.*;
import static org.junit.Assert.*;
import org.junit.Test;
/**
* @FileName : GaussMathmatics.java
package regular;
import static org.hamcrest.CoreMatchers.*;
import static org.junit.Assert.*;
import java.util.regex.Pattern;
import org.junit.Test;
/**
@namkyu
namkyu / Problem369.java
Created June 26, 2013 01:24
369 게임 알고리즘
package algorithm;
import static org.hamcrest.CoreMatchers.*;
import static org.junit.Assert.*;
import org.junit.Test;
/**
* @FileName : Problem369.java
* @Project : test_project
@namkyu
namkyu / RecursiveTest.java
Created July 5, 2013 06:30
재귀함수 테스트
package algorithm;
import static org.hamcrest.CoreMatchers.*;
import static org.junit.Assert.*;
import java.io.File;
import org.junit.Test;
/**
package other.el;
import static org.hamcrest.CoreMatchers.*;
import static org.junit.Assert.*;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
package serializable;
import static org.hamcrest.CoreMatchers.*;
import static org.junit.Assert.*;
import java.io.Externalizable;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
package mockito;
import static org.hamcrest.CoreMatchers.*;
import static org.junit.Assert.*;
import static org.mockito.Matchers.*;
import static org.mockito.Mockito.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
package com.kyu.svc.component.user.service;
import static org.hamcrest.CoreMatchers.*;
import static org.junit.Assert.*;
import static org.mockito.Mockito.*;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;