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
data.txt | |
result.txt | |
result_*.txt | |
pf_*.txt | |
*.o |
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 <stdbool.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdnoreturn.h> | |
static inline noreturn void die(char *msg) | |
{ | |
fprintf(stderr, "%s\n", msg); | |
exit(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
#include <stdio.h> | |
#include <stdlib.h> | |
#define LIST_MAX_LINE 10000 | |
#define MAX_LEN 256 | |
int same_char(const char *s, const char *t); | |
int main(void) | |
{ | |
char *list = (char *)malloc(LIST_MAX_LINE * MAX_LEN); |
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
package rpg; | |
public abstract class AbstractCreature implements Battlable { | |
private final String name; | |
private final int maxHP; | |
private int currentHP; | |
protected AbstractCreature(String name, int hp) { | |
this.name = name; | |
this.maxHP = hp; | |
this.currentHP = hp; |
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
# frozen_string_literal: true | |
source 'https://rubygems.org' | |
gem 'puma' | |
gem 'sinatra' | |
gem 'slim' | |
gem 'coffee-script' | |
gem 'therubyracer' |
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 ruby | |
# schema2ldif.rb | |
# Copyright (c) 2015 IGARASHI Makoto (raccy) | |
# This software is released under the MIT License. | |
# http://opensource.org/licenses/mit-license.php | |
if RUBY_VERSION.split(".")[0].to_i < 2 | |
warn "Ruby version must be over 2.0.0." | |
exit 2 | |
end |
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 ruby | |
# svg2icns.rb | |
# Copyright (c) 2015 IGARASHI Makoto (raccy) | |
# This software is released under the MIT License. | |
# http://opensource.org/licenses/mit-license.php | |
# SVGファイルをMacのアイコン形式であるicnsに変換します。 | |
# 作成されるicnsはRetina対応です。 | |
# SVGファイルはあらかじめ正方形にしておいて下さい。 | |
# そうじゃないと歪みます。 | |
# 実行前に、"gem install rsvg2" しておいてください。 |
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 ruby | |
# coding: utf-8 | |
=begin | |
kometalk.rb | |
Copyright (c) 2015 IGARASHI Makoto (raccy) | |
This software is released under the MIT License. | |
http://opensource.org/licenses/mit-license.php | |
コマンドラインからの入力文字をOpen JTalkでしゃべってくれます。 | |
実行はすぐに終わって、裏でサーバが立ち上がって、しゃべります。 |