Skip to content

Instantly share code, notes, and snippets.

@masui
Created January 5, 2014 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save masui/8268798 to your computer and use it in GitHub Desktop.
Save masui/8268798 to your computer and use it in GitHub Desktop.
予定表アクセスする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