Skip to content

Instantly share code, notes, and snippets.

View curran's full-sized avatar

Curran Kelleher curran

View GitHub Profile
@curran
curran / README.md
Last active September 8, 2024 15:49
Time Zones
@curran
curran / README.md
Last active September 6, 2024 06:50
The Iris Dataset

This is the "Iris" dataset. Originally published at UCI Machine Learning Repository: Iris Data Set, this small dataset from 1936 is often used for testing out machine learning algorithms and visualizations (for example, Scatter Plot). Each row of the table represents an iris flower, including its species and dimensions of its botanical parts, sepal and petal, in centimeters.

The HTML page provides the basic code required to load the data and display it on the page (as JSON) using D3.js.

For a more up to date code example with React & D3, see (VizHub: Stylized Scatter Plot)[https://vizhub.com/curran/3d631093c2334030a6b27fa979bb4a0d?edit=files&file=index.js].

@curran
curran / bls-unemployment.js
Created August 12, 2024 15:07
BLS Unemployment Scraper
const fetch = require('node-fetch');
const fs = require('fs');
const { PrettyTable } = require('prettytable');
// Sample series IDs and years
const seriesIds = ['CUUR0000SA0', 'SUUR0000SA0'];
const startYear = '2011';
const endYear = '2014';
async function fetchBLSData() {
@curran
curran / README.md
Last active July 15, 2024 18:31
NPM D3 Downloads Data

This data was extracted from npm-stat and contains the weekly downloads data for the D3 Package.

@curran
curran / README.md
Last active July 5, 2024 01:13
Simplemaps World Cities Database

A dataset about cities of the world.

Downloaded from Simplemaps: World Cities Database.

A new file worldcitiesReduced.csv was created by manually removing columns not deemed necessary for initial visualization of this data.

@curran
curran / ChatGPTOutput.md
Created July 3, 2024 17:04
historical hurricane data

You can find historical hurricane data from several reliable sources, including:

  1. NOAA National Hurricane Center (NHC): They provide comprehensive data on past hurricanes, including tracks, intensities, and summaries. You can access the NHC archive here.

  2. NOAA National Centers for Environmental Information (NCEI): They offer a range of climate data, including hurricane tracks and impacts. You can explore their hurricane data here.

  3. HURDAT2 (Hurricane Database): Maintained by NOAA, this database includes detailed information on North Atlantic hurricanes. You can find HURDAT2 here.

  4. International Best Track Archive for Climate Stewardship (IBTrACS): This global hurricane data repository compiles information from multiple agencies. You can access IBTrACS data here.

@curran
curran / README.md
Last active June 9, 2024 06:53
World City Explorer

This program allows you to explore the world's cities.

  • Zoom in and out with the scroll wheel.
  • Pan by dragging.
  • Hover over a city to get its name and population.

Each circle represents a city. Each filled in pixel of a circle represents 50,000 people. When city circles overlap, they appear brighter, so brightness can be interpreted as population density.

The data comes from Geonames and shows only cities with population >100,000.

@curran
curran / .block
Last active June 7, 2024 02:16
Compare Colors
license: mit
@curran
curran / README.md
Created June 4, 2024 17:34
Eminem Songs Data
@curran
curran / .gitignore
Last active June 1, 2024 18:35
DBPedia Ontology
node_modules
*.swp