sudo apt-get update
sudo apt-get install git
cd ~
git clone --recursive https://github.com/CartoDB/cartodb20.git
sudo apt-get update
sudo apt-get install git
cd ~
git clone --recursive https://github.com/CartoDB/cartodb20.git
warning
CartoDB is guaranteed to run without any issue in Ubuntu 12.04 x64. This documentation describes the process to install CartoDB in this specific OS version.
However this doesn’t mean that it won’t work with other Operating Systems or other Ubuntu. There are also many successful installations on Amazon EC2, Linode, dedicated instances and development machines running OS X and Ubuntu 12.04+.
System requirements
PUT /gb | |
POST /gb/_close | |
PUT /gb/_settings | |
{ | |
"analysis": { | |
"filter": { | |
"autocomplete_filter": { |
#!/bin/bash | |
curl -X DELETE 'localhost:9200/pandirate' | |
sleep 1 | |
curl -XPUT 'localhost:9200/pandirate?pretty' -d ' | |
{ | |
"mappings": { | |
"tag": { | |
"properties": { | |
"location": { |
http://www.xavierdupre.fr/app/ensae_teaching_cs/helpsphinx/td_3a_spark.html#installation-de-spark-sous-linux | |
https://github.com/mGalarnyk/Installations_Mac_Ubuntu_Windows.git |
def sample(p): | |
x, y = random(), random() | |
return 1 if x*x + y*y < 1 else 0 | |
count = sc.parallelize(xrange(0, NUM_SAMPLES)).map(sample) \ | |
.reduce(lambda a, b: a + b) | |
print "Pi is roughly %f" % (4.0 * count / NUM_SAMPLES) |
from __future__ import print_function | |
# | |
# Licensed to the Apache Software Foundation (ASF) under one or more | |
# contributor license agreements. See the NOTICE file distributed with | |
# this work for additional information regarding copyright ownership. | |
# The ASF licenses this file to You under the Apache License, Version 2.0 | |
# (the "License"); you may not use this file except in compliance with | |
# the License. You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 |
https://github.com/quantopian/research_public/blob/master/presentations/How%20To%20-%20Estimate%20Pi.ipynb |
re.sub(r'[^a-z0-9\s]','',text.lower().strip()) |
[\\w']+ |