Skip to content

Instantly share code, notes, and snippets.

View mitchelloharawild's full-sized avatar

Mitchell O'Hara-Wild mitchelloharawild

View GitHub Profile
@mitchelloharawild
mitchelloharawild / frigate_notification.yaml
Last active February 7, 2022 01:02 — forked from hunterjm/frigate_notification.yaml
Frigate Instant Notification Blueprint
blueprint:
name: Frigate Notification
description: |
## Frigate Mobile App Notification
This blueprint will send a notification to your device when a Frigate event for the selected camera is fired. The notification will initially include the thumbnail of the detection, but will update to include actionable notifications allowing you to view the saved clip/snapshot when available, or silence the notification for a configurable amount of time.
With this blueprint, you may send the notification to multiple devices by leaving "Device" blank and instead use a [notification group][1].
### Required entities:
@mitchelloharawild
mitchelloharawild / handler_capturing.R
Created August 9, 2019 03:40
Capture results, messages, warnings and errors into a list
so_many_problems <- function(){
message("msg")
message("msg2")
warning("warn")
warning("warn2")
warning("warn3")
if(runif(1) > 0.5){
stop("error")
}
"yay"
@mitchelloharawild
mitchelloharawild / twitter_list_members.R
Last active March 6, 2019 07:06
Code for obtaining a list of members from twitter
library(httr)
library(purrr)
token <- rtweet:::check_token(NULL)
dsw <- GET(url = "https://api.twitter.com/1.1/lists/members.json?slug=women-in-data-science&owner_screen_name=becomingdatasci&cursor=-1&count=5000&skip_status=1", token)
map_chr(content(dsw)$users, "screen_name") %>% sort %>% cat(sep = "\n")
#> ___dhara___
#> __Helma
#> _ajbc
#> _beenkim
#> _ehinosa