Skip to content

Instantly share code, notes, and snippets.

View Alfa-Q's full-sized avatar
:shipit:
Back at it.

Alfa-Q Alfa-Q

:shipit:
Back at it.
  • Error 404
  • Aperture Laboratories
View GitHub Profile
@Alfa-Q
Alfa-Q / valid_email_gen.py
Last active May 23, 2023 18:49
Generate valid email addresses for Gmail
"""Generate email addresses from an email address.
In theory, email addresses containing symbols should be valid by the RFC standard, but many services
restrict the allowable symbols in the name portion. Certain services will allow special chars, in
some cases even viewing addresses with chars interpolated in the local section to be the same as
the address without those interpolated chars.
Example:
>>> email = 'tester@gmail.com'
>>> allowable_chars = ['.', '_']
@Alfa-Q
Alfa-Q / listjs-infinite-pagination.html
Last active November 22, 2022 19:15
list.js - Infinite Scroll with Pagination
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Infinite Scroll Example</title>
<!-- Styles -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" href="styles.css">
<!-- Scripts -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>