Skip to content

Instantly share code, notes, and snippets.

View JaminB's full-sized avatar
🎯
Focusing

Jamin Becker JaminB

🎯
Focusing
View GitHub Profile
import re
ipv4_address_pattern = re.compile('^(?:(?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}(?:[0-9]|[1-9][0-9]|1'
'[0-9]{2}|2[0-4][0-9]|25[0-5])$')
ipv6_address_pattern = re.compile('^(?:(?:[0-9A-Fa-f]{1,4}:){6}(?:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}|(?:(?:[0-9]'
'|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}(?:[0-9]|[1-9][0-9]|1[0-9]'
'{2}|2[0-4][0-9]|25[0-5]))|::(?:[0-9A-Fa-f]{1,4}:){5}(?:[0-9A-Fa-f]{1,4}:'
'[0-9A-Fa-f]{1,4}|(?:(?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.)'
'{3}(?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))|(?:[0-9A-Fa-f]{1,4})?::'
@JaminB
JaminB / gist:e6f68f4e68f87b0c68d0314568d7d17b
Created March 13, 2017 18:12
BuzzFactor - A simple heuristic for determining how personal a recruiter-message is
"""
BuzzFactor an algorithm designed to assign an integer value (1-10) to the level of "Buzziness" of a recruiter-provided job description.
- 1-3: The recruiter took time to draft a job description, and probably spent time looking at your profile.
- 4-6: The recruiter may have modified a template slightly, and most likely made some effort to correctly match you.
- 7+: The recuriter litterally copied and pasted the job description into an email and slapped your name on it because "computer" was in your resume
"""
### COPY and PASTE MESSAGE HERE
message = """