Skip to content

Instantly share code, notes, and snippets.

View sergeiwallace's full-sized avatar

Sergei Wallace sergeiwallace

View GitHub Profile
@pazdera
pazdera / gist:1040939
Created June 22, 2011 19:35
Python main template
#!/usr/bin/env python
# -*- coding: utf-8 -*-
def main():
""" Main program """
# Code goes over here.
return 0
if __name__ == "__main__":
main()
@eyaler
eyaler / graph.json
Last active December 26, 2023 07:36
Force-Directed Graph with Drag/Zoom/Pan/Center/Resize/Labels/Shapes/Filter/Highlight
{
"graph": [],
"links": [
{"source": 0, "target": 1},
{"source": 0, "target": 2},
{"source": 0, "target": 3},
{"source": 0, "target": 4},
{"source": 0, "target": 5},
{"source": 0, "target": 6},
{"source": 1, "target": 3},
@michellechandra
michellechandra / README.md
Last active June 11, 2024 04:09
Basic US State Map - D3
@ericcoopey
ericcoopey / README.md
Last active July 15, 2018 23:49
D3 US Map with Hover

D3 US Map with Hover

Basic US map using D3 and topojson. Each state gets colored and neighbors should never be the same color. Also has some mousein/mouseout functions for highlighting the state your cursor is over

@rgdonohue
rgdonohue / README.md
Last active May 14, 2023 20:26
A D3 map using topojson
@curran
curran / README.md
Last active July 16, 2018 19:19
Map & Globe

Pan and zoom in the map on the left to rotate the globe.

Click and drag the globe to pan on the map.

An example that shows a Chiasm plugin based on Leaflet.js alongside a Chiasm globe plugin based on the D3 example This is a Globe.

The Chiasm plugins demonstrated here are

@martgnz
martgnz / .block
Last active September 13, 2019 09:32
Spam.js Choropleth IV
license: mit
height: 650
border: none
@martgnz
martgnz / .block
Last active July 16, 2018 00:28
US States
border: none
license: mit
@martgnz
martgnz / .block
Last active July 15, 2018 23:50
Chatty Map
license: mit
border: none
height: 510
@rveciana
rveciana / README.md
Last active May 15, 2019 15:36
Congressional representatives dataset

Based on this data, contains a Shapefile and two topojson with the US congressional Districts.

The atlas-make project has a better maintained version of this data.

The difference from the data is based on, is that the American Samoa, Guam and Northern Marianas are included from the Natural Earth dataset. The Congress Representative data is included too.

get_areas.py is a script to calculate the area paoperties for the new objects. The name of the Congressional Representatives in the added territories has been taken from the Wikipedia.

The topojson has been calculated using the command: topojson -o us_congressional_district.json cgd114p010g.shp -p