Skip to content

Instantly share code, notes, and snippets.

View eandrewgolden's full-sized avatar

eandrewgolden

View GitHub Profile
@eandrewgolden
eandrewgolden / recover.c
Created October 3, 2019 01:48
recover.c
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
// take in one command-line argument only
if (argc != 2)
{
fprintf(stderr, "Wrong!\n");
#! python3
import re, pyperclip
# Create a regex for phone numbers
phoneRegex = re.compile(r'''
# 415-555-000, 555-0000, (415) 555-0000, 555-000 ext 12345, ext. 12345, x12345
(
((\d\d\d) | (\(\d\d\d\)))? # area code optional