Skip to content

Instantly share code, notes, and snippets.

View namkyu's full-sized avatar

Namkyu Lee namkyu

View GitHub Profile
@namkyu
namkyu / gist:4030935
Created November 7, 2012 11:21
table cell merge
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<title>Insert title here</title>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.1.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
@namkyu
namkyu / radiobox.html
Created November 9, 2012 00:34
radioboxTest
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<title>Insert title here</title>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.1.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
@namkyu
namkyu / SyncTest.java
Created November 9, 2012 06:05
synchronized test1
public class SyncTest {
private static SyncTarget target;
@BeforeClass
public static void init() {
target = new SyncTarget();
System.out.println("init");
}
@namkyu
namkyu / SyncTest2.java
Created November 9, 2012 06:06
SyncTest2
public class SyncTest2 {
private static SyncTarget target;
@BeforeClass
public static void init() {
target = new SyncTarget();
System.out.println("inint");
}
@namkyu
namkyu / SyncTest3.java
Created November 9, 2012 06:06
SyncTest3
public class SyncTest3 {
private static SyncTarget target;
@BeforeClass
public static void init() {
target = new SyncTarget();
System.out.println("inint");
}
@namkyu
namkyu / MapTest.java
Created November 9, 2012 09:26
MapTest
public class MapTest {
private static Map<String, String> sortMapCheck;
private static final String[] dataArr = new String[] { "1", "2", "3", "4", "5" };
@Before
public void 맵데이터생성() {
sortMapCheck = new HashMap<String, String>();
for (String value : dataArr) {
@namkyu
namkyu / selector.html
Created November 12, 2012 15:17
selector
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<title>Insert title here</title>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.1.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
@namkyu
namkyu / elementsDisabled.html
Created November 22, 2012 06:18
elements disabled 처리
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<title>Insert title here</title>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.1.min.js"></script>
<script>
$(document).ready(function() {
@namkyu
namkyu / ContextConfigLocationTest.java
Created November 26, 2012 05:17
ContextConfigLocationTest
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration
public class ContextConfigLocationTest {
@Test
public void test1() {
}
@Test
public void test2() {
@namkyu
namkyu / FailFastTest.java
Created November 27, 2012 05:46
FailFastTest
public class FailFastTest {
private List<Integer> testList;
private Vector<Integer> vecList;
private Map<Integer, Integer> mapList;
@Before
public void init() {
testList = new ArrayList<Integer>();
vecList = new Vector<Integer>();