sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
- Download zsh-completions by
/* | |
solution based on - based on Sevastyan answer on StackOverflow | |
changes: | |
- take to account views offsets | |
- transformed to Kotlin | |
- now works on viewHolders | |
- try to cache viewHolders between draw's |
import android.content.Context; | |
import android.support.annotation.Nullable; | |
import android.text.Editable; | |
import android.text.TextWatcher; | |
import android.util.AttributeSet; | |
import android.util.Log; | |
import java.util.regex.Pattern; | |
import java.util.regex.PatternSyntaxException; |
It makes much easier to switch between different git projects if we try to follow similar rules for commits, branches and other git related stuff.
So, based on best practices used in different mobile projects we've come to some basic rules:
We are trying to make it easy to read commits history. To make commits look similar in different project / from different people some best practices can be applied:
//: Playground - noun: a place where people can play | |
import UIKit | |
// | |
// NSDate+Compare.swift | |
// Node | |
// | |
// Created by Sergii Frost on 2017-06-13. | |
// Copyright © 2017 Rebtel. All rights reserved. |
//: Playground - noun: a place where people can play | |
import UIKit | |
import PlaygroundSupport | |
let kStartAlpha: CGFloat = 0.8 | |
let kEndAlpha: CGFloat = 0.0 | |
let kDuration: CFTimeInterval = 1.0 | |
let bgColor = UIColor(red: 153.0/255, green: 192.0/255, blue: 204.0/255, alpha: 1.0) |
//: Playground - noun: a place where people can play | |
import UIKit | |
let creator = "Awesome Me" | |
let teamName = "Awesome Team" | |
let groupName = "Awesome Group" | |
func getHeader(creator: String, team: String, group: String? = nil) -> NSAttributedString { |
//: Playground - noun: a place where people can play | |
import UIKit | |
var str = "Hello, Date Helper playrgound!" | |
//Returns the first date of the current year. Should return the following timestamp for the year 2016: 1451606400 | |
func getFirstDateOfCurrentYear() -> NSNumber { | |
//Get current year |