Skip to content

Instantly share code, notes, and snippets.

View ResidentMario's full-sized avatar

Aleksey Bilogur ResidentMario

View GitHub Profile
@ResidentMario
ResidentMario / recruitment_grid_view_raw
Last active August 29, 2015 14:05
Dwarf Therapist "Recruitment View" --- Bugfix Report #107
size=3
3\name=Recruitment
3\active=true
3\animals=false
3\sets\size=9
3\sets\1\name=Ranged
3\sets\1\bg_color=0xb8c37eff
3\sets\1\columns\size=6
3\sets\1\columns\1\name=" 1"
3\sets\1\columns\1\type=SPACER
@ResidentMario
ResidentMario / README.md
Last active January 22, 2016 05:55
Fortune 50 Force Graph

This force graph is a visualization of the collective interconnectedness of the top 50 largest United States companies, using data from the 2015 iteration of Fortune magazine's annual Fortune 500 list and the measurement of conceptual interdependence reported by IBM Watson's Concept Insight API service. This visualization was constructed using watsongraph for querying (to learn more about watsongraph check out its GitHub repository), pandas for data aggregation and manipulation (refer here for the data munging), and d3.js for visualization (the code that you see here!).

This is meant to be a simple proof-of-concept of the use of the IBM Watson Cognitive Insights service via the watsongraph library for modeling things.

@ResidentMario
ResidentMario / README.md
Last active January 22, 2016 22:11
My 30 Most Edited Wikipedia Articles Force Graph

This is a visualization of the interconnectedness of my top 30* most edited articles on Wikipedia (I go by Resident Mario on the encyclopedia), as reported by IBM Watson's Concept Insight API service. The data is scraped from the Supercount Wikimedia Lab tool with requests and beautifulsoup, interwoven using watsongraph, and visualized using d3.js.

The techniques here could eventually be easily applied to any editor! A widget for visualizing any editor's top articles is forthcoming once watsongraph makes it to the 0.3.0 release. The data munging for this visualization can be viewed here.

* The cutoff is due to a [te

@ResidentMario
ResidentMario / manhattan.geojson
Last active January 31, 2016 20:24
manhattan
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ResidentMario
ResidentMario / manhattan.geojson
Last active February 9, 2016 00:06
Manhattan Point Cloud
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ResidentMario
ResidentMario / top_500.txt
Created May 28, 2016 01:14
Top 500 Most Enumerate Landowners in New York City
PARKS AND RECREATION 4269
DCAS 1892
HOUSING PRESERVATION 1442
NYC HOUSING AUTHORITY 1114
DCAS/DEPARTMENT OF ED 1027
OWNER / AGENT 946
DEPT OF ENVIRONMENTAL 851
NYC DEPT OF HIGHWAYS 568
HOUSING TRUST FUND CO 519
LONG ISLAND RAIL ROAD 468
@ResidentMario
ResidentMario / top_500
Created May 28, 2016 04:29
Top 500 Largest Landowners in New York City
OwnerName
NYC HOUSING AUTHORITY 151338336.0
DCAS/DEPARTMENT OF ED 107545244.0
OWNER / AGENT 24624491.0
NATIONAL PARK SERVICE 24399362.0
RIVERBAY CORPORATION 22042704.0
NYC DSBS 19379123.0
PORT AUTHORITY NY & N 17095037.0
PARKS AND RECREATION 15047756.0
THE CATHEDRAL CHURCH 14196603.0
@ResidentMario
ResidentMario / top_500.txt
Created May 28, 2016 05:27
Top 500 Wealthiest Landowners in New York City
OwnerName
DCAS/DEPARTMENT OF ED 1.820269e+10
PORT AUTHORITY NY & N 1.801034e+10
PARKS AND RECREATION 1.163104e+10
NYC HOUSING AUTHORITY 9.589786e+09
HEALTH AND HOSPITALS 2.717476e+09
JOINTLY OWNED PLAYGRO 2.424863e+09
DEPT OF PARKS AND REC 2.386076e+09
NEW YORK UNIVERSITY 2.260595e+09
RCPI HOLDCO LCC 1.923597e+09
@ResidentMario
ResidentMario / index.html
Last active July 8, 2016 04:25
New York City Tree Density by Neighborhood
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<<script src="//d3js.org/d3.v3.min.js"></script>
<script src="//d3js.org/topojson.v1.min.js"></script>
<script src="//npmcdn.com/rbush@1.4.3/rbush.js"></script>
<script src="//cdn.rawgit.com/newsappsio/spam/master/spam.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/d3-legend/1.10.0/d3-legend.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/d3-legend/1.10.0/d3-legend.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
<link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>