Skip to content

Instantly share code, notes, and snippets.

View yume-yu's full-sized avatar
🤔

まっつん yume-yu

🤔
View GitHub Profile
@hidao80
hidao80 / Misskey-v11_RssReaderLikeDeck.css
Created December 5, 2022 14:49
This css changes the deck layout of Misskey v11 to an RSS reader-like layout.
article div.main {
display: flex;
}
article div.body {
margin-left: 0.5rem;
margin-right: auto;
}
article div.text p, article div.text span, article div.text br {
content: attr(text);
}
@RobMayer
RobMayer / ArgCoroutine.lua
Last active April 3, 2023 12:26
[TTS] Coroutine with passable arguments
function onload()
cooutside(params)
startLuaCoroutine(self, "normalcoroutine") --this is calling the regular way people do coroutines
end
--This is the usual way people do coroutines, does not allow params to be passed through
function normalcoroutine() --no params can be passed
waitTime(1)
print("1")
waitFrames(60)
@hidao80
hidao80 / MentionReactionToot.gs
Last active June 6, 2020 06:48
【Mastodon】実行時、メンションされていたらDMを返す
/**
* リアクションtootスクリプト
*
* メンションを発見したら直ちにリプライ
*
* アクセストークンとインスタンスのAPI URLはプロジェクトのプロパティに設定しておく。
* ソースコードとトークンおよびインスタンスを切り離すことにより、スクリプトの再利用性が高まった。
*
* リアクションtootスクリプト © @hidao80 クリエイティブ・コモンズ・ライセンス(表示4.0 国際)https://creativecommons.org/licenses/by/4.0/
*/
@rafaelhdr
rafaelhdr / cherrypyserver.py
Last active February 7, 2024 19:04
Cherrypy server with Flask application
# Reason for choosing cherrypy
# https://blog.appdynamics.com/engineering/a-performance-analysis-of-python-wsgi-servers-part-2/
#
# Flask application based on Quickstart
# http://flask.pocoo.org/docs/0.12/quickstart/
#
# CherryPy documentation for this
# http://docs.cherrypy.org/en/latest/deploy.html#wsgi-servers
# http://docs.cherrypy.org/en/latest/advanced.html#host-a-foreign-wsgi-application-in-cherrypy
# Install: pip install cherrypy
@okapies
okapies / mastodon-client.md
Last active October 3, 2023 10:18
Mastodon API の叩き方

Mastodon の API を叩くには以下の手順を踏む必要がある:

  1. OAuth2 クライアントを登録する
  2. アクセストークンを取得する
  3. アクセストークンを Authorization ヘッダに指定して API にアクセスする

OAuth2 クライアント登録

Mastodon の Apps API に登録情報を送ってクライアントを払い出してもらう(一度だけやれば OK).