jpdfbookmarks
を使用して、自炊したPDFに目次データを付与する方法を説明する。
MacであればHomebrewでインストール可能。
% brew install jpdfbookmarks
自作したフォントを公開して Web フォントとして利用する方法.
以下は馬酔木明朝を font-family: Asebi;
として利用する例.
フォントファイルをホストするサーバをえらぶ. 以下の条件をみたす必要がある.
/********************************** | |
* | |
* hlrcon | |
* HLDS rcon client | |
* usage: | |
* hlrcon <addr> <port> <pass> <cmd> | |
* | |
* | |
* Thanks to: | |
* Ryozi |
#!/usr/bin/ruby - | |
def main | |
url = 'http://dyn.value-domain.com/cgi-bin/dyn.fcg?' | |
dm, hs, pw = 'example.com', 'www', 'xxxx' | |
ip = `wget -q -O - #{url}ip` | |
require 'optparse' | |
ARGV.options {|opt| | |
opt.on('-d', '--domain=DOMAIN', 'domain (example.com)' ){|v| dm = v} |
/* | |
* amx_practice_plus | |
* - infinite money | |
* - infinite ammo | |
* - infinite health | |
* - damage display | |
* - checkpoint ( I referred kz plugin ) | |
* | |
* todo | |
* - buyzone edit ( I'll refer the nice plugin "buyzone_range" ) |
指数表現((a/b)c の形で表される数)に関する数学パズルを Python で強引に解く.
a,b,c,d,e,f は 1 以上 10 以下の相異なる整数とする.
(a/b)c / (d/e)f ができるだけ 1 に近くなる a,b,c,d,e,f を求めよ.
(元の問題: "Simplifying Exponential Expressions" https://twitter.com/hyuki/status/1105380734699679744 )
# .zshrc: users generic .zshrc file for zsh(1) | |
# | |
# This file is sourced only for interactive shells. It | |
# should contain commands to set up aliases, functions, | |
# options, key bindings, etc. | |
# | |
# Global Order: zshenv, zprofile, zshrc, zlogin | |
## General | |
# |
※2017年2月頃に調べたことや書いたコードの断片があったので今回まとめた.
ある日こんな記事を見つけた.