Skip to content

Instantly share code, notes, and snippets.

View bryceroney's full-sized avatar

Bryce Roney bryceroney

View GitHub Profile
library(tidyverse)
# Load our emails
emails <- read_csv("C:/temp/all_emails.csv")
# Set our email regular expression
email.re <- "^[a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$"
email.re.potential <- "[a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*"
library(tidyverse)
library(lubridate)
data <- read_csv("https://www.data.act.gov.au/api/views/x7dn-77he/rows.csv?accessType=DOWNLOAD")
data <- data %>%
mutate(Date = dmy(Date),
Period = case_when(
Date >= '2020-02-01' & Date <= '2020-02-29' ~ "February",
Date >= '2020-03-01' & Date <= '2020-03-29' ~ "March",
.field.text {
width: 100% !important;
}
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="utf-8" ?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document id="root_doc">
<Folder><name>maori</name>
<Placemark>
<name>Te Tai Tokerau</name>
<Style><LineStyle><color>ff0000ff</color></LineStyle><PolyStyle><fill>0</fill></PolyStyle></Style>
<MultiGeometry><Polygon><altitudeMode>clampToGround</altitudeMode><outerBoundaryIs><LinearRing><altitudeMode>clampToGround</altitudeMode><coordinates>175.9033,-36.258285,0 175.628116,-36.385033,0 175.544525,-36.383057,0 175.543519,-36.383033,0 175.446388,-36.380661,0 175.416921,-36.379889,0 175.251019,-36.399724,0 175.18066,-36.499979,0 175.163084,-36.523934,0 175.203887,-36.594935,0 175.010545,-36.732433,0 174.955309,-36.775106,0 174.927724,-36.793699,0 174.927466,-36.793878,0 174.927207,-36.794058,0 174.926949,-36.794237,0 174.926691,-36.794418,0 174.926434,-36.794598,0 174.926177,-36.794779,0 174.925921,-36.794961,0 174.925666,-36.795143,0 174.925412,-36.795326,0 174.925159,-36.79551,0 174.924908,-36.795694,0 174.924658,-36.7
<?xml version="1.0" encoding="utf-8" ?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document id="root_doc">
<Folder><name>general2</name>
<Placemark>
<name>Upper Harbour</name>
<Style><LineStyle><color>ff0000ff</color></LineStyle><PolyStyle><fill>0</fill></PolyStyle></Style>
<Polygon><altitudeMode>clampToGround</altitudeMode><outerBoundaryIs><LinearRing><altitudeMode>clampToGround</altitudeMode><coordinates>174.74275,-36.77183 174.73555,-36.77629 174.73373,-36.78036 174.71879,-36.77737 174.7077,-36.78466 174.70287,-36.78508 174.69552,-36.78102 174.68345,-36.78526 174.6761,-36.79172 174.6746,-36.81468 174.65205,-36.81945 174.64133,-36.82562 174.64078,-36.83179 174.63188,-36.83893 174.62899,-36.8468 174.61856,-36.85498 174.60602,-36.85572 174.60208,-36.85057 174.60485,-36.84637 174.5945,-36.84186 174.60158,-36.83658 174.60779,-36.82845 174.60744,-36.82152 174.61456,-36.8185 174.61332,-36.81304 174.62561,-36.806 174.65215,-36.79267 174.65052,-36.78564 174.66345,-36.78152 174.66259,-36.76963 174.67315
2016-09-27 11:25:31> Program: Starting Squirrel Updater: --install .
2016-09-27 11:25:31> Program: Starting install, writing to C:\Users\bryce\AppData\Local\SquirrelTemp
2016-09-27 11:25:31> Program: About to install to: C:\Users\bryce\AppData\Local\slack
2016-09-27 11:25:31> CheckForUpdateImpl: Couldn't write out staging user ID, this user probably shouldn't get beta anything: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\bryce\AppData\Local\slack\packages\.betaId'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromPro
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bryceroney
bryceroney / gist:acca5fd15b6bcd26d731851cd6f21040
Created March 10, 2017 02:42 — forked from douglasjarquin/gist:2208690
Amazon RDS Performance Tuning Settings
rds-modify-db-parameter-group {param-group-name} \
--parameters="name=character_set_server, value=utf8, method=pending-reboot" \
--parameters="name=collation_server, value=utf8_general_ci, method=pending-reboot" \
--parameters="name=tmp_table_size, value={DBInstanceClassMemory/16}, method=pending-reboot" \
--parameters="name=max_heap_table_size, value={DBInstanceClassMemory/16}, method=pending-reboot" \
--parameters="name=query_cache_type, value=1, method=pending-reboot" \
--parameters="name=query_cache_size, value=131072, method=pending-reboot" \
--parameters="name=table_open_cache, value=2500, method=pending-reboot" \
--parameters="name=join_buffer_size, value={DBInstanceClassMemory/64}, method=pending-reboot" \
--parameters="name=thread_cache_size, value={DBInstanceClassMemory/12582880}, method=pending-reboot" \
<?php
/*
Plugin Name: Ninja Forms - Content Type Header
*/
add_filter( 'nf_remote_post_args', 'nf_add_content_type_headers' );
function nf_add_content_type_headers( $args ){
$headers = array(
//
google.load('visualization', '1', { 'packages': ['corechart', 'table', 'geomap'] });
var FusionTableID = '1WFNhmPPyOFAkXZ0TmdFrSOQUlpvubquE2BN8jFXM';
var map;
var geocoder;
var infowindow;
var marker;
// Load the Google Geocoding API