I hereby claim:
- I am biggillystyle on github.
- I am andypickler (https://keybase.io/andypickler) on keybase.
- I have a public key ASAgODZ5MFIB8UYz-w9du0PiUiNKAmKdpv3uQNu_OgdV0Ao
To claim this, I am signing this object:
# I tried to avoid as many Ruby-isms as possible for this assignment, including | |
# Ruby's unique Array methods and Ruby's functional concepts...as I thought | |
# this got to the "heart" of the assignment. I figure *most* languages | |
# support basic iteration and recursion and some method of adding an element | |
# to an array. The one possible outlier here is using Ruby's splat operator. | |
# I'm not sure if this violates the intent of the assignment or not. Also, | |
# since Minitest was removed from Ruby core, I just did some more basic tests. | |
# | |
# Additionally, the assignment mentioned flattening an array of integers, so | |
# I did not include a bunch of nil and type checks for input. |
/** | |
* https://stackoverflow.com/a/6055653/961045 | |
* | |
* this.map = instance of NguiMapComponent ( https://github.com/ng2-ui/map) | |
* this.mapOptions = options to be passed in to map component ( https://developers.google.com/maps/documentation/javascript/reference#MapOptions ) | |
* this.sitesWithLocations = objects with a location property of type { coordinates: [long, lat] } | |
*/ | |
calculateZoom() { | |
if (this.map && this.map.el) { | |
const GLOBE_WIDTH = 256; // a constant in Google's map projection |
I hereby claim:
To claim this, I am signing this object: