This file contains 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
# Python 2.7 | |
import sqlite3 | |
from sqlite3 import Error | |
# Function to write a line to the log file | |
def write_to_log(message): | |
with open('log.txt', 'a') as the_file: | |
the_file.write(message.encode('utf-8') + '\n') |
This file contains 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
function currentSeason() { | |
// The current shortened football season | |
if (date('n') > 8) { | |
// Check if its past August for new season | |
$year1 = substr(date("Y",strtotime("+1 year")),2,4); | |
$year2 = substr(date("Y"),2,4); | |
} else { | |
// Check if its before August for current season | |
$year1 = substr(date("Y"),2,4); | |
$year2 = substr(date("Y",strtotime("-1 year")),2,4); |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Ebay Finder</title> | |
</head> | |
<body> | |
<p>Enter the Ebay URL</p> | |
<?php |