Skip to content

Instantly share code, notes, and snippets.

View AdamBanham's full-sized avatar

Adam Peter Banham AdamBanham

  • Queensland University of Technology
  • Brisbane , Australia
View GitHub Profile
@adamburkegh
adamburkegh / pandasxes.py
Last active September 24, 2021 02:58 — forked from AdamBanham/create.py
Convert a pandas dataframe to a pm4py event log, which is then exported to an XES file.
"""
Pandas dataframe to a pm4py event log conversion
"""
import pandas as pd
import numpy as np
import pm4py
from pm4py.objects.log.obj import EventLog,Event,Trace # under the hood objects within pm4py, subject to change
@williamahartman
williamahartman / FrameRate.java
Created January 15, 2015 03:17
Display framerate in a LibGDX graphics window. Call update() and render() in your main render method.
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.OrthographicCamera;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.utils.Disposable;
import com.badlogic.gdx.utils.TimeUtils;
/**
* A nicer class for showing framerate that doesn't spam the console
* like Logger.log()