Skip to content

Instantly share code, notes, and snippets.

@Hulzenga
Hulzenga / ShowSkillChecks.py
Created February 8, 2020 22:38
Python script to extract Disco Elysium Passive checks
import re
import collections
import matplotlib.pyplot as plt
import matplotlib.ticker as ticker
#-------------------------------------------#
# extract check counts from game code #
#-------------------------------------------#
'''
import javax.swing.*;
import javax.swing.Timer;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.*;
import java.util.List;
import java.util.List;
import java.util.Arrays;
class Count {
public static void main(String[] args) {
List<String> test = Arrays.asList(new String[]{"0", "1", "2"});
count(test, 3);
}
@Hulzenga
Hulzenga / designer.html
Created October 25, 2014 17:02
designer
<link rel="import" href="../paper-calculator/paper-calculator.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
/*
Author: Oscar Bell
Date: 9th May 2014
Description: Program to count the occurrences of words in a string
*/
import java.util.*;
import java.util.Map.Entry;
import java.util.Scanner;
public class test {
public static double[][] get2DArrayInput(int array1DLength) {
Scanner stdin = new Scanner(System.in);
System.out.println("Please enter the data for the two-dimensional array.");
int rows = array1DLength;
System.out.print("Please enter the number of columns of the 2D array: ");
int columns = stdin.nextInt();
private static final long SLEEP_TIME = 16;
private volatile float mTargetX, mTargetY;
private volatile boolean mMoving = false;
@Override
public boolean onTouchEvent(MotionEvent event) {
mTargetX = event.getX();
mTargetY = event.getY();
if (event.getAction() == MotionEvent.ACTION_DOWN) {
public static void main(String[] args) {
String initialInput;
String patternA;
String patternB;
int response;
int contA, contB, contC;
boolean success = false;
while (!success) {
public class Main {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
Observation o1 = new Observation();
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
private int popupStack = 0;
private boolean showingPopup = false;
public void showPopup() {
if (!showingPopup) {
showingPopup = true;
//if this isn't popup number 0 one should be eliminated from the stack
if (popupStack > 0) {