Skip to content

Instantly share code, notes, and snippets.

Curran Kelleher curran

Block or report user

Report or block curran

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@curran
curran / useWidthDetector.js
Last active Jul 22, 2019 — forked from AdamMcCormick/ScrollBarAdapter.jsx
A hook to listen for width changes or scroll-bar show/hide.
View useWidthDetector.js
import { useEffect } from 'react';
/**
* A hook to listen for width changes or scroll-bar show/hide.
*
* Arguments:
* * containerRef - a React ref to the element whose width you want to measure.
* * onWidthChanged - a function that is invoked when the width changes.
*
* Based on https://gist.github.com/AdamMcCormick/d5f718d2e9569acdf7def25e8266bb2a
@curran
curran / .block
Last active Jun 27, 2019
Simplified Globe
View .block
license: mit
@curran
curran / .block
Last active Apr 24, 2019
Hello Svelte
View .block
license: mit
@curran
curran / README.md
Last active Apr 20, 2019
Choropleth map with selectable countries
View README.md

A choropleth map with selectable countries.

This example demonstrates the changes neede for migration from VizHub to local development. Namely:

  • Required packages are added to package.json.
  • Script tags for libraries are removed from index.html.
  • Externals and globals can be removed from rollup.config.js.
<iframe width="560" height="315" src="https://www.youtube.com/embed/L2Tj20cGJ_4?rel=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
@curran
curran / .block
Last active Mar 29, 2019
Scatterplot Pills
View .block
license: gpl-3.0
@curran
curran / .block
Last active Apr 5, 2019
[unlisted] CodeMirror 6 Prerelease Example
View .block
license: mit
@curran
curran / .block
Last active Mar 18, 2019
[unlisted] CodeMirror 6 Dynamic Line Height Example
View .block
license: mit
@curran
curran / .block
Last active Apr 29, 2019
CodeMirror 6 Example
View .block
license: mit
@curran
curran / .block
Last active Mar 9, 2019
d3-tile tileSize
View .block
license: MIT
height: 600
scrolling: no
border: yes
@curran
curran / .block
Last active Mar 9, 2019
d3-tile wrapping
View .block
license: MIT
height: 500
scrolling: no
border: yes
You can’t perform that action at this time.