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
//Array of cards to display in the game | |
var cards = ["0", "A", "2", "3", "4", "5", "6", "7", "8", "9", "J", "Q", "K", "♥", "♠", "♦", "♣"]; | |
//Max of 24 attempts (48 clicks) | |
var tries = 48; | |
//Attempt counter | |
var attempts = 0; | |
var pairsLeft = 8; | |
var section = document.getElementsByTagName('section')[0]; | |
var canvas = document.getElementsByTagName('canvas')[0]; | |
var a = canvas.getContext('2d'); |
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
#620024723 | |
from socket import | |
from threading import * | |
serverSocket = socket(AF_INET, SOCK_STREAM) | |
#Prepare a sever socket | |
TCP_BUFFER = 1024 |
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
''' | |
sas.py | |
Logs in to a student's SAS account and gets their schedule, then parses the relevant information using regex, because | |
SAS's HTML is WAAAAY too ugly to use a parser. | |
''' | |
import urllib2 | |
import urllib | |
import cookielib |