This file contains hidden or 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
function addPerson (conf) { | |
var options = $.extend({ | |
username: null, | |
first: null, | |
last: null, | |
birthday: new Date(1970, 1, 1), | |
gender: "unknown" | |
}, conf); | |
// blah blah |
This file contains hidden or 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"> | |
<head> | |
<meta charset="utf-8"> | |
<title>easyXDM test</title> | |
</head> | |
<body style="background-color:red"> | |
<div id="wrap"> | |
<button id="start">Start</button> | |
<span id="result"></span> |
This file contains hidden or 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 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>CDATA section in XHTML</title> | |
<script type="text/javascript"> | |
// <![CDATA[ | |
function t(a, b) { | |
return (a == 1 && b == 2); | |
} |
This file contains hidden or 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
.blind { | |
position: absolute !important; | |
height: 1px; width: 1px; | |
overflow: hidden; | |
clip: rect(1px 1px 1px 1px); /* IE6, IE7 */ | |
clip: rect(1px, 1px, 1px, 1px); | |
} |
This file contains hidden or 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
/* old IE(~7) clearing float */ | |
.clear{*zoom:1} | |
/* modern browser include IE(8~) clearing float */ | |
.clear:after{content:" ";display:block;clear:both} |
This file contains hidden or 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 async = { | |
map: function (arr, iterator, callback) { | |
throw "IMPLEMENT ME PLZ" | |
}, | |
mapSeries: function (arr, iterator, callback) { | |
throw "IMPLEMENT ME PLZ" | |
} | |
}; | |
var test_arr = [1,2,3,4,5,6,7,8,9,0]; |
This file contains hidden or 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
body | |
margin 0 | |
padding 0 | |
background #fff | |
color #000 | |
font 12px/1.2 sans-serif | |
form, fieldset, h1, h2, h3, ul, ol, li, p, button, input, textarea, dl, dt, dd | |
margin 0 | |
padding 0 |
This file contains hidden or 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
require('crypto').createHash('md5').update(STRING_TO_BE_HASHED).digest("hex") |
This file contains hidden or 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
number_format = (num) -> return String(num).replace(/(\d)(?=(\d{3})+\b)/g,'$1,') |
This file contains hidden or 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
async_call = (callback) -> | |
setTimeout callback, 1 | |
class ThisPlus | |
# 생성자 | |
constructor: -> | |
# javascript의 this.do_something과 동일 | |
@do_something() | |
callback = => # => 를 통해 내부 함수에 this를 binding | |
@do_something() |
OlderNewer