$ rxmvvm "AddressList" "LightPass" "Leonardo Cardoso" "1aim.com" .
- $1 = Name of File
- $2 = Name of Project
- $3 = Name of Author
- $4 = Website
- $5 = Path
# GPG on Tower |
h1, | |
h2, | |
h3, | |
h4, | |
h5, | |
h6, | |
p, | |
blockquote { | |
margin: 0; | |
padding: 0; |
import UIKit | |
extension UIViewController { | |
static var topmostViewController: UIViewController? { return UIApplication.shared.keyWindow?.topmostViewController } | |
var topmostViewController: UIViewController? { return presentedViewController?.topmostViewController ?? self } | |
} |
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. |
defaults write com.apple.screencapture location ~/PATH_YOU_WANT; killall SystemUIServer |
<?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> |
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" |
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 | |
defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}' | |
killall Dock |