Skip to content

Instantly share code, notes, and snippets.

View tomcardoso's full-sized avatar

Tom Cardoso tomcardoso

View GitHub Profile

Keybase proof

I hereby claim:

  • I am tomcardoso on github.
  • I am tomcardoso (https://keybase.io/tomcardoso) on keybase.
  • I have a public key whose fingerprint is CBA0 DB54 42F8 36FE CEA0 D4FF 7E6E 2A19 8F88 E74C

To claim this, I am signing this object:

@tomcardoso
tomcardoso / README.md
Last active January 10, 2020 09:22
Reusable waffle charts

Reusable waffle charts

Basic waffle charts using Mike Bostock's [http://bost.ocks.org/mike/chart/](reusable charts) convention. Waffles are configurable, as you can see below:

var waffle = new WaffleChart()
  .selector(".chart")
  .data(data)
  .useWidth(false)
 .label("Value of producers' sales in 2013, in thousands of dollars")
@tomcardoso
tomcardoso / README.md
Last active February 3, 2016 04:28
Canadian IPOs
@tomcardoso
tomcardoso / heroku.sh
Last active March 28, 2016 17:59
chart tool heroku deployment
#!/bin/bash
CURRHASH=`git rev-parse --short HEAD`
CURRBRANCH=`git rev-parse --abbrev-ref HEAD`
git commit -am "Deploying ${CURRHASH} to Heroku"
git checkout -b "deploy-${CURRHASH}"
gulp lib-build
@tomcardoso
tomcardoso / count.js
Created January 25, 2024 16:52
Counting words in ATI reports
Array.from(document.querySelectorAll("main p")).map(d => d.textContent.trim()).join(" ").split(/\s+/).length