Skip to content

Instantly share code, notes, and snippets.

• IntelliJ Plugin
• Automatic file templates
• Javadoc Templates
• Event linking
• Asset↔Class linking
• Components
• Blocks↔Image linking
• UI files
• Validation of correct names
• (advanced) Displaying ui design
@syntaxi
syntaxi / Expanded.json
Last active May 6, 2020 22:16
Deciphering google doc revision data
{
"tileInfo": [
{
"start": 3,
"end": 25,
"endMillis": 1535542604486,
"users": [
"06981672446100480936",
"03685920490996254104"
],
# Project Plan for _DocInspector_
_Scrumbags_
## Team Vision
For teachers and tutors who need to track the contribution of their students in group assignments, the _DocInspector_ is a program that tracks user access and changes to a google document and outputs a visual representation of that data, that allows markers to easily see project contributions. Unlike a similar software GitInspector, the _DocInspector_ extracts metrics from a google document and outputs this into a visual format.
## The Team
@syntaxi
syntaxi / eventJavadoc.md
Last active August 3, 2018 01:43
Jelly's Event Javadoc outline

Current Template

Event handlers in Terasology always follow the same pattern. For instance, an handler that listens for a

@ReceiveEvent(components = DisplayNameComponent.class, priority = EventPriority.PRIORITY_LOW)
public void onActivation(ActivateEvent event, EntityRef entity, HealthComponent component1, LocationComponent component2) {
  // do something
}

And a regular javadoc template for this event might look something like this:

@syntaxi
syntaxi / childParticles.md
Created July 25, 2018 14:58
Example of having a child particle component

So I have a component called ChildParticleComponent. My component has a few extra things as I've got differet requirements but I'll describe the most simple form possible.

ChildParticleComponent

My Version

public class ChildParticleComponent implements Component {
    public EntityRef particleEntity = EntityRef.NULL;
}
@syntaxi
syntaxi / question.md
Last active July 9, 2018 03:02
Tutor Programming Question

Task

Read a target number, and a list of integers from standard input. Find all pairs of numbers in the list which add exactly to the target number Print out a formatted list of all the pairs

Assumptions

I am assuming that a number cannot be used twice. Ie, if the target is 10 and the list [4,6,5] then the only valid solution is [4,6] I am assuming that order does not matter in a sum. Ie, the pair [4,6] and [6,4] are the same. Lastly, I'm assuming no duplicate numbers. Ie, having [4,4,5,6] as the input is not valid.

@syntaxi
syntaxi / AlternativeMethod.md
Created July 3, 2018 10:31
Alternative method for constructing a new instance

In place of:

if (eventClass.equals(ChatButton.class)) {
    newEvent = new ChatButton();
    /* ... */
} else if (eventClass.equals(NUISkinEditorButton.class)) {
    newEvent = new NUISkinEditorButton();
} else {
    logger.error("ERROR!!! Event not Identified: " + originalEvent.toString());
}