This file contains hidden or 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 map = L.map('map', { | |
scrollWheelZoom: false, | |
center: [-18, -46], | |
zoom: 8 | |
}); | |
L.tileLayer('http://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png', { | |
attribution: '<a href="http://cartodb.com">CartoDB</a> © 2014', | |
maxZoom: 18 | |
}).addTo(map); |
This file contains hidden or 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
license: gpl-3.0 |
This file contains hidden or 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
license: gpl-3.0 |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Collapsible Tree Example</title> | |
<style> | |
.node circle { |
This file contains hidden or 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
APP_NAME=dockerized-rails | |
RAILS_ROOT=/usr/app/${APP_NAME} | |
RAILS_ENV=production | |
cd $APP_NAME | |
# Before we start we'll make sure that we have a scaffolded app just to make sure we can test everything is working. | |
docker-compose up | |
docker-compose run app bundle exec rails generate scaffold post title body:text published:boolean RAILS_ENV=development |
This file contains hidden or 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
# Blog post for this: https://medium.com/@sabman/running-rails-5-0-1-postgis-using-docker-compose-2-a0ce5e5fbaba#.j6scfvmw6 | |
APP_NAME=dockerized-rails | |
rails _5.0.1_ new $APP_NAME -d postgresql | |
cd $APP_NAME | |
mkdir -p containers/development | |
RAILS_ENV=development | |
# 1. create a Dockerfile for development | |
cat > ./containers/development/Dockerfile <<EOF |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
env/ | |
.ipynb_checkpoints/ |
This file contains hidden or 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
pointsDF.show() | |
--------------------------------------------------------------------------- | |
Py4JJavaError Traceback (most recent call last) | |
<ipython-input-7-eac58247e7cc> in <module>() | |
----> 1 pointsDF.show() | |
/Users/shoaib/Documents/03_current_projects/Spark for Python Developers/spark-1.5.2-bin-hadoop2.6/python/pyspark/sql/dataframe.pyc in show(self, n, truncate) | |
254 +---+-----+ |
This file contains hidden or 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
#!/bin/sh | |
cli=/Applications/Karabiner.app/Contents/Library/bin/karabiner | |
$cli set remap.simple_vi_mode 1 | |
/bin/echo -n . | |
$cli set remap.simultaneouskeypresses_cmdtab_tabq 1 | |
/bin/echo -n . | |
$cli set remap.windows4mac 1 | |
/bin/echo -n . |