Skip to content

Instantly share code, notes, and snippets.

View wikibook's full-sized avatar

위키북스 wikibook

View GitHub Profile
for excel_file in excel_files:
print(excel_file) # 원본 데이터 파일 경로 출력
excel_files = raw_data_dir.glob('상반기_제품_판매량_*')
raw_data_dir = Path(input_folder)
input_folder = 'C:/myPyExcel/data/ch07/sales_data/input'
from pathlib import Path
from pathlib import Path
input_folder = 'C:/myPyExcel/data/ch07/sales_data/input' # 원본 데이터 폴더
raw_data_dir = Path(input_folder)
excel_files = raw_data_dir.glob('상반기_제품_판매량_*') # 폴더 내 데이터 파일 이름
for excel_file in excel_files:
print(excel_file) # 원본 데이터 파일 경로 출력
@wikibook
wikibook / saveastiff.vbs
Last active August 29, 2015 14:13
파일 내 모든 비지오 다이어그램을 TIFF 파일로 저장
Sub SaveAsTIFF()
Dim folder As String, filename As String
Dim doc As Visio.Document
Dim pg As Visio.Page
Dim i As Integer
Dim formatExtension As String
'// Init folder, doc and counter:
folder = ThisDocument.Path
formatExtension = ".tif"
@wikibook
wikibook / print_ext.py
Created September 22, 2014 04:46
파일 확장자 출력
print '~/python/one-liners.py'.split('.')[-1]
@wikibook
wikibook / MyWritableComparable.java
Created February 25, 2014 05:15
시작하세요! 하둡 프로그래밍 예제 4.3
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import org.apache.hadoop.io.WritableComparable;
public class MyWritableComparable implements WritableComparable<MyWritableComparable> {
private Integer counter;
private Long timestamp;
@wikibook
wikibook / redirect.jsp
Created December 14, 2013 14:33
JSP 페이지 리디렉션 코드
<%
String url = "http://wikibook.github.io/learnlayout/";
response.setStatus(response.SC_MOVED_PERMANENTLY);
response.setHeader("Location", url);
%>