Instantly share code, notes, and snippets.

View drop.html
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<style>
body{
margin: 0 auto;
width: 980px;
}
a{
View Twitter_all_media_downloader.py
from twython import Twython, TwythonError
import urllib.request
import re
import time
import os
import emoji
import openpyxl
#ファイル名をツイート日時(日本時間)に設定
def change_name(date):
View baba.py
import random
#カードを分配する関数
def dist(num):
player_tehuda = [[] for i in range(num)]
while len(cards) != 0:
for i in range(player_num):
if len(cards) != 0:
choice = random.choice(cards)
player_tehuda[i].append(choice)
View cache.py
from tinydb import TinyDB, Query
import datetime
#重い処理の例
def omoi(i):
#データベースから読み込まれていない場合
if i == 0:
for i in range(100000000):
i = i + 1
if DB_length == 0:
View slater.py
densi = int(input("\n原子番号:"))
power = input("有効核電荷を求めたい電子の軌道:")
orbit_num = [2,2,6,2,6,2,10,6]
orbit_name = ["1s","2s","2p","3s","3p","4s","3d","4p"]
gensi = ["水素","ヘリウム","リチウム","ベリリウム","ホウ素","炭素","窒素","酸素","フッ素","ネオン","ナトリウム","マグネシウム","アルミニウム","ケイ素","リン","硫黄",
"塩素","アルゴン","カリウム","カルシウム","スカンジウム","チタン","バナジウム","クロム","マンガン","","コバルト","ニッケル","","亜鉛","ガリウム","ゲルマニウム",
"ヒ素","セレン","臭素","クリプトン"]
print("\n元素名: {}".format(gensi[densi-1]))
View periodic_table.py
densi = int(input("\n原子番号:"))
tmp = densi
gensi = ["水素","ヘリウム","リチウム","ベリリウム","ホウ素","炭素","窒素","酸素","フッ素","ネオン","ナトリウム","マグネシウム","アルミニウム","ケイ素","リン","硫黄",
"塩素","アルゴン","カリウム","カルシウム"]
orbit_num = [2,2,6,2,6,2,10]
orbit_name = ["1s","2s","2p","3s","3p","4s","3d"]
orbit=[]
View RNA.py
RNA = input()
aminosan_list = {
"フェニルアラニン":["UUU","UUC"],
"ロイシン":["UUA","UUG","CUU","CUC","CUA","CUG"],
"イソロイシン":["AUU","AUC","AUA"],
"メチオニン":["AUG"],
"バリン":["GUU","GUC","GUA","GUG"],
"セリン":["UCU","UCC","UCA","UCG"],
"プロリン":["CCU","CCC","CCA","CCG"],
"トレオニン":["ACU","ACC","ACA","ACG"],
View kao.py
import cv2
import os
#
face_cascade_path = "haarcascade_frontalface_alt2.xml"
# カスケード分類器を作成
face_cascade = cv2.CascadeClassifier(face_cascade_path)
# 保存先フォルダを作成
if not os.path.exists("output"):
View TwiRealDownloader.py
from twython import Twython, TwythonError
from requests_oauthlib import OAuth1Session
import urllib.request
import re
import time
import os
from glob import glob
import datetime
import emoji