This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Date a, b; // assume these are set to something | |
| Date d; // the date in question | |
| return a.compareTo(d) * d.compareTo(b) > 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| BigDecimal one = BigDecimal.ONE; | |
| BigDecimal zero = BigDecimal.ZERO; | |
| // 같으면 참 | |
| if (one.compareTo(zero) == 0) { | |
| // one이랑 zero가 같음 | |
| } | |
| // 크면 참 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class EmailValidatorSample { | |
| private Canvas drawForm() { | |
| TextItem email = new TextItem("email"); | |
| email.setWidth("*"); | |
| email.setValidators(emailValidator()); | |
| } | |
| private RegExpValidator emailValidator() { | |
| return new RegExpValidator("^([a-zA-Z0-9_.\\-+])+@(([a-zA-Z0-9\\-])+\\.)+[a-zA-Z0-9]{2,4}$"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> | |
| <!DOCTYPE html> | |
| <html lang="ko"> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
| <title>www.springcome.me</title> | |
| <head> | |
| <link rel="stylesheet" type="text/css" href="/resources/css/maxmertkit.css"> | |
| <link rel="stylesheet" type="text/css" href="/resources/css/maxmertkit-animation.css"> | |
| <link rel="stylesheet" type="text/css" href="/resources/css/maxmertkit-components.css"> | |
| </head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 전화번호를 검색하여 받아온다. | |
| var telNo = ''; | |
| $.ajax({ | |
| url : '', | |
| data : {}, | |
| type : 'post', | |
| sendDataType : 'json', | |
| async : false, | |
| success : function(data) { | |
| telNo = data; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 전화번호를 검색하여 받아온다. | |
| var telNo = ''; | |
| $.ajax({ | |
| url : '', | |
| data : {}, | |
| type : 'post', | |
| sendDataType : 'json', | |
| success : function(data) { | |
| telNo = data; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var selection_text = document.selection.createRange().text; | |
| alert(selection_text); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 카카오톡이 설치되어 있는지 확인 | |
| @Override | |
| public void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| setContentView(R.layout.main); | |
| try { | |
| this.getPackageManager().getPackageInfo("com.kakao.talk", PackageManager.GET_ACTIVITIES); | |
| } catch (NameNotFoundException e) { | |
| e.printStackTrace(); | |
| ToastUtil.showShotToast(this, "없음"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <bean class="org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping"> | |
| <property name="interceptors"> | |
| <list> | |
| <ref bean="sessionInterceptor" /> | |
| </list> | |
| </property> | |
| </bean> | |
| <bean id="sessionInterceptor" class="" /> |