Skip to content

Instantly share code, notes, and snippets.

@trueroad
trueroad / Makefile
Last active June 5, 2018 00:33
Unicode Filename Support for MinGW-w64 Platform Software (-municode)
CXX = x86_64-w64-mingw32-g++
testmain: testmain.cc mingw-utf8-commandline.cc mingw-utf8-filename.cc
$(CXX) -municode -static -o testmain \
testmain.cc mingw-utf8-commandline.cc mingw-utf8-filename.cc
clean:
-rm -fr *~
@trueroad
trueroad / Makefile
Last active August 29, 2015 14:16
Unicode Filename Support for MinGW.org / MinGW-w64 Platform Software (__wgetmainargs)
CXX = x86_64-w64-mingw32-g++
testmain: testmain.cc mingw-utf8-commandline.cc mingw-utf8-filename.cc
$(CXX) -static -o testmain \
testmain.cc mingw-utf8-commandline.cc mingw-utf8-filename.cc
clean:
-rm -fr *~
@trueroad
trueroad / Makefile
Last active April 12, 2023 01:06
Unicode Filename Support for MinGW.org / MinGW-w64 Platform Software (hook)
CXX = i686-w64-mingw32-g++
testmain: testmain.cc mingw-utf8-main.cc mingw-utf8-hook.cc \
mingw-utf8-func.cc mingw-utf8-conv.cc
$(CXX) -static -o testmain testmain.cc \
mingw-utf8-main.cc mingw-utf8-hook.cc \
mingw-utf8-func.cc mingw-utf8-conv.cc \
-ldbghelp
clean:
@trueroad
trueroad / Readme.txt
Last active February 15, 2016 16:40
Unicode PDF outline strings sample for plain LuaTeX
% -*- coding:utf-8 -*-
Unicode PDF outline strings sample for plain LuaTeX
Copyright(C) Masamichi Hosoda 2016
下記の 2 環境で動作しました。
This is LuaTeX, Version beta-0.80.0 (TeX Live 2015/Cygwin) (rev 5238) (format=luatex 2015.10.17)
This is LuaTeX, Version beta-0.89.1 (TeX Live 2016/W32TeX/dev) (format=luatex 2016.2.11)
@trueroad
trueroad / Makefile
Last active April 30, 2016 13:16
Enumerate the elements of n-th order tensor (C++ class, virtual function)
CXX = g++
tensor_enum_sample: sample_main.cc tensor_enum.cc tensor_enum.hh
$(CXX) -std=c++11 -o tensor_enum_sample sample_main.cc tensor_enum.cc
clean:
-rm -fr *~
@trueroad
trueroad / Makefile
Last active April 30, 2016 13:14
Enumerate the elements of n-th order tensor (C++ class, CRTP)
CXX = g++
tensor_enum_sample: sample_main.cc tensor_enum.hh
$(CXX) -std=c++11 -o tensor_enum_sample sample_main.cc
clean:
-rm -fr *~
@trueroad
trueroad / Makefile
Last active April 30, 2016 13:14
Enumerate the elements of n-th order tensor (C++ class, closure)
CXX = g++
tensor_enum_sample: sample_main.cc tensor_enum.cc tensor_enum.hh
$(CXX) -std=c++11 -o tensor_enum_sample sample_main.cc tensor_enum.cc
clean:
-rm -fr *~
@trueroad
trueroad / Makefile
Last active May 10, 2016 14:59
n-th order tensor storage class
CXX = g++
tensor_stor_sample: sample_main.cc tensor_stor.hh
$(CXX) -std=c++11 -o tensor_stor_sample sample_main.cc
clean:
-rm -fr *~
@trueroad
trueroad / gist:80630e95df5af0234e36270b019e6458
Created April 12, 2018 10:50 — forked from yuw/gist:48764995abf8ed7ab3525fb34fec107f
参考文献の行長を字幅の整数倍にする
\documentclass[twocolumn]{jlreq}
\makeatletter
\renewenvironment{thebibliography}[1]{%
\jlreq@oldfontcommand@enable
\section*{\refname}%
\@mkboth{\refname}{\refname}%
\list{\@biblabel{\@arabic\c@enumiv}}%
{\settowidth\labelwidth{\@biblabel{#1}}%
\@tempdima\linewidth
@trueroad
trueroad / .dir-locals.el
Last active February 10, 2020 13:29
Regex dispatcher table for C++11
;;; Directory Local Variables
;;; See Info node `(emacs) Directory Variables' for more information.
((c++-mode
(c-default-style . "gnu")
(indent-tabs-mode)))