- 브라우저 별로 애매한 Front-end 코드 모음.
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
// 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 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
# case 1 | |
module.exports = function (options) { | |
options.blah; | |
} | |
# case2 | |
module.exports = function () { | |
var options = require('../config.js'); | |
options.blah | |
} |
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
{ | |
"aar": | |
{ | |
"int":["Afar"], | |
"native":["Afaraf"] | |
}, | |
"aa": | |
{ | |
"int":["Afar"], | |
"native":["Afaraf"] |
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
# hashids (https://www.npmjs.org/package/hashids) make to support encrypt/decrypt string, json. | |
hashIds = new Hashids(secret); | |
hashIds.encryptString = (str) -> | |
hashIds.encrypt([].slice.call(new Buffer(str))); | |
hashIds.decryptString = (encrypted) -> | |
new Buffer(hashIds.decrypt(encrypted)).toString() | |
hashIds.encryptJSON = (obj) -> | |
hashIds.encrypt([].slice.call(new Buffer(JSON.stringify(obj)))); |
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
event-tracking.com|4webmasters.org|trafficmonetize.org|semalt.semalt.com|social-buttons.com|best-seo-offer.com|buttons-for-website.com|free-share-buttons.com|buttons-for-your-website.com |
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
<label for="ex1-pw-input" style="display:none;">비밀번호</label> | |
<input type="password" value="비밀번호" data-placeholder="비밀번호" id="ex1-pw-input" /> |
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
fCollection.on 'reset', (collection, opts) -> | |
# contents of opts | |
# { | |
# error: function (model, resp) {} | |
# parse: true | |
# success: function (resp, status, xhr) {} | |
# } |
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
# +Includes 를 넣었습니다. 이것은 httpd.conf 에서 <Directory> 설정을 상속받아 Includes를 추가해주어야 하므로 | |
# Options Includes 가 아니라 Options +Includes 입니다. | |
# .htaccess 를 사용하려면 <Directory> 에서 AllowOverride All 로 설정하세요. | |
AddOutputFilter INCLUDES .html | |
Options +Includes |
OlderNewer