Skip to content

Instantly share code, notes, and snippets.

View shouichi's full-sized avatar

Shouichi Kamiya shouichi

  • Tokyo
  • 23:38 (UTC +09:00)
View GitHub Profile
*.aux
*.dvi
*.log
*.pdf
#include <stdio.h>
#define RED ""
#define RESET ""
int main(void)
{
printf(RED "A red string.\n" RESET);
}
import java.util.EnumSet;
public class EnumTest {
enum Option {
A
}
public static void main(String[] args) {
EnumSet<Option> options = EnumSet.allOf(Option.class);
type binding =
NameBind
| VarBind of ty
#!/usr/bin/env ruby
#
# アルゴリズム概要
# 1. 初期状態 (0,0,f,f,0) から遷移可能な状態を網羅すし、PC0=4かつPC1=4なる状態が存在しない事を確かめる。
# 2. 全ての状態の中からPC0=2の状態を全て取り出す。
# 3. 2で取り出したそれぞれの状態を初期状態として、その状態から遷移可能な全ての状態を網羅する。
# 4. 3で網羅された状態の中にPC0=4なる状態が存在する事を確かめる。
#
module Peterson
*.aux
*.dvi
*.log
*.pdf
case # Empty!
when cond1
do_something
when cond2
do_another_thing
end
all: report.tex
nkf -j report.tex > report.tex.jis
platex report.tex.jis
dvipdfmx *.dvi
gnome-open report.tex.pdf
all: report.tex
nkf -j report.tex > report.tex.jis
platex report.tex.jis
dvipdfmx *.dvi
gnome-open report.tex.pdf
PACKAGE = fork
SRCS = $(PACKAGE).c
OBJS = $(SRCS:.c=.o)
FILES = README Makefile $(SRCS)
VER = `date +%Y%m%d`
### command and flags ###
# uncomment when debugging
#DEBUG = -ggdb -pg # -lefence