For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.
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
| echo "Creating an SSH key for you..." | |
| ssh-keygen -t rsa | |
| echo "Please add this public key to Github \n" | |
| echo "https://github.com/account/ssh \n" | |
| read -p "Press [Enter] key after this..." | |
| echo "Installing xcode-stuff" | |
| xcode-select --install |
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
| func flushCoreData() { | |
| let entities = managedObjectModel.entities | |
| for entity in entities { | |
| let fetchRequest = NSFetchRequest<NSFetchRequestResult>(entityName: entity.name!) | |
| let deleteReqest = NSBatchDeleteRequest(fetchRequest: fetchRequest) | |
| do { | |
| try managedObjectContext?.execute(deleteReqest) | |
| } catch { | |
| print(error) | |
| } |
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
| for name in UIFont.familyNames { | |
| print(name) | |
| print("\n") | |
| if let nameString = name as? String { | |
| print(UIFont.fontNames(forFamilyName:nameString)) | |
| print("\n") | |
| } | |
| } |