Skip to content

Instantly share code, notes, and snippets.

View phfts's full-sized avatar

Paulo Henrique Soares phfts

View GitHub Profile
@phfts
phfts / gestores-nash-coverage.json
Last active April 16, 2026 22:58
Nash DTVM — Coverage Badges
{
"schemaVersion": 1,
"label": "coverage",
"message": "37.26%",
"color": "red"
}
@phfts
phfts / flatten.rb
Last active December 21, 2015 02:47
Method that flattens an array
# Method do_work flattens an array given as input
#
# * if the input is not an array, an ArgumentError will be thrown
def do_work(array)
raise ArgumentError, "argument should be an array" unless array.is_a? Array
array.flatten
end