Skip to content

Instantly share code, notes, and snippets.

View sharonhoward's full-sized avatar

Sharon Howard sharonhoward

View GitHub Profile
@sharonhoward
sharonhoward / PDF-2-text-or-CSV.r
Created May 26, 2021 14:34 — forked from benmarwick/PDF-2-text-or-CSV.r
Convert PDFs to text files or CSV files (DfR format) with R
# Here are a few methods for getting text from PDF files. Do read through
# the instructions carefully! NOte that this code is written for Windows 7,
# slight adjustments may be needed for other OSs
# Tell R what folder contains your 1000s of PDFs
dest <- "G:/somehere/with/many/PDFs"
# make a vector of PDF file names
myfiles <- list.files(path = dest, pattern = "pdf", full.names = TRUE)
@sharonhoward
sharonhoward / 00-README.md
Created November 16, 2021 09:01 — forked from joewiz/00-README.md
Basic dynamic web pages, with XQuery and eXist

Basic dynamic web pages, with XQuery and eXist

This self-guided tutorial builds up from a simple "Hello, World!" exercise to a dynamic web page that responds to user input. It uses eXist-db and teaches the basic interface elements of the eXide XQuery IDE for developing XQuery-based applications in eXist.

eXist is a free, open source native XML database. It's a great tool for learning how to query, analyze, and transform your data. Among the various interfaces for working with eXist, one of the most convenient is eXide, a browser-based IDE (integrated development environment) for writing XQuery modules and developing XQuery-based applications on your own computer without installing any additional software. eXide comes pre-installed with eXist and has a number of useful features. We'll just cover the basics here. And once you have something you'd like to turn into a web page, eXist has a built-in web server, so you can develop full-fledged web applications by learning just a few additional functions and tec

@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
@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 / 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
# ------------------------------------------------------------------------------------------
# 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 / 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.

@sharonhoward
sharonhoward / .block
Created October 15, 2024 16:35 — forked from MoritzStefaner/.block
Force-based label placement
license: apache-2.0
@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 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