Skip to content

Instantly share code, notes, and snippets.

View RobertShippey's full-sized avatar

Robert Shippey RobertShippey

View GitHub Profile
@RobertShippey
RobertShippey / gist:1918458
Created February 26, 2012 19:26
Scape Invaders - Tony
// Space Invaders Project.cpp : Defines the entry point for the application.
// Author:
// ID:
// Version:
// Date: 17 Feb 2012
// Description:
#include "stdafx.h"
#include "gwin.h"
@RobertShippey
RobertShippey / gist:1878992
Created February 21, 2012 21:14
Pacman - Will
#include "stdafx.h"
#include "gwin.h"
class Pacman {
public:
int x;
int y;
int Scale;
// direction
@RobertShippey
RobertShippey / gist:1670791
Created January 24, 2012 15:48
track struct init
struct Track {
char TrackName[MAXCHARS];
int Genre;
int PlayMin;
int PlaySec;
};
Track MusicTrack[MAXTRACKS] = { //opening the array
{"Holst_Mars", 1, 15, 10}, //first struct in the array with each item in the struct
{"New_York", 2, 3, 50}, //second
@RobertShippey
RobertShippey / colours.scss
Last active August 29, 2015 14:16
Batch create colour classes
//map global variables with front end class names
$globals: (
"text" : $text-color,
"bg" : $bg-color,
"pg" : $pg-color,
"primary" : $primary-color,
"secondary" : $secondary-color,
"tertiary" : $tertiary-color);
// for each vairable
<?php
$folder = '/path/to/folder/';
$watermark = '/path/to/Logo.jpg';
$files = scandir($folder);
foreach($files as $file) {
//do your work here
var_dump($folder.$file);
// Load the stamp and the photo to apply the watermark to