Skip to content

Instantly share code, notes, and snippets.

View RobertoArtiles's full-sized avatar

Roberto Artiles Astelarra RobertoArtiles

View GitHub Profile
Verifying my Blockstack ID is secured with the address 1As1PzXDy4UXYxzNvWGdvR12duLnZhy41J https://explorer.blockstack.org/address/1As1PzXDy4UXYxzNvWGdvR12duLnZhy41J
@RobertoArtiles
RobertoArtiles / RealmBaseRecyclerViewAdapter.java
Last active November 25, 2015 20:14
A temporary solution to use RecyclerView with Realm (based on RealmBaseAdapter). Note: make sure you create an io.realm package, and put this class there.
package io.realm;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
public abstract class RealmBaseRecyclerViewAdapter<T extends RealmObject, M extends RecyclerView.ViewHolder> extends RecyclerView.Adapter<M> {
protected LayoutInflater inflater;
protected RealmResults<T> realmResults;
@RobertoArtiles
RobertoArtiles / sickandwrong_archives.rss
Last active August 29, 2015 14:07
Generated RSS feed for Sick and Wrong podcast archives. Created for listening old episodes in my Pocket Casts app. http://www.sickandwrongpodcast.com/archives/
<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" version="2.0">
<channel>
<title>Sick And Wrong Archive</title>
<link>http://www.sickandwrongpodcast.com/</link>
<description>Sick and Wrong</description>
<language>en-us</language>
<copyright>Sick and Wrong</copyright>
<generator>java</generator>
<webMaster>Sick and Wrong</webMaster>