Skip to content

Instantly share code, notes, and snippets.

@masui

masui/gist:8268798

Created Jan 5, 2014
Embed
What would you like to do?
予定表アクセスするCGIスクリプト
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
require 'cgi'
cgi = CGI.new('html3')
time = Time.now
year = time.year
month = time.month
url = "http://Gyazz.com/masui/予定表 #{year}-#{month}"
print cgi.header({'status' => 'REDIRECT', 'Location' => url, 'Time' => time})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.