Skip to content

Instantly share code, notes, and snippets.

View Diego-Thomaz's full-sized avatar
💭
Coding, testing and refactoring

Diego Thomaz Diego-Thomaz

💭
Coding, testing and refactoring
  • Poços de Caldas, MG. Brasil
View GitHub Profile
@Diego-Thomaz
Diego-Thomaz / rainforest.rb
Created July 10, 2023 10:19
Rainforest Test
require 'uri'
require 'net/http'
require 'json'
class RainforestTest
URL = 'https://www.letsrevolutionizetesting.com/challenge'
def call
execute
end
@Diego-Thomaz
Diego-Thomaz / convert_circle_to_polygon.rb
Last active September 20, 2019 20:34
Code to convert geometric circle to polygon using ruby
class ConvertCircleToPolygon
EARTH_RADIUS = 6378137
def to_radians(angle_in_degrees)
angle_in_degrees * Math::PI / 180
end
def to_degrees(angle_in_radians)
angle_in_radians * 180 / Math::PI
end