Skip to content

Instantly share code, notes, and snippets.

@robertdenton
robertdenton / secrets.json
Last active June 8, 2017 03:36
Get JSON secrets file using Python
{
"twitter-news": {
"consumer_key": "asdf",
"consumer_secret": "asdf",
"access_token":"asdf",
"access_token_secret":"asdf"
},
"bitly": {
"access_token": "asdf"
}
@robertdenton
robertdenton / j-site-judge.md
Last active March 19, 2017 20:20
Rubric for judging journalism websites

This is my rubric for judging journalism websites. I decided to make it after a Twitter rant about how judging journalism websites is terribly subjective.

Recently, while doing some judging for a journalism contest, I was given these guidelines for judging best website:

Entries will be judged on original journalistic content, design, creative use of technology and ease of navigation. Entry can include links to examples such as special online projects, interactives or databases prepared during the contest period.

Given that, here is my base rubric:

  • Level of journalism
  • Looking for quality journalism (newsworthiness, timeliness, scope of coverage, not click bait, etc.)
@robertdenton
robertdenton / SVG pie graph
Last active February 4, 2017 00:05
SVG pie graph
<html>
<head>
<meta charset="utf-8">
<title>Getting to know SVG pie charts</title>
<!-- -->
<!-- All credit to David Gilbertson... -->
<!-- ...this is just a working example of his code for my reference -->
<!-- See: https://hackernoon.com/a-simple-pie-chart-in-svg-dbdd653b6936 -->
<!-- Also: https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Getting_Started -->
<!-- And: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/d -->
@robertdenton
robertdenton / rd.test01.0224
Last active March 14, 2016 20:42
Special story demo
<link rel="stylesheet" href="http://uploads.registerguard.com/uploads/spec-css/spec-styles.css">
<div class="spec-wrapper">
<figure>
<div class="spec-header">
<div class="spec-header-head spec-header-top spec-benton">BIG HEAD</div>
<img src="http://registerguard.com/csp/cms/sites/custom.rg.img.cls?id=5179487" alt="who's a good boy">
</div>
<figcaption class="spec-caption">This is a spec-caption. Biscuit right paw run parakeet tooth leash polydactyl run fast. Water Dog play catch sit slobber slobbery bird seed toys harness run fast. (Courtesy Google)</figcaption>
</figure>
<div class="spec-story">