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 subprocess | |
from PIL import Image | |
# 指定したディレクトリ内のファイルをすべて削除する関数 | |
def clear_directory(directory): | |
for file in os.listdir(directory): | |
os.remove(os.path.join(directory, file)) | |
# 画像をリサイズし、連番でリネームして保存する関数 |
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="jp"> | |
<style> | |
* { | |
margin: 0; | |
padding: 0; | |
} | |
body { | |
background: #000; |
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
""" | |
Twitter DeveloperページでAPIのアプリケーション登録を行う | |
https://developer.twitter.com/ja | |
そしてTwitter Developerページで以下の情報が発行される。それを下の変数に代入する | |
""" | |
consumer_key = "" | |
consumer_secret = "" | |
access_token = "" |
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
const element = document.getElementById('add_yt') | |
const p = { | |
videoURL: 'https://www.youtube.com/watch?v=u7o6KrSFVNY', | |
containment: '.yt_wrap', | |
autoPlay: true, | |
loop: true, | |
mute: true, | |
showControls: false, | |
showYTLogo: false, |
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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
[System.Serializable] | |
public class MyAxleInfo { | |
public WheelCollider leftWheel; | |
public WheelCollider rightWheel; | |
public GameObject visualLeftWheel; | |
public GameObject visualRightWheel; |
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> | |
<style> | |
* { | |
margin: 0; | |
padding: 0; | |
} | |
body { |
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 pyautogui | |
import time | |
import random | |
def send_sticker(): | |
""" | |
スタンプを送信 | |
""" | |
time.sleep(5) | |
# スタンプメニューを開く |
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 subprocess | |
# Pythonからコマンド実行する例 | |
def add_telop(self, text, index, input_file_path): | |
file_name = os.path.basename(input_file_path) | |
output_video_path = os.path.join(self.telopped_working_dir, "{}.mp4".format(index)) | |
cmd = """ | |
ffmpeg -y -i {} \ | |
-filter_complex "drawtext=fontfile=/usr/share/fonts/truetype/freefont/FreeSerif.ttf: text='{}':\ |
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 selenium import webdriver | |
from time import sleep | |
import urllib.parse | |
import random | |
def 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
import 'package:flutter/material.dart'; | |
import 'package:video_player/video_player.dart'; | |
/* | |
ドゥワァ! センナナヒャク!!アプリの作り方 | |
▶︎使用技術 | |
・Flutter | |
iOS/Androidアプリが両方1つのコードで作れるフレームワーク。 |
NewerOlder