(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| i386 : iPhone Simulator | |
| x86_64 : iPhone Simulator | |
| arm64 : iPhone Simulator | |
| iPhone1,1 : iPhone | |
| iPhone1,2 : iPhone 3G | |
| iPhone2,1 : iPhone 3GS | |
| iPhone3,1 : iPhone 4 | |
| iPhone3,2 : iPhone 4 GSM Rev A | |
| iPhone3,3 : iPhone 4 CDMA | |
| iPhone4,1 : iPhone 4S |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| { | |
| "491289025" : "ijinshan-kappmarket://", | |
| "301521403" : "fb103361823069955://", | |
| "492178411" : "ils492178411://", | |
| "346142396" : "fb234434003713://", | |
| "310633997" : "whatsapp://", | |
| "370614765" : "com.condenet.newyorker://", | |
| "325058491" : "rnmddisco://", | |
| "382952264" : "epichttp://", | |
| "477048487" : "predictwind://", |
Goals for this project:
This is just a toy project for me to experiment with writing parsers in Swift. Because why not?
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
(Based on info from Peter Downs' gitub but with modified behavior to open a new terminal window for each invocation instead of reusing an already open window.)
The following three ways to launch an iTerm2 window from Finder have been tested on iTerm2 version 3+ running on macOS Mojave+.
pdanford - April 2020
| #!/bin/bash | |
| echo "*** SVG 2 ICNS ***" | |
| if [ $# -ne 1 ]; then | |
| echo "Usage: svg2icns filename.svg" | |
| exit 100 | |
| fi | |
| filename="$1" | |
| name=${filename%.*} | |
| ext=${filename##*.} | |
| echo "processing: $name" |
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
| import Foundation | |
| extension URLComponents { | |
| /// Abstracts away URLComponent’s array of URLQueryItems into a simple dictionary | |
| var parameters: [String: CustomStringConvertible] { | |
| get { | |
| return queryItems?.reduce(into: [String: String]()) { $0[$1.name] = $1.value } ?? [:] | |
| } | |
| set { | |
| queryItems = newValue.map { URLQueryItem(name: $0.key, value: String(describing: $0.value)) } |
| #!/bin/sh | |
| # This script embeds (and codesigns) a framework within an iOS app binary, but only when the configuration is Debug. | |
| # It must be called from, or copied into an Xcode Run Script build phase with following setup: | |
| # Input Files: | |
| # - Path to framework within project folder (source path) | |
| # - For example: $(SRCROOT)/ThirdPartyFrameworks/SimulatorStatusMagiciOS.framework | |
| # Output Files: | |
| # - Desired path to framework within ${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH} (destination path) | |
| # - For example: ${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}/SimulatorStatusMagiciOS.framework |