Skip to content

Instantly share code, notes, and snippets.

🍢

Matt, Murahashi Kenichi sanemat

🍢
Block or report user

Report or block sanemat

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:4714203
def prime?(number)
return false if number == 1
2.upto(number) do |key|
return false if number != key && number.to_f % key == 0
end
true
end
primes = [*1...100].select{|n| prime? n}
data = []
View access_test.rb
#!/usr/bin/env ruby
# coding: utf-8
require 'net/http'
require 'time'
def show(path, res)
puts "---- #{path} ----"
puts "Response: #{res.code} #{res.message}"
puts "Content-Length: #{res['Content-Length']}"
View gist:259994
#
require 'rubygems'
require 'spec'
require 'lru_cache'
describe LruCache, 'when Lru called' do
before(:all) do
puts 'Test Kaisi'
end
You can’t perform that action at this time.