Skip to content

Instantly share code, notes, and snippets.

View Rafael-Martins's full-sized avatar
🏠
Working from home

Rafael Martins Rafael-Martins

🏠
Working from home
View GitHub Profile
@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
clear
sensitivity "0.3" # 800 dpi
// === ALIASES ===
alias molotov "use weapon_knife;use weapon_incgrenade;use weapon_molotov"
alias he "use weapon_knife;use weapon_hegrenade"
alias flash "use weapon_knife;use weapon_flashbang"
alias smoke "use weapon_knife;use weapon_smokegrenade"
alias decoy "use weapon_knife;use weapon_decoy"