Skip to content

Instantly share code, notes, and snippets.

View rhysforyou's full-sized avatar

Rhys Powell rhysforyou

View GitHub Profile
@rhysforyou
rhysforyou / .block
Last active September 6, 2016 05:43 — forked from monfera/.block
SVG heat shimmer
license: mit
border: no
height: 420
struct ControlLineNode: ControlNode {
let mac: String
let line: UInt8
var groups: [ControlGroupNode] = []
var devices: [ControlDeviceNode] = []
}
/**********************************************************************
* linkedlist.cpp - CSCI212 - Ass1 - Contains LinkedList class definition
* Anthony Burchell-Bailey - 4245490 - /4/2013
**********************************************************************/
#include <iostream>
#include <cstddef>
#include <string>
#include "linkedlist.h"
#include <iomanip>
@rhysforyou
rhysforyou / main.cpp
Last active December 15, 2015 17:29 — forked from anonymous/main.cpp
/**********************************************************************
* linkedlist.cpp - CSCI212 - Ass1 - Contains LinkedList class definition
* Anthony Burchell-Bailey - 4245490 - /4/2013
**********************************************************************/
#include <iostream>
#include <cstddef>
#include <string>
#include "linkedlist.h"
#include <iomanip>
@rhysforyou
rhysforyou / Agent.cpp
Last active December 15, 2015 11:19 — forked from anonymous/Agent.cpp
#include <iostream>
#include <fstream>
#include <string>
#include <cstdlib>
#include "Agent.h"
using namespace std;
int Agent:: size = 0;
@rhysforyou
rhysforyou / gist:4417106
Last active December 10, 2015 09:49 — forked from statico/gist:3172711
A step-by-step guide on using a PS3 controller with OS X

How to use a PS3 controller on Mac OS X 10.8 (Mountain Lion)

  1. Open Apple menu → System Preferences → Bluetooth and disable Bluetooth on Mac as well as any other nearby Macs or devices which will try to pair with and confuse the controller.

  2. Reset PS3 controller by inserting paperclip into pinhole near L2 button.

  3. Connect PS3 controller to Mac with USB cable.

  4. Enable Bluetooth.

@interface rjhccViewController : UIViewController{
IBOutlet UIImageView *testcontainer;
IBOutlet UILabel *heightS;
IBOutlet UILabel *widthS;
}
@end
@implementation rjhccViewController
/*
Name: Anthony Burchell-Bailey
Lab: 8:30-10:30 17-106
Modifcation Date: //2012
File Description: Lab week 12 task 5
*/
#include <iostream>
using namespace std;
#include <iostream>
#include "function.h"
#include <fstream>
#include <cstdlib>
using namespace std;
bool loadmap ( int &xcoord, int &ycoord , int gamemap[ROWS][COLUM])
{
#include <iostream>
using namespace std;
struct car {
char make [20];
char model [20];
int year;
int price;
};