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
var Mercator = (function(){ | |
/** | |
Mercator Projection | |
ref: https://developers.google.com/maps/documentation/javascript/examples/map-coordinates?csw=1 | |
**/ | |
function MercatorProjection(tileSize) { | |
this.tileSize = tileSize || 256; | |
this.ONE_DEGREE = Math.PI / 180; |
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
defmodule BCP47 do | |
@moduledoc ~S""" | |
Main BCP47 module. | |
The `BCP47` module provides a parser for | |
[bcp 47](https://tools.ietf.org/html/bcp47) spec'd language tags. | |
""" | |
@type tag :: String.t |
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
defmodule Blank do | |
@moduledoc """ | |
Tools around checking and handling undefined or blank data. | |
""" | |
@doc """ | |
Returns `true` if data is considered blank/empty. | |
""" | |
def blank?(data) do | |
Blank.Protocol.blank?(data) |