This file contains 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
class IntroDelegate( | |
) : BaseAdapterDelegate<TrackItemUiModel.Intro, IntroDelegate.IntroViewHolder>() { | |
private val actionRelay = PublishRelay.create<TrackItemUiModel>() | |
val actionObservable: Observable<TrackItemUiModel> = actionRelay | |
override fun isForViewType(item: Item): Boolean = item is TrackItemUiModel.Intro | |
override val layoutId: Int = R.layout.view_track_intro |
This file contains 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
class CarNewsAdapter( | |
private val context: Context, | |
private val dateTimeFormatter: DateTimeFormatter, | |
private val recycler: RecyclerView, | |
private val callback: Callback, | |
private val onLoadMoreListener: OnLoadMoreListener) : RecyclerView.Adapter<RecyclerView.ViewHolder>() { | |
private val imageRoundedTransformation = RoundedCornersTransformation(context, 8, 0) | |
private var isLoading = false | |
private var visibleThreshold = THRESHOLD_LIMIT | |
private var lastVisibleItem = 0 |
This file contains 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
private static Node reverseLinkedListByRecursion(Node node) { | |
if (node == null || node.next == null) { | |
return node; | |
} | |
Node rest = node.next; | |
rest = reverseLinkedListByRecursion(rest); | |
node.next.next = node; | |
node.next = null; | |
return rest; | |
} |
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:paddingBottom="16dp"> | |
<CheckBox | |
android:id="@+id/checkbox" | |
style="@style/Widget.Avito.CheckBox" |
This file contains 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
@SuppressWarnings("unchecked") | |
public static <T> T methodPut(Map<String, Object> params, String url, MapperParams mapperParams) { | |
HttpClient httpClient = getHttpClient(); | |
List<NameValuePair> httpParams = new ArrayList<NameValuePair>(); | |
for (String key : params.keySet()) { | |
httpParams.add(new BasicNameValuePair(key, params.get(key).toString())); | |
} | |
HttpPut put = new HttpPut(url); | |
try { |
This file contains 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
<android.support.v7.widget.Toolbar | |
android:id="@+id/toolbar" | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:background="?attr/colorPrimary" | |
android:minHeight="?attr/actionBarSize" | |
android:theme="@style/ThemeOverlay.AppCompat.Dark" | |
app:popupTheme="@style/AppTheme.PopupOverlay"> |
This file contains 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
var codes = new List<string>(); | |
codes.Add(db.Quote(config.Keyword.ToUpper())); | |
// Добавляем кроссы - если выбран соотв параметр | |
if (config.DisplayAnalogs) | |
{ | |
if (crossInfosIfCodeSearchMaked != null && crossInfosIfCodeSearchMaked.Any()) | |
{ | |
foreach (var ci in crossInfosIfCodeSearchMaked) | |
{ | |
codes.Add(db.Quote(ci.PartCode)); |
This file contains 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
// Создаем запись о новом прайс-листе в БД | |
var pricelistDate = DateTime.Now; | |
var pricelistColumns = new Dictionary<string, object>() | |
{ | |
{"Date", pricelistDate}, | |
{"LoadType", (int) PriceListLoadType}, | |
{"LoadTypeData", PriceListLoadTypeData}, | |
{"Name", PriceListFileName}, | |
{"FileSize", PriceListFileSize}, | |
{"NameMd5Hash", PriceListFileMd5Hash} |
This file contains 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 class EventNotification$$Table implements RxSQLiteTable<EventNotification> { | |
private final CustomTypes mTypes; | |
public EventNotification$$Table(CustomTypes types) { | |
mTypes = types; | |
} | |
@Override | |
public void create(SQLiteDb db) { | |
db.exec("CREATE TABLE IF NOT EXISTS event_notification(" |
This file contains 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
<html> | |
<head> | |
<title>Apache Tomcat/7.0.23 - Error report</title> | |
<style> | |
<!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--> | |
</style> | |
</head> | |
<body> | |
<h1>HTTP Status 406 - </h1> | |
<HR size="1" noshade="noshade"> |
NewerOlder