Skip to content

Instantly share code, notes, and snippets.

View mrn-aglic's full-sized avatar

Marin mrn-aglic

View GitHub Profile
@mrn-aglic
mrn-aglic / gist:5c9ef3c1b43ea8094d97
Last active August 29, 2015 14:25
Unable to launch sbt in NetLogo repository
Marins-MBP:NetLogo Marin$ sbt
[info] Loading global plugins from /Users/Marin/.sbt/0.13/plugins
[info] Loading project definition from /Users/Marin/Documents/NetLogo/project
[info] Updating {file:/Users/Marin/Documents/NetLogo/project/}netlogo-build...
[info] Resolving org.eclipse.jgit#org.eclipse.jgit.archive;3.7.0.201502260915-r [info] Resolving org.scala-sbt.ivy#ivy;2.3.0-sbt-fccfbd44c9f64523b61398a0155784d[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
java.lang.NullPointerException
at java.io.File.<init>(File.java:277)
at sbt.package$.file(package.scala:24)
at $1747e216ca710d968f9a$$anonfun$$sbtdef$1$$anonfun$apply$1.apply(/Users/Marin/Documents/NetLogo/project/build.sbt:6)
def print_rows(conn_id, db_hook, **context):
hook = db_hook(conn_id)
rows = hook.get_records("SELECT COUNT(*) FROM movies")
logging.info(rows)
class TransferPsqlToMysql(BaseOperator):
template_fields = ["sql"]
template_ext = [".sql"]
template_fields_renderers = {"sql": "sql"}
# pylint: disable=too-many-arguments
def __init__(
self,
postgres_conn_id,
wildfires_dataset = Dataset("s3://locals3/datasets/test.csv")