Skip to content

Instantly share code, notes, and snippets.

@Udinic
Udinic / androidtv-tester
Created Jan 19, 2021
Tests a few automations for the Android TV
View androidtv-tester
#!/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 Jul 22, 2013
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
View tv_shows_scraper.py
#!/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 Oct 12, 2018
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/
View TasksContract.java
/**
* 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";