- JTS (java) https://github.com/locationtech/jts
- Geos (C++) https://trac.osgeo.org/geos
- RGeo (Ruby) https://github.com/rgeo/rgeo
- Shapely (Python) https://pypi.python.org/pypi/Shapely
- TurfJS (JS) http://turfjs.org/docs/
- Esri
Refactor nrepl makes it possible to hotload a dependency into lein without rebooting the repl. This is awesome but it's not super well documented.
First, make sure you have the plugin installed by adding it to the :plugins
key of your
lein profile. This can be done per project in project.clj
, but is probably best to include in your
~/.lein/profiles.clj
Here's an example:
csv2json () { | |
ruby -r csv -r json -e 'CSV.new(STDIN, headers: true).each { |r| puts r.to_h.to_json }' | |
} |
import cats.effect.Clock | |
import cats.effect.{IOApp, Resource, IO, ResourceApp, ExitCode} | |
import scala.concurrent.duration._ | |
object Dummy extends IOApp { | |
val resource = Resource.make(IO(System.currentTimeMillis)){ start => | |
IO.sleep(3.seconds) >> IO.println(s"Exiting -- ${System.currentTimeMillis - start}") | |
} | |
def run(args: List[String]) = resource.use { ctx => | |
val interruptible = IO.never |
This exercise is intended to help you assess your progress with the concepts and techniques we've covered during the week.
For these questions, write a short snippet of code that meets
the requirement. In cases where the question mentions a "given"
data value, use the variable given
to refer to it (instead of re-writing
the information).
-- migrate:up | |
CREATE OR REPLACE FUNCTION with_stringified_values(input jsonb) | |
RETURNS jsonb | |
LANGUAGE plpgsql AS | |
$func$ | |
DECLARE | |
_key text; | |
_value text; | |
_vals text[] := '{}'::text[]; | |
_output jsonb := '{}'::jsonb; |
class ApacheSpark < Formula | |
desc "Engine for large-scale data processing" | |
homepage "https://spark.apache.org/" | |
url "https://archive.apache.org/dist/spark/spark-2.2.0/spark-2.2.0-bin-hadoop2.7.tgz" | |
version "2.2.0" | |
sha256 "97fd2cc58e08975d9c4e4ffa8d7f8012c0ac2792bcd9945ce2a561cf937aebcc" | |
head "https://github.com/apache/spark.git" | |
bottle :unneeded |
JS Linked List Rubric