Skip to content

Instantly share code, notes, and snippets.

View tarasjg's full-sized avatar

John Tarasidis tarasjg

View GitHub Profile
@tarasjg
tarasjg / Genes.java
Created April 19, 2016 22:26
recursion
import java.util.Scanner;
public class Genes {
public static void main(String[] args) {
Scanner stdin = new Scanner(System.in);
String gene = stdin.next();
String result = findGene(gene, "");
if (!result.isEmpty()) {
System.out.println(result);
} else {
System.out.println("No valid genes were detected.");
@tarasjg
tarasjg / Exercise08_09.java
Last active March 25, 2016 02:53
tic tac toe
import java.util.Scanner;
public class Exercise08_09 {
public static void main(String[] args) {
Scanner stdin = new Scanner(System.in);
int[][] board = {{-1, -1, -1},
{-1, -1, -1},
{-1, -1, -1}};
int turn = 1;
int player;
while (winner(board) == 3) {
import smtplib
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from subprocess import check_output
import datetime
#Globals
emailUsr = "" #sender email user name
emailAddr = "" #sender email address
emailPwd = "" #sender email password