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
Attach mobile via USB and type: | |
## adb tcpip 5555 | |
To find the mobile ip type: | |
## adb shell ip -f inet addr show wlan0 | |
The ip address will be shown in second line like this: | |
## inet 192.168.1.233/24 brd 192.168.1.255 scope global wlan0 | |
where 192.168.1.233 is the ip address of your 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
String hash = MD5Util.md5Hex(email); | |
String gravatarUrl = "http://www.gravatar.com/avatar/" + hash + "?s=204&d=404"; | |
Picasso.with(mContext) | |
.load(gravatarUrl) | |
.placeholder(R.drawable.avatar_empty) | |
.into(holder.userImageView); |
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
URL to Fetch : http://picasaweb.google.com/data/entry/api/user/<hereYourUserIdOrYourEmail>?alt=json | |
Php Code Snippet: | |
<?php | |
$json = file_get_contents('http://picasaweb.google.com/data/entry/api/user/dknayakbu@gmail.com?alt=json'); | |
$result = json_decode($json); | |
print_r($result->{'entry'}->{'gphoto$thumbnail'}->{'$t'}); |
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
http://postalpincode.in/api/pincode/760010 |
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
sudo nano /etc/gai.conf | |
change line ~54 to uncomment the following: | |
precedence ::ffff:0:0/96 100 | |
write and quit |
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 | |
<android.support.design.widget.TextInputLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
android:id="@+id/shipper_layout" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginEnd="8dp" | |
android:layout_marginLeft="8dp" | |
android:layout_marginRight="8dp" | |
android:layout_marginStart="8dp" |
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
sudo apt-get update | |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6 | |
echo deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list | |
sudo apt-get update | |
sudo apt-get install -y mongodb-org | |
sudo service mongod start | |
sudo service mongod stop | |
sudo service mongod restart | |
sudo apt-get install -y ffmpeg | |
sudo apt-get install -y sox |
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 rows = [["name1", "city1", "some other info"], ["name2", "city2", "more info"]]; | |
var csvContent = "data:text/csv;charset=utf-8,"; | |
rows.forEach(function(rowArray){ | |
let row = rowArray.join(","); | |
csvContent += row + "\r\n"; | |
}); | |
var encodedUri = encodeURI(csvContent); | |
var link = document.createElement("a"); | |
link.setAttribute("href", encodedUri); |
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:foreground="?android:attr/selectableItemBackground" | |
android:clickable="true" | |
android:focusable="true" |
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 { | |
compileSdkVersion 22 | |
buildToolsVersion "22.0.0" | |
defaultConfig { | |
applicationId "com.abc.example" | |
minSdkVersion 16 | |
targetSdkVersion 22 | |
versionCode 1 | |
versionName "1.0" |
OlderNewer