Skip to content

Instantly share code, notes, and snippets.

@lethe2211
lethe2211 / static_pages_controller.rb
Last active August 29, 2015 14:01
app/controllers/static_pages_controller.rb
# -*- coding: utf-8 -*-
require 'open3'
require 'json'
class StaticPagesController < ApplicationController
# 検索画面に相当するアクション
def search
end
# 検索結果画面に相当するアクション
# -*- coding: utf-8 -*-
def func():
h, w = map(int, raw_input().split())
display = []
for i in xrange(h):
row = raw_input()
display.append(row)
# -*- coding: utf-8 -*-
def func():
hw = map(int, raw_input().split())
h = hw[0]
w = hw[1]
display = []
for i in range(h):