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
Wed May 1 20:38:35 UTC 2019 |
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
import sys | |
import math | |
n = int(sys.argv[1]) # n is the number of people | |
M = int(sys.argv[2]) # M is the number of matching birthdays | |
m = int(sys.argv[3]) # m is the number of days in the year | |
def logFact(n): | |
""" | |
Compute log(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
#!/bin/sh | |
AMOUNT=5 | |
WHAT=paras | |
START=false | |
while getopts ":n:wpbls" opt; do | |
case $opt in | |
n) | |
AMOUNT=$OPTARG |
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
Whois Server Version 2.0 | |
Domain names in the .com and .net domains can now be registered | |
with many different competing registrars. Go to http://www.internic.net | |
for detailed information. | |
Domain Name: MARTHA-ROBERTSON.COM | |
Registrar: GODADDY.COM, LLC | |
Whois Server: whois.godaddy.com |
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
import json | |
import string | |
import urllib | |
import sys | |
import random | |
chars = string.uppercase | |
while True: | |
s = ''.join(random.choice(chars) for i in range(5)) | |
try: |