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
-- zrmakecmap.lua | |
prog_name = "zrmakecmap" | |
version = "0.3" | |
mod_date = "2015/10/09" | |
verbose = false | |
sort = false | |
inencoding = "utf16" | |
fwid = true | |
---------------------------------------- preparations | |
filename, fontname, outname, jis_map = nil |
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 = sample | |
OBJS = sample.o tr_util_suppress_echo_back.o | |
all: $(BIN) | |
.PHONY: all clean | |
DEPS = $(OBJS:.o=.d) | |
CPPFLAGS += -MMD -MP -MF $(@:.o=.d) -MT $@ | |
-include $(DEPS) |
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 = sample | |
OBJS = sample.o tr_hash_gnutls.o | |
all: $(BIN) | |
.PHONY: all clean | |
CXXFLAGS += -std=c++11 | |
LDLIBS += -lgnutls |
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/perl | |
# | |
# mboxrd2eml: mbox (mboxrd) to eml converter | |
# https://gist.github.com/trueroad/f84501c515eade77fd0199427ab615d3 | |
# | |
# Copyright (C) 2019 Masamichi Hosoda. | |
# All rights reserved. | |
# License: BSD-2-Clause | |
# |
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/python3 | |
# | |
# eml2txt: eml to text converter | |
# https://gist.github.com/trueroad/a444f5432f91d335f5588f47a4ce9118 | |
# | |
# Copyright (C) 2019 Masamichi Hosoda. | |
# All rights reserved. | |
# License: BSD-2-Clause | |
# |
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
#include <stdio.h> | |
int main (int argc, char *argv[]) | |
{ | |
if (argc != 3) | |
{ | |
fprintf (stderr, "usage: rm-trailing-0 [INPUT.bin] [OUTPUT.bin]\n"); | |
return 1; | |
} |
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
;;; Directory Local Variables | |
;;; See Info node `(emacs) Directory Variables' for more information. | |
((c++-mode | |
(c-default-style . "gnu") | |
(indent-tabs-mode))) |
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
use strict; | |
use utf8; | |
use Encode; | |
use Win32::API; | |
my $messagebox = Win32::API::More->new ( | |
"user32.dll", | |
"int MessageBoxW (HWND hWnd, LPCWSTR lpText, LPCWSTR lpCaption, UINT uType)" | |
) or die ("failed new"); |
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 perl | |
# | |
# link-copy-cidfont.pl: | |
# Link or copy TEXMF CID font file to Ghostscript CIDFont directory | |
# | |
# Copyright (C) 2020 Masamichi Hosoda. | |
# All rights reserved. | |
# | |
# Redistribution and use in source and binary forms, with or without |