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.variantFilter { variant -> | |
println "variant= " + variant.name | |
def flavorString = "" | |
def flavors = variant.getFlavors() | |
for (int i = 0; i < flavors.size(); i++) { | |
flavorString += flavors[i].name | |
println "flavorName=" + flavorString | |
} | |
if (flavorString.equalsIgnoreCase("mobile")) { |
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
import android.graphics.Canvas | |
import android.graphics.Rect | |
import android.graphics.drawable.Drawable | |
import android.view.View | |
import android.widget.LinearLayout | |
import androidx.annotation.DrawableRes | |
import androidx.core.content.ContextCompat | |
import androidx.core.content.res.use | |
import androidx.recyclerview.widget.GridLayoutManager | |
import androidx.recyclerview.widget.LinearLayoutManager |
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 OrientationManager private constructor(context: Context) : OrientationEventListener(context) { | |
private var previousAngle = 0 | |
var orientation = 0 | |
private val context: Context = context | |
private var orientationChangeListener: OrientationChangeListener? = null | |
override fun onOrientationChanged(orientation: Int) { | |
if (orientation == -1) return | |
if (this.orientation == 0) { | |
this.orientation = context.resources.configuration.orientation |
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
package network_tech; | |
import java.io.BufferedReader; | |
import java.io.InputStreamReader; | |
import java.net.DatagramPacket; | |
import java.net.DatagramSocket; | |
import java.net.InetAddress; | |
public class ChatClient { |
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
from bs4 import BeautifulSoup | |
import json | |
import os | |
import urllib.request | |
from urllib.request import urlretrieve, Request | |
import requests | |
import shutil | |
HTML = """ | |
<div class="item_country cell small-4 medium-2 large-2"> |
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
import java.io.*; | |
import java.util.*; | |
public class Solution { | |
public static void main(String[] args) { | |
InputStream inputStream = System.in; | |
OutputStream outputStream = System.out; | |
InputReader in = new InputReader(inputStream); | |
PrintWriter out = new PrintWriter(outputStream); |
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
const long long INF = 100000000000; | |
vector<char> used (1000010); | |
vector< vector <int>> gtemp(1000010); | |
int main(){ | |
//20C Usual Dijkstra | |
int n,m,a,b,ok=0; | |
cin >> n >> m; | |
++n; |