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.sergiandreplace.content; | |
| import android.content.ContentProvider; | |
| import android.content.ContentValues; | |
| import android.content.Context; | |
| import android.content.UriMatcher; | |
| import android.database.Cursor; | |
| import android.database.sqlite.SQLiteDatabase; | |
| import android.net.Uri; | |
| import android.util.SparseArray; |
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 android.content.Context; | |
| import android.database.DataSetObserver; | |
| import android.graphics.Rect; | |
| import android.util.AttributeSet; | |
| import android.view.GestureDetector; | |
| import android.view.GestureDetector.OnGestureListener; | |
| import android.view.MotionEvent; | |
| import android.view.View; | |
| import android.widget.AdapterView; |
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 void exportDatabse(String databaseName) { | |
| try { | |
| File sd = Environment.getExternalStorageDirectory(); | |
| File data = Environment.getDataDirectory(); | |
| if (sd.canWrite()) { | |
| String currentDBPath = "//data//"+getPackageName()+"//databases//"+databaseName+""; | |
| String backupDBPath = "backupname.db"; | |
| File currentDB = new File(data, currentDBPath); | |
| File backupDB = new File(sd, backupDBPath); |
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.tempos21.taskexecutor; | |
| import android.os.Handler; | |
| import java.util.Random; | |
| /** | |
| * Base class for executable tasks | |
| */ | |
| public abstract class Task<I, O> { |
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
| myTextView.setMovementMethod(new ScrollingMovementMethod()); |
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
| apply plugin: 'me.tatarka.retrolambda' //actives use of Retrolambda | |
| buildscript { | |
| repositories { | |
| jcenter(); // to find plugins | |
| } | |
| dependencies { | |
| classpath 'me.tatarka:gradle-retrolambda:3.3.0-beta4' //retrolambda | |
| classpath 'me.tatarka.retrolambda.projectlombok:lombok.ast:0.2.3.a2' //lombok for that makes lint work with retrolambda | |
| } |
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.scmspain.bluejobs.candidateagent; | |
| import java.util.ArrayList; | |
| import java.util.HashMap; | |
| import java.util.List; | |
| import java.util.Map; | |
| import rx.Observable; | |
| public abstract class Cache<I, T> { |
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 android.content.Context; | |
| import android.content.res.TypedArray; | |
| import android.util.AttributeSet; | |
| public class SquareTextView extends android.support.v7.widget.AppCompatTextView { | |
| public SquareTextView(Context context) { | |
| super(context); | |
| } |
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 'dart:async'; | |
| import 'dart:convert'; | |
| import 'package:flutter/services.dart'; | |
| class SWApi { | |
| Future<Map<String, String>> getCharacter(String id) async { | |
| var httpClient = createHttpClient(); | |
| var response = await httpClient.get('https://swapi.co/api/people/${id}/'); | |
| Map<String, Object> character = JSON.decode(response.body); |
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
| find . -type f -exec grep -n "class [A-Z]" {} +^C |
OlderNewer