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
# This is will be called by bitbucket pipeline | |
echo "Deploy script started" | |
cd /var/www/ | |
sh pull.sh | |
echo "Deploy script finished execution." |
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 String getApplicationVersionString(Context context) { | |
try { | |
PackageManager pm = context.getPackageManager(); | |
PackageInfo info = pm.getPackageInfo(context.getPackageName(), 0); | |
return info.versionName; | |
} catch (Exception e) { | |
e.printStackTrace(); | |
return null; | |
} | |
} |
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.content.Context; | |
import android.util.AttributeSet; | |
import android.util.Log; | |
import android.webkit.WebView; | |
public class CustomWebView extends WebView { | |
public CustomWebView(Context context) { | |
super(context); | |
} |
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
<?php | |
class FacultyController extends Controller | |
{ | |
/** | |
* @var string the default layout for the views. Defaults to '//layouts/column2', meaning | |
* using two-column layout. See 'protected/views/layouts/column2.php'. | |
*/ | |
public $layout = '//layouts/column2'; |
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
<schema name="example core zero" version="1.1"> | |
<types> | |
<fieldtype name="string" class="solr.StrField" sortMissingLast="true" omitNorms="true"/> | |
</types> | |
<fields> | |
<!-- general --> | |
<field name="id" type="string" indexed="true" stored="true" multiValued="false" required="true"/> | |
<field name="type" type="string" indexed="true" stored="true" multiValued="false" /> | |
<field name="name" type="string" indexed="true" stored="true" multiValued="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 class CustomAdapter extends ArrayAdapter<Tip> { | |
Context context; // LoayutInflater için gerekli. | |
ArrayList<Tip> objects; // Gelecek verileri karşılamak için gerekli | |
public CustomAdapter(Context applicationContext, int dovizLayout, ArrayList<String> Tips) { | |
super(applicationContext, dovizLayout); | |
this.context = applicationContext; | |
this.objects = (ArrayList) Tips; | |
} |