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 smtplib | |
from email.message import EmailMessage | |
me = str(input("Enter your Email address : ")) | |
passw = str(input("Enter your password: ")) | |
you = str(input("Enter recipient's Email address: ")) | |
msg = """Spam Spam Spam | |
""" | |
s = smtplib.SMTP('smtp.gmail.com', 587) | |
s.connect("smtp.gmail.com", 587) | |
s.ehlo() |
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 pygame, random, time | |
screen_height = 500 | |
screen_width = 800 | |
pygame.init() | |
screen = pygame.display.set_mode((screen_width, screen_height)) | |
pygame.display.set_caption("Car Race by lzzy12 @ github.com") | |
white = (255, 255, 255) |
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDpaE0bpKUIyYL+AJamLWh58qAGW38+NB47UT/E/V/uBDwFfvh4JbVEgcSiQYjdlvzijXWfovwDfL4HVUoK+g29Qf3iCIl5918SRN2tOu1ahIjepoqEsIOGrfFxDMrOZBtF0J8+ht0Z3aaOWyOuQ0vhnTqOeBe05gOZZFrlMclMvxpAZISLNthrdpCRnZnslEvn0qkbc9MBIKgXxJrDyBngSPAU6fY6LaAoFM+TOpvgx2zjtIBmZy4XeG7z4e2XvN1DZqC5akjVKaH8x0gX20ij77FN+5D2VNnpkBznij9IlI4JWcyeBCrPeh9v1Pqjak+x9/vxVVnPVCiYAWUq4x43 ubuntu@ubuntu |
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
ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAxDmCHegqxmLEnQ7VUVRlZwLjDF9VlHeBCzu6o7p5RToF2ED3S3zi4d+6pWrD5lhW4fYMU3KhkW9pxxy7snB3T1VoTwDIfmB3xaFnY254gRB8rBLaq3o4RAyjmmFQu8hSR8R+raNm5v/+PhwnM09COFxlqGqdP/4OoHYALkShr7kZz/ftGlbJqPFc+FQrxOy+rDwv10nTExCPDL/Vfo/9LmLFKb91v6APqI6VrCjUrYWgVcQJcexW2MwKiBGOQkkCU5x7L0DLsCqrCyMKaWF5aaGjW9TV5CpcTjKBIcfzklhQ7SRPXN05INsBVx0+M9mKkXib7Vrb8qHghbJD67gbdw== rsa-key-20180622 |
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 java.util.*; | |
import static java.lang.Math.sqrt; | |
public class HelloWorld { | |
public static boolean isSqrNum(int input) | |
{ | |
// If the sqrt(input) is an integer, then it is a perfect square or square number | |
return (sqrt(input) % 1 == 0); | |
} | |
public static boolean isTriangle(int input) | |
{ |
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
#include <iostream> | |
using namespace std; | |
int reverse(int in) { | |
// Takes an int | |
// @return reverse of a given number of int data type | |
int r = 0; | |
while (in != 0) | |
{ | |
r = (r * 10) + (in % 10); |
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
#include <iostream> | |
#include <string> | |
#include "libs.h" | |
using namespace std; | |
int main() { | |
string password; | |
bool isValid; | |
while (true) { |
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
int main(){ | |
float result = 1.0, base; | |
int exponent; | |
cin >> base >> exponent; | |
if(exponent != 0){ | |
while (exponent){ | |
if(exponent > 0) | |
{ | |
result *= base; | |
exponent--; |
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
int factorial(int x) { | |
if (x == 0 || x == 1) | |
{ | |
return 1; | |
} | |
return (x * factorial(x - 1)); | |
} | |
int hcf(int x, int y) { | |
if (x == y) | |
return x; |
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
void arrange(int arr[], int size){ | |
int positive[10], index_p = 0, index_n = 0; | |
for(int i = 0; i < size; i++) | |
{ | |
if(arr[i] < 0) | |
{ | |
if(i <= index_p-1) | |
positive[index_p] = arr[index_n]; | |
arr[index_n] = arr[i]; | |
index_n++; |