-
-
Save anonymous/19e97cd4209dd1182804 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#require 'sinatra' | |
require_relative 'TMotor2685' | |
require_relative 'TMotor155' | |
require_relative 'TMotor1861' | |
require_relative 'Propeller' | |
require_relative 'prop_constructors' | |
require_relative 'Prop_Math' | |
Dir.chdir(File.dirname(__FILE__)) | |
tprop2685 = TMotor2685.new | |
tprop155 = TMotor155.new | |
tprop1861 = TMotor1861.new | |
code2865 = writeSolidworksMacro("#{tprop2685.name}.txt",tprop2685.getXSections,:string) | |
writeSolidworksMacro("#{tprop155.name}.txt",tprop155.getXSections,:file) | |
writeSolidworksMacro("#{tprop1861.name}.txt",tprop155.getXSections,:file) | |
#p roundRect(20,10) | |
print "success\n" | |
=begin | |
get '/' do | |
'propeller creator!' | |
end | |
get '/form' do | |
erb :form | |
end | |
post '/form' do | |
erb :post | |
end | |
not_found do | |
halt 404, 'Sorry! Page not found' | |
end | |
=end | |
=begin | |
use below for getting additional url | |
get '/hello/:name' do | |
params[:name] | |
end | |
=end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment