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
## 게임을 시작할 때 몇명이 플레이어의 수를 결정합니다. [O] | |
# 3. x2카드 추가 : [O] | |
## x2 카드는 다음 차례의 플레이어(혹은 컴퓨터)에게 두장의 카드를 내게 합니다. | |
# 4. reverse카드 추가 : [O] | |
## reverse 카드는 게임의 순서를 역순으로 바꿉니다. | |
# 5. 컴퓨터 추가 : [O] | |
# 6. sum이 보이지 않게 하기 : [X] | |
## 여럿이서게임을 할 때 (자동으로 게임을 하는)컴퓨터를 추가합니다. | |
## 컴퓨터가 가진 카드는 보이지 않아야 하며, 항상 "게임에 패배하지 않는" 카드를 제출해야 합니다. | |
## (단, 가진 카드 중 어떤 카드를 내더라도 패배할 경우는 제외) |
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
## 게임을 시작할 때 몇명이 플레이어의 수를 결정합니다. [O] | |
# 3. x2카드 추가 : [O] | |
## x2 카드는 다음 차례의 플레이어(혹은 컴퓨터)에게 두장의 카드를 내게 합니다. | |
# 4. reverse카드 추가 : [O] | |
## reverse 카드는 게임의 순서를 역순으로 바꿉니다. | |
# 5. 컴퓨터 추가 : [O] | |
# 6. sum이 보이지 않게 하기 : [X] | |
## 여럿이서게임을 할 때 (자동으로 게임을 하는)컴퓨터를 추가합니다. | |
## 컴퓨터가 가진 카드는 보이지 않아야 하며, 항상 "게임에 패배하지 않는" 카드를 제출해야 합니다. | |
## (단, 가진 카드 중 어떤 카드를 내더라도 패배할 경우는 제외) |
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 RPi.GPIO as gpio | |
import time | |
gpio.setmode(gpio.BCM) | |
gpio.setup(19, gpio.OUT) | |
gpio.setup(20, gpio.OUT) | |
gpio.setup(21, gpio.OUT) | |
gpio.setup(26, gpio.OUT) |
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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
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
from django.db import models | |
from django.utils import timezone | |
class Post(models.Model): | |
author = models.ForeignKey('auth.User') | |
title = models.CharField(max_length=200) | |
text = models.TextField() | |
created_date = models.DateTimeField( | |
default=timezone.now) | |
published_date = models.DateTimeField( |
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
from telegram.ext import Updater, CommandHandler | |
from telegram.ext import MessageHandler, Filters | |
from bill import login_data | |
import re | |
import os | |
import django | |
os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings' | |
django.setup() | |
print('jango setup') |
OlderNewer