Skip to content

Instantly share code, notes, and snippets.

<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.java.util;
import javax.swing.*;
import java.awt.*;
public class Plot {
private double[] matrix;
private int columns;
@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>
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 / 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
@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
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