This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <p>Tab Close Detect</p><br/> | |
| <a href="javascript:document.addEventListener("DOMContentLoaded",function(){document.body.focus()},!1),window.addEventListener("beforeunload",function(e){e.preventDefault(),e.returnValue=""});">Activate Tab Close Detect</a> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export function generate_d(p, q, e) { | |
| var J = (p-1) * (q-1); | |
| var a = 0; | |
| while (e * a) % J != 1{ | |
| a++;} | |
| return a} | |
| export function encrypt(m, n, e){ | |
| return Math.pow(m, e) % n} | |
| export function decrypt(c, d, n){ | |
| return Math.pow(c, d) % n} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| data = { | |
| "a": "qzs", | |
| "b": "nv", | |
| "c": "xv", | |
| "d": "fs", | |
| "e": "wrd3", | |
| "f": "dgrc", | |
| "h": "gj", | |
| "i": "uo", | |
| "m": "n", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def clean_anomalies(list_, strictness): | |
| cleaned = [] | |
| c = sum(list_) / len(list_) | |
| s = strictness / 100 | |
| d = c / s | |
| for i in list_: | |
| if not abs(i) > abs(d) + abs(c): | |
| cleaned.append(i) | |
| return cleaned | |