Skip to content

Instantly share code, notes, and snippets.

View doc-E-brown's full-sized avatar

Ben Johnston doc-E-brown

View GitHub Profile
@doc-E-brown
doc-E-brown / Item.h
Created September 22, 2023 14:01
Section 6 Challenge header
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "Item.generated.h"
USTRUCT(BlueprintType)
struct FAngularVelocity
@doc-E-brown
doc-E-brown / Item.cpp
Created September 22, 2023 14:01
Section 6 Challenge cpp
// Fill out your copyright notice in the Description page of Project Settings.
#include "Items/Item.h"
#include "DrawDebugHelpers.h"
#include "Async/IAsyncTask.h"
#include "Slash/DebugMacros.h"
// Sets default values
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "DrawDebugHelpers.h"
#define DRAW_SPHERE(Location) if (GetWorld()) DrawDebugSphere(GetWorld(), Location, 25.f, 12, FColor::Red, false, 30.f);
// Draw single sphere for one frame only
#define DRAW_SPHERE_SINGLE_FRAME(Location) if (GetWorld()) DrawDebugSphere(GetWorld(), Location, 25.f, 12, FColor::Red, false, -1.f);
#define DRAW_LINE(Start, End) if (GetWorld()) DrawDebugLine(GetWorld(), Start, End, FColor::Red, true, -1.f, 0, 1.f);
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "DrawDebugHelpers.h"
#define DRAW_SPHERE(Location) if (GetWorld()) DrawDebugSphere(GetWorld(), Location, 25.f, 12, FColor::Red, false, 30.f);
#define DRAW_LINE(Start, End) if (GetWorld()) DrawDebugLine(GetWorld(), Start, End, FColor::Red, true, -1.f, 0, 1.f);
#define DRAW_POINT(Pt) if (GetWorld()) DrawDebugPoint(GetWorld(), Pt, 15.f, FColor::Magenta, true);
#define DRAW_VECTOR(Start, End) if (GetWorld()) \
@doc-E-brown
doc-E-brown / DebugMacros.h
Created September 20, 2023 12:47
DebugMacros
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "DrawDebugHelpers.h"
#define DRAW_SPHERE(Location) if (GetWorld()) DrawDebugSphere(GetWorld(), Location, 25.f, 12, FColor::Red, false, 30.f);
#define DRAW_LINE(Start, End) if (GetWorld()) DrawDebugLine(GetWorld(), Start, End, FColor::Red, true, -1.f, 0, 1.f);
#define DRAW_POINT(Pt) if (GetWorld()) DrawDebugPoint(GetWorld(), Pt, 15.f, FColor::Magenta, true);
#define DRAW_VECTOR(Start, End) if (GetWorld()) \
@doc-E-brown
doc-E-brown / dbschema.cs
Created September 25, 2019 07:12
C# program to populate database schema for ClearCanvas
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
namespace DbSchema
{
class Program
{
@doc-E-brown
doc-E-brown / createdb.cs
Created September 25, 2019 06:52
C# program to create ris database
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
namespace CreateRisDb
{
class Program
{
@doc-E-brown
doc-E-brown / DecisionTrees.ipynb
Last active July 2, 2019 22:12
DecisionTrees
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@doc-E-brown
doc-E-brown / nginx.conf
Last active May 24, 2018 01:13
Basic nginx fong
worker_processes 1;
user nobody nobody;
pid /tmp/nginx.pid;
# error_log /tmp/nginx.error.log debug;
events {
worker_connections 1024; # increase if you have lots of clients
accept_mutex off; # set to 'on' if nginx worker_processes > 1
@doc-E-brown
doc-E-brown / test_signal.py
Created January 2, 2018 04:22
Basic signal catch python
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# S.D.G
"""Doc string for module
:author: Ben Johnston
:license: GPL 3