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
<input type="checkbox" id="checkAll"> | |
<input type="checkbox" class="check" value="1"> | |
<input type="checkbox" class="check" value="2"> | |
<input type="checkbox" class="check" value="3"> | |
<script type="text/javascript"> | |
$( function(){ | |
$("#checkAll").click(function() { | |
$(".check").prop('checked', $(this).is(":checked")); | |
}); |
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
<input type="checkbox" id="checkAll"> | |
<input type="checkbox" class="check" value="1"> | |
<input type="checkbox" class="check" value="2"> | |
<input type="checkbox" class="check" value="3"> | |
<script type="text/javascript"> | |
$( function(){ | |
$("#checkAll").click(function() { | |
$(".check").attr('checked', $(this).is(":checked")); | |
}); |
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
// 1. System.currentTimeMillis() | |
long startTime = System.currentTimeMillis(); | |
// Method Here | |
long stopTime = System.currentTimeMillis(); | |
long elapsedTime = stopTime - startTime; | |
System.out.println(elapsedTime); |
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
<logger name="jdbc.sqlonly" level="debug" /> | |
<logger name="jdbc.resultsettable" level="debug" /> |
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 id="logDataSource_pos" class="net.sf.log4jdbc.Log4jdbcProxyDataSource"> | |
<constructor-arg ref="cmsDataSource" /> | |
<property name="logFormatter"> | |
<bean class="net.sf.log4jdbc.tools.Log4JdbcCustomFormatter"> | |
<property name="loggingType" value="MULTI_LINE" /> | |
</bean> | |
</property> | |
</bean> |
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
#기존 | |
#db.driver=oracle.jdbc.driver.OracleDriver | |
#db.url=jdbc:oracle:thin:@ | |
#변경 | |
db.driver=net.sf.log4jdbc.DriverSpy | |
db.url=jdbc:log4jdbc:oracle:thin:@ |
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
<dependency> | |
<groupId>org.lazyluke</groupId> | |
<artifactId>log4jdbc-remix</artifactId> | |
<version>0.2.7</version> | |
</dependency> |
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 boolean isPositive(int num){ | |
return num >= 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
public boolean isPositive(int num){ | |
if(num >= 0){ | |
return true; | |
} else{ | |
return false; | |
} | |
} |
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import cx_Oracle | |
import os | |
os.putenv('NLS_LANG','.UTF8') | |
def rowsToDictList(cursor): | |
columns = [i[0] for i in cursor.description] |
NewerOlder