Skip to content

Instantly share code, notes, and snippets.

@pbogden
pbogden / Base.png
Last active April 22, 2019 10:52
pan & zoom a png
Base.png
@pbogden
pbogden / README.md
Last active February 15, 2019 22:08
Leaflet earthquakes
@pbogden
pbogden / README.md
Last active February 1, 2019 16:54
plot.ly scatterplot
@pbogden
pbogden / foo.js
Last active December 4, 2018 13:23
observable demo
x=42;
console.log('bar')
@pbogden
pbogden / README.md
Last active September 14, 2018 09:48
html button

HTML button

Uses CSS

  • linear-gradient
  • box-shadow

Check out an SVG button

@pbogden
pbogden / .block
Last active August 2, 2018 10:05
Rotating GeoJSON in Three.js
license: gpl-3.0
height: 960
border: no
@pbogden
pbogden / README.md
Last active April 23, 2018 19:41
responsive2

Side-by-side responsive graphics

The key is to use appropriate CSS for the containers...

  • display: inline-block; for side-by-side containers
  • vertical-align: top; so content aligns along the top (default is baseline of parent)
  • float: left; otherwise carriage-return between containers will take up space
  • width: 48%; must account for padding on left & right
@pbogden
pbogden / README.md
Last active February 12, 2018 18:13
cors-enabled gsheet

##Google spreadsheet as a data source (CORS)

This demo retrieves data as CSV from the Google spreadsheet at this URL.

To adapt this demo to another spreadsheet:

  • You must share the spreadsheet so that "Anyone with the link can view" it.
  • You need a unique spreadsheet key (the long string 1Cj1...ieYo in the URL above). You can get it from the "shareable link", or from the address bar when you edit the spreadsheet in a browser.