Skip to content

Instantly share code, notes, and snippets.

Alexis Mas Axxiss

Block or report user

Report or block Axxiss

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
# Your init script
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
# An example hack to log to the console when each text editor is saved.
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
Axxiss /
Last active Jun 2, 2016
Testing AsyncHttpClient with Robolectric
public class AsyncTester {
protected static final int HTTP_OK = 200;
protected ApiCallback mCallback;
private ProtocolVersion mHttpVersion;
protected AsyncHttpClient mHttpClient = new AsyncHttpClient();
Axxiss / hibernate-maven.xml
Last active Dec 22, 2015
Adding Hibernate to a Maven project.
View hibernate-maven.xml
View FeatureContext.php
class FeatureContext extends MinkContext
implements KernelAwareInterface
private $kernel;
private $parameters;
* Initializes context with parameters from behat.yml.
* @param array $parameters
View behat.yml
features: src/Acme/MyBundle/Features
bootstrap: %behat.paths.features%/bootstrap
mink_driver: true
env: test
debug: true
View calculadora.feature
Given I have a calculator
When I add 2 and 2
Then the result should be 4
Given I have a calculator
When I add 2 and -2
Then the result should be 0
Given I have a calculator
When I add -2 and -2
public void testSuma() {
assertEqualas(4, Calculadora.suma(2, 2));
assertEqualas(0, Calculadora.suma(2, -2));
assertEqualas(-4, Calculadora.suma(-2, -2));
Axxiss /
Created Mar 9, 2013
Injection on Activity
@Inject TelephonyManager mTelephonyManager
public void onCreate(final Bundle savedInstanceState) {
((FinderApplication) getApplication()).getGraph().inject(this);
Axxiss /
Last active Dec 14, 2015
Module for system services injection
entryPoints = {
public class ServiceModule {
private Context mContext;
public ServiceModule(Context context) {
Axxiss /
Last active Dec 14, 2015
Daggers integration
public class MyApplication extends Application {
private ObjectGraph mObjectGraph;
public final void onCreate() {
mObjectGraph = ObjectGraph.create(new ServiceModule(this));
You can’t perform that action at this time.