This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Vox populi, vox dei | |
// @namespace https://elendia.net/ | |
// @version 1.0 | |
// @description 朝日新聞デジタルの天声人語を紙面の天声人語っぽく表示します | |
// @author Miyako Kuwano <[email protected]> | |
// @match https://digital.asahi.com/articles/* | |
// @icon https://digital.asahi.com/favicon.ico | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
setopt NO_NOMATCH | |
list_url=() | |
list_tmp=() | |
res=0 | |
page=1 | |
while [ $res = 0 ]; do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@-moz-document domain("wikipedia.org") { | |
body, #mw-page-base { | |
background: #fff; | |
} | |
.mw-body { | |
border: 5px solid #555; | |
} | |
div.vectorTabs li.selected span { | |
background: #555; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
# run-urxvt | |
# Run rxvt-unicode with many options by daemon-client mode | |
# original: http://malkalech.com/urxvt_terminal_emulator | |
opts=( | |
# 一般設定 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// .hyper.js | |
// last modified: 2019/05/07 | |
module.exports = { | |
config: { | |
updateChannel: 'stable', | |
lineHeight: 1.5, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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; |
NewerOlder