Skip to content

Instantly share code, notes, and snippets.

View ChrisJamesC's full-sized avatar

Christopher Chiche ChrisJamesC

  • beeld
  • Lausanne, Switzerland
View GitHub Profile
@ChrisJamesC
ChrisJamesC / D3 LICENSE
Last active August 31, 2021 14:53 — forked from syntagmatic/LICENSE
Zoomable fractals in Javascript
Copyright (c) 2013, Michael Bostock
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
@ChrisJamesC
ChrisJamesC / data.json
Created January 7, 2013 13:28
d3js: text in circles + json
{"nodes":[
{"x":80, "r":40, "label":"Node 1"},
{"x":200, "r":60, "label":"Node 2"},
{"x":380, "r":80, "label":"Node 3"}
]}
@ChrisJamesC
ChrisJamesC / README.md
Last active December 14, 2015 04:28 — forked from mbostock/.block
Force directed graph with non-formated data.
@ChrisJamesC
ChrisJamesC / README.md
Last active December 19, 2015 04:19 — forked from mbostock/.block

Line chart with a circle on each point.

This line chart is constructed from a TSV file storing the daily average temperatures of New York, San Francisco and Austin over the last year. The chart employs conventional margins and a number of D3 features:

@ChrisJamesC
ChrisJamesC / README.md
Last active August 29, 2015 13:56 — forked from mbostock/.block

Enclosure diagrams use containment to represent the hierarchy. Although circle packing is not as space-efficient as a treemap, it better reveals the hierarchy. Implementation based on work by Jeff Heer. Data shows the Flare class hierarchy, also courtesy Jeff Heer.

See also this zoomable version.

Enclosure diagrams use containment to represent the hierarchy. Although circle packing is not as space-efficient as a treemap, it better reveals the hierarchy. Implementation based on work by Jeff Heer. Data shows the Flare class hierarchy, also courtesy Jeff Heer.

See also this zoomable version.

Enclosure diagrams use containment to represent the hierarchy. Although circle packing is not as space-efficient as a treemap, it better reveals the hierarchy. Implementation based on work by Jeff Heer. Data shows the Flare class hierarchy, also courtesy Jeff Heer.

See also this zoomable version.

Enclosure diagrams use containment to represent the hierarchy. Although circle packing is not as space-efficient as a treemap, it better reveals the hierarchy. Implementation based on work by Jeff Heer. Data shows the Flare class hierarchy, also courtesy Jeff Heer.

See also this zoomable version.

Enclosure diagrams use containment to represent the hierarchy. Although circle packing is not as space-efficient as a treemap, it better reveals the hierarchy. Implementation based on work by Jeff Heer. Data shows the Flare class hierarchy, also courtesy Jeff Heer.

See also this zoomable version.

@ChrisJamesC
ChrisJamesC / Yo
Last active August 29, 2015 14:05
Utlimate Yo
#!/usr/bin/python
# This script first executes the command passed as argument, then, when the command
# is done, it sends you a yo
#
# All you need to do is define the YO_USER and YO_TOKEN environment variables with:
# YO_USER: your Yo username
# YO_TOKEN: the Yo API token corresponding to the Yo API account you want to receive
# Yos from, don't forget to subscribe to your accounts.
#