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
/* | |
동영상 파일과 자막 파일의 이름을 맞춰 준다. | |
현재 디렉토리에 동영상 파일과 자막 파일의 갯수가 동일해야 한다. | |
*/ | |
def usage() { | |
println 'Usage: groovy movie_subtitle_match.groovy 동영상확장자 자막확장자' | |
println "동영상 파일과 자막 파일의 갯수가 동일해야함" | |
} |
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
@GrabConfig(systemClassLoader=true) | |
@Grab(group='mysql', module='mysql-connector-java', version='5.1.25') | |
import groovy.sql.Sql | |
Sql.withInstance('jdbc:mysql://localhost/employees?useUnicode=true&characterEncoding=utf8', | |
'root', 'root', 'com.mysql.jdbc.Driver') { sql -> | |
def times = 1000 | |
def start = 0 | |
print "##### 일반 조인 " |
NewerOlder