Skip to content

Instantly share code, notes, and snippets.

@otwm
otwm / touch
Created December 24, 2015 02:10
find ./jsp -exec touch {} \;
@otwm
otwm / getSqlString.py
Last active December 23, 2015 06:24
sql 파일 생성
import codecs
sql = ""
sql += "merge into tn_year_cust t1 using (select '{year}' year,'{custId}' cust_Id from dual) t2"
sql += " on (t1.year = t2.year and t1.cust_id= t2.cust_id)"
sql += " WHEN MATCHED THEN"
sql += " UPDATE SET"
sql += " SITE_TARGET_YN = '{siteTargetYn}'"
sql += " ,SITE_TARGET_DT = '{siteTargetDt}'"
sql += " ,SITE_COMPLETE_YN = '{siteCompleteYn}'"
@otwm
otwm / generateSequence.py
Created December 23, 2015 02:11
generate sequence
def generateSequence(end=100,head='MG',fill=17):
for index in range(1,end):
print(head + (index + '').zfill(fill)):
@otwm
otwm / ie hack
Created November 10, 2015 10:30
ie hack
<style type="text/css">
/**
* ie 10 - 11 hack
*/
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
.verify_wrap2 {
position: relative;
right: -10px;
display: inline-block;
width: 460px;
@otwm
otwm / ie hack
Created November 10, 2015 10:29
ie hack
/**
* ie 10 - 11 hack
*/
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
.verify_wrap2 {
position: relative;
right: -10px;
display: inline-block;
width: 460px;
float: right;
import java.io.{FileOutputStream, FileInputStream}
import scala.io.StdIn
/**
* Created by YoungJoo on 2015-09-11.
*/
object DrearyDesign extends App {
val path = "D:\\dev\\intellySpace\\ScalaStudy\\"
// Console.setIn(new FileInputStream(path + "testFile"))