Skip to content

Instantly share code, notes, and snippets.

View leolelego's full-sized avatar
🦧
Noice

Léo leolelego

🦧
Noice
View GitHub Profile
@leolelego
leolelego / StackScrollView.swift
Created June 22, 2020 16:16
StackScrollView for Swift
import UIKit
@available(iOS 9.0, *)
public class StackScrollView: UIView {
// MARK: - Properties
public let scrollView = UIScrollView()
public let stackView = UIStackView()
lazy var constraintLayoutHeight : NSLayoutConstraint = {
@leolelego
leolelego / ViewControllerTemplate.swift
Created October 17, 2018 23:42
UIViewController Template Protocol for Manual View design
import UIKit
class ViewController<T:UIView> : UIViewController{
weak var _view : T! {return self.view as? T}
override func loadView() {
view = T()
}
}
class View:UIView {
@leolelego
leolelego / GIT MEMO.md
Last active December 27, 2017 19:55
Git Command Memo

Advanced

Detete Branch

git branch -d branch_name # Delete Local branch use -D for force
git push -d <remote_name> <branch_name> # Push the deletion

Rebase (Change git history)

@leolelego
leolelego / linux_setup.md
Last active October 15, 2020 00:33
Linux Server Simple installation with docker

Setup Basic

Stop ask password for sudo command

sudo visudo
SERVERNAME ALL=(ALL) NOPASSWD: ALL

install Tools

sudo apt-get install nano git