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 LockableViewPager extends ViewPager { | |
private boolean swipeLocked; | |
public LockableViewPager(Context context) { | |
super(context); | |
} | |
public LockableViewPager(Context context, AttributeSet attrs) { | |
super(context, attrs); |
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
#!/bin/bash | |
echo 'stopping camera app' | |
systemctl stop stream-launcher | |
sleep 1 | |
SERVICE="StreamApp" | |
if pgrep -x "$SERVICE" >/dev/null | |
then | |
echo "$SERVICE is running" | |
else | |
echo "$SERVICE stopped" |
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 csv | |
logs = open("log.txt", "r") | |
out = open("eval.csv", "w") | |
outWriter = csv.writer(out, delimiter=',', quotechar='"', quoting=csv.QUOTE_MINIMAL) | |
outWriter.writerow(["Project name", "#", "task", "Planned start date", "Planned Delivery date", "Actual Start Date", | |
"Actual Delivery Date", "Quality", "Bug Count", "Marks", "Comments"]) | |
projectName = "BaseDialer" | |
isMe = False |
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 static boolean haveNetworkConnection() { | |
boolean haveConnectedWifi = false; | |
boolean haveConnectedMobile = false; | |
ConnectivityManager cm = (ConnectivityManager) AppContext.getAccess().getContext().getSystemService(Context.CONNECTIVITY_SERVICE); | |
if (cm != null) { | |
NetworkInfo[] netInfo = cm.getAllNetworkInfo(); | |
for (NetworkInfo ni : netInfo) { | |
if (ni.getTypeName().equalsIgnoreCase("WIFI")) | |
if (ni.isConnected()) |
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 com.revesoft.itelmobiledialer.ims.chatWindow.viewHolders; | |
import android.view.View; | |
import com.countrycom.bubbletone.R; | |
import com.google.android.gms.maps.CameraUpdateFactory; | |
import com.google.android.gms.maps.GoogleMap; | |
import com.google.android.gms.maps.MapView; | |
import com.google.android.gms.maps.OnMapReadyCallback; | |
import com.google.android.gms.maps.model.LatLng; |
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
collapsingToolbarLayout = (CollapsingToolbarLayout) findViewById(R.id.toolbar_layout); | |
collapsingToolbarLayout.setExpandedTitleColor(ContextCompat.getColor(GroupDetails.this, R.color.lightEight)); | |
collapsingToolbarLayout.setCollapsedTitleTextColor(ContextCompat.getColor(GroupDetails.this, R.color.white)); | |
collapsingToolbarLayout.setTitle(groupOffer.getGroupName()); | |
<android.support.design.widget.AppBarLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:fitsSystemWindows="true" | |
android:theme="@style/AppTheme.AppBarOverlay"> |
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
<a href="http://www.free-iqtest.net" title="IQ Test"><img src="http://www.free-iqtest.net/images/badges2/l160.gif" width="200" height="100" alt="IQ Test" border="0"></a><br/><a title="IQ Test" href="http://www.free-iqtest.net">IQ Test</a> |
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
text/x-generic .htaccess ( ASCII text ) | |
# 1.To use URL Alias you need to be running apache with mod_rewrite enabled. | |
# 2. In your opencart directory rename htaccess.txt to .htaccess. | |
# For any support issues please visit: http://www.opencart.com | |
Options +FollowSymlinks |