Skip to content

Instantly share code, notes, and snippets.

import java.util.*;
import java.lang.*;
/**
* Created by RobertoTomás on 0027, 27, 4, 2016.
*/
public class StringSorter {
public static void main(String[] args) {
//Arrays.stream(args).sorted(Comparator.naturalOrder());
package xyz.selfenrichment.robertotomas.popularmovies.lib;
// Created by RobertoTomás on 0004, 4, 4, 2016.
import android.content.Context;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.util.DisplayMetrics;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListAdapter;
// ==UserScript==
// @name Feedly Tweaks
// @namespace http://your.homepage/
// @version 1.0
// @description tweaks for feedly
// @author You
// @include /https?:\/\/feedly.com/
// @require https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js
// @grant none
// ==/UserScript==
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace Solution
{
class Solution
{
static void Main(String[] args)
{
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
package xyz.selfenrichment.robertotomas.popularmovies.SQLite;
// Created by RobertoTomás on 0002, 2, 4, 2016.
import android.content.ContentProvider;
import android.content.ContentUris;
import android.content.ContentValues;
import android.content.UriMatcher;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteConstraintException;
@Override
public void onResume() {
super.onResume();
PreferenceManager.getDefaultSharedPreferences(getContext())
.registerOnSharedPreferenceChangeListener(this);
}
@Override public void onPause() {
super.onPause();
FavoritesContract.FavoritesEntry.ContentUris.CONTENT_URI,
new String[] {FavoritesContract.FavoritesEntry.COL_THEMOVIEDBKEY,
FavoritesContract.FavoritesEntry.COL_TITLE,
FavoritesContract.FavoritesEntry.COL_RELEASE_DATE,
FavoritesContract.FavoritesEntry.COL_VOTE_AVERAGE,
FavoritesContract.FavoritesEntry.COL_POSTER_PATH,
FavoritesContract.FavoritesEntry.COL_POSTER_TYPE,
FavoritesContract.FavoritesEntry.COL_BACKDROP_PATH,
FavoritesContract.FavoritesEntry.COL_OVERVIEW },
FavoritesContract.FavoritesEntry.COL_THEMOVIEDBKEY + " = ?",
public static class OldFavoritesEntry {
public static final Uri CONTENT_URI =
BASE_CONTENT_URI.buildUpon().appendPath(PATH_FAVORITES).build();
public static final String CONTENT_TYPE =
ContentResolver.CURSOR_DIR_BASE_TYPE + "/" + CONTENT_AUTHORITY + "/" + PATH_FAVORITES;
public static final String CONTENT_ITEM_TYPE =
ContentResolver.CURSOR_ITEM_BASE_TYPE + "/" + CONTENT_AUTHORITY + "/" + PATH_FAVORITES;
// Table name
@robbiemu
robbiemu / WindView.java
Last active April 27, 2016 14:29
a custom view that indicates wind speed and direction
package com.example.android.sunshine.app;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.Rect;
import android.graphics.Typeface;
import android.graphics.drawable.Drawable;