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
function is_zeroleading($n) { | |
// 三桁以上の数字で、最大の桁以外が0だった場合、キリ番とする | |
do { | |
if ($n % 10 !== 0) | |
return false; | |
} while (($n /= 10) >= 10); | |
return true; | |
} | |
function is_sequential($n) { |
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
#TabsToolbar { | |
visibility: collapse !important; | |
} | |
#main-window[sizemode="normal"] #navigator-toolbox { | |
margin-top: -14px !important | |
} | |
#main-window[sizemode="maximized"] #navigator-toolbox { | |
margin-top: -6px !important |
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/sh | |
# dependencies: | |
# - imagemagick | |
# - ani2ico (https://bbs.archlinux.org/viewtopic.php?id=151153) | |
set -ue | |
PATH='/usr/bin:/bin' | |
IFS=' | |
' | |
case "${1:-}" in |
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
diff -aur dwm-6.1.pristine/dwm.c dwm-6.1.new/dwm.c | |
--- dwm-6.1.pristine/dwm.c 2017-07-23 17:20:36.760343947 +0900 | |
+++ dwm-6.1.new/dwm.c 2017-07-23 17:20:49.437010900 +0900 | |
@@ -92,7 +92,7 @@ | |
int basew, baseh, incw, inch, maxw, maxh, minw, minh; | |
int bw, oldbw; | |
unsigned int tags; | |
- int isfixed, isfloating, isurgent, neverfocus, oldstate, isfullscreen; | |
+ int isfixed, isfloating, isurgent, neverfocus, oldstate, isfullscreen, ignoreresizehints; | |
Client *next; |
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/sh | |
set -ue | |
umask 0027 | |
#export PATH='/bin:/usr/bin' | |
export LANG='C' | |
IFS=' | |
' | |
SOURCES='https://adaway.org/hosts.txt | |
https://hosts-file.net/ad_servers.txt |
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 python | |
import csv | |
import sys | |
import json | |
import argparse | |
import copy | |
def get_list(path): | |
targets = [] |
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
import Control.Monad (when, mapM_) | |
import Data.List (takeWhile, uncons) | |
import System.Environment (getArgs, getEnv) | |
import Data.Time | |
timeFormatString = "%Y%m%dT%H:%M:%S%z" | |
main :: IO () | |
main = do | |
args <- getArgs |
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
=begin | |
these snippets might be usable | |
UserConfig[:intersperse_delimiter] ||= ',' | |
UserConfig[:intersperse_default] ||= ' ' | |
det = UserConfig[:intersperse_delimiter].dup | |
det.sub!(Regexp.union(META_CHARACTERS), '\\\\\&') | |
extractor = Regexp.new /\$\(([^\)]+?)(?:#{det}([^\)]+))?\)/ |
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
\documentclass[12pt,notitlepage]{ltjsarticle} | |
\usepackage[hiragino-pro]{luatexja-preset} | |
\usepackage{fancybox} | |
\pagestyle{empty} | |
\makeatletter | |
% set margin | |
% top: 30truemm | |
% bottom: 35truemm | |
% left: 30truemm | |
% right: 30truemm |
NewerOlder