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
#!/bin/bash | |
#0 16 * * * /bin/bash /home/ubuntu/cleanup_rrds.sh | |
pushd /var/lib/ganglia/rrds/CLUSTER/ | |
DLST=( `du -h | grep 4.0K | awk '{print $2}' ` ) | |
echo "CLEANUP DIRS: ${#DLST}" | |
[ ${#DLST} -gt 0 ] && ( echo $DLST | xargs sudo rm -rf && echo "Done") | |
popd |
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
def add(x): | |
return x + 1 | |
assert add(1) == 3 |
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
# python ./manage.py dumpdata eight.Kcb020BadCode --indent=2 | python unicode_escape.py | |
import sys | |
import codecs | |
decoder = codecs.getdecoder('unicode_escape') | |
for line in sys.stdin.readlines(): | |
print((decoder(line))[0], 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
class A(object): | |
def __new__(cls, version=0): | |
if version==0: | |
return super(A, cls).__new__(cls) | |
elif version==1: | |
return A1.__new__(A1) | |
def whoami(self): | |
print("A") |
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
eight_percent = "8percent" |
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
* CODE - 하드웨어와 소프트웨어에 숨어 있는 언어 | |
* 실용주의 프로그래머 | |
* 클린 소프트웨어 - 애자일 원칙과 패턴, 그리고 실천 방법 | |
* 월스트리트저널 인포그래픽 가이드 | |
* 클린 코드를 위한 테스트 주도 개발 | |
* HTTP 완벽 가이드 | |
* 한 권으로 그리는 컴퓨터과학 로드맵 : 알고리즘, 데이터 구조, 데이터베이스, 컴퓨터 구조, 프로그래밍 원리 | |
* How to Design Programs | |
* 프로그램 디자인 어떻게 할 것인가(HTDP) | |
* 리눅스 커맨드라인 완벽 입문서 |
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
import json | |
import sys | |
import random | |
# 도도 파이터에 참가하기 위해서는 에이전트를 만들어서 제출해 주셔야 합니다. | |
# 에이전트는 사용자가 작성하는 인공지능 코드로서, 주어지는 현재 게임 상태를 바탕으로 | |
# 어떤 액션을 취할지를 결정하는 역할을 합니다. | |
# | |
# 액션 설명 | |
# - idle - 아무것도 하지 않습니다. |
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
count = int(input()) | |
sizes = [int(input()) for _ in range(count)] | |
map = [] | |
a=max(sizes) | |
for i in range(a): | |
map.append([' ']*a) | |
for n in sizes: | |
x = int(a / 2) - int(n / 2) | |
m = int(n/2) |
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
r,t,c=range,'*',int(input()) | |
s=[int(input()) for _ in r(c)] | |
a=max(s) | |
m=[[' ']*a for j in r(a)] | |
for n in s: | |
x=a//2-n//2 | |
b=n//2 | |
for i in r(b+1):z=i+x;u=x-i;m[b+z][z]=t;m[b+u][z]=t;m[b+z][n-1+u]=t;m[b+u][n-1+u]=t | |
for l in m:print(''.join(l)) |
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
이용약관 | |
목차 | |
제 1 조 (약관의 적용) | |
제 2 조 (용어의 정의) | |
제 3 조 (서비스의 종류) | |
제 4 조 (서비스 이용계약의 성립 등) | |
제 5 조 (회원 가입) | |
제 6 조 (회원정보의 수집과 보호) | |
제 7 조 (회원의 의무) | |
제 8 조 (서비스 이용권리의 양도 등) |
OlderNewer