Skip to content

Instantly share code, notes, and snippets.

View wcmckee's full-sized avatar
💭
#lca2019

William Mckee wcmckee

💭
#lca2019
View GitHub Profile
@wcmckee
wcmckee / main.py
Created October 23, 2012 09:32
pygame test
'''
Created on 23/10/2012
@author: Will
'''
import pygame
# Define some colors
@wcmckee
wcmckee / bleh.py
Created October 25, 2012 08:10
autopy functions extended
import autopy as ap
from autopy.mouse import LEFT_BUTTON, RIGHT_BUTTON
from autopy.key import *
from autopy import *
import time
import random
name = 'Will'
def hpget():
@wcmckee
wcmckee / irc.py
Created November 3, 2012 06:28
ap .2
'''
Created on 3/11/2012
@author: Will
'''
import autopy as ap
import time
import bleh
import random
from autopy.key import *
@wcmckee
wcmckee / artc-apgi
Created November 5, 2012 23:18
autopy GIMP export img
'''
Created on 6/11/2012
@author: Will
'''
import autopy as ap
from autopy.mouse import LEFT_BUTTON, RIGHT_BUTTON
from autopy.key import *
from autopy import *
import time
@wcmckee
wcmckee / main.py
Created November 10, 2012 03:27
artcpy
'''
Created on 18/10/2012
@author: WilliamM artctrl
'''
import autopy as ap
from autopy.mouse import LEFT_BUTTON
import time as t
def mosmid():
@wcmckee
wcmckee / gist:4049730
Created November 10, 2012 03:28
artcb.ran
'''
Created on 10/11/2012
@author: Will
'''
import urlparse
import random
def number():
numb = random.randint(1, 80)
import urllib2
from pprint import pprint
import json
import random
import urllib2
import tempfile
##A list of dictoniries
def getDetails():
request = raw_input('would you like to create a new contact (n) or view a contacts information(i)?')
if request == 'n': name = raw_input('please enter a name: ')
address = raw_input('please enter a address; ')
num = raw_input('please enter a phone number: ')
return name, address, num
people = {
'''
Created on 23/11/2012
@author: Will
'''
import tempfile, json, string, urllib
def artcry():
vcurry = [ {"Ingredients" : ('Brown Onion', 'Red Onion',
'Garlic', 'Ginger', 'Chick Pea', 'Red Kidney Bean', 'Lentil',
@wcmckee
wcmckee / arlastpy
Created December 6, 2012 07:14
Example pylast code
'''
Created on 6/12/2012
@author: Will
'''
import pylast
import pprint
API_KEY = 'KEY'
API_SECRET = 'SEC'