Skip to content

Instantly share code, notes, and snippets.

View sharonhoward's full-sized avatar

Sharon Howard sharonhoward

View GitHub Profile
@sharonhoward
sharonhoward / prog-hist-word-freq.py
Created May 18, 2025 08:05 — forked from pletcher/prog-hist-word-freq.py
A rewrite of the Programming Historian Word Frequencies lesson to use the Old Bailey API instead of requesting the web page
#html-to-freq.py
# original lesson: https://programminghistorian.org/en/lessons/counting-frequencies
# We've added json to the list of imports — you don't need to install anything,
# json is part of the Python standard library.
import urllib.request, urllib.error, urllib.parse, json, obo
# Notice that instead of requesting the HTML directly, we're now
# making a request to the backend API — meaning a server that returns
@sharonhoward
sharonhoward / .block
Created October 30, 2024 20:52 — forked from HarryStevens/.block
Force Update Pattern
license: gpl-3.0
@sharonhoward
sharonhoward / .block
Created October 30, 2024 17:28 — forked from martinjc/.block
D3 force simulation, curved edges and hover interaction (Data: Twitter mentions between members of the Welsh Assembly)
license: mit
border: no
height: 1000
@sharonhoward
sharonhoward / firm.csv
Created October 30, 2024 17:20 — forked from emeeks/firm.csv
Networks - Graphs 1
source target weight
1 3 5
1 8 3
1 9 3
1 12 3
1 15 2
1 23 3
1 26 2
1 37 2
1 46 2
@sharonhoward
sharonhoward / .block
Created October 15, 2024 16:35 — forked from MoritzStefaner/.block
Force-based label placement
license: apache-2.0
@sharonhoward
sharonhoward / README.md
Created August 21, 2024 05:33 — forked from iosonosempreio/README.md
d3.symbol() custom shapes

How to create custom symbols to use with d3.symbol().

As far as I understood, commands are theese.

Readapted from this fiddle.

# ------------------------------------------------------------------------------------------
# Basically all translated from the Python example at https://atproto.com/blog/create-post
# ------------------------------------------------------------------------------------------
library(httr2)
# Create a logged-in API session object
session <- request("https://bsky.social/xrpc/com.atproto.server.createSession") |>
req_method("POST") |>
req_body_json(list(
@sharonhoward
sharonhoward / BBC-Radio-HLS-UK.m3u
Created April 8, 2023 19:27 — forked from bpsib/BBC-Radio-HLS.m3u
BBC Radio Streams
#EXTM3U
#EXTINF:-1,BBC - Radio 1
http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_med/ak/bbc_radio_one.m3u8
#EXTINF:-1,BBC - Radio 1Xtra
http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_med/ak/bbc_1xtra.m3u8
#EXTINF:-1,BBC - Radio 1Dance
http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_med/ak/bbc_radio_one_dance.m3u8
#EXTINF:-1,BBC - Radio 1Relax
http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_med/ak/bbc_radio_one_relax.m3u8
#EXTINF:-1,BBC - Radio 2
@sharonhoward
sharonhoward / .gitignore
Created June 1, 2022 09:01 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@sharonhoward
sharonhoward / baby_name_props.md
Created March 23, 2022 06:50 — forked from juliasilge/baby_name_props.md
Area chart for #TidyTuesday baby name proportions
library(tidyverse)
library(silgelib)
theme_set(theme_plex())

babynames <- read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2022/2022-03-22/babynames.csv')
#> Rows: 1924665 Columns: 5
#> ── Column specification ────────────────────────────────────────────────────────
#> Delimiter: ","
#> chr (2): sex, name