Skip to content

Instantly share code, notes, and snippets.

View WillWetzel's full-sized avatar

Will Wetzel WillWetzel

  • Opencast
  • Newcastle-upon-Tyne, United Kingdom
View GitHub Profile
@WillWetzel
WillWetzel / archive.php
Created October 7, 2018 17:25
PHP - Wordpress theme - Portfolio
<?php get_header(); ?>
<section class="two-column row no-max pad">
<div class="small-12 columns">
<div class="row">
<!-- Primary Column -->
<div class="small-12 medium-7 medium-offset-1 medium-push-4 columns">
<div class="primary">
<div class="leader">
@WillWetzel
WillWetzel / changejobs-listing.php
Last active October 7, 2018 16:53
PHP - Wordpress Plugin - Auto Delete Post
<?php
/*
* Plugin Name: ChangeJobs Auto Expire
* Plugin URI: https://consil.co.uk
* Description: Auto expire jobs listing. 21 days after job listing, expire the 'job_listing' post
* Version 1.0
* Author: Will Wetzel, Consilience Media
* Author URI: https://consil.co.uk
* License: GPL2
package com.example.chipcount;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.os.Parcelable;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;
@WillWetzel
WillWetzel / Circle.cpp
Created October 6, 2018 23:12
Programming for Games - Project 2 - Collision Detection.
/*
* Name: Will Wetzel - 130251255
* Project: Project 2 for CSC3221
* Class Description: This is the class for the methods outlined in the Circle.h file. Contains the constructors and destructors
* for our circle shape, as well as all the collision classes and output classes for printing information.
*/
#include "Circle.h"
#include <cmath>
#include "CollisionDetection.h"
@WillWetzel
WillWetzel / Quaternion.cpp
Created October 6, 2018 23:07
Programming for Games - Project 1 - Vectors and Quaternions
/*Name: William Wetzel - 130251255*/
/*Programming for Games - Project 1*/
/*2016*/
/*Quaternion.cpp file. Has all methods declared in the Quaternion header file.*/
#include "Quaternion.h"
Quaternion::Quaternion() {
coord = new float[4];
@WillWetzel
WillWetzel / Colour.cpp
Created October 6, 2018 22:54
Software Rasteriser
#include "Colour.h"
Colour Colour::White(255,255,255,255);
@WillWetzel
WillWetzel / Mesh.cpp
Created October 6, 2018 22:48
Some of the classes for my Software Rasteriser
#include "Mesh.h"
Mesh::Mesh(void)
{
// Most objects in OpenGL are represented as 'names' - an unsigned int
// index, really. They are always generated and destroyed by OpenGL
// functions. Most of these functions allow you to generate multiple
// names at once (the first parameter here is a count).
glGenVertexArrays(1, &arrayObject);
@WillWetzel
WillWetzel / BooleanNetworkV3.vcxproj
Created October 6, 2018 22:27
Dessertation in Boolean Networks by Will Wetzel.
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
@WillWetzel
WillWetzel / Customer.java
Created October 3, 2018 20:09
Algorithm Design and Analysis - Assignment 2
//Name: Will Wetzel - 130251255
//Description: Class for contructing Customer object, with method for generating random length wanted and a toString method.
import java.util.Random;
public class Customer {
private final int lengthWanted;
@WillWetzel
WillWetzel / Bookmarks.txt
Last active September 29, 2018 11:51
CSC1022 - Final Web Browser
http://www.ncl.ac.uk/computing/#