Skip to content

Instantly share code, notes, and snippets.

View JSkally's full-sized avatar

Jason Scott JSkally

  • Kingston, Jamaica
View GitHub Profile
//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');
#620024723
from socket import
from threading import *
serverSocket = socket(AF_INET, SOCK_STREAM)
#Prepare a sever socket
TCP_BUFFER = 1024
@JSkally
JSkally / sas.py
Created September 17, 2012 03:06
Android created Gist
'''
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