Skip to content

Instantly share code, notes, and snippets.

View anstaendig's full-sized avatar

Marcel Holter anstaendig

  • Wolt
  • Helsinki
  • 15:16 (UTC +02:00)
View GitHub Profile
---- Minecraft Crash Report ----
// Hey, that tickles! Hehehe!
Time: 2021-03-23 20:08:07 EET
Description: Error executing task
java.util.concurrent.ExecutionException: java.lang.IndexOutOfBoundsException: Index: 13, Size: 0
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:192)
at net.minecraft.util.Util.runTask(Util.java:531)
@Module
object RemoteModule {
@Provides
@JvmStatic
fun provideService(): Service = ServiceFactory.getService(BuildConfig.DEBUG)
}
object ServiceFactory {
// Ask for permission to read storage
if (ContextCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE)
!= PackageManager.PERMISSION_GRANTED) {
if (ActivityCompat.shouldShowRequestPermissionRationale(this,
Manifest.permission.READ_EXTERNAL_STORAGE)) {
// This will happen if the user previously denied the permission
requestPermissions()
} else {
// We need to check if it's the first time we ask because
// shouldShowRequestPermissionRationale returns false in that case.
/**
* This Fragment is used to show a list of outfits in a recyclerview. For the blogger app integration
* a type needs to be provided for the different outfit categories (ready for review, draft, live,
* on hold). This might be reused for any kind of OutfitList.
*/
public class OutfitListFragment extends Fragment {
// Constants
private static final String TAG = "OutfitListFragment";
private static final String TYPE = "type";
public class BloggerAppFragment extends Fragment {
// Constants
private static final String TAG = "BloggerAppFragment";
private static final String ID = "id";
// Member variables
@InjectView(R.id.viewpager)
ViewPager mViewPager;
@InjectView(R.id.tab_layout)
TabLayout mTabLayout;
//Load the request module
var request = require('request');
//Lets configure and request
request({
url: '', //URL to hit
method: 'POST'
}
}, function(err, response, body) {
if(!err && response.statusCode == 200) {