Skip to content

Instantly share code, notes, and snippets.

@Udinic
Udinic / androidtv-tester
Created January 19, 2021 17:44
Tests a few automations for the Android TV
#!/bin/bash
# Usage:
# ./androidtv-tester <TV IP:5555> <option>
# Example:
# ./androidtv-tester 192.168.86.43:5555 2
adb_connect() {
adb connect $1
}
@Udinic
Udinic / tv_shows_scraper.py
Created July 22, 2013 01:35
This script scraps Wikipedia'a page for all American TV shows, and output the titles and the years in 2 separate files, surrounded with <item> tags. Written for the sync adapter sample app introduced in my blog: http://www.udinic.com
#!/usr/bin/env python
"""
tv_shows_scraper.py
Creates 2 files, TV shows titles and year, surrounded with <item> tags.
Usage: python tv_show_scraper.py
"""
@Udinic
Udinic / TasksContract.java
Last active October 12, 2018 15:34
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";