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
def permission(external_attr): | |
stat_ix = (4, 2, 1) | |
user_perm = 0 | |
for mode_num, mode in zip(stat_ix, (stat.S_IRUSR, stat.S_IWUSR, stat.S_IXUSR)): | |
if (external_attr & mode) > 0: | |
user_perm += mode_num | |
grp_perm = 0 | |
for mode_num, mode in zip(stat_ix, (stat.S_IRGRP, stat.S_IWGRP, stat.S_IXGRP)): |
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
#!/bin/sh | |
if [ "$#" -lt 1 ]; then | |
echo -e "$# is Illegal number of parameters.\n" | |
echo -e "Usage: $0 confluence-installed-dir\n" | |
echo "Example: $0 /opt/atlassian/confluence" | |
exit 1 | |
fi | |
CONF_DIR=$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
#-*- coding: utf-8 -*- | |
# original URL: http://fpdf.de/downloads/addons/3/ | |
__author__ = 'jiho' | |
from fpdf import FPDF | |
class PDF_MC_Table(FPDF): | |
def SetWidths(self, w): | |
# Set the array of column widths | |
self.widths = w | |
def SetAligns(self, a): | |
# Set the array of column alignments |
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
<button id="duplicateBtn">중복 로딩 테스트</button> | |
<script> | |
var button = document.querySelector("#duplicateBtn"); | |
button.addEventListener("click", function(e) { | |
//alert("버튼이 눌렸어요."); | |
//console.log(e); | |
// document level에 커스텀 이벤트 호출하기 | |
var ev = new CustomEvent("btnClick", { | |
detail: { |
NewerOlder