Skip to content

Instantly share code, notes, and snippets.

View adg29's full-sized avatar
📱

Alan Garcia adg29

📱
View GitHub Profile
@adg29
adg29 / RadarChart.js
Last active August 29, 2015 14:14 — forked from nbremer/.block
What % of Dutch Mobile owners use a specific service in a week
//Practically all this code comes from https://github.com/alangrafu/radar-chart-d3
//I only made some additions and aesthetic adjustments to make the chart look better
//(of course, that is only my point of view)
//Such as a better placement of the titles at each line end,
//adding numbers that reflect what each circular level stands for
//Not placing the last level and slight differences in color
//
//For a bit of extra information check the blog about it:
//http://nbremer.blogspot.nl/2013/09/making-d3-radar-chart-look-bit-better.html
@adg29
adg29 / police-shootings-subset-geocoded.js
Last active August 29, 2015 14:14
Police Shootings Geocoded Subset via Deadspin
var shootings = [
{
"County": "Wake",
"State": "NC - North Carolina",
"City": "Zebulon",
"Lat": "35.8243208",
"Lng": "-78.3147199",
"Agency Name": "Zebulon police",
"victim_name": "Derek Smith",
"victim_age": "22",
@adg29
adg29 / cities-2030.json
Last active August 29, 2015 14:07
D3JS External JSON Circle Radius and X-Axis displacement example
[
{
"Country_Area":"Japan",
"City_Code":21671,
"City":"Tokyo",
"Latitude":35.69,
"Longitude":139.69,
"1950":11275,
"1955":13713,
"1960":16679,
# usage: `python ~/Desktop/contours.py 1994-654-12_v02.tif`
# output is to a squareless.txt file and the directory "out"
# Working well with thumbnails with 400px as their longest side - untested with other dimensions
# for i in $(ls -1 | grep tif); do python /Users/artsyinc/Documents/resistance/experiments/artwork_image_cropping/contours.py $i; done
import cv2
import numpy as np
from matplotlib import pyplot as plt
import sys
@adg29
adg29 / README.md
Last active May 21, 2018 13:15
Three.JS orbit controls example

TODO

  1. Import delicious bookmarks
  2. Position Scale Orient and Color triangles based on variables of each bookmark in context of sets of bookmarks that live in a recent activity set, in tag sets, and the others dynamic sets of bookmarks.
@adg29
adg29 / README.md
Last active August 29, 2015 13:56
amoebaAbstract_01_formatik

Variation on abstract computational animation for the exhibition

"Abstraction Now", Künstlerhaus Vienna, 29.08-28.09 2003.

You are allowed to play with this code as much as you like, but you may not publish pieces based directly on it. The Vec2D class can be used freely in any context. via http://yaythis.me/1hgyFVQ

@adg29
adg29 / README.md
Last active April 27, 2017 17:41 — forked from milroc/README.md
Backbone.js with d3.js
@adg29
adg29 / README.markdown
Last active April 27, 2017 17:42 — forked from bewest/README.markdown
Time scales zooming in D3

Time scales

This demo several time scales. src

full screen demo

D3's time axis does magic things. I expected to modify the x axis such that I could mostly re-use D3's date formatting tricks, but exercise greater control over the resolution at different time scales.

@adg29
adg29 / README.md
Last active April 27, 2017 17:46 — forked from mbostock/.block
Focus + context zooming with D3's brush component

This examples demonstrates how to use D3's brush component to implement focus + context zooming. Click and drag in the small chart below to pan or zoom.

@adg29
adg29 / README.md
Last active November 16, 2024 18:00 — forked from markmarkoh/README.md
New York with Counties (FIPS codes)

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