Install the following apps on your mac running macOS:
- (standalone) Xcode Command Line Tools
- Homebrew
- Git
Modified from: https://www.moncefbelyamani.com
| // | |
| // RefreshableScrollView.swift | |
| // -- | |
| // | |
| // Created by Bradley on 3/24/21. | |
| // | |
| import Combine | |
| import SwiftUI | |
| import UIKit |
| // Authoer: The SwiftUI Lab | |
| // Full article: https://swiftui-lab.com/scrollview-pull-to-refresh/ | |
| import SwiftUI | |
| struct RefreshableScrollView<Content: View>: View { | |
| @State private var previousScrollOffset: CGFloat = 0 | |
| @State private var scrollOffset: CGFloat = 0 | |
| @State private var frozen: Bool = false | |
| @State private var rotation: Angle = .degrees(0) |
Install the following apps on your mac running macOS:
Modified from: https://www.moncefbelyamani.com
| // On PhpStorm, when ussing with laravel mix, for Alias path resolving in components you have to: | |
| // - create a webpack.config.js file separately like: | |
| const path = require('path') | |
| const webpack = require('webpack') | |
| module.exports = { | |
| ... | |
| resolve: { | |
| extensions: ['.js', '.json', '.vue'], |
| find `pwd` -type d -maxdepth 3 -name 'node_modules' | xargs -n 1 tmutil addexclusion |
| PASSWORD1 # Replace literal string 'PASSWORD1' with '***REMOVED***' (default) | |
| PASSWORD2==>examplePass # replace with 'examplePass' instead | |
| PASSWORD3==> # replace with the empty string | |
| regex:password=\w+==>password= # Replace, using a regex | |
| regex:\r(\n)==>$1 # Replace Windows newlines with Unix newlines |
NOTE (2022-07-09): Xcode finally added this functionality in Xcode 14, please see release notes here:
New Features in Xcode 14 Beta 3
When editing code, the Edit > Duplicate menu item and its corresponding keyboard shortcut now duplicate the selected text — or the line that currently contains the insertion point, if no text is selected. (8614499) (FB5618491)
| // Based on Swift 1.2, ObjectMapper 0.15, RealmSwift 0.94.1 | |
| // Author: Timo Wälisch <[email protected]> | |
| import UIKit | |
| import RealmSwift | |
| import ObjectMapper | |
| import SwiftyJSON | |
| class ArrayTransform<T:RealmSwift.Object where T:Mappable> : TransformType { | |
| typealias Object = List<T> |
PhpStorm.app (Standalone) Mac integration with Tower.app for diff and merge
CompareTools.plist and phpstorm.sh files in the ~/Library/Application Support/com.fournova.Tower3/CompareTools/ directory.
You may need to mkdir ~/Library/Application\ Support/com.fournova.Tower3/CompareTools if the folder does not already existchmod +x ~/Library/Application\ Support/com.fournova.Tower3/CompareTools/phpstorm.sh