$ rxmvvm "AddressList" "LightPass" "Leonardo Cardoso" "1aim.com" .
- $1 = Name of File
- $2 = Name of Project
- $3 = Name of Author
- $4 = Website
- $5 = Path
| extension String { | |
| func convertDateDFormat(from: String = "yyyy-mm-dd", to: String = "EEE dd/mm/yyyy") -> String! { | |
| let dateOriginalFormat = NSDateFormatter() | |
| dateOriginalFormat.dateFormat = from | |
| let dateDestinationFormat = NSDateFormatter() | |
| dateDestinationFormat.dateFormat = to | |
| xcodebuild -project YourProject.xcodeproj -scheme YourProjectScheme -destination "OS=10.0,name=iPhone 7" -sdk "iphonesimulator10.0" RUN_TESTS="YES" BUILD_EXAMPLE="NO" POD_LINT="NO" -configuration Debug ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES test | xcpretty -c; | |
| xcodebuild -project YourProject.xcodeproj -scheme YourProjectSchemeWatchOS -destination "OS=3.0,name=Apple Watch Series 2 - 42mm" -sdk "watchsimulator3.0" RUN_TESTS="NO" BUILD_EXAMPLE="NO" POD_LINT="NO" -configuration Debug ONLY_ACTIVE_ARCH=NO build | xcpretty -c; | |
| xcodebuild -project YourProject.xcodeproj -scheme YourProjectSchemeTvOS -destination "OS=10.0,name=Apple TV 1080p" -sdk "appletvsimulator10.0" RUN_TESTS="YES" BUILD_EXAMPLE="NO" POD_LINT="NO" -configuration Debug ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES test | xcpretty -c; | |
| xcodebuild -project YourProject.xcodeproj -scheme YourProjectSchemeMacOS -destination "arch=x86_64" -sdk "macosx10.12" RUN_TESTS="YES" BUILD_EXAMPLE="NO" |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN” "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>KeepAlive</key> | |
| <dict> | |
| <key>SuccessfulExit</key> | |
| <false/> | |
| </dict> | |
| <key>Label</key> |
| defaults write com.apple.screencapture location ~/PATH_YOU_WANT; killall SystemUIServer |
| def recurse (pref,suff): | |
| # If no characters left, just print prefix. | |
| if suff == "": | |
| print pref | |
| return | |
| # Otherwise add lowercase of first suffix letter to prefix | |
| # and recur with that and the remainder of the suffix. | |
| # Then do the same for uppercase. |
| import UIKit | |
| extension UIViewController { | |
| static var topmostViewController: UIViewController? { return UIApplication.shared.keyWindow?.topmostViewController } | |
| var topmostViewController: UIViewController? { return presentedViewController?.topmostViewController ?? self } | |
| } |
| h1, | |
| h2, | |
| h3, | |
| h4, | |
| h5, | |
| h6, | |
| p, | |
| blockquote { | |
| margin: 0; | |
| padding: 0; |
| # GPG on Tower |
| for f in *; do | |
| if [[ -d $f ]]; then | |
| cd $f | |
| for i in **/*.mp3; do ffmpeg -i "$i" -codec:a libmp3lame -b:a 192k "0-$i" ; done | |
| cd ../ | |
| else | |
| for i in **/*.mp3; do ffmpeg -i "$i" -codec:a libmp3lame -b:a 192k "0-$i" ; done | |
| fi | |
| done |