Skip to content

Instantly share code, notes, and snippets.

View abhisheksambyal's full-sized avatar
🎲

Abhishek Singh Sambyal abhisheksambyal

🎲
View GitHub Profile
@abhisheksambyal
abhisheksambyal / generate_scrambled_email_indices.py
Last active August 15, 2020 18:53
If you want to use scramble.js in your website, you can use this code snippet to generate the scrambled email and indices. You can see the demo of scramble.js on https://jeffdonahue.com/.
# Reference "scramble.js": https://jeffdonahue.com/scramble.js [added]
# https://jeffdonahue.com/
# Author: Abhishek Singh Sambyal
# Usage: Modify the email variable with your email.
# Run: python generate_scrambled_email_indices.py
# Output: scrambled email string with indices
from random import random