Python code for the evaluation of linear regression and confidence intervals between two random variables x and y.
Shapefile source: http://www.istat.it/it/archivio/24613
Convert shapefile to geojson, s_srs defines the input projection, t_srs defines the output projection to the EPSG code 4326 (http://spatialreference.org/ref/epsg/4326/) see also http://www.gdal.org/ogr2ogr.html
ogr2ogr -f GeoJSON -s_srs prov2011_g.prj -t_srs EPSG:4326 sub.json prov2011_g.shp
This is an attempt to define user visibility on a specific topic. Briefly, tweets are collected via the Twitter streaming API, stored in sqlite databases and then processed in order to create a regular Markov chain. The steady state distribution of the chain defines a metric on the set of Twitter users, which can be used to retrieve an ordered list of users.
Have a look at this paper and this other paper for further details about the mathematical methods.
Be careful, the procedure described here is experimental and it is not meant to be used in production environments.
A Pen by Riccardo Scalco on CodePen.
import pymongo | |
from pymongo import MongoClient | |
# Removes a collection from the database. | |
# http://docs.mongodb.org/manual/reference/method/db.collection.drop/ | |
client = MongoClient() | |
db = client.dbname | |
db.drop_collection('collectionName') |
autopep8 automatically formats Python code to conform to the PEP 8 style guide (https://github.com/hhatto/autopep8).
$ autopep8 --in-place <filename>
$ cd /my/module/path
$ npm pack
$ cd /my/project/path
$ npm install /my/modue/path/packagename-version.tgz
Adobe Illustrator (AI) e la libreria JavaScript D3.js sono strumenti utilizzati universalmente nell'ambito dell'Information Design e Data Visualization.
Il corso trae spunto dalla difficoltà pratica da un lato di creare infografiche complesse con il solo uso di D3, dall'altro di introdurre transizioni dinamiche e data driven all'interno di infografiche create con AI.
Lo studente affronterà un percorso a step in cui l'uso di Adobe Illustrator e la manipolazione di codice Javascript D3 si susseguiranno più volte, al fine di ottenere un prodotto che sia frutto dell'unione dei due strumenti.
Il corso è rivolto a disegnatori grafici e programmatori frontend i quali desiderano: