Skip to content

Instantly share code, notes, and snippets.

View AngryCarrot789's full-sized avatar
💣
Baboom

REghZy AngryCarrot789

💣
Baboom
View GitHub Profile
@Raffaele3D
Raffaele3D / C#, Windows Forms, Open TK
Created April 26, 2017 09:22
Draw text lines by OpenTk in the OpenGL Window with C# and Windows Forms
public void statistics()
{
if (statisticsOnOff)
{
//Generate the plane containing the statistics
GL.Begin(PrimitiveType.Quads);
GL.TexCoord2(0f, 1f); GL.Vertex2(0f, 0f);
GL.TexCoord2(1f, 1f); GL.Vertex2(glControl1.Width, 0f);
GL.TexCoord2(1f, 0f); GL.Vertex2(glControl1.Width, glControl1.Height);
Reading 200 jars
Total 2434 fields used
Total 3826 methods used
Fields:
+-----------------+------------------------------------------+--------+
| Srg | Mapped (null == unmapped) | Usages |
+-----------------+------------------------------------------+--------+
| field_150350_a | AIR | 14088 |
| field_77994_a | stackSize | 9572 |
func_100008_d isDurationMax
func_100009_j_ getFacing
func_100011_g getIsPotionDurationMax
func_100012_b setPotionDurationMax
func_100015_a isKeyDown
func_102007_a canInsertItem
func_102008_b canExtractItem
func_102012_a insertStackFromInventory
func_102013_b canExtractItemFromInventory
func_102015_a canInsertItemToInventory
@hetelek
hetelek / Polynomial.java
Created November 25, 2013 18:27
A class which will calculate the real roots of a polynomial, when given the coefficients.
import java.util.*;
public class Polynomial
{
private static final double ROOT_LEEWAY = 0.000000001;
private double[] coefficients;
private double remainder;
public Polynomial(double[] coefficients, double remainder)
{
this.coefficients = coefficients;
@hetelek
hetelek / Equa.java
Last active February 24, 2022 20:28
Classes that tokenize, parse and solve math equations. Solving is currently very simple, and cannot factor, complete the square, etc...
import java.util.Arrays;
import java.util.Stack;
import java.util.LinkedList;
enum TokenType
{
OPERATOR, RIGHT_PARENTHESE, LEFT_PARENTHESE, NUMBER, EQUALS, UNKNOWN
}
class Token