Skip to content

Instantly share code, notes, and snippets.

View motchy869's full-sized avatar
🤔

motchy motchy869

🤔
View GitHub Profile
@motchy869
motchy869 / Makefile
Last active May 13, 2017 11:00
Windows用Makefile。ソースファイル自動検索
#makefile for Windows
#プログラム名
PROGNAME := main
#ビルドタイプ
BUILD_TYPE := debug
#プログラミング言語(C, C++)
LANG := C++
@motchy869
motchy869 / Xdefault-tgif-japanese
Created January 16, 2017 05:31
tgifの日本語対応に掛かるXdefaultの追記事項
! Xtt による truetype font を使う。
Tgif.SquareDoubleByteFonts: \n\
-*-*-medium-r-*--%d-*-*-*-*-*-*x0208.1983-*,H,Ryumin-Light-EUC-H\n\
-*-*-medium-r-*--%d-*-*-*-*-*-*x0208.1983-*,H,Ryumin-Light-EUC-H\n\
-*-*-medium-r-*--%d-*-*-*-*-*-*x0208.1983-*,H,Ryumin-Light-EUC-H\n\
-*-*-medium-r-*--%d-*-*-*-*-*-*x0208.1983-*,H,Ryumin-Light-EUC-H\n\
\n\
-*-*-medium-r-*--%d-*-*-*-*-*-*x0208.1983-*,H,GothicBBB-Medium-EUC-H\n\
-*-*-medium-r-*--%d-*-*-*-*-*-*x0208.1983-*,H,GothicBBB-Medium-EUC-H\n\
-*-*-medium-r-*--%d-*-*-*-*-*-*x0208.1983-*,H,GothicBBB-Medium-EUC-H\n\
@motchy869
motchy869 / .Xdefaults-my-tgif
Last active January 22, 2017 13:49
my .Xdefaults for Tgif
! Xtt による truetype font を使う。
Tgif.SquareDoubleByteFonts: \n\
-*-*-medium-r-*--%d-*-*-*-*-*-*x0208.1983-*,H,Ryumin-Light-EUC-H\n\
-*-*-medium-r-*--%d-*-*-*-*-*-*x0208.1983-*,H,Ryumin-Light-EUC-H\n\
-*-*-medium-r-*--%d-*-*-*-*-*-*x0208.1983-*,H,Ryumin-Light-EUC-H\n\
-*-*-medium-r-*--%d-*-*-*-*-*-*x0208.1983-*,H,Ryumin-Light-EUC-H\n\
\n\
-*-*-medium-r-*--%d-*-*-*-*-*-*x0208.1983-*,H,GothicBBB-Medium-EUC-H\n\
-*-*-medium-r-*--%d-*-*-*-*-*-*x0208.1983-*,H,GothicBBB-Medium-EUC-H\n\
-*-*-medium-r-*--%d-*-*-*-*-*-*x0208.1983-*,H,GothicBBB-Medium-EUC-H\n\
@motchy869
motchy869 / comments-around-matrix.tex
Last active February 18, 2017 12:16
行列の周りにコメントを付ける
\documentclass{jarticle}
\usepackage{amsmath, multirow,bigdelim}
\begin{document}
\[
\begin{array}{r cccc l l}%r: 左の[。 cccc: 行列の要素。 l: 右の]。 l: 右の}(brace)
&\multicolumn{3}{c}{\overbrace{\hspace{5em}}^{3列}} &\overbrace{}^{1列} & &\\%hspaceの大きさはカットアンドトライで決める
\ldelim[{4}{1pt} &1 &2 &3 &4 &\rdelim]{4}{1pt} &\rdelim\}{3}{1pt}[3行]\\% rdelim + 使いたい括弧の片割れ + {行数} + {横方向の確保ポイント数} + [説明]
&5 &6 &7 &8 & &\\
&9 &10 &11 &12 & &\\
@motchy869
motchy869 / no-part-number.tex
Created February 18, 2017 15:10
部番号非表示
\documentclass[a4paper]{jsarticle}
\begin{document}
\title{部番号なし}
\author{motchy}
\maketitle
\part{A}
\section{B}
\subsection{C}
@motchy869
motchy869 / with-part-number.tex
Created February 18, 2017 15:29
部番号表示
\documentclass[a4paper]{jsarticle}
%section, subsection, subsubsection の先頭に部番号が付くようにする
\makeatletter
\@addtoreset{section}{part}\renewcommand{\thesection}{\thepart.\arabic{section}}
\@addtoreset{subsection}{section}\renewcommand{\thesubsection}{\thesection.\arabic{subsection}}
\@addtoreset{subsubsection}{subsection}\renewcommand{\thesubsubsection}{\thesubsection.\arabic{subsubsection}}
\makeatother
\begin{document}
@motchy869
motchy869 / renewcommand-has-scope.tex
Last active February 23, 2017 06:00
renewcommandはスコープを持つ
\documentclass{jsarticle}
\begin{document}
\{\}の外$\rightarrow\quad\Im{z}$\\
{
\renewcommand{\Im}[1]{\textrm{Im}\left(#1\right)}
\{\}の中$\rightarrow\quad\Im{z}$\\
{
\renewcommand{\Im}[1]{\textrm{ImaginaryPart}\left(#1\right)}
\{\{\}\}の中$\rightarrow\quad\Im{z}$\\
}
@motchy869
motchy869 / Makefile
Last active May 13, 2017 11:32
Windows用Makefile。ソースファイル自動検索+プリコンパイル済みヘッダ対応
#makefile for Windows
#プログラム名
PROGNAME := main
#ビルドタイプ
BUILD_TYPE := debug
#プログラミング言語(C, C++)
LANG := C++
@motchy869
motchy869 / dark-style.ini
Last active December 18, 2023 14:17
wxMaxima-dark-color-preference
fontSize=12
mathfontsize=12
fontEncoding=0
[Style]
fontname=
[Style/Math]
fontname=
[Style/Text]
color=white
bold=1
@motchy869
motchy869 / Makefile
Created August 16, 2017 14:55
Makefile for avr-gcc on Linux
#makefile for AVR on Linux
#
#デフォルトターゲットは コンパイル(if needed)+書き込み となっている。
#プログラム書き込み時にEEPROMを消去したいときは90行目付近の avrdude に -e オプションを付けること。
#MCU名
#1つ目がavr-gcc(or avr-g++)で使う名前。2つ目がavrdudeで使う名前。
#同じ製品なのにツールによってニックネームが違うからこんな面倒なことになっている...。
#前者はググる。後者は "avrdude -p ?" で一覧を見れる。
MCU := atmega328p m328p