Skip to content

Instantly share code, notes, and snippets.

@xiupos
xiupos / nlp-ml-huit.ipynb
Last active August 16, 2024 08:32
nlp-ml-huit.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@xiupos
xiupos / nlp-ml-2.ipynb
Last active June 18, 2024 11:35
nlp-ml-2.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
// ==UserScript==
// @name arXiv quick read utilities (WIP)
// @match https://arxiv.org/abs/*
// @version 1
// @grant none
// ==/UserScript==
document.addEventListener("keydown", (e) => {
if (e.code === "Period") {
window.location = window.location.toString().replace('arxiv.org','ar5iv.org');
// ==UserScript==
// @name Radio FM4 Player (WIP)
// @match https://fm4.orf.at/player/*
// @version 1
// @grant none
// ==/UserScript==
const themeColor = document.querySelector('meta[name="theme-color"]');
themeColor.setAttribute('content', '#000');

Marp on vscode など, physics パッケージが使えない mathjax で physcis のコマンドが使いたいとき用 (参考)

\def\quantity#1{\left\{ #1 \right\}}
\def\qty#1{\left\{ #1 \right\}}
\def\pqty#1{\left( #1 \right)}
\def\bqty#1{\left[ #1 \right]}
\def\vqty#1{\left\vert #1 \right\vert}
\def\Bqty#1{\left\{ #1 \right\}}
\def\absolutevalue#1{\left\vert #1 \right\vert}
@xiupos
xiupos / d-ribbon.json5
Last active May 14, 2023 03:37
"Ribbon Dark" a dark theme for Misskey v13
{
id: '4f36ff7f-f087-45bd-bbbe-83b9a8e412d8',
base: 'dark',
name: 'Ribbon Dark',
props: {
X2: ':darken<2<@panel',
X3: 'rgba(255, 255, 255, 0.05)',
X4: 'rgba(255, 255, 255, 0.1)',
X5: 'rgba(255, 255, 255, 0.05)',
X6: 'rgba(255, 255, 255, 0.15)',
#EXTM3U
#EXTENC: UTF-8
#EXTINF:1,ABC Classic FM NSW
http://live-radio01.mediahubaustralia.com/2FMW/mp3/;*.mp3
#EXTINF:1,ABC Triple J
http://live-radio01.mediahubaustralia.com/2TJW/aac/
#EXTINF:1,LISTEN.moe
https://listen.moe/stream
#EXTINF:1,ORF Radio FM4
https://orf-live.ors-shoutcast.at/fm4-q1a
@xiupos
xiupos / manjaro.md
Last active October 15, 2024 12:14

sudo without password

sudo bash -c "echo '%wheel ALL=(ALL:ALL) NOPASSWD: ALL' >> /etc/sudoers"

logout & login

yay