Skip to content

Instantly share code, notes, and snippets.

View hasitanai's full-sized avatar

伯方シオ hasitanai

View GitHub Profile
@hasitanai
hasitanai / file1.txt
Last active April 10, 2018 14:28
ご注文はMastodonBotですか? 今すぐ動かしてみたい初めての方に☕ ref: https://qiita.com/Chino_Kafuu/items/6be7aa6798c7d7dcc129
from mastodon import Mastodon
cocoa = Mastodon(
client_id = 'client.secret', #app情報
access_token = 'user.secret', #ログイントークン
api_base_url = 'https://knzk.me' #インスタンス名
)
cocoa.toot('チノちゃん!')
@hasitanai
hasitanai / 絶対画像収集するマン.py
Last active March 28, 2018 05:24
絶対画像収集するマン
from mastodon import *
import re, sys, os, csv, json, codecs, io, gc
import threading, requests
import warnings, traceback
from urllib.request import urlretrieve
from xml.sax.saxutils import unescape as unesc
# これはよく分かってない
warnings.simplefilter("ignore", UnicodeWarning)
@hasitanai
hasitanai / def
Last active December 20, 2017 11:04
/*レイアウト変更*/
.drawer {
height : 320px !important ;
width : 320px !important ;
}
.column {
flex: 1 1 0 !important;
}
.wide .drawer {
flex: 1 1 0;
/*レイアウト変更*/
.drawer {
height : 320px !important ;
width : 320px !important ;
flex: 1 1 0 !important;
}
.column {
flex: 1 1 0 !important;
}
.wide .drawer {
/*レイアウト配置*/
.drawer {
width: 30% !important;
height: 310px !important;
}
.emoji-dialog {
z-index: 1 !important;
position: fixed !important;
top: 5% !important;