Skip to content

Instantly share code, notes, and snippets.

View tlemburg's full-sized avatar

Tyler Lemburg tlemburg

View GitHub Profile
@tlemburg
tlemburg / webhook_receiver.rb
Created October 2, 2020 18:49
Cognito webhook receiver v2
require 'sinatra'
require 'json'
require 'openssl'
require 'base64'
WEBHOOK_KEY = 'webhook_sandbox_key_19a08a7f7f181eadc45a188f815aa4f0'
WEBHOOK_SECRET = '43e042f238733fc892d9bbb06b564a023999d116a7d345c51c48611ba81e4ba4'
get '/' do
'hello world'
@tlemburg
tlemburg / country_phone_codes_wikipedia.rb
Created November 12, 2020 20:29
Grab country phone codes out of Wikipedia article
require 'nokogiri'
require 'open-uri'
require 'yaml'
doc = Nokogiri::HTML.parse(open("https://en.wikipedia.org/wiki/List_of_country_calling_codes"))
table = doc.css('table.wikitable').first
cells = table.css('td')
This application does not collect or store personal data.
If you installed this application from Google Play, then Google Play does collect some personal data. Please see the privacy policy for Google Play Services here: https://policies.google.com/privacy