Skip to content

Instantly share code, notes, and snippets.

View anselmos's full-sized avatar

Bartosz Witkowski anselmos

View GitHub Profile
@anselmos
anselmos / gist:e106ddc2f7e9949b2386957cb2cdf397
Created July 20, 2017 20:26
python environment for drf-tdd-sample project
git clone https://github.com/anselmos/DRF-TDD-example.git drf-tdd-example
cd drf-tdd-example
virtualenv .env
source .env/bin/activate
pip install -r requirements.txt
source .env/bin/activate && cd todoapp/ && python manage.py migrate
source .env/bin/activate && cd todoapp/ && python manage.py createsuperuser
@anselmos
anselmos / TasksContract.java
Created May 18, 2017 10:08 — forked from Udinic/TasksContract.java
A contract class to work with Any.do's Content Provider. A full guide is available at http://tech.any.do/content-provider-for-any-do/
/**
* This class provides the URI and const values to work with Any.do's Content Provider.
*
* A guide is available on http://tech.any.do/content-provider-for-any-do/
*/
public class TasksContract {
public static final Uri TASKS_URI = Uri.parse("content://com.anydo.provider/tasks");
public static final Uri FOLDERS_URI = Uri.parse("content://com.anydo.provider/folders");
public static final String PERMISSION_READ = "com.anydo.provider.permission.READ_ANYDO_TASKS";