A collection of 3 post

Mocking AngularJS promise callback params in Jasmine tests

How to mock promises in AngularJS Jasmine unit tests?

Dynamically resolving function shared arguments in JavaScript

How to dynamically pass an arbitrary amount of function arguments to a JS function if we don't know in advance how many we'll have to pass?

Returning value from fragment into parent activity on Android

How to pass a value from a fragment back into the parent activity that initialized it in the first place?