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
<!DOCTYPE html> | |
<html lang="ko-KR" class="no-js"> | |
<head> | |
<meta http-equiv="X-UA-Compatible" content="IE=Edge"> | |
<meta charset="UTF-8"> | |
<title>타이틀</title> | |
<meta name="description" content=""> |
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
@charset "utf-8"; | |
/* 외부의 스타일 모듈 호출 | |
* --------------------------------------------------------------------------- | |
*/ | |
@import "./parts/normalize.min.css"; | |
@import "./parts/common.css"; | |
@import "./parts/gs.min.css"; | |
@import "./parts/fonts.css"; |
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
Show hidden characters
[ | |
// Sidebar Enhancement 기능 단축키 설정 | |
{ "keys": ["ctrl+alt+n"] , "command": "side_bar_new_file" }, | |
{ "keys": ["f2"] , "command": "side_bar_rename" }, | |
{ "keys": ["ctrl+alt+m"] , "command": "side_bar_move" }, | |
{ "keys": ["ctrl+alt+d"] , "command": "side_bar_delete" } | |
] | |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<script type="text/javascript" src="//code.jquery.com/jquery-1.11.0.min.js"></script> | |
<script type="text/javascript" src="js/jquery-form.js"></script> | |
</head> | |
<body> | |
<form> | |
<input type="text" name="text2" /><br/> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<script src="https://code.jquery.com/jquery-1.11.3.js"></script> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
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
//Node.js - File System 모듈 호출 | |
// 참고 URL: http://nodejs.org/api/fs.html | |
var fs = require('fs'); | |
console.log('파일읽기프로세스시작...'); | |
fs.readFile('files/user.json', function (err, data) { | |
var jsonobj = JSON.parse(data); | |
console.log('data:' + jsonobj.nickname); | |
}); | |
console.log('파일읽기프로세스끝.'); |
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 fs = require('fs'); | |
console.log('파일 읽기 프로세스 시작...'); | |
//file System - readFileSync() 사용 | |
var data = fs.readFileSync('files/user.json'); | |
console.log('데이터:' + data); | |
console.log('파일 읽기 프로세스끝.'); |
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 fs = require('fs'); | |
console.log('문서쓰기프로세스시작...'); | |
var cssDoc = '#nodejs {margin:0;}'; | |
var options = {encoding: 'utf8'}; | |
fs.writeFile( | |
'files/style.css', | |
cssDoc, | |
options, | |
function() { |
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 fs = require('fs'); | |
//style.css 문서경로 | |
var styleDoc = 'files/style.css'; | |
//watchFile() - 파일변화를 지속적으로 관찰함. | |
fs.watchFile(styleDoc , function(cur,prv){ | |
//readFileSync() - 파일을 동기적으로 읽어옴. | |
var doc = fs.readFileSync(styleDoc); | |
console.log('변경된 문서내용: \n' + doc); |
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
/*! combineJS module @enne3939@gmail.com, 2015 */ | |
// File System 내장 모듈 호출 | |
var fs = require('fs'); | |
minify = require('minify'); | |
/** | |
* combine.JS 모듈 정의 및 외부로 출력 | |
* 모듈 내부에 전달받을 인자(배열, 문자열) 설정\ | |
*/ |
OlderNewer