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
#!/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
# 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
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 조 (서비스 이용권리의 양도 등) |
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장 총칙 | |
제1조(목적) 이 영은 「온라인투자연계금융업 및 이용자 보호에 관한 법률」에서 위임된 사항과 그 시행에 필요한 사항을 규정함을 목적으로 한다. | |
제2조(특수관계인의 범위 등) ① 「온라인투자연계금융업 및 이용자 보호에 관한 법률」(이하 “법”이라 한다) 제2조제10호가목에서 “대통령령으로 정하는 특수한 관계에 있는 자”란 「금융회사의 지배구조에 관한 법률 시행령」 제3조제1항 각 호의 어느 하나에 해당하는 관계가 있는 자를 말한다. | |
② 법 제2조제10호나목2)에서 “대통령령으로 정하는 자”란 다음 각 호의 어느 하나에 해당하는 자를 말한다. | |
1. 혼자서 또는 다른 주주와의 합의ㆍ계약 등에 따라 대표이사 또는 이사의 과반수를 선임(選任)한 주주 | |
2. 경영전략, 조직 변경 등 주요 의사결정이나 업무집행에 지배적인 영향력을 행사한다고 인정되는 자로서 금융위원회가 정하는 주주 | |
③ 법 제2조제11호에서 “대통령령으로 정하는 금액”이란 「상법」 제30조제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
import json | |
import sys | |
import random | |
# 도도 파이터에 참가하기 위해서는 에이전트를 만들어서 제출해 주셔야 합니다. | |
# 에이전트는 사용자가 작성하는 인공지능 코드로서, 주어지는 현재 게임 상태를 바탕으로 | |
# 어떤 액션을 취할지를 결정하는 역할을 합니다. | |
# | |
# 액션 설명 | |
# - idle - 아무것도 하지 않습니다. |
OlderNewer