This file contains hidden or 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.os.Bundle | |
import androidx.appcompat.app.AppCompatActivity | |
import androidx.fragment.app.Fragment | |
import com.emedinaa.kotlinapp.R | |
import com.emedinaa.kotlinapp.fragments.AFragment | |
import com.emedinaa.kotlinapp.fragments.BFragment | |
import com.emedinaa.kotlinapp.fragments.CFragment | |
import kotlinx.android.synthetic.main.activity_bottom_navigation.* |
This file contains hidden or 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.emedinaa.kotlin | |
import android.support.v7.app.AppCompatActivity | |
import android.os.Bundle | |
import android.view.MotionEvent | |
import kotlinx.android.synthetic.main.activity_main.* | |
class MainActivity : AppCompatActivity() { | |
var pDownX=0 |
This file contains hidden or 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 version="1.0" encoding="utf-8"?> | |
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
tools:context=".ConstraintSampleActivity"> | |
<FrameLayout | |
android:id="@+id/frameLayout" |
This file contains hidden or 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
1. Check logs | |
``` | |
git log | |
``` | |
2. Selected commit (b759590578ef3456a31c0df0aae30dfb95e813ce) al folder patch (patches) | |
``` | |
git format-patch dev -1 b759590578ef3456a31c0df0aae30dfb95e813ce -o patches/likesandcomments_feature.patch |
This file contains hidden or 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
//validate not null | |
if(!Strings.isNullOrEmpty(String str)) { | |
// Do your stuff here | |
} | |
This file contains hidden or 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
Phone : | |
<a href="tel:2125551212">2125551212</a> | |
Hexadecimal color : | |
0% = #00 | |
10% = #16 | |
20% = #32 | |
30% = #48 | |
40% = #64 |
This file contains hidden or 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
Apache-Commands | |
- apachectl start | |
- apachectl restart | |
- apachectl stop | |
- sudo apachectl -k stop |
This file contains hidden or 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
Reset password | |
UPDATE mantis_user_table SET PASSWORD=MD5('PASSWORD'), enabled=1, protected=0, access_level=90 WHERE username='USERNAME'; |
This file contains hidden or 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
Add images | |
 |
This file contains hidden or 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
References: | |
https://maven.apache.org/download.cgi | |
https://wilsonmar.github.io/maven-on-macos/ | |
brew update | |
brew install maven | |
mvn -version |