- 브라우저 별로 애매한 Front-end 코드 모음.
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
<label for="ex1-pw-input" style="display:none;">비밀번호</label> | |
<input type="password" value="비밀번호" data-placeholder="비밀번호" id="ex1-pw-input" /> |
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
fCollection.on 'reset', (collection, opts) -> | |
# contents of opts | |
# { | |
# error: function (model, resp) {} | |
# parse: true | |
# success: function (resp, status, xhr) {} | |
# } |
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
# +Includes 를 넣었습니다. 이것은 httpd.conf 에서 <Directory> 설정을 상속받아 Includes를 추가해주어야 하므로 | |
# Options Includes 가 아니라 Options +Includes 입니다. | |
# .htaccess 를 사용하려면 <Directory> 에서 AllowOverride All 로 설정하세요. | |
AddOutputFilter INCLUDES .html | |
Options +Includes |
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
# BackboneJS 에 의존하는 템플릿 클래스. | |
# XML 로 로드해 템플리팅해서 리턴함 | |
# depends on backbone(Backbone.Event), jQuery(Ajax calling), underscore(Template engine) | |
root = root ? this | |
class root.Template | |
# 템플릿 XML 파일 로드 완료여부 | |
@ready = false | |
constructor: (@options = {templateURL: ''}) -> | |
@rawContents = '' |
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
<!--#config timefmt="%s" --> <!-- 시간을 읽는 방법을 Unix Timestamp 로 설정 --> | |
<link href="/css/styles.css?<!--#flastmod virtual="/css/styles.css" -->" rel="stylesheet" type="text/css" /> <!-- last modified 타임을 GET 파라미터로 넘김 --> | |
<script type="text/javascript" src="/js/vendor/vendors.min.js?<!--#flastmod virtual="/js/vendor/vendors.min.js" -->"></script> | |
<script type="text/javascript" src="/js/app/common.min.js?<!--#flastmod virtual="/js/app/common.min.js" -->"></script> |
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
_.each(_.functions(Backbone.Events), (functionName) -> | |
Backbone.Events[functionName] = _.wrap(Backbone.Events[functionName], (fun) -> | |
args = _.toArray(arguments).slice(1) | |
console.log.call console, _.flatten([functionName, args]) | |
console.trace() | |
fun.apply(this, args) | |
) | |
) | |
_.extend Backbone, Backbone.Events |
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
echo "deb http://apt.opscode.com/ precise-0.10 main" | sudo tee /etc/apt/sources.list.d/opscode.list | |
sudo mkdir -p /etc/apt/trusted.gpg.d | |
gpg --keyserver keys.gnupg.net --recv-keys 83EF826A | |
gpg --export [email protected] | sudo tee /etc/apt/trusted.gpg.d/opscode-keyring.gpg > /dev/null | |
sudo apt-get -y update | |
sudo apt-get -y install opscode-keyring | |
sudo apt-get -y upgrade | |
sudo apt-get -y install chef |
OlderNewer