Skip to content

Instantly share code, notes, and snippets.

Mark DiMarco markmarkoh

Block or report user

Report or block markmarkoh

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
markmarkoh / gist:2969317
Created Jun 21, 2012
World Map Geo JSON data
View gist:2969317
var countries_data = {"type":"FeatureCollection","features":[
markmarkoh / index.html
Last active May 15, 2019 — forked from mbostock/.block
Animated line graph ( curtain approach )
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
body {
font: 10px sans-serif;
margin: 0;
path.line {
markmarkoh / gist:2969316
Created Jun 21, 2012
World Map with D3.js
View gist:2969316
(function(window) {
var data,
xy = d3
.translate([$('#map_container').width() / 2, $('#map_container').height() / 2]),
path = d3
markmarkoh / gist:2341576
Created Apr 9, 2012
Example Ember.StateManager
View gist:2341576
App.stateManager = Ember.StateManager.create({
//Swap state within this element
rootElement: "#appRoot",
//Simple State
overview: Ember.ViewState.create({
view: App.Overview
markmarkoh /
Last active Jun 10, 2018
Custom Map Data in Datamaps
markmarkoh /
Last active May 14, 2018 — forked from jefffriesen/
US Zip Codes

This is a d3.js visualization of US zip codes.

Original zip code dataset from Geocommons.

5MB shapefile with properties such as zipcode, state, name, population, area, more. (Thank you Bill Greer)

This converts it nicely:

markmarkoh /
Last active Mar 23, 2017
Datamaps with custom map data

This example uses custom map data that includes counties in the state of New York. Custom map data is specified with geographyConfig.dataUrl, which will attempt to make d3.json request to that URL.

In this example, counties are referred to by their FIPs code.

The data was converted from a .SHP file to TopoJSON, instructions to do that here

More DataMaps examples here

markmarkoh /
Last active Sep 18, 2016 — forked from mbostock/.block
Draw This Graph!

Example 'draw this chart' workflow

markmarkoh / partials.jsx
Created Jul 2, 2014
Fun with React.js and ES6 Module Transpiler
View partials.jsx
* @jsx React.DOM
import React from 'react';
var ImagePlaceholder = {
imgLoadError: function() {
this.getDOMNode().querySelector('img').src = '/img/no-image.jpg';
You can’t perform that action at this time.