Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html class="ocks-org do-not-copy">
<meta charset="utf-8">
<title>Dramatic Co-occurrence</title>
<style>
@import url(../style.css?aea6f0a);
d3_plot {
font-size: 80%;
}
@wanyanxie
wanyanxie / index.html
Last active April 21, 2016 08:43
project 2
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Visualizing PageRank Centrality</title>
<meta charset="utf-8" />
</head>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="http://d3js.org/colorbrewer.v1.min.js"></script>
<style>
svg {
@wanyanxie
wanyanxie / README.md
Created April 15, 2016 07:23
National Day of Civic Hacking: Learning D3.js (part 2)

Join the chat at https://gitter.im/Jay-Oh-eN/interactive-data-viz

These are the materials for an introduction to D3.js workshop for the National day of Civic Hacking (Code for SF) attendees.

We will be using the following two tools to works through these exercises:

I would love your feedback on the materials in the Gitter forum or in the Github issues.

@wanyanxie
wanyanxie / cities.csv
Last active April 15, 2016 07:10
National Day of Civic Hacking: Learning D3.js (part 1)
month CA-Los Angeles CA-San Francisco CO-Denver
1987-01 59.33 46.61 50.2
1987-02 59.65 46.87 49.96
1987-03 59.99 47.32 50.15
1987-04 60.81 47.69 50.55
1987-05 61.67 48.31 50.63
1987-06 62.71 48.83 50.5
1987-07 63.66 49.49 50.28
1987-08 64.56 49.94 50.38
1987-09 65.38 50.69 50.18
@wanyanxie
wanyanxie / README.md
Last active March 29, 2016 06:55
MSAN 622 Homework 2: Javascript Anagrams (4/24)

Due 5pm PST Tuesday 3/29

For this homework you will submit as a fork of this gist

Create a Javascript function to find asociated anagrams in an input list of strings. For the input list, output every string (only once) that has an associated anagram elsewhere in the input list. See an example input and output below:

input_list = ['man', 'list', 'acme', 'talk', 'cat', 'beach', 'came', 'tac', 'naan', 'slit', 'act']

var anagram_finder = function(list) {