Skip to content

Instantly share code, notes, and snippets.

@cddelong6626
cddelong6626 / vigenereCipher.py
Created March 26, 2017 20:36
Vigenere Cipher
#Cole Delong
#3.24.17
global upperSymbols
upperSymbols = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
global lowerSymbols
lowerSymbols = "abcdefghijklmnopqrstuvwxyz"
def encrypt(text, key):
encrypted = ''
length, times = len(key), 0
for i in text:
@cddelong6626
cddelong6626 / caesarCipher.py
Created March 26, 2017 20:34
Caesar Cipher
#Cole Delong
#3.24.17
global upperSymbols
upperSymbols = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
global lowerSymbols
lowerSymbols = "abcdefghijklmnopqrstuvwxyz"
def encrypt(text, key):
encrypted = ''
for character in text:
if character not in upperSymbols and character not in lowerSymbols:
@cddelong6626
cddelong6626 / Daily motivational messages!.py
Created February 18, 2017 16:03
Daily motivational messages!
#Cole Delong
#2/18/17
#imports
import smtplib
import random
import time
def main():
day = 1
motivationalWords = ['You know ****.', 'Be somebody nobody thought you could be.', 'Your only limit is you', "Don't stop when you're tired, stop when you are done.", 'F.E.A.R. has two meanings - Forget everything and run, or face everythings and rise. The choice is yours.', 'Your mind is a powerful thing. When you fill it with positive thoughts, your life will start to change.', 'Life is 10% what happens to you and 90% how you react to it.', 'Only you can change your life. No one can do if for you.', 'Good, better, best. Never let it rest. \'Til your good is better and your better is best.', 'Optimism is the faith that leads to achievement. Nothing can be done without hope and confidence.']
while True:
@cddelong6626
cddelong6626 / emailSender
Created February 18, 2017 15:31
A dumb text based program that can send emails.
"""Cole Delong
2/17/17"""
#Jacob, you suck
#imports
import smtplib
from base64 import b64encode as encode
from base64 import b64decode as decode
unlocked = False
def main():
print('''
@cddelong6626
cddelong6626 / 6thGradeMathHomeworkCheats.py
Last active December 26, 2016 03:28
I made this on a Chromebook and I'm a crap programmer, so it's not a GUI and it's a crap program. Put on your big girl pants and deal with it.
"""Cole Delong
12-24-16"""
#imports
from math import pi
# SURFACE AREA CLASS
class surfaceArea():
def cube():
while True:
try:
@cddelong6626
cddelong6626 / amazingNameGeneratorGUI.py
Last active December 21, 2016 00:10
This is my first GUI. I'm still working on it, so it doesn't really do anything yet.
"""Cole Delong
12-16-16
12-20-16"""
#imports
from tkinter import *
from tkinter import ttk
import time
import random
import os, sys, subprocess
@cddelong6626
cddelong6626 / amazingNameGenerator.py
Last active December 16, 2016 03:34
An amazing name generator that is not a GUI because I am a noob programmer! Any suggestions? Don't email me! Just comment in the section down below that is for suggestions and stuff!
#!/usr/bin/python2.7
"""Cole D... HA! YOU TRIED TO SEE WHAT MY NAME IS! I'M NOT FALLING FOR THAT!
age 12
amazing programmer
such a boss
11-17-16"""
#imports
import random