Skip to content

Instantly share code, notes, and snippets.

def gcd(n, d):
while n != d:
if n > d:
n = n - d
else:
d = d - n
return n
class Fraction:
def __init__(self, n, d):
var register = [
{
name: "PENNY",
value: 0.01,
count: 0
},
{
name: "NICKEL",
value: 0.05,
@ashvini-maurya
ashvini-maurya / whatsapp_phone_enumerator_floated_div.js
Created June 24, 2017 10:08
PoC WhatsApp enumeration of phonenumbers, profile pics, about texts and online statuses (floated div)
/****** I've created a Chrome extension from this script, take a look at https://github.com/LoranKloeze/WhatsAllApp ********/
/*
PoC WhatsApp enumeration of phonenumbers, profile pics, about texts and online statuses
Floated div edition
01-05-2017
(c) 2017 - Loran Kloeze - loran@ralon.nl
This script creates a UI on top of the WhatsApp Web interface. It enumerates certain kinds
of information from a range of phonenumbers. It doesn't matter if these numbers are part