Install ImageMagick for image conversion:
brew install imagemagick
Install tesseract for OCR:
brew install tesseract --all-languages
Or install without --all-languages
and install them manually as needed.
.CodeMirror-scroll { | |
height: 100%; | |
min-height:300px; | |
} | |
.cm-s-tomorrow-night{ | |
font-family:'Menlo', 'Consolas', "Vera Mono", monospace; | |
font-size:12px; | |
} | |
.cm-s-tomorrow-night { background: none; color: hsl(140,2%,77%); } |
Install ImageMagick for image conversion:
brew install imagemagick
Install tesseract for OCR:
brew install tesseract --all-languages
Or install without --all-languages
and install them manually as needed.
This gist assumes:
def point_in_polygon?(polygonPoints) | |
return false if self.latitude.blank? or self.longitude.blank? | |
polygonPoints.each do |point| | |
point[0] = point[0].to_f | |
point[1] = point[1].to_f | |
end | |
contains_point = false | |
i = -1 | |
j = polygonPoints.size - 1 |