Skip to content

Instantly share code, notes, and snippets.

@nozma
nozma / slimblade.json
Created January 27, 2025 12:20
SlimBlade Pro用のKarabiner-Elements Settings
{
"description": "SlimBlade Pro",
"manipulators": [
{
"conditions": [
{
"name": "press_button3",
"type": "variable_if",
"value": 0
}
@nozma
nozma / init.lua
Last active January 30, 2025 22:48
右クリック長押し+トラックボール操作でスクロールする
-- HANDLE SCROLLING
local deferred = false
-- List of apps to exclude from custom scrolling behavior
local excludedApps = {
"Plasticity",
"Bambu Studio",
"Fusion"
}
@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 April 22, 2024 15:14
scrapboxのusercss
@import "/api/code/nozma/見える文字数カウンター/style.css";
.page { /* pageにしないとテロメアが見えない */
/* テーブルがはみ出てしまう場合に横スクロールするように */
overflow-x: scroll;
}
/* テーブルの1行目を太字、中央揃え (要UserScript) */
.table-start + .line .table-block .cell {
font-weight: bolder;