Skip to content

Instantly share code, notes, and snippets.

View aiwas's full-sized avatar
💭
hey

Miyako Kuwano aiwas

💭
hey
View GitHub Profile
@aiwas
aiwas / ButtonOpenDispute.jsx
Created March 21, 2023 16:31
紛争を開始
import styled from "styled-components";
export function ButtonOpenDisupute() {
const Button = styled.button`
min-width: 150px;
height: 32px;
padding: 3px 12px;
background-color: white;
border: 1px solid #999999;
border-radius: 16px;
@aiwas
aiwas / vpvd.user.js
Last active March 21, 2024 13:04
Vox populi, vox dei
// ==UserScript==
// @name Vox populi, vox dei
// @namespace https://elendia.net/
// @version 1.0
// @description 朝日新聞デジタルの天声人語を紙面の天声人語っぽく表示します
// @author Miyako Kuwano <aiwas@arg.vc>
// @match https://digital.asahi.com/articles/*
// @icon https://digital.asahi.com/favicon.ico
// @grant none
// ==/UserScript==
@aiwas
aiwas / twitter-share-intent-auto-transition.js
Created July 2, 2020 11:53
Twitterの共有ページから自動で遷移するやつ
// ==UserScript==
// @name Twitter Share Intent Auto Transition
// @namespace http://tampermonkey.net/
// @version 2.0
// @description Twitterの共有ページから自動で遷移するやつ
// @author Miyako Kuwano <aiwas@arg.vc>
// @match https://twitter.com/intent/tweet*
// @match https://twitter.com/share*
// @grant none
// ==/UserScript==
@aiwas
aiwas / bunsan.zsh
Last active July 3, 2019 15:52
フォローしているアカウントの数 / フォローしているアカウントが所属するサーバーの数 を出すやつ
#!/usr/bin/env zsh
setopt NO_NOMATCH
list_url=()
list_tmp=()
res=0
page=1
while [ $res = 0 ]; do
@aiwas
aiwas / wikipedia.css
Created June 9, 2019 11:48
Wikipedia
@-moz-document domain("wikipedia.org") {
body, #mw-page-base {
background: #fff;
}
.mw-body {
border: 5px solid #555;
}
div.vectorTabs li.selected span {
background: #555;
@aiwas
aiwas / print_256.zsh
Created May 12, 2019 13:08
ターミナルで256色出すやつの再発明
print_256_bg() {
for c in {000..015}; do
echo -n "\e[7m\e[38;5;${c}m $c \e[0m"
[ $(($c%8)) -eq 7 ] && echo
done
for c in {016..255}; do
echo -n "\e[7m\e[38;5;${c}m $c \e[0m"
[ $(($c%12)) -eq 3 ] && echo
done
}
@aiwas
aiwas / run-urxvt.sh
Last active May 12, 2019 07:04
urxvt をいい感じで起動するやつ
#!/bin/zsh
# run-urxvt
# Run rxvt-unicode with many options by daemon-client mode
# original: http://malkalech.com/urxvt_terminal_emulator
opts=(
# 一般設定
@aiwas
aiwas / .hyper.js
Last active June 9, 2019 14:51
Hyper Terminal settings
// .hyper.js
// last modified: 2019/05/07
module.exports = {
config: {
updateChannel: 'stable',
lineHeight: 1.5,
@aiwas
aiwas / mod10w3.php
Created March 4, 2019 08:15
モジュラス10 ウェイト3 の再発明
<?php
function mod10w3(string $numeric) {
$num_array = array_reverse(str_split($numeric));
$sum_odd = array_sum(array_map('current', array_chunk(array_slice($num_array, 0), 2)));
$sum_even = array_sum(array_map('current', array_chunk(array_slice($num_array, 1), 2)));
$sum_all = ($sum_odd * 3) + $sum_even;
$mod = $sum_all % 10;
$cd = ($mod == 0) ? 0 : (10 - $mod);
return $cd;
@aiwas
aiwas / mastodon-share-autoclose.user.js
Last active February 25, 2019 18:39
/shareが自動で閉じないことに納得がいかないのを解消するスクリプト
// ==UserScript==
// @name Mastodon Share Page Auto-Closer
// @namespace https://github.com/aiwas/
// @version 0.2
// @description /shareが自動で閉じないことに納得がいかないのを解消するスクリプト
// @author aiwas
// @match https://yysk.icu/share*
// ==/UserScript==
(function() {