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.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 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 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 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 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 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 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 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 | |
![Scheme](images/scheme.jpg) |
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
References: | |
https://maven.apache.org/download.cgi | |
https://wilsonmar.github.io/maven-on-macos/ | |
brew update | |
brew install maven | |
mvn -version |
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
How to set JAVA_HOME on Mac OS X | |
$ echo $JAVA_HOME | |
/Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home | |
Download JDK 8 from Oracle WebSite. [jdk-8u74-macosx-x64.dmg for Mac]. | |
Double click on jdk-8u74-macosx-x64.dmg and follow the screen instructions. | |
JDK package will have been installed on /Library/Java/JavaVirtualMachines. In my computer, I have both 8u66 and 8u74 JDK package. | |
$ ls -l /Library/Java/JavaVirtualMachines |