changeset 2432:44e60de7c395

test
author MURAKAMI Masaki <c112124@h.koeki-u.ac.jp>
date Tue, 23 Jun 2015 16:13:50 +0900
parents 3dcc10dee710
children 786e0b1a865f
files 2014OC/accountcheck.rb 2014OC/magic.rb
diffstat 2 files changed, 4 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/2014OC/accountcheck.rb	Tue Jun 23 15:46:22 2015 +0900
+++ b/2014OC/accountcheck.rb	Tue Jun 23 16:13:50 2015 +0900
@@ -45,7 +45,7 @@
 db.execute(sql,name,sex,age,aria,job,'000010000','n,n,n,n,kamo1,n,n,n,n',0,0,mg); #初期値
 end
 
-expires = "SAT, 26 JUL 2015 00:00:00 GMT"
+expires = "Sun, 26 Jul 2015 00:00:00 GMT"
 
 printf("Content-type: text/html; charset=UTF-8
 Set-Cookie:id=%s ;expires=%s
--- a/2014OC/magic.rb	Tue Jun 23 15:46:22 2015 +0900
+++ b/2014OC/magic.rb	Tue Jun 23 16:13:50 2015 +0900
@@ -2,22 +2,12 @@
 # -*- coding: utf-8 -*-
 
 def magic()
-  srand(6789012345)
+  srand(123456789)
   hoge = Array.new
-  while hoge.length < 9
-    hoge << rand(10000000000)
+  while hoge.length < 100
+    hoge << rand(1000000)
     hoge.uniq!
   end
   return hoge
 end
 
-#num = magic()
-#n = 0
-#for i in num 
-  #name = "~/public_html/web/2014OC/qr2/cord"
-  #url  = "http://skip.koeki-prj.org/2014OC/Bingo.rb?getcom="
-#  print "qrencode -o ~/public_html/web/2014OC/qr2/cord#{n}.png -s 10 \'http://skip.koeki-prj.org/2014OC/Bingo.rb?getcom=#{i}\'\n"
-#  n += 1
-#end
-
-

yatex.org