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
sudo add-apt-repository ppa:openjdk-r/ppa | |
sudo apt-get update | |
sudo apt-get install openjdk-7-jre | |
# install openjdk | |
sudo apt-get install openjdk-7-jdk | |
# download android sdk | |
wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz |
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
# install openjdk | |
sudo apt-get install openjdk-7-jdk | |
# download android sdk | |
wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz | |
tar -xvf android-sdk_r24.2-linux.tgz | |
cd android-sdk-linux/tools | |
# install all sdk packages |
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
################################################# | |
################################################# | |
## _____ _ __ _____ _ _ _ ## | |
## / __ \| | / /| ___| | (_) | ## | |
## | / \/| |/ / | |__ __| |_| |_ ___ _ __ ## | |
## | | | \ | __|/ _` | | __/ _ \| '__| ## | |
## | \__/\| |\ \| |__| (_| | | || (_) | | ## | |
## \____/\_| \_/\____/\__,_|_|\__\___/|_| ## | |
## ## | |
################################################# |
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
* { | |
font-family: "Helvetica Neue", Helvetica; | |
font-size: 15px; | |
font-variant: normal; | |
padding: 0; | |
margin: 0; | |
} | |
html { | |
height: 100%; |
$ uname -r
You could have postgre installed on localhost with password (or without user or password seted after instalation) but if we are developing we really don't need password, so configuring postgre server without password for all your rails project is usefull.
- postgresql
- postgresql-client
- libpq-dev
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
SELECT | |
1 as cartodb_id, length, shape as the_geom, 'Madrid' as origin | |
FROM | |
cdb_route_point_to_point( | |
cdb_geocode_namedplace_point('Madrid', 'Spain'), | |
cdb_geocode_namedplace_point('Rome', 'Italy'), | |
'car') | |
UNION ALL | |
SELECT | |
2 as cartodb_id, length, shape as the_geom, 'Paris' as origin |
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
WITH ap AS ( | |
SELECT | |
array_agg(the_geom) as arr | |
FROM | |
etapas | |
) | |
SELECT | |
(cdb_route_with_waypoints(arr, 'walk')).* | |
FROM | |
ap |