Skip to content

Instantly share code, notes, and snippets.

View badmckinney's full-sized avatar
🧠

Brad McKinney badmckinney

🧠
  • Honolulu, HI
View GitHub Profile

Keybase proof

I hereby claim:

  • I am badmckinney on github.
  • I am badmckinney (https://keybase.io/badmckinney) on keybase.
  • I have a public key ASBwaLIg0gRvlbh1ZJNhcn-T2_xZ9rojMDN2k-cpE3kxDAo

To claim this, I am signing this object:

Pig Latin Translator

A new alien species has moved to earth and they only speak pig-latin! The president has called you and says that they need your help!

Your mission is to create a module that is capable of taking an english sentence and translating it into pig latin. We must also be able to understand what our new alien friends are saying, so the module needs to be able to convert pig-latin back to english.

TL;DR: Create a module that translates a string into Pig Latin, and is capable of translating Pig Latin back into in the native language.

How Pig Latin Works

Basically, the Pig Latin system used here works as follows:

@badmckinney
badmckinney / Ruh-Roh.md
Created January 10, 2019 19:05 — forked from jaywon/Ruh-Roh.md
Email Hell

###Email Hell

We just found out that there is a bug in production that our e-mail function was iterating errantly and sending duplicate e-mails to many users. We need to fix this quickly but we don't want to send out a mass apology letter to all of our users.

Our sysadmin gave us the SMTP logs and we need to process the logs and identify which users received multiple e-mails so that we can directly send them a follow up e-mail explaining the situation and offer super cool swag to keep them on as customers.

Also, the boss wants this done ASAP, we don't have time to do this manually...HAAALLLLPPP!

###The Fix