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
    
  
  
    
  | long date = 1407869895000L; // August 12, 2014, 8:58PM | |
| // August 12, 2014 (default) | |
| DateUtils.formatDateTime(this, date, 0); | |
| // Aug 12, 2014 (default with abbreviated month) | |
| DateUtils.formatDateTime(this, date, DateUtils.FORMAT_ABBREV_MONTH); | |
| // August 12 (date without year) | |
| DateUtils.formatDateTime(this, date, DateUtils.FORMAT_NO_YEAR); | 
  
    
      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 java.text.SimpleDateFormat | |
| import java.util.* | |
| /** | |
| * Pattern: yyyy-MM-dd HH:mm:ss | |
| */ | |
| fun Date.formatToServerDateTimeDefaults(): String{ | |
| val sdf= SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.getDefault()) | |
| return sdf.format(this) | |
| } | 
  
    
      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
    
  
  
    
  | git errors --> https://ohshitgit.com/ | |
| git --> | https://codewords.recurse.com/issues/two/git-from-the-inside-out | |
| | https://www.thomas-krenn.com/en/wiki/Git_Basic_Terms | |
| | https://careerkarma.com/blog/git-head-detached-at/ | |
| | https://www.javatpoint.com/git-index | |
| | https://www.codeinwp.com/blog/angular-vs-vue-vs-react/ | |
| | https://stackoverflow.com/questions/49626717/what-is-the-difference-between-interactive-rebase-and-normal-rebase#:~:text=At%20it's%20core%2C%20a%20rebase,chance%20to%20edit%20the%20commits. | |
| | https://articles.assembla.com/en/articles/1136998-how-to-add-a-new-remote-to-your-git-repo | |
| | https://www.edureka.co/blog/interview-questions/git-interview-questions/ | |
  
    
      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 static org.junit.Assert.*; | |
| import static org.hamcrest.CoreMatchers.is; | |
| import static org.mockito.Mockito.*; | |
| import static org.mockito.BDDMockito.*; | |
| import org.hamcrest.BaseMatcher; | |
| import org.hamcrest.Description; | |
| import org.hamcrest.Matcher; | 
  
    
      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
    
  
  
    
  | Lesson 1 - Iterations | |
| - BinaryGap - https://codility.com/demo/results/trainingU2FQPQ-7Y4/ | |
| Lesson 2 - Arrays | |
| - OddOccurrencesInArray - https://codility.com/demo/results/trainingFN5RVT-XQ4/ | |
| - CyclicRotation - https://codility.com/demo/results/trainingSH2W5R-RP5/ | |
| Lesson 3 - Time Complexity | |
| - FrogJmp - https://codility.com/demo/results/training6KKWUD-BXJ/ | |
| - PermMissingElem - https://codility.com/demo/results/training58W4YJ-VHA/ | 
  
    
      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
    
  
  
    
  | data class Item(val id: Long, val title: String, val url: String) | |
| class RecyclerViewAdapter(val items: List<Item>, val listener: (Item) -> Unit) : RecyclerView.Adapter<RecyclerViewAdapter.ViewHolder>() { | |
| override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder { | |
| return ViewHolder(LayoutInflater.from(parent.context).inflate(R.layout.recycler_item_row, parent, false)) | |
| } | |
| override fun onBindViewHolder(holder: ViewHolder, position: Int) = holder.bind(items[position], listener) | |
| override fun getItemCount(): Int = items.size |