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 time import sleep | |
num=7 | |
file_name = 'origin' | |
file_ext = '.csv' | |
first_line = True | |
files = {} | |
file_idx = 0 |
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
//Date.prototype | |
Date.prototype.Format = function( str ){ | |
var date = this; | |
return str.replace(/%(Y|y|n|m|d|j|a|A|g|G|h|H|i|s|DD|ll|D|l|%)/g, function( word ){ | |
switch( word ){ | |
case "%%": return '%'; break; | |
case "%Y": return date.getFullYear(); break; | |
case "%y": return String(date.getFullYear()).substring(2,4); break; | |
case "%n": return Number(date.getMonth())+1; break; | |
case "%m": return (date.getMonth() < 9 ? "0" : "" )+(date.getMonth()+1); break; |
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
//vars | |
var width = 12; | |
var height = 9; | |
var max = width * height; | |
//기본배열 만들어보기 | |
function initArray() { | |
var nums = []; | |
for( var i = 1, row = []; i < max+1; i++) { nums.push(i); } |
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
$("#reportAddPhoto, #reportAddMovie").change(function(e){ | |
//파일 로드 및 사이즈 관리 | |
var file = e.target.files[0]; | |
var size = ( file.size / 1000 / 1000 ).toFixed(2); | |
var maxFileSize = 100; //MB | |
var maxFileLength = 3; | |
var fileCount = $(".progress-box .progress-wrap").length; | |
//파일크기부터 체크 | |
if( maxFileSize > size && size > 0 ) { |