Skip to content

Instantly share code, notes, and snippets.

View mtali's full-sized avatar
💻
Coding + Learning

Emmanuel Mtali mtali

💻
Coding + Learning
View GitHub Profile
[options]
#
# WARNING:
# If you use the Odoo Database utility to change the master password be aware
# that the formatting of this file WILL be LOST! A copy of this file named
# /etc/odoo/openerp-server.conf.template has been made in case this happens
# Note that the copy does not have any first boot changes
#-----------------------------------------------------------------------------
# Odoo Server Config File - TurnKey Linux
@mtali
mtali / ManActivity.java
Last active September 4, 2018 12:28
My implementation of AsyncTaskLoader to avoid possible Memory Leak
/*
* Copyright (C) 2016 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@mtali
mtali / Fragment
Created August 31, 2018 23:18
Fixing a bug for a friend
package com.example.goodluck.unishop1;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;