Skip to content

Instantly share code, notes, and snippets.

@laurenancona
laurenancona / technocratic-oath.md
Last active February 19, 2021 09:52
technocratic-oath

Technocratic Oath

I swear to fulfill, to the best of my ability and judgment, this covenant:

I will respect the hard-won scientific gains of those physicians in whose steps I walk, and gladly share such knowledge as is mine with those who are to follow.

I will apply, for the benefit of the sick user, all measures which are required, avoiding those twin traps of overtreatment and therapeutic nihilism.

I will remember that there is art to medicine software as well as science, and that warmth, sympathy, and understanding may outweigh the surgeon's knife or the chemist's drug need for another dependency.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@laurenancona
laurenancona / twitter_template.json
Created March 16, 2016 14:45
Tweetoria DDG collector
{
"template": "twitter",
"order": 1,
"settings": {
"number_of_shards": 1
},
"mappings": {
"tweet": {
"_all": {
"enabled": false
@laurenancona
laurenancona / civicapps
Last active March 16, 2016 12:54
Civic Web Applications: from Hacks to Maps
# Civic Web Applications: from Hacks to Maps
---
# surprise:
### application design == product design
----------
@laurenancona
laurenancona / phillytweets_metatags.html
Last active February 7, 2016 18:26
meta tags for sharing
<meta property="og:title" content="Philly Tweets: demographics & topical trends in Philadelphia" />
<meta property="og:url" content="http://phillytweets.com"/>
<meta property="og:site_name" content="Philly Tweets"/>
<meta property="og:image" content="images/hotlink-ok/philly-tweets-meta.jpg" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="644" />
<meta name="twitter:card" content="photo" />
<meta name="twitter:site" content="@devlintufts" />
<meta name="twitter:creator" content="@devlintufts" />
<link rel="image_src" href="images/hotlink-ok/philly-tweets-meta.jpg"/>
@laurenancona
laurenancona / index.html
Last active August 29, 2015 14:19
sunbursting
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Page Path sunburst</title>
<script src="http://d3js.org/d3.v3.min.js"></script>
<link rel="stylesheet" type="text/css"
href="https://fonts.googleapis.com/css?family=Open+Sans:400,600">
<link rel="stylesheet" type="text/css" href="sequences.css"/>
</head>
@laurenancona
laurenancona / README.md
Last active August 29, 2015 14:19 — forked from kerryrodden/.block

This example shows how it is possible to use a D3 sunburst visualization (partition layout) with data that describes sequences of events.

A good use case is to summarize navigation paths through a web site, as in the sample synthetic data file (visit_sequences.csv). The visualization makes it easy to understand visits that start directly on a product page (e.g. after landing there from a search engine), compared to visits where users arrive on the site's home page and navigate from there. Where a funnel lets you understand a single pre-selected path, this allows you to see all possible paths.

Features:

  • works with data that is in a CSV format (you don't need to pre-generate a hierarchical JSON file, unless your data file is very large)
  • interactive breadcrumb trail helps to emphasize the sequence, so that it is easy for a first-time user to understand what they are seeing
  • percentages are shown explicitly, to help overcome the distortion of the data that occurs wh
@laurenancona
laurenancona / regex-ua-id
Created April 6, 2015 16:36
Regex Pattern for Universal Analytics Profile IDs
UA-[0-9]{5,}-[0-9]{1,}
@laurenancona
laurenancona / googleSheets.r
Last active August 29, 2015 14:15
Import Google Spreadsheets data into R
#Load dependencies
library(XML)
library(httr)
# Sheet needs to be published, replace URL below & update tab number on line 19
# (if more than 1, L-R) where 'sheet = 1'
# Be sure to unfreeze any cells to prevent empty rows on import
url <- "https://docs.google.com/spreadsheets/d/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/pubhtml"
@laurenancona
laurenancona / designer.html
Last active August 29, 2015 14:09
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../google-map/google-map.html">
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<link rel="import" href="../core-animated-pages/core-animated-pages.html">
<link rel="import" href="../core-animated-pages/transitions/hero-transition.html">
<link rel="import" href="../core-animated-pages/transitions/cross-fade.html">
<link rel="import" href="../core-animated-pages/transitions/slide-down.html">