Skip to content

Instantly share code, notes, and snippets.

View HeathLoganCampbell's full-sized avatar
🐧

Heath L Campbell HeathLoganCampbell

🐧
View GitHub Profile
🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧
🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧
🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧
🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧
🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧
🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧
🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧
🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧
🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧
🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧
/**
Gets the widths and height of a browser
@Return (Width, Height)
**/
function getDimensions()
{
var element = document.documentElement,
body = document.body,
width = window.innerWidth || element.clientWidth || body.clientWidth,
height = window.innerHeight || element.clientHeight || body.clientHeight;
# All repos should have
* Photos, videos and/or a demo which you don't need to download anything.
* References of pages and articles that I have read
* Versioning so you can see how the project developed over time
* comments explaining the main classes or parts
@HeathLoganCampbell
HeathLoganCampbell / .gitignore.maven.Intellij.mac
Created November 15, 2019 04:01
A gitignore file for mac
# Generated files
target/
plugins/
**/target/
# Mac
.DS_Store
# Eclipse
.classpath
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Parameter;
import java.util.HashMap;
/**
* Bootleg IoC DI command system
*
*/
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Parameter;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
/**
* Bootleg IoC DI command system
@HeathLoganCampbell
HeathLoganCampbell / CommandBase.java
Created April 18, 2020 14:53
A slightly even more useful command CoI DI system.
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Parameter;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
public class CommandBase
{
private CommandFramework parent;
@HeathLoganCampbell
HeathLoganCampbell / CommandBase.java
Created April 18, 2020 14:54
A slightly even more useful command CoI DI system. Converting commands to easier to use code and not having to deal with arg lengths and constantly converting
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Parameter;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
public class CommandBase
{
private CommandFramework parent;
@HeathLoganCampbell
HeathLoganCampbell / RandomlyGeneratedIRDNumbers.txt
Created July 28, 2021 13:28
Randomly Generated Validate IRD Numbers
049895810
128844961
011476376
012543999
109681687
089249848
120246569
118069331
134586273
079482609
@HeathLoganCampbell
HeathLoganCampbell / Download gitlab artifacts
Last active September 25, 2021 07:35
Download gitlab artifacts via curl
curl -L --header "PRIVATE-TOKEN: <Personal token>" "https://gitlab.com/api/v4/projects/Team%2FSubTeam%2FRepo/jobs/artifacts/<Branch>/download?job=<job>" -o artifacts.zip