Skip to content

Instantly share code, notes, and snippets.

View bugabinga's full-sized avatar
♨️
Working hard.

Oliver Jan Krylow bugabinga

♨️
Working hard.
View GitHub Profile
@bugabinga
bugabinga / ReloadApp.java
Created March 8, 2016 09:01
Restarting a JavaFx App (probably unsafe)
package com.isp.stackoverflow;
import javafx.application.Application;
import javafx.application.Platform;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.StackPane;
import javafx.stage.Stage;
/**
@bugabinga
bugabinga / JfxTestRunner.java
Created November 18, 2015 10:45
This runner can be used to run JUnit-Tests on the JavaFx-Thread.
/**
* © 2015 isp-insoft all rights reserved.
*/
package com.isp.lpt;
import java.util.concurrent.CountDownLatch;
import org.junit.runner.RunWith;
import org.junit.runners.BlockJUnit4ClassRunner;
import org.junit.runners.model.InitializationError;
package game;
import game.java.controller.MasterController;
import game.java.model.Model;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Node;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.image.Image;
@bugabinga
bugabinga / AnimateNodeIn.java
Created March 16, 2014 00:53
JavaFX-Sample of how to animate Node in and out of Scene.
package application;
import java.util.function.Supplier;
import javafx.animation.Animation;
import javafx.animation.FadeTransition;
import javafx.animation.Interpolator;
import javafx.animation.RotateTransition;
import javafx.animation.ScaleTransition;
import javafx.application.Application;
@bugabinga
bugabinga / pass_to_bitwarden.sh
Last active November 20, 2017 20:21
This bash script converts simple pass files to bitwarden. Check the comments to understand what "simple" means ;)
#!/usr/bin/env bash
function pass_to_bitwarden(){
local path_to_pass="$1"
local output_path="$2"
#echo "searching path $path_to_pass for simple logins"
local url
local username
local decrypted_stuff
local password
local notes

Keybase proof

I hereby claim:

  • I am bugabinga on github.
  • I am bugabinga (https://keybase.io/bugabinga) on keybase.
  • I have a public key ASCxNxv48wvhvtEld7MnXge-ZoOdomTPhX0GlW3bOfp7Lgo

To claim this, I am signing this object:

package com.isp.stackoverflow;
import javafx.application.Application;
import javafx.beans.binding.DoubleBinding;
import javafx.scene.Scene;
import javafx.scene.image.ImageView;
import javafx.scene.layout.ColumnConstraints;
import javafx.scene.layout.GridPane;
import javafx.scene.layout.Pane;
import javafx.scene.layout.RowConstraints;
@bugabinga
bugabinga / array.xml
Created March 13, 2017 19:33
strings.xml translation shared with Stringlate
<?xml version='1.0' encoding='utf-8'?>
<resources>
<string-array name="updateIntervalNames">
<item>@string/interval_never</item>
<item>@string/interval_1h</item>
<item>@string/interval_4h</item>
<item>@string/interval_12h</item>
<item>@string/interval_1d</item>
<item>@string/interval_1w</item>
<item>@string/interval_2w</item>
package com.isp.stackoverflow;
import javafx.application.Application;
import javafx.geometry.Insets;
import javafx.scene.Scene;
import javafx.scene.control.Slider;
import javafx.scene.layout.StackPane;
import javafx.stage.Stage;
import javafx.util.StringConverter;
package com.isp.stackoverflow;
import static java.util.stream.IntStream.concat;
import static java.util.stream.IntStream.rangeClosed;
import static javafx.geometry.Orientation.HORIZONTAL;
import java.awt.AWTException;
import java.awt.Dimension;
import java.awt.Robot;