Predefined cell accessories for UICollectionViewListCell.
This file contains 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
#!/bin/bash | |
# Usage: provide 2 parameters(provisioning profile path and new filename) | |
# | |
# sh ./provisioning2xml.sh path xml_name | |
path=$1 | |
name=$2 | |
echo "Generating $name.xml from path: $path" | |
security cms -D -i "$path" >> ./"$name".xml | |
echo "Finished" |
This file contains 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
// Append this to your .vimrc | |
au BufNewFile,BufRead Podfile set filetype=ruby |
This file contains 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
guard let index = items.index(where: {$0 == item}) | |
else { | |
return | |
} | |
items.remove(at: index) |
This file contains 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
//: Playground - a class that saves and retrieves an array to the device | |
import Foundation | |
class ArrayStorageManager: NSObject { | |
static let shared = ArrayStorageManager() | |
private var documentsDirectoryURL: URL { | |
let url = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first | |
return url! |
This file contains 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
[alias] | |
st = status | |
coma = commit -a | |
amend = commit --amend | |
amenda = amend -a | |
discard = checkout -- | |
unstage = reset HEAD -- | |
save = commit -m | |
gl = log --oneline --decorate --graph --all |
Struktura Commita:
- stan struktury w drzewie plików
- metadata (autor, data)
- referencja do rodzica (poprzedniego brancha)
Struktura Brancha:
-
implementowany jako plik przechowujący SHA1 hash.
-
Lokalizacja: .git/refs/heads/mójBranch