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
server { | |
listen 80; | |
server_name www.letstouch.tech; | |
return 301 http://www.yak-and-duck.com$request_uri; | |
access_log /var/log/nginx/www.letstouch.tech.info_access.log main; | |
error_log /var/log/nginx/www.letstouch.tech.info_error.log; | |
} |
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> | |
/*ハーディ・ラマヌジャン数を求めるプログラム | |
以下の条件を満たす4桁の自然数を求める. | |
1.2つの数の立方の和として表す表し方が2通りある数. | |
2.その数の中で最も小さいもの*/ | |
int max_ripp(void); | |
int main(void){ | |
int max,i,j,k,m,flag; |
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(void); | |
void reverse_string(char *p); | |
int count_string(char *p); | |
int main(void) |
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
# coding: UTF-8 | |
import sys, re, csv | |
if(len(sys.argv)) != 2: | |
print("usage: python3 align2Csv.py [align file]") | |
sys.exit() | |
transFile = sys.argv[1] | |
if __name__ == '__main__': | |
tf = open(transFile, "r") |
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
ruby '2.1.4' | |
source 'https://rubygems.org' | |
gem 'sinatra' | |
gem 'twitter' |
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
# coding: UTF-8 | |
import sys | |
argv = sys.argv | |
argc = len(argv) | |
if (argc < 3): | |
print "Usage: # python %s [input] [output]" % argv[0] | |
quit() |