This file contains hidden or 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/bash | |
N=100 | |
WIDTH=281 | |
HEIGHT=211 | |
STRATEGY_ARRAY=( "resize" "thumbnail" "scale" "sample" ) | |
org_filename=$1 | |
filename=${org_filename%.*} | |
extension=${org_filename##*.} |
This file contains hidden or 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/bash | |
NUMERAL=123456789 | |
ALPHABET=abcdefghijkmnpqrstuvwxyzABCDEFGHIJKLMNPQRSTUVWXYZ | |
SYMBOL=\\.\\$\\% | |
if [ "$1" = "--help" ] || [ "$1" = "-h" ]; then | |
echo "Usage: bash ./random-password.sh [Length] [Count]" 1>&2 | |
exit 1 | |
fi |
This file contains hidden or 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/bash | |
cd /opt/vim | |
sudo git pull | |
sudo ./configure --with-features=huge \ | |
--enable-multibyte \ | |
--enable-gpm \ | |
--enable-cscope \ |
This file contains hidden or 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
% !TeX encoding = UTF-8 | |
% !TeX program = upLaTeX + dvipdfmx | |
\documentclass[uplatex]{article} | |
\usepackage{amsmath} | |
\usepackage{physics} | |
\usepackage{geometry} | |
\usepackage[dvipdfmx]{graphicx} |
This file contains hidden or 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
@if(0)==(0) ECHO OFF | |
rem このバッチのあるフォルダをカレントとしてWSHを実行 | |
cscript.exe //nologo //E:JScript "%~f0" %0\.. | |
@pause | |
GOTO :EOF | |
@end | |
This file contains hidden or 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
% !TeX encoding = UTF-8 | |
% !TeX program = upLaTeX + dvipdfmx | |
\documentclass[dvipdfmx]{beamer} | |
\mode<presentation> | |
\usepackage{bxdpx-beamer} % ナビゲーションシンボルを機能させる | |
\usepackage{pxjahyper} % しおりの文字化け対策 | |
\renewcommand{\kanjifamilydefault}{\gtdefault} % 和文既定をゴシックに変更 | |
\usepackage{tikz} |
This file contains hidden or 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
% !TeX encoding = UTF-8 | |
% !TeX program = upLaTeX + dvipdfmx | |
\documentclass[dvipdfmx]{ujarticle} | |
\usepackage{pdfpages} | |
\usepackage[atend]{bookmark} | |
\usepackage{pxjahyper} % しおり, タイトル等の日本語の文字化けを防止する. | |
\BookmarkAtEnd{% |
This file contains hidden or 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/bash | |
workdir=/run/user/1000/gvfs/cdda:host=sr0/ | |
suff=.wav | |
outsuff=.flac | |
if [ $# -ne 1 ]; then | |
echo "Usage:" 1>&2 | |
echo "$ bash wav2flac.sh [outputdir]" 1>&2 | |
exit 1 |
This file contains hidden or 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
% !TeX encoding = UTF-8 | |
% !TeX program = pLaTeX + dvipdfmx | |
% | |
% superimpose.tex A4用 | |
% pLaTeX + dvipdfmx + tikz | |
% | |
% \documentclass{ltjsarticle} | |
% \usepackage[ipaex]{luatexja-preset} | |
\documentclass[a4]{jarticle} |