あまり深く理解してないので識者のツッコミ大歓迎
取り敢えず最低限だけ
# 補完を有効にする
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "VPC knowhow template", | |
"Parameters": { | |
"KeyName": { | |
"Description": "Name of an existing EC2 KeyPair to enable SSH access to the instances", | |
"Type": "String", | |
"MinLength": "1", | |
"MaxLength": "64", | |
"AllowedPattern": "[-_ a-zA-Z0-9]*", |
C = File.read(__FILE__).split('__CODE__').last.lines.drop(1).grep(/^[^#]/).join.split | |
# puts C.join.size+3+11+9+15+13+1 | |
def at_exit;end | |
def sleep(n=nil);end | |
def $>.<< s | |
STDOUT.write s | |
cc = nil | |
s.gsub! "\e[1;1H", '' | |
Object.new.instance_eval s.gsub('C', 'cc') | |
File.write 'output.rb', s.lines.map(&:rstrip).join("\n") if cc.join =~ /t=96/ |