Skip to content

Instantly share code, notes, and snippets.

View keokent's full-sized avatar

kenta takeo keokent

  • GMO Pepabo, Inc.
View GitHub Profile
@keokent
keokent / 4_6_2.rb
Created May 24, 2013 03:58
Rails Tutorial Chapter4 Exercises 2
class String
def shuffle
self.split("").shuffle.join
end
end
p "foobar".shuffle
@keokent
keokent / 4_6_1.rb
Created May 24, 2013 03:57
Rails Tutorial Chapter4 Exercises 1
def string_shuffle(s)
s.split("").shuffle.join
end
p string_shuffle("foobar")
@keokent
keokent / Sekigae.java
Last active December 17, 2015 16:39
javaでつくった席替えスクリプトです。
import java.util.ArrayList;
import java.util.Collections;
public class Sekigae{
public static void main(String[] args){
ArrayList<String> list = new ArrayList<String>();
list.add("okkun");
list.add("kitak");