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
| // watch - translate - assign other member of scope | |
| // check out how it works at http://jsfiddle.net/SWe4r/1/ | |
| var app = angular.module('watcherApp', []); | |
| app.controller('watcherController', function ($scope) { | |
| $scope.source = 'aaaaaa'; | |
| $scope.foo = { | |
| bar: 'aaa' | |
| }; | |
| $scope.bar = { |
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
| log = (input) -> | |
| Math.log(input) / Math.log(26) | |
| getColName = (input) -> | |
| temp = input | |
| char = '' | |
| result = '' | |
| # temp -= temp / temp^power | |
| # console.log power |
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
| module.exports = [ | |
| "ab", | |
| "aa", | |
| "af", | |
| "ak", | |
| "sq", | |
| "am", | |
| "ar", | |
| "an", | |
| "hy", |
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 |
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
| <!--#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
| # 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 = '' |