Skip to content

Instantly share code, notes, and snippets.

View chand1012's full-sized avatar

Chandler chand1012

View GitHub Profile
@chand1012
chand1012 / 95_percent_confidence.py
Last active May 1, 2017 02:48
confidence calculator
from math import sqrt
print("Calculating confidence of 95%")
avg = float(input("Enter average of the data:"))
n = int(input("Enter number of items:"))
sd = float(input("Enter standard devation:"))
z = 1.96
conf_high = avg + z * (sd/sqrt(n))
conf_low = avg - z * (sd/sqrt(n))
import imaplib
import email
from json import loads
def email_login_info(file_name='login.json'):
try:
file_keys = open(file_name)
except:
file_keys = open(file_name, 'w')
raw_json = '''{
import imaplib
import email
from json import loads
def email_login_info(file_name='login.json'):
try:
file_keys = open(file_name)
except:
@chand1012
chand1012 / wifi_passwd.cmd
Last active March 15, 2017 03:07
Windows 8+ wifi password retriever
@echo off
set /p ssid="Enter SSID of Network"
netsh wlan show profile name=%ssid% key=clear | findstr Key
pause