Skip to content

Instantly share code, notes, and snippets.

View born2snipe's full-sized avatar

Dan Dudley born2snipe

  • West Des Moines, IA, USA
View GitHub Profile
@born2snipe
born2snipe / main-menu.ui.xml
Created December 22, 2019 17:28
mini2dx UI xml
<?xml version="1.0"?>
<container id="MainMenu" xmlns="https://github.com/mini2Dx/mini2Dx">
<flex-row id="mainColumn">
<text-button id="newGameButton" text="Play"/>
<text-button id="leaderboardButton" text="Leaderboard"/>
<text-button id="quitButton" text="Quit"/>
</flex-row>
</container>
@born2snipe
born2snipe / LineChart.java
Last active February 8, 2019 04:29
Example usage of LineChart
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.g2d.Batch;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer;
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.scenes.scene2d.Touchable;
import com.badlogic.gdx.scenes.scene2d.ui.Widget;
import com.badlogic.gdx.utils.Array;
import com.badlogic.gdx.utils.ObjectMap;
@born2snipe
born2snipe / SystemInTest.java
Created October 12, 2018 13:23
Closed System.in
import org.junit.Assert;
import org.junit.Test;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
public class SystemInTest {
@Test
public void closed_system_in() throws IOException {
@born2snipe
born2snipe / svn2git
Created November 12, 2010 02:54
convert a SVN revision number to a Git hash
commit_hash_pattern="[0-9a-z]{30,40}"
svn_revision_pattern="/.+@([0-9]+)"
git_log="$(git log 2> /dev/null)"
current_git_hash=""
# loop over all given SVN revision numbers
for svnRevisionNumber in "$@"
do
package flapjack;
import flapjack.cobol.layout.AbstractCobolRecordLayout;
import flapjack.io.LineRecordReader;
import flapjack.model.ObjectMapping;
import flapjack.model.ObjectMappingStore;
import flapjack.model.RecordFactory;
import flapjack.model.SameRecordFactoryResolver;
import flapjack.parser.ParseResult;
import flapjack.parser.RecordParserImpl;