Skip to content

Instantly share code, notes, and snippets.

View jameshmread's full-sized avatar

James Read jameshmread

View GitHub Profile

MyMotivation customer privacy notice This privacy notice tells you what to expect us to do with your personal information. Contact details Email m.consulting.apps@gmail.com What information we collect, use, and why We collect or use the following information for the operation of customer accounts and guarantees: Information used for security purposes We collect or use the following information for service updates or marketing purposes: Location data

@jameshmread
jameshmread / tslint.json
Created May 17, 2018 14:43
My standard Typescript Ts-Lint rule set.
{
"rulesDirectory": [
"node_modules/tslint-eslint-rules/dist/rules"
],
"rules": {
"arrow-return-shorthand": true,
"callable-types": true,
"class-name": true,
"comment-format": [
true,
@jameshmread
jameshmread / profX-PostMutation.json
Created April 29, 2018 23:16
JSON file for professor X after mutation analysis and unit testing addition
[
{
"runner": "mocha",
"config": {
"reporter": "dot"
},
"duration": {
"d": 0,
"h": 0,
"m": 0,
@jameshmread
jameshmread / profX-PreMutation.json
Created April 29, 2018 23:14
JSON file for Professor X mutation results before the addition of unit tests.
This file has been truncated, but you can view the full file.
[
{
"runner": "mocha",
"config": {
"reporter": "dot"
},
"duration": {
"d": 0,
"h": 0,
@jameshmread
jameshmread / FileTwoSmall.spec.ts
Created April 17, 2018 16:53
Files outlining the Small test used to load test the Professor X repository. Including Test files
import { expect } from "chai";
import { FileTwo } from "./FileTwo";
describe("File Two: More Complex mutations here", () => {
let two: FileTwo;
beforeEach(() => {
two = new FileTwo();
});
@jameshmread
jameshmread / FileTwo.spec.ts
Created April 17, 2018 16:47
Files outlining the Large Synthetic test used to load test the Professor X repository. Including Test files
import { expect } from "chai";
import { FileTwo } from "./FileTwo";
describe("File Two: More Complex mutations here", () => {
let two: FileTwo;
beforeEach(() => {
two = new FileTwo();
});
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ObjectPooler : MonoBehaviour {
//Object pooling Class code adapted from
//https://www.youtube.com/watch?v=ijSRJ3yrawQ&list=PLiyfvmtjWC_XmdYfXm2i1AQ3lKrEPgc9-&index=6
public GameObject pooledObject;
public int poolSize;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlatformGenerator : MonoBehaviour {
public Transform generationPoint;
public float distanceBetweenPlatforms;
//private float platformWidth;