Skip to content

Instantly share code, notes, and snippets.

View sourleangchhean168's full-sized avatar
🎯
Focusing

Sour LeangChhean sourleangchhean168

🎯
Focusing
View GitHub Profile
@sourleangchhean168
sourleangchhean168 / .gitignore
Created August 20, 2019 09:51 — forked from simonexmachina/.gitignore
Example .gitignore file for iOS projects
## Build generated
build/
DerivedData
build.xcarchive
## Various settings
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
@sourleangchhean168
sourleangchhean168 / collectionViewScroll
Created March 25, 2018 18:07 — forked from genedelisa/collectionViewScroll
UICollectionView scroll to make section header visible
/**
Scroll to make the the given section header visible.
The function scrollToItemAtIndexPath will scroll to the item and hide the section header.
Swift 3.
*/
func scrollToSection(_ section:Int) {
if let cv = self.collectionView {
let indexPath = IndexPath(item: 1, section: section)
if let attributes = cv.layoutAttributesForSupplementaryElement(ofKind: UICollectionElementKindSectionHeader, at: indexPath) {
@sourleangchhean168
sourleangchhean168 / multiple_ssh_setting.md
Created October 30, 2017 17:11 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"