Skip to content

Instantly share code, notes, and snippets.

@Momozono
Momozono / html_study.html
Last active August 30, 2015 13:00
Study for my HTML.
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<title>おいしいごはん!</title>
<head>
<body>
<header>
<div style="background:skyblue;">
word = $stdin.gets.chomp
n = eval(word)
limit = n.ancestors.length - 1
class_array = []
for i in 0..limit
class_array << n.ancestors[i] if n.superclass != nil
end
#-*-coding: utf-8-*-
require 'active_record'
require 'sinatra'
require 'sinatra/reloader'
ActiveRecord::Base.establish_connection(
adapter: "sqlite3",
database: "list.db"
)
array = []
print "配列の数を指定してください:"; n = gets.chomp.to_i
print "最大の数を指定してください:"; r = gets.chomp.to_i
n.times do
array << rand(r)
end
count = array.length
def compare(left,right)
Gem::Specification.new do |spec|
spec.name = "omokoro-random"
spec.version = "0.0.1"
spec.authors = ["momozono"]
spec.email = ["tanatana1089@gmail.com"]
spec.summary = "return random article of omokoro."
spec.files = ["omokoro-random.rb"]
spec.require_path = "."
end