Skip to content

Instantly share code, notes, and snippets.

@fronteer-kr
fronteer-kr / gist:33eb8d94395f877553f3
Last active August 29, 2015 14:27
freepik.com : free license with attribution
<a href="http://www.freepik.com">Designed by Freepik</a>
@fronteer-kr
fronteer-kr / gist:7f81f93d732656735730
Created August 18, 2015 05:08
marked.js 에서 연속줄바꿈 처리 지원
// paragraph 내부의 연속 줄바꿈을 지원하도록!!
var block = {
newline: /^\n+/,
code: /^( {4}[^\n]+\n*)+/,
fences: noop,
hr: /^( *[-*_]){3,} *(?:\n+|$)/,
heading: /^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,
nptable: noop,
lheading: /^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,
@fronteer-kr
fronteer-kr / gist:0464934d260257cbf626
Last active August 29, 2015 14:27
Facebook 댓글 등록시...알림 처리등
window.fbAsyncInit = function() {
FB.init({
appId : 'YOUR APP ID',
xfbml : true,
version : 'v2.4'
});
FB.Event.subscribe('comment.create', function(response){
// 여기에 코드 추가
console.log(response);
@fronteer-kr
fronteer-kr / gist:d07df6a3243ea6dd5caf
Last active August 29, 2015 14:27
Facebook plugin 연동 javascript #2
<script type="text/javascript" src="//connect.facebook.net/ko_KR/all.js"></script>
<script type="text/javascript">
window.fbAsyncInit = function() {
FB.init({
appId : 'YOUR APP ID',
xfbml : true,
version : 'v2.4'
});
@fronteer-kr
fronteer-kr / gist:a6a2a9a51e6aac122e98
Last active August 29, 2015 14:27
Facebook plugin 연동 Javascript #1
<script type="text/javascript">
window.fbAsyncInit = function() {
FB.init({
appId : 'YOUR APP ID',
xfbml : true,
version : 'v2.4'
});
};
@fronteer-kr
fronteer-kr / gist:64a788d9fc0886fc2bcd
Last active August 29, 2015 14:27
facebook plugin HTML 영역
<!-- 기본 -->
<div id="fb-root"></div>
<!-- '좋아요' -->
<div class="fb-like"
data-href="http://www.your-domain.com/your-page.html"
data-layout="standard"
data-action="like"
data-share="true"
data-show-faces="true">
@fronteer-kr
fronteer-kr / gist:5205728fc4811b5f8e39
Last active August 29, 2015 14:27
total.js 의 다중 파일 업로드시 문제점 조치
// internal.js 라인 208 라인 부근
parser.onPartEnd = function() {
if (stream !== null) {
stream.end();
stream = null;
}
if (req.buffer_exceeded)
@fronteer-kr
fronteer-kr / gist:a92b3a5d8abb1ccb05f3
Last active August 29, 2015 14:27
jquery.uploadfile.js 에 frtrSecretMode 옵션 추가
// 원본 - https://github.com/hayageek/jquery-upload-file/
/*!
* jQuery Upload File Plugin
* version: 4.0.2
* @requires jQuery v1.5 or later & form plugin
* Copyright (c) 2013 Ravishanker Kusuma
* http://hayageek.com/
*/
@fronteer-kr
fronteer-kr / gist:5f633cad97982ba1f977
Last active August 29, 2015 14:26
total.js 의 index.js 내부의 compileConent 함수 보완
Framework.prototype.compileContent = function(extension, content, filename) {
var self = this;
// 수정전
// if (filename && (filename.indexOf('.min.') !== -1 || filename.indexOf('-min.') !== -1 ))
// 수정후
if (filename && (filename.indexOf('.min.') !== -1 || filename.indexOf('-min.') !== -1 || filename.indexOf('js-min') !== -1 ))
return content;
@fronteer-kr
fronteer-kr / gist:41a1da209330b6c989e8
Created August 3, 2015 06:08
Apache 2.4.10 소스 설치
cd /tmp
#------------------------------------------------------------------------
# OPENSSL
wget http://www.openssl.org/source/openssl-1.0.1i.tar.gz
tar zxvf openssl-1.0.1i.tar.gz
cd openssl-1.0.1i/
./config --prefix=/usr/local/openssl --openssldir=/usr/local/openssl
make; make install