Skip to content

Instantly share code, notes, and snippets.

View mmichler's full-sized avatar

Markus mmichler

  • Capgemini
  • Berlin
View GitHub Profile
@mmichler
mmichler / oasp-ubuntu.md
Last active April 20, 2017 10:32
OASP Installation on Ubuntu 16.10

OASP Installation on Ubuntu 16.10

Prerequisites

Install Git and Maven on your System.

Clone the oasp4j-ide-repo (e.g. into a temp dir):

git clone git@github.com:oasp/oasp4j-ide.git
@mmichler
mmichler / rbenv-debian-local.md
Last active March 21, 2017 18:33
Debian: Install rbenv plus plugins to handle gemsets and gem installation via bundler without needing root access

Prerequisites

git-core libssl-dev libreadline-dev zlib1g-dev bison build-essential libyaml-dev

@mmichler
mmichler / ErrorHandlingTask.java
Last active September 4, 2017 06:39
'AsyncTask'-derived class that handles RuntimeExceptions and throws them on the UI thread
package app.meetling.io;
import android.os.AsyncTask;
/**
* <code>AsyncTask</code> that handles RuntimeExceptions and throws them on the UI thread. Use
* <code>doInBgCatchError</code> for computation code. If you overwrite <code>onPostExecute<code>,
* call <code>super<code> to handle errors. For <code>try-with-resources</code>, overwrite
* <code>doInBackground()<code> and set error manually.
*/
@mmichler
mmichler / SingleTaskActivity.java
Created July 11, 2016 11:44
Android Activity in single task launchmode with Intent handling code
public class SingleTaskActivity extends AppCompatActivity {
private boolean mIntentConsumed;
@Override
public void onResume() {
super.onResume();
processIntent();
}