Skip to content

Instantly share code, notes, and snippets.

View lukegb's full-sized avatar
🦦
👖

Luke Granger-Brown lukegb

🦦
👖
View GitHub Profile
@lukegb
lukegb / asasasas.py
Created July 17, 2012 18:48 — forked from anonymous/asasasas.py
pypyppypypypy
class Point:
''' Point class for representing and manipulating x,y coordinates. '''
def __init__(self, initX, initY):
'''Create a new point at the origin'''
self.x = initX
self.y = initY
p = Point(7, 6)
q = Point(8, 2)
@lukegb
lukegb / hhhhhhhhhhhhh
Created July 15, 2012 17:47 — forked from anonymous/hhhhhhhhhhhhh
hhhhhhhhhh
elif enamyAttack == 3:
time.sleep(1)
print('The ' +enamyDetails[0] + ' attacks you with ' + enamyDetails[6] + ' for ' + enamyDetails[7] +' damage')
playerHealth = playerHealth - int(enamyDetails[7])
if playerHealth <= 0:
combotLost = True
elif enamyDetails[10] !=0:
playerStatus = int(enamyDetails[10])
playerTurn = 0
<?php
require './conf/dbconf.php';
require './conf/opendb.php';
//echo "<pre>".print_r($_REQUEST,true)."</pre>";
session_start();
if (!isset($_SESSION['leo']) || $_SESSION['leo'] != true) {