Skip to content

Instantly share code, notes, and snippets.

@taraijpn
taraijpn / fragmaster.fmlatexcmd.patch
Created January 7, 2020 17:14
fragmasterの latex 命令を変更できるようにする
--- fragmaster.pl.orig 2020-01-08 00:48:01.385031651 +0900
+++ fragmaster.pl 2020-01-08 02:08:23.383053437 +0900
@@ -43,6 +43,7 @@
my $global_fmclass = "article";
my $global_fmclassopt = "12pt";
my $global_fmopt = "";
+my $global_fmlatexcmd = "latex";
my @global_fmhead = ();
my @global_fmfile = ();
my %dirdata_last_status = ();
@taraijpn
taraijpn / new_document.spd
Created December 25, 2017 16:55
PadTools用の私的初期ドキュメント。公式ページにある例がほとんどです。
:terminal 開始
:comment コメント文
:comment PAD図でGOTOは表現出来ない?
ブロック1
ブロック2(1)@
ブロック2(2)
:comment ブロック3コメント
@taraijpn
taraijpn / modcheck.c
Created October 23, 2017 19:44
剰余計算覚え書き(C言語)
#include<stdio.h>
#include<stdlib.h>
int main()
{
int a[4] = {3, -3, 3, -3};
int b[4] = {8, 8, -8, -8};
int i = 0;
div_t r, rx;
@taraijpn
taraijpn / e2ps-4.34.patch
Last active May 13, 2019 15:26
e2ps-4.34修正パッチ (p190513)
diff -urN e2ps-4.34.orig/e2ps.c e2ps-4.34/e2ps.c
--- e2ps-4.34.orig/e2ps.c 2002-08-21 17:50:02.000000000 +0900
+++ e2ps-4.34/e2ps.c 2019-05-14 00:12:35.434084200 +0900
@@ -32,6 +32,7 @@
float gfFontSize, gfNlRate;
float gfAsciiWidth, gfAsciiHeight;
float gfKanjiWidth, gfKanjiHeight;
+float gfDXscale=SQRT, gfDYscale=SQRT;
char gsNowTime[STRMAX], gsHeadStr[STRMAX], gsPageStr[STRMAX];
uchar guJapanese = 1;
@taraijpn
taraijpn / doublepp.c
Created April 13, 2017 10:07
double ++ てすと。
#include<stdio.h>
int main()
{
double n = 0.0;
double x = 0.0;
for (n = 0; n <= 30; n++) {
x = 0.1 * n;
printf("%.16e %.16g\n", x, n);
}
return 0;
@taraijpn
taraijpn / intpp.c
Last active April 13, 2017 13:51
int ++ てすと。
#include<stdio.h>
int main()
{
int n = 0;
double x = 0.0;
for (n = 0; n <= 30; n++) {
x = 0.1 * n;
printf("%.16e %d\n", x, n);
}
return 0;
@taraijpn
taraijpn / furikaekyujitsu_list.csv
Last active February 21, 2017 12:04
日本の祝日(ちょっと書き換えた版)
平成28年(2016年)の月日 平成28年(2016年)の理由 平成29年(2017年)の月日 平成29年(2017年)の理由 平成30年(2018年)の月日 平成30年(2018年)の理由
2017/1/2 元日の振替休日 2018/2/12 建国記念の日の振替休日
@taraijpn
taraijpn / testcsv.csv
Last active February 21, 2017 06:23
CSVファイルフォーマットについて
We can make this file beautiful and searchable if this error is corrected: Illegal quoting in line 2.
test1,A,0120000000,=0120000000
test2,B,"0120000000",="0120000000"
test3,C,none,=none
test4,D,"none",="none"
size(200, 200);
colorMode(HSB, 100);
background(99);
noStroke();
int i;
for (i = 0; i <= 3; i = i + 1) {
fill(45, 80 - 20 * i, 99);
rect(0, 0, 200 - 50 * i, 200 - 50 * i);
}
@taraijpn
taraijpn / test.rb
Created October 16, 2014 10:48
wrong ruby code
a=[1, 2, 3], b=[4, 5, 6], c=[7, 8, 9]
p a[1]
p b[1]
p c[1]