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
this is test |
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
ここに日記を書いても許されますか. | |
今日の日記 | |
暑い. | |
今日の日記 | |
今日もダメだった | |
今日の日記 | |
フォークされて嬉しい |
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 | |
use strict; | |
use warnings; | |
use utf8; | |
use Encode; | |
binmode STDOUT,':utf8'; | |
while(<>){ | |
print ord $_; |
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 -*- | |
year = ["正月の着物","リクルートスーツ","卒業式の制服","入学式のスーツ","春物の服","長靴と雨合羽","水着","浴衣","半袖Tシャツ","秋物の服","カラータイツとコート","サンタコス"] | |
month=rand(12) | |
puts "男子 #{month+1}月は #{year[month]}着た女の子とデートしたいとか言う" |
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 -*- | |
#prob11 | |
file = open("prob11.txt","r") | |
grid = Array.new(20).map!{ Array.new( 20, 0 ) } | |
20.times do |i| | |
line = file.gets | |
line.chomp! |
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
def upto_fibonacci(i,list) | |
return 1 if i == 1 | |
list[i] = list[i-1].to_i + list[i-2].to_i | |
return list[i] | |
end | |
list = [0,1] | |
i = 1 | |
while upto_fibonacci(i,list).to_s.length < 1000 | |
i+=1 | |
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
# A sample Gemfile | |
source "http://rubygems.org" | |
gem "rmagick" |
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 python | |
# http://www.aoky.net/articles/jeff_atwood/why_cant_programmers_program.htm | |
for i in xrange(1,101): | |
if i % 3 == 0 and i % 5 == 0: | |
print 'FizzBuzz' | |
elif i%3 == 0: | |
print 'Fizz' | |
elif i % 5 == 0: |
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 -*- | |
''' | |
Created on 2012/07/02 | |
@author: teenst | |
''' | |
print "Hello Python world!" | |
print "縺� |
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 | |
1.upto(100) do |i| | |
if i % 15 == 0 | |
puts "fizzbuzz" | |
elsif i % 3 == 0 | |
puts "fizz" | |
elsif i % 5 == 0 | |
puts "buzz" | |
else |
OlderNewer