This file contains 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="button" id="<%=rs.getString("title")%>" value="MV" onclick="javascript:mvf(<%=rs.getString("title")%>);"> | |
<form name="go_page" method="post"> | |
<input name="title" value=""> | |
</form> | |
<script> | |
function mvf(id){ | |
var from = document.go_page; |
This file contains 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
class ToInt{ | |
//InputStream 구현시 read() 메서드는 byte 값이 아닌 int 값을 반환 하는데 | |
//Stream 이 끝일 경우 -1을 반환하는 규약이 있어 음수를 사용 하지 못해 | |
//byte 보다 큰 int 로 리턴하는 것이고 0 ~ 255(128 + 127) 까지 의 숫자를 리턴한다 | |
public static int toInt(byte b) { | |
return (-(b-127)/128)*256+b; | |
} | |
public static void main(String[] args){ |
This file contains 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
# -*- coding: utf-8 -*- | |
from selenium import webdriver | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.support.ui import WebDriverWait | |
from selenium.webdriver.support import expected_conditions as EC | |
#pip install selenium 필요, 파이어폭스 필요(브라우저는 변경 가능) | |
driver = webdriver.Firefox() | |
driver.get('http://typing.tyle.io/') |
This file contains 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
#!/bin/bash | |
# 만든이 : 강현구(rkdgusrnrlrl@gmail.com) | |
# 제작일 : 2016-03-01 | |
# 사용방법 : backup {백업할파일명} => 해당 폴더에 해당 파일명 뒤에 날짜가 붙어서 백업됨 | |
# ex : member.db.20160301.back | |
# 개선 사항 | |
# - 옵션을 통해 백업 폴더 설정 | |
# | |
echo "backup start" |
This file contains 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 Builder<T> { | |
private T t; | |
private Map<String, String> map; | |
private MappingRule rule; | |
private static final String SET = "set"; | |
public Builder(T clz) { |
This file contains 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
/* | |
날짜 체크하는 함수 날짜 포멧 (YYYYMMDD) | |
- 시작일 마지막일이 공백이 아닌 경우 포켓에 맞는지 체크 | |
- 사작일은 입력했는데 마지막 날을 입력 안한경우 그리고 역일 경우 체크 | |
- 전부다 공백의 경우 체크돼지 않음 | |
*/ | |
function dateValidate (inputStr, inputEnd) { | |
var reg_yyyymmdd = /^(19[7-9][0-9]|20\d{2})(0[0-9]|1[0-2])(0[1-9]|[1-2][0-9]|3[0-1])$/; | |
This file contains 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 date = new Date(), y = date.getFullYear(), m = date.getMonth(); | |
var firstDay = new Date(y, m, 1); | |
var lastDay = new Date(y, m + 1, 0); | |
firstDay = moment(firstDay).format(yourFormat); | |
lastDay = moment(lastDay).format(yourFormat); |
This file contains 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
const winston = require('winston'); | |
const config = winston.config; | |
function getLocalDateTimeString(date) { | |
if (date) { | |
const todatStr = date.toLocaleDateString('ko-KR', { year: "numeric", month: "2-digit", day: "2-digit", hour : "numeric", minute : "numeric", second : "numeric" }); | |
const tempArr = todatStr.split(", "); | |
const dateArr = tempArr[0].split("/"); | |
return[dateArr[2], dateArr[0], dateArr[1]].join("-")+" "+tempArr[1]; |
This file contains 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
const async = require('async'); | |
// 워커 함수 | |
function worker(data) { | |
console.log(data); | |
} | |
// 큐 생성 | |
let queue = async.queue(function(data, cb) { | |
worker(data); |
OlderNewer