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
# -*- coding: utf-8 -*- | |
import urllib.request | |
from bs4 import BeautifulSoup | |
import re | |
import lxml.html | |
import requests | |
from time import sleep | |
import smtplib | |
from io import StringIO |
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 java.awt.GridLayout; | |
import javax.swing.JButton; | |
import javax.swing.JFrame; | |
public class GUI extends JFrame { | |
// コンテナに載せるボタンのための配列生成。 | |
JButton[] contena_button = new JButton[4]; |
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 cv2 | |
import datetime | |
fileName = "photo_" + datetime.datetime.today().strftime('%Y%m%d_%H%M%S') + ".png" | |
# 内蔵カメラのデバイスIDは0、USBで接続したカメラは1以降。 | |
capture = cv2.VideoCapture(0) | |
# 取得した画像データは変数imageに格納。retは取得成功変数。 |
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 java.awt.BorderLayout; | |
import java.awt.Color; | |
import java.awt.Font; | |
import java.awt.event.KeyEvent; | |
import java.awt.event.KeyListener; | |
import java.util.Random; | |
import javax.swing.JFrame; | |
import javax.swing.JLabel; |
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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Question Form</title> | |
<style> | |
h2 { | |
background-color: bisque; | |
} |
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
# -*- coding: utf-8 -*- | |
require 'pstore' | |
# PStoreデータベースを作成する。なければ自動的に作成される。 | |
db = PStore.new('drinkdb') | |
# PStoreにデータを書き込む | |
db.transaction do | |
# 文字列をキーを指定してPStoreに保存する | |
db["somethingToDrink"] = "orange juice" |
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
#coding : utf-8 | |
import os | |
import time | |
from selenium import webdriver | |
#ブラウザはFirefoxを使う | |
driver = webdriver.Firefox() | |
#同志社大学図書のサイトにアクセス |
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
'グローバル変数 | |
Dim fileObject As Variant | |
Dim k As Integer | |
'FileSystemObjectオブジェクト | |
Dim fso As Scripting.FileSystemObjec | |
'////////////main//////////////' | |
Public Sub main() |
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
package NotePad; | |
import java.io.BufferedReader; | |
import java.io.BufferedWriter; | |
import java.io.File; | |
import java.io.FileReader; | |
import java.io.FileWriter; | |
import java.io.IOException; | |
import javafx.application.Application; |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from pytube import YouTube | |
import openpyxl as px | |
import sys | |
import xlwings as xw | |
youtube_url_list = [] | |
url_list = xw.Book('youtube_url.xlsm') |
OlderNewer