This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public void onResume() { | |
super.onResume(); | |
PreferenceManager.getDefaultSharedPreferences(getContext()) | |
.registerOnSharedPreferenceChangeListener(this); | |
} | |
@Override public void onPause() { | |
super.onPause(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 + " = ?", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |