Skip to content

Instantly share code, notes, and snippets.

We can't make this file beautiful and searchable because it's too large.
#DATETIME,STREET1,STREET2,TRAFFIC,WEATHER,VISIBILITY
2014-01-01T00:10:00,VIA MANDANICI,VIA GUARDIA PIEMONTESE,Normal,Sunny,Good
2014-01-01T00:20:00,PONTE FLAMINIO,,Normal,Sunny,Sufficient
2014-01-01T01:00:00,VIA ANTONIO GRAMSCI,,Poor,Sunny,Good
2014-01-01T01:00:00,VIA DI PASSOLOMBARDO,,Poor,Foggy,Good
2014-01-01T01:15:00,LARGO DELL'AMBA ARADAM,,Normal,Sunny,Good
2014-01-01T02:00:00,VIA DI PASSOLOMBARDO,,Poor,Foggy,Good
2014-01-01T02:10:00,VIA DI VALLE MURICANA,,Normal,Sunny,Good
2014-01-01T02:30:00,VIA QUIRINO MAJORANA,,Poor,Sunny,Good
2014-01-01T02:50:00,VIA CRISTOFORO COLOMBO,,Poor,Sunny,Sufficient
@nicolaferraro
nicolaferraro / stock_ENG.MI_2005-2015.csv
Last active August 29, 2015 14:19
Daily Stock Quotes of ENG.MI since year 2005
2015-04-13 57.30 57.45 56.20 56.80 13800 55.15
2015-04-10 58.00 58.05 57.05 57.50 3800 55.83
2015-04-09 58.00 58.00 57.00 57.85 4700 56.17
2015-04-08 58.00 58.00 57.30 57.70 7800 56.03
2015-04-07 57.00 57.95 57.00 57.55 3200 55.88
2015-04-06 57.20 57.20 57.20 57.20 000 55.54
2015-04-03 57.20 57.20 57.20 57.20 000 55.54
2015-04-02 57.10 57.65 56.35 57.20 5400 55.54
2015-04-01 56.30 57.25 56.30 56.95 6100 55.30
2015-03-31 57.65 57.85 56.10 56.80 10900 55.15
@nicolaferraro
nicolaferraro / commits.properties
Created April 20, 2015 13:13
Correlation Example
1,20000101
1,20000101
1,20000101
1,20000101
1,20000201
1,20000401
1,20000501
1,20020101
1,20040101
2,20020101
1 1.388261E+000 2.076096E+000
2 2.177247E+000 3.102304E+000
3 3.786450E-001 5.307610E+000
4 3.681732E+000 1.622681E+000
5 2.462861E+000 2.777897E+000
6 1.735954E+000 3.827090E+000
7 1.167995E+000 5.518099E+000
8 1.807107E+000 3.250988E+000
9 3.508638E+000 1.843392E+000
10 1.864733E+000 2.401942E+000
@nicolaferraro
nicolaferraro / pom.xml
Created April 29, 2015 08:06
Maven POM for scala
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>it.eng.scala</groupId>
<artifactId>scala-java</artifactId>
<version>0.0.1-SNAPSHOT</version>
<dependencies>
<dependency>
package it.eng.java.util;
import javax.swing.*;
import java.awt.*;
public class Plot {
private double[] matrix;
private int columns;
<dependency>
<groupId>net.databinder.dispatch</groupId>
<artifactId>dispatch-jsoup_2.10</artifactId>
<version>0.11.2</version>
</dependency>
def retrieveLinks(address: String) =
Jsoup.
connect(address)
.get
package it.eng.scala.crawl
import org.jsoup.Jsoup
import scala.collection.JavaConversions._
object CrawlerService {
val AbsolutePrefix = "http://en.wikipedia.org/wiki/"
val RelativePrefix = "/wiki/"
val AbsolutePath = "http://en.wikipedia.org"
You can use a dockerized version if you want just to try the shell. Just type:
docker run -it -p 2181:2181 -p 60000:60000 -p 60010:60010 -p 60020:60020 -p 60030:60030 -h hbase nerdammer/hbase-shell
Then add “hbase” to your “/etc/hosts” file and point it to boot2docker (192.168.59.103) address.
If you want to install it:
Download: http://archive.eu.apache.org/dist/hbase/hbase-1.0.0/hbase-1.0.0-bin.tar.gz
Untar
Run: bin/start-hbase.sh
For the shell: bin/hbase shell
If you want to install it on Windows:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>it.eng.hbase</groupId>
<artifactId>hbase-connect</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>hbase-connect</name>