Skip to content

Instantly share code, notes, and snippets.

View evelinag's full-sized avatar

Evelina Gabasova evelinag

View GitHub Profile

The Star Wars social network

I recently looked at the whole Star Wars universe from a computational perspective, where I extracted and analyzed social networks from all seven films. The social network structure revealed some interesting differences between the individual films, especially between the original trilogy and the prequels. Here I’ll look at how we can represent and explore the same network using a Neo4j database.

@evelinag
evelinag / bond.fsx
Created November 17, 2015 23:54
Analysing box office success of James Bond films using HTML type provider
#load "packages/FsLab/FsLab.fsx"
open FSharp.Data
open XPlot.GoogleCharts
let bondUrl = "https://en.wikipedia.org/w/index.php?title=List_of_James_Bond_films&oldid=688916363"
type BondProvider = HtmlProvider<"https://en.wikipedia.org/w/index.php?title=List_of_James_Bond_films&oldid=688916363">
let bondWiki = BondProvider.Load(bondUrl)
@evelinag
evelinag / twitterPulse.fsx
Created January 8, 2015 13:41
Number of unique people tweeting about F# per day over 2013 and 2014
#r @"packages/FSharp.Data.2.0.14/lib/net40/FSharp.Data.dll"
#load @"packages/Deedle.1.0.6/Deedle.fsx"
#load @"packages/FSharp.Charting.0.90.9/FSharp.Charting.fsx"
open FSharp.Data
open Deedle
open FSharp.Charting
type Tweets = CsvProvider<"fsharp_2013-2014.csv">
let tweets' = Tweets.Load("fsharp_2013-2014.csv")