Skip to content

Instantly share code, notes, and snippets.

@blklmn345
blklmn345 / flutter_format.sh
Created June 9, 2022 02:00
Flutter format changed files
for i in `git diff --name-status | cut -f2`; do
flutter format $i
done
@blklmn345
blklmn345 / Apple_mobile_device_types.txt
Created September 7, 2020 08:04 — forked from adamawolf/Apple_mobile_device_types.txt
List of Apple's mobile device codes types a.k.a. machine ids (e.g. `iPhone1,1`, `Watch1,1`, etc.) and their matching product names
i386 : iPhone Simulator
x86_64 : iPhone Simulator
iPhone1,1 : iPhone
iPhone1,2 : iPhone 3G
iPhone2,1 : iPhone 3GS
iPhone3,1 : iPhone 4
iPhone3,2 : iPhone 4 GSM Rev A
iPhone3,3 : iPhone 4 CDMA
iPhone4,1 : iPhone 4S
iPhone5,1 : iPhone 5 (GSM)
@blklmn345
blklmn345 / CollectionViewCell.swift
Created February 21, 2020 05:31 — forked from Lancewer/CollectionViewCell.swift
[Collection Single Selection] single selection in UICollectionView with swift #swift #UICollectionView #selection #select #single select
//custom cell class
import UIKit
class CollectionViewCell: UICollectionViewCell {
@IBOutlet weak var nameLabel: UILabel!
override var isSelected: Bool{
didSet(newValue){
contentView.backgroundColor = newValue ? UIColor.green : UIColor.white