Skip to content

Instantly share code, notes, and snippets.


Pascal Welsch passsy

View GitHub Profile
passsy /
Last active Jan 17, 2020
Android Studio Light Theme

Colorful Java (and Kotlin) Android Studio Theme

This Android Studio Theme (or IntelliJ in general) is based on many IDEs.


View gist:40dd5533309b9fcdc1fa
adb shell setprop log.tag.Volley VERBOSE
passsy /
Last active Apr 21, 2020
ArrayAdapter for RecyclerView
package com.pascalwelsch.utils;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;

Keybase proof

I hereby claim:

  • I am passsy on github.
  • I am passsy ( on keybase.
  • I have a public key whose fingerprint is F324 9507 7196 3722 893D F1F6 7172 7F0D 5DDC 5507

To claim this, I am signing this object:

passsy / gist:7748335
Last active Dec 30, 2015
LoaderManager.LoaderCallbacks<Cursor> methods with some boilerplate code for a quick CursorLoader start
View gist:7748335
public Loader<Cursor> onCreateLoader(final int id, final Bundle bundle) {
// Initialize the CurosorLoader
final int code = id - this.hashCode();
switch (code) {
case ID1:
String selection = null;
return new CursorLoader(getActivity(), CONTENT_URI, null,
selection, null, null);
View gist:6974427
live(british, red).
pet(swedish, dog).
drink(danish, tea).
nextto(green, white).
house(A, N) :- live(A, green), live(B, white), house(B, M), M < N.
left(green, white).
right(white, greem).
live(X, green) :- drink(X, coffee).
smoke(Z, pallmall) :- pet(Z, bird).
live(X, yellow) :- smoke(X, dunhill).
passsy /
Created Jul 8, 2013
BasicNetwork fix for Volley with fallback to Cache if the device is offline
* Copyright (C) 2011 The Android Open Source Project
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* Unless required by applicable law or agreed to in writing, software