Skip to content

Instantly share code, notes, and snippets.

View DVegasa's full-sized avatar
🦊

Ed Khalturin DVegasa

🦊
View GitHub Profile
using System;
public class DV
{
// ==============================================================
public static void Main()
{
try
{
#include <iostream>
using namespace std;
bool DEBUG = false;
int main() {
int n;
cin >> n;
#include <iostream>
using namespace std;
void testIt(int a, int b) {
if (a != b) cout << "\n=== Bad test === \n Expected: " << a << " \n Result: " << b << " \n";
}
void testIt(string a, string b) {
if (a != b) cout << "\n=== Bad test === \n Expected: " << a << " \n Result: " << b << " \n";
package io.github.dvegasa.civisz.screens.main;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import com.aurelhubert.ahbottomnavigation.AHBottomNavigation;
import com.aurelhubert.ahbottomnavigation.AHBottomNavigationItem;
import butterknife.BindView;
import butterknife.ButterKnife;
package io.github.dvegasa;
import org.junit.platform.commons.annotation.Testable;
import java.math.BigInteger;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
package com.company;
import java.util.Scanner;
public class Main {
// 20 34 12 94 54 99 11 22
// ^------------^
//
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="android:background">@color/colorBackground</item>
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
private fun highlight() {
val s = etSearchBar.text
adapter.list.forEach { item ->
// {1}
item.abbr.getSpans(0, item.abbr.length, ForegroundColorSpan::class.java).forEach {
item.abbr.removeSpan(it)
}
// {2}
private val spanHighlight by lazy {
ForegroundColorSpan(
ResourcesCompat.getColor(resources, R.color.colorAccent, null))
}