Skip to content

Instantly share code, notes, and snippets.

View tobyhodges's full-sized avatar

Toby Hodges tobyhodges

View GitHub Profile
@tobyhodges
tobyhodges / gist:a172ac158997ca9ca68b4c517e438694
Created October 5, 2023 13:14
loading data from feeds.carpentries.org and calling the build_issue_table function
issue_data <- fromJSON("https://feeds.carpentries.org/help_wanted_issues.json")
issue_data <- issue_data[, c(
"title",
"description",
"org_name",
"created_at",
"updated_at",
"labels",
"type",
"url",
@tobyhodges
tobyhodges / gist:734e43190352594d5a047a364d4b1fdd
Created October 5, 2023 13:12
carpentries/reactables build_table.R
library(jsonlite)
library(htmltools)
library(reactable)
library(dplyr)
library(lubridate)
issue_data <- fromJSON("https://feeds.carpentries.org/help_wanted_issues.json")
issue_data <- issue_data[, c(
"title",
"description",
@tobyhodges
tobyhodges / addingplots.py
Created November 24, 2016 15:03
Code example to reproduce bokeh layout problem
from numpy import array, random
from pandas import DataFrame
from bokeh.plotting import figure, curdoc
from bokeh.layouts import row, column, widgetbox
from bokeh.models.widgets import Button
def draw_plot(df):
f= figure(tools="save", background_fill_color="#EFE8E2",
title="", width=500, height=500)