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
rm -Rf /Applications/Android\ Studio.app | |
rm -Rf ~/Library/Preferences/AndroidStudio* | |
rm ~/Library/Preferences/com.google.android.studio.plist | |
rm -Rf ~/Library/Application\ Support/AndroidStudio* | |
rm -Rf ~/Library/Logs/AndroidStudio* | |
rm -Rf ~/Library/Caches/AndroidStudio* | |
// in haxm folder /Library/Extensions/intelhaxm.kext/Contents/Resources | |
sudo ./uninstall.sh |
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
Reinstall HAXM with more RAM: | |
sudo $ANDROID_SDK/sdk/extras/intel/Hardware_Accelerated_Execution_Manager/silent_install.sh -u | |
sudo $ANDROID_SDK/sdk/extras/intel/Hardware_Accelerated_Execution_Manager/silent_install.sh -m 1024 | |
// Users/******username*******/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager |
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) in AndroidStudio's settings > compile enable checkbox named Compile independent modules in parallel. | |
2) Under Help> Edit Custom VM Options: | |
-Xms1024m | |
-Xmx4096m # <------ increase this to most of your RAM | |
-XX:MaxPermSize=1024m | |
-XX:ReservedCodeCacheSize=440m | |
-XX:+UseCompressedOops | |
-XX:+HeapDumpOnOutOfMemoryError | |
-Dfile.encoding=UTF-8 |
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
Choices for a font size: https://material.io/guidelines/style/typography.html#typography-styles | |
https://plus.google.com/+AndroidDevelopers/posts/gQuBtnuk6iG | |
Color palette: https://material.io/guidelines/style/color.html#color-color-palette | |
Material Design News: https://www.uplabs.com/material | |
Material Design: https://material.io/guidelines/material-design/introduction.html?utm_source=udacity&utm_medium=course&utm_campaign=android_basics | |
ConstraintLayout Article: https://medium.com/exploring-android/exploring-the-new-android-constraintlayout-eed37fe8d8f1 |
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 Cheat Sheet: | |
https://drive.google.com/file/d/0B5XIkMkayHgRMVljUVIyZzNmQUU/view | |
Views:VirtualLayout | |
<RelativeLayout | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
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
max_element(iter1, iter2) | |
min_element(iter1, iter2) | |
random_shuffle(iter1, iter2) | |
sort(iter1, iter2) | |
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
Question: | |
I have to delete 2 last commits pushed to original repo, one of which is a merge commit. I want to delete changes in repo and keep them on my computer. | |
When I do | |
git revert -m 1 075cc2f | |
It adds a revert commit to my history of commits and my 075cc2f commit is still present there. | |
When I do | |
git push origin +HEAD^:master | |
commit is fully deleted from history. |
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
background.js : | |
if (!localStorage.isInitialized) { | |
localStorage.isInitialized = true; | |
localStorage.setItem('LatestDate', ''); | |
localStorage.setItem('currentWebsites', '{}'); | |
localStorage.setItem('backup',''); | |
} | |
console.log('hi'); |
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
MainActivity.java | |
package com.madinabektayeva.stepcounter; | |
import android.content.Context; | |
import android.hardware.*; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.widget.TextView; | |
import android.widget.Toast; |
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
xx |
OlderNewer