View PlayerInputManagerHelper.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.InputSystem; | |
public class PlayerInputManagerHelper : MonoBehaviour | |
{ | |
public GameObject redBoxerPrefab; | |
public GameObject blueBoxerPrefab; | |
public GameEvent onRedPlayerJoin; | |
public GameEvent onBluePlayerJoin; |
View CoffeeMaker2.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package coffee.maker; | |
import coffee.maker.heater.Heater; | |
import coffee.maker.pump.Pump; | |
public class CoffeeMaker { | |
private final Heater heater; | |
private final Pump thermosiphon; | |
public CoffeeMaker(Heater heater, Pump pump) { |
View CoffeeMaker1.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package coffee.maker; | |
import coffee.maker.heater.ElectricHeater; | |
import coffee.maker.pump.Thermosiphon; | |
public class CoffeeMaker { | |
private final ElectricHeater heater; | |
private final Thermosiphon thermosiphon; | |
public CoffeeMaker() { |
View Logger.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example; | |
import android.util.Log; | |
import java.util.ArrayList; | |
import java.util.List; | |
/** | |
* Copyright 2015 Christopher Perry | |
* |
View activity_stack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adb shell dumpsys activity package <your.package.name> |
View ArcUtils.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* ArcUtils.java | |
* | |
* Copyright (c) 2014 BioWink GmbH. | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is |
View HappyDebuggingSuckers.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
public void happyDebuggingSuckers() throws SecurityException, NoSuchFieldException, IllegalAccessException { | |
Field value = Boolean.class.getDeclaredField("value"); | |
value.setAccessible(true); | |
Boolean trueBool = true; | |
Boolean falseBool = false; | |
value.setBoolean(trueBool, false); |
View ExpiringLruCache.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.os.SystemClock; | |
import android.support.v4.util.LruCache; | |
import java.util.HashMap; | |
import java.util.Map; | |
/** | |
* An Lru Cache that allows entries to expire after | |
* a period of time. Items are evicted based on a combination | |
* of time, and usage. Adding items past the {@code maxSize} |
View Intellij Unit Test VM options
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set VM options to: -ea -Xms800m -Xmx800m -XX:MaxPermSize=500m |
View Filter IN classes regex for logcat in IntelliJ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
^(.*(ClassNameOne|ClassNameTwo|ClassNameThree)).*$ |
NewerOlder