Skip to content

Instantly share code, notes, and snippets.

View nekomeowww's full-sized avatar
🥰
Gaining sunshine

Neko nekomeowww

🥰
Gaining sunshine
View GitHub Profile
@nekomeowww
nekomeowww / rate_limit.go
Last active April 21, 2022 09:55
限流中间件
package middleware
type responseBuffer struct {
gin.ResponseWriter // the actual ResponseWriter to flush to
Body *bytes.Buffer // the response content body
Flushed bool
}
func (w *responseBuffer) Write(b []byte) (int, error) {
return w.Body.Write(b)
@nekomeowww
nekomeowww / twitch_day_theme.css
Last active December 10, 2023 09:48
Twitch Chatbox in OBS
/*
Twitch chat browsersource CSS for OBS
Just set the URL as https://www.twitch.tv/popout/%%TWITCHCHANNEL%%/chat
And paste this entire file into the CSS box
Original by twitch.tv/starvingpoet modified by github.com/Bluscream
Readjusted for new (2019/2020) Twitch by github.com/mjbogusz
General Settings
*/
body {
color: #000000 !important;