Skip to content

Instantly share code, notes, and snippets.

@nozma
nozma / ワードミュート.txt
Last active March 17, 2023 05:23
Misskey.ioワードミュート
/(:\w+:\s*)\1{2,}/
:send_money:
:is_all_scam:
:yosano_akiko_is_always_watching_you:
:chinchin:
:boredparrot:
:fastparrot:
:parrot:
:ablobcathyper:
:blobcatrainbow:
@nozma
nozma / misskey.css
Last active March 12, 2023 09:59
Misskey.ioカスタムcss
/* チャンネル投稿をタイムラインに表示しない */
.xcSej.x3762:has(.xww2J) {
display:none;
}
/* ホーム以外のRN非表示 デッキUI対応版 */
div[style="position: sticky; top: var(--stickyTop, 0); z-index: 1000;"]:has(.ti-home~.xqAei.xvOIQ)~div .xcSej.x3762:has(.xBwhh), .xlmHf:not(:has(.ti-home))~.xubeM .xcSej.x3762:has(.xBwhh) {
display: none;
}
/* ホーム以外で「〜が何かを言いました」を非表示 */
@nozma
nozma / result_sample.csv
Created November 28, 2022 22:39
stat.inkから取得したデータのサンプル
We can make this file beautiful and searchable if this error is corrected: It looks like row 8 should actually have 22 columns, instead of 8. in line 7.
rank,specials,inked,rank_in_team,elapsed,date_time,disconnected,simple_result,knockout,judge_friend,judge_opponent,exempted,kill,assist,kill_assist,death,lobby,mode,stage,weapon,sub_weapon,special
S+ 16,5,1174,4,300,2022-11-28T20:32:00Z,FALSE,Victory,FALSE,99,73,FALSE,5,3,8,7,バンカラマッチ (チャレンジ),ホコ,ゴンズイ,パブロ,スプラッシュボム,メガホンレーザー5.1ch
S+ 16,4,1182,4,300,2022-11-28T20:25:00Z,FALSE,Victory,FALSE,49,20,FALSE,7,1,8,9,バンカラマッチ (チャレンジ),ホコ,ゴンズイ,パブロ,スプラッシュボム,メガホンレーザー5.1ch
S+ 16,3,883,2,242,2022-11-28T20:19:00Z,TRUE,Victory,TRUE,NA,NA,FALSE,8,3,11,6,バンカラマッチ (チャレンジ),ホコ,ゴンズイ,パブロ,スプラッシュボム,メガホンレーザー5.1ch
S+ 16,4,907,4,300,2022-11-28T20:13:00Z,FALSE,Defeat,FALSE,48,65,FALSE,4,1,5,11,バンカラマッチ (チャレンジ),ホコ,ザトウ,パブロ,スプラッシュボム,メガホンレーザー5.1ch
S+ 16,0,281,1,64,2022-11-28T20:07:00Z,FALSE,Victory,TRUE,NA,NA,FALSE,4,1,5,2,バンカラマッチ (チャレンジ),ホコ,ゴンズイ,パブロ,スプラッシュボム,メガホンレーザー5.1ch
S+ 16,3,1114,2,302,2022-11-28T20:04:00Z,FALSE,Victory,FALSE,72,51,FALSE,7,4,11,9,バンカラマッチ (チャレンジ),ホコ,ゴンズイ,パブロ,スプラッシュボム,メガホンレーザー5.1ch
S+ 16,6,1344,3,300,2022-11-28T19:57:00Z,FALSE,D
@nozma
nozma / getspl3log.Rmd
Last active November 28, 2022 22:40
stat.inkからSplatoon 3の戦歴データを取得する
---
title: "stat.inkからSplatoon 3の戦歴データを取得する"
author: '@nozma'
date: "2022-11-29"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
library(rvest)
@nozma
nozma / .shrtcts.yaml
Created March 7, 2022 10:52
shrtctsパッケージ用ショートカット設定ファイル
- Name: Insert Python code chunk
Binding: |
context <- rstudioapi::getActiveDocumentContext()
id <- context$id
location <- c(context$selection[[1]]$range$start)
text <- "```{python}\n\n```"
rstudioapi::insertText(location, text, id)
rstudioapi::setCursorPosition(location + c(1, 0))
Interactive: false
@nozma
nozma / income_tax.Rmd
Last active February 26, 2022 12:47
総合課税にするかどうかの計算メモ
---
title: "総合課税にするかどうか計算"
author: '@nozma'
date: "2022/02/26"
---
```{r setup, include=FALSE}
library(dplyr)
library(ggplot2)
options(scipen = 10)
@nozma
nozma / script.js
Last active August 23, 2022 03:08
scrapboxのuserscript
// テーブルの1行目を太字、中央揃えするための処理 ----
// テーブルのタイトルにクラスを付与
function addTableStartClass() {
$('.line').has('.table-block-start').addClass("table-start");
};
addTableStartClass();
// 行選択でクラス名が変更される対策でDOMを監視
// (by https://scrapbox.io/customize/インデント毎に背景色を変える#5fca6962bacd1c0000143f41)
(function () {
const target = document.getElementById('app-container')
@nozma
nozma / style.css
Last active May 21, 2023 23:54
scrapboxのusercss
.page { /* pageにしないとテロメアが見えない */
/* テーブルがはみ出てしまう場合に横スクロールするように */
overflow-x: scroll;
}
/* テーブルの1行目を太字、中央揃え */
.line:has(.table-block-start) + .line .table-block .cell {
font-weight: bolder;
text-align: center;
border-bottom: solid 1px #cccccc;
@nozma
nozma / iris.csv
Created July 13, 2021 12:18
iris+id
Sepal.Length Sepal.Width Petal.Length Petal.Width Species id
5.1 3.5 1.4 0.2 setosa 1
4.9 3 1.4 0.2 setosa 2
4.7 3.2 1.3 0.2 setosa 3
4.6 3.1 1.5 0.2 setosa 4
5 3.6 1.4 0.2 setosa 5
5.4 3.9 1.7 0.4 setosa 6
4.6 3.4 1.4 0.3 setosa 7
5 3.4 1.5 0.2 setosa 8
4.4 2.9 1.4 0.2 setosa 9
@nozma
nozma / Surfingkeys Settings.js
Last active April 2, 2024 03:31
settings for Surfingkeys
// --- setting ---
api.Hints.characters = 'asdfghjklnmvbrtyu';
settings.scrollStepSize = 150;
settings.nextLinkRegex = /((forward|>>|next|次[のへ]|→)+)/i;
settings.prevLinkRegex = /((back|<<|prev(ious)?|前[のへ]|←)+)/i;
settings.aceKeybindings = 'emacs';
settings.omnibarPosition = 'bottom';
settings.hintAlign = 'left';
// --- mapping ---