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 os | |
import time | |
import json | |
from logging import getLogger, config | |
import tweepy | |
from dotenv import load_dotenv | |
load_dotenv(verbose=True) | |
load_dotenv(".env") |
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 python:3.8 | |
RUN apt update \ | |
&& apt upgrade -y \ | |
&& apt install -y npm nodejs lsb-release expect \ | |
&& pip3 install online-judge-tools\ | |
&& npm install -g atcoder-cli \ | |
&& pip3 install flake8 \ | |
&& pip3 install autopep8 \ | |
&& acc config default-task-choice all |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 numpy as np | |
import tensorflow as tf | |
x_vals = np.array([1., 3., 5., 7., 9.]) | |
# Create the TensorFlow Placceholder | |
x_data = tf.placeholder(tf.float32) | |
# Constant for multilication |
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
alpha = math.sqrt((4*math.sqrt(3)-3)) | |
def circle(a,b): | |
fig = plt.figure() | |
ax = fig.add_subplot(111) | |
for i in range (0, 10,1): | |
circle1 = plt.Circle((a+i*2*(1+alpha),b),1,fc="indianred") | |
circle2 = plt.Circle((a+2+i*2*(1+alpha),b),1,fc="indianred") | |
circle3 = plt.Circle((a+1+i*2*(1+alpha),b+math.sqrt(3)),1,fc="indianred") | |
circle4 = plt.Circle((a+1+alpha+i*2*(1+alpha),3),1,fc="indianred") |
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
alpha = math.sqrt((4*math.sqrt(3)-3)) | |
def circle(a,b): | |
fig = plt.figure() | |
ax = fig.add_subplot(111) | |
for i in range (333, 340,1): | |
circle1 = plt.Circle((a+i*2*(1+alpha),b),1,fc="indianred") | |
circle2 = plt.Circle((a+2+i*2*(1+alpha),b),1,fc="indianred") | |
circle3 = plt.Circle((a+1+i*2*(1+alpha),b+math.sqrt(3)),1,fc="indianred") | |
circle4 = plt.Circle((a+1+alpha+i*2*(1+alpha),3),1,fc="indianred") |
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 circle(): | |
fig = plt.figure() | |
ax = fig.add_subplot(111) | |
# 中心(0.2,0.2)で半径0.2の円を描画 | |
circle = plt.Circle((0.2,0.2),0.2,fc="indianred") | |
ax.add_patch(circle) | |
circle() |