Skip to content

Instantly share code, notes, and snippets.

David Neuzerling mdneuzerling

Block or report user

Report or block mdneuzerling

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mdneuzerling
mdneuzerling / australian_licence_plate_type.py
Created Jun 14, 2019
Quick bit of code for determining whether an Australian licence plate is standard or personalised
View australian_licence_plate_type.py
# Takes a pattern like xxxddd (for three letters followed by three numbers)
# and converts it to regex. Other characters are left as is in the regex
# pattern string. This is helpful for states like SA in which every modern
# licence plate begins with an "S".
def match_plate_pattern(plate, pattern):
pattern = pattern.replace('x','[A-Za-z]').replace('d','[0-9]')
return(re.fullmatch(pattern, plate))
# Some of these rules are a bit more general than they need to be.
# These rules aren't complete (I tended to ignore anything before 1970).
View parse_monster.R
library(tidyverse)
modifier <- function(x) {
floor((x - 10) / 2)
}
skill_ability <- tribble(
~skill, ~ability_code_upper,
#-------|------------------
"athletics", "STR",
View cape_otway_max_temp_seasonal_facets.R
library(tidyverse)
library(bomrang)
weather <- get_historical(
stationid = "090015",
type = "max"
)
weather %>%
filter(!is.na(Max_temperature)) %>% # remove missing values
@mdneuzerling
mdneuzerling / keybase.md
Created Jun 19, 2016
Keybase verification
View keybase.md

Keybase proof

I hereby claim:

  • I am mdneuzerling on github.
  • I am mdneuzerling (https://keybase.io/mdneuzerling) on keybase.
  • I have a public key whose fingerprint is B09F 70F9 25C8 6754 D5A0 9746 870E C1FF 97FC EB78

To claim this, I am signing this object:

You can’t perform that action at this time.