Skip to content

Instantly share code, notes, and snippets.

@shivswami
shivswami / pocket_exporter.py
Created August 4, 2020 19:01 — forked from jasonrdsouza/pocket_exporter.py
Export archived article data from Pocket
'''This script can be used to export data from Pocket (getpocket.com)
Uses include migrating to a different "read it later" service, saving
specific articles to another service, backing up your reading history,
and more.
Currently it can be used to export links and metadata for archived
articles with a given tag, which are more recent than a given timestamp.
An example use case is to export all articles you have tagged as
"to-export", which are newer than 10 days old. The timestamp functionality
@shivswami
shivswami / neo4j_cypher_cheatsheet.md
Created April 14, 2020 19:25 — forked from DaniSancas/neo4j_cypher_cheatsheet.md
Neo4j's Cypher queries cheatsheet

Neo4j Tutorial

Fundamentals

Store any kind of data using the following graph concepts:

  • Node: Graph data records
  • Relationship: Connect nodes (has direction and a type)
  • Property: Stores data in key-value pair in nodes and relationships
  • Label: Groups nodes and relationships (optional)
@shivswami
shivswami / importing_graphbloggraph.cql
Created January 17, 2016 19:44 — forked from rvanbruggen/importing_graphbloggraph.cql
Creating and Querying the Graphblog-Graph
//Bruggen blog feed
//https://docs.google.com/a/neotechnology.com/spreadsheets/d/1LAQarqQ-id74-zxV6R4SdG7mCq_24xACXO5WNOP-2_w/export?format=csv&id=1LAQarqQ-id74-zxV6R4SdG7mCq_24xACXO5WNOP-2_w&gid=0
create index on :Blog(name);
create constraint on (p:Page) assert p.url is unique;
create (b:Blog {name:"Bruggen", url:"http://blog.bruggen.com"});
create (n:Blog {name:"Neo4j Blog", url:"http://neo4j.com/blog"});
create (n:Blog {name:"JEXP Blog", url:"http://jexp.de/blog/"});
create (n:Blog {name:"Armbruster-IT Blog", url:"http://blog.armbruster-it.de/"});

Modelling time-varying financial exposures in Neo4j

Answer to this Stackoverflow Question

Question

How would one model this kind of data in Neo4j?:

> HOLDINGS
   Portfolio                         Holding    Instrument       Date BALANCE.USD

Amazon Web Services Global Infrastructure Graph

Amazon Web Services global infractructure is steadily expanding and now serves thousands of customers in over 190 countries. Certain services are only available in some regions and compute prices vary across the globe. Wouldn’t it be nice if you could slice and dice through the entire AWS domain of services, data centres and prices all in one spot to optimise your AWS bill? , enter the AWS Global Infrastructure Graph!

At the time of writing the AWS global infrastructure graph consists of 5 continents, with 10 regions, and 21 availability zones, offering 32 services. The data shown here is current as of 21 January 2014.

disclaimer AWS consumers beware! The prices and services listed in the graph are correct as of January 21st 2014, please refer to the AWS price calculator for the latest prices and service offering’s per region - http://calculator.s3.amazonaws.com/calc5.html

Analysis over Finance and Portfolio Management

Most Finance portfolio management’s would be using RDBMS. But the same could be built with neo4j in a much succint manner. The analysis that can be done over it is interesting too. Consider the system has the data for x members, we can get analysis as follows:

  • How much percentage people spend money on a particular liability, say loans.

  • How much percentage does a particular asset contribute to average earnings.

EPublishing: A graphical approach to digital publications


Table of Contents