Ctrl+KB | toggle side bar |
Ctrl+Shift+P | command prompt |
Ctrl+` | python console |
Ctrl+N | new file |
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
/** pQuery! LOL **/ | |
Object.extend($, Prototype); | |
Object.extend($, Object); | |
/** | |
* Returns window dimensions and scroll positions | |
* @author Firejune<to@firejune.com> | |
* @license MIT | |
*/ |
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
// 1000 단위 콤마 | |
function addThousandSeparatorCommas(num) { | |
return num.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ','); | |
} |
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
String.prototype.trim = function() { | |
return this.replace(/^\s*-,"").replace(/\s*$/, ""); | |
}; | |
String.prototype.ltrim = function() { | |
return this.replace(/^\s+/, ""); | |
}; | |
String.prototype.rtrim = function() { | |
return this.replace(/\s+$/, ""); |
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 start = new Date(); | |
start.setMonth(start.getMonth()+1); | |
start.setTime(start.getTime()-1); | |
var lastDay = new Date(start.getYear(),start.getMonth(),''); | |
lastDay = lastDay.getDate(); | |
console.log(lastDay); |
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
console.log('$().jquery : ', $().jquery); | |
console.log('$.fn.jquery : ', $.fn.jquery); |
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
/** | |
초성 중성 종성 분리 하기 | |
유니코드 한글은 0xAC00 으로부터 | |
초성 19개, 중상21개, 종성28개로 이루어지고 | |
이들을 조합한 11,172개의 문자를 갖는다. | |
한글코드의 값 = ((초성 * 21) + 중성) * 28 + 종성 + 0xAC00 | |
(0xAC00은 'ㄱ'의 코드값) | |
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> | |
<meta charset="utf-8" /> | |
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"> | |
<title> add title </title> | |
<link rel="stylesheet" href="/stylesheet/style.css" /> | |
</head> | |
<body> |
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"; | |
/* ********************************************* | |
* Author: Choi, Jaehee, WebTeam. | |
********************************************* */ | |
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins, | |
kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td { | |
margin:0;padding:0;border:0;outline:0;font-weight:inherit;font-style:inherit;font-size:100%;font-family:inherit;vertical-align:baseline; | |
} | |
article,aside,figure,footer,header,hgroup,menu,nav,section{display:block;} /* HTML5 */ | |
audio,video{display:inline-block;} /* HTML5 */ |
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
/** | |
* 문자열을 반전시킨다. | |
* | |
* @param {String} 반전시킬 입력 문자열 | |
* @return {String} 반전된 문자열 | |
*/ | |
var reverse = function (input){ | |
//.. | |
return output; |
OlderNewer