Convert mac-os-el-capitan-pkg-to-iso.sh from using hdiutil and asr to using Linux utilities.
Important: You will need about 30GB of free disk space.
| # see rkengler.com for related blog post | |
| # https://www.rkengler.com/how-to-capture-network-traffic-when-scraping-with-selenium-and-python/ | |
| import json | |
| import pprint | |
| from selenium import webdriver | |
| from selenium.webdriver.common.desired_capabilities import DesiredCapabilities | |
| capabilities = DesiredCapabilities.CHROME |
| // Run any SwiftUI view as a Mac app. | |
| import Cocoa | |
| import SwiftUI | |
| NSApplication.shared.run { | |
| VStack { | |
| Text("Hello, World") | |
| .padding() | |
| .background(Capsule().fill(Color.blue)) |
| pragma solidity 0.6.4; | |
| import "./Context.sol"; | |
| import "./IERC20.sol"; | |
| import "./SafeMath.sol"; | |
| import "./Ownable.sol"; | |
| /** | |
| * @dev Implementation of the {IERC20} interface. | |
| * |
Convert mac-os-el-capitan-pkg-to-iso.sh from using hdiutil and asr to using Linux utilities.
Important: You will need about 30GB of free disk space.
| PRODUCT_NAME := Foo | |
| SCHEME_NAME := ${PRODUCT_NAME} | |
| WORKSPACE_NAME := ${PRODUCT_NAME}.xcworkspace | |
| UI_TESTS_TARGET_NAME := ${PRODUCT_NAME}UITests | |
| TEST_SDK := iphonesimulator | |
| TEST_CONFIGURATION := Debug | |
| TEST_PLATFORM := iOS Simulator | |
| TEST_DEVICE ?= iPhone 11 Pro Max | |
| TEST_OS ?= 13.3 |
You can't use bridging headers within a framework.
Xcode will automatically create umbrella header for you Cocoa Framework project. That will be the file named <FrameworkName>.h in the <FrameworkName> group/folder (where the rest of your sources are).
Public: select it in the project explorer (left pane) and change the property Target Membership (left—Inspectors—pane) from Project to Public.<FrameworkName>.h) and import the required header as:I think most of us realize that macOS isn't a Linux OS, but what that also means is that instead of shipping with the GNU flavor of command line tools, it ships with the FreeBSD flavor. As such, writing shell scripts which can work across both platforms can sometimes be challenging.
Homebrew can be used to install the GNU versions of tools onto your Mac, but they are all prefixed with "g" by default.
All commands have been installed with the prefix "g". If you need to use these commands with their normal names, you can add a "gnubin" directory to your PATH from your bashrc.
| [alias] | |
| ## | |
| # One letter alias for our most frequent commands. | |
| # | |
| # Guidelines: these aliases do not use options, because we want | |
| # these aliases to be easy to compose and use in many ways. | |
| ## | |
| a = add |
| #!/usr/bin/zsh | |
| echo "detecting shell:" | |
| if [[ -n ${ZSH_VERSION} ]] && [[ ! -z ${ZSH_VERSION} ]]; then | |
| INDEX_START=1 | |
| INDEX_OFFSET=0 | |
| echo " using zsh $ZSH_VERSION, index starts at $INDEX_START" | |
| elif [[ -n $BASH_VERSION ]]; then | |
| INDEX_START=0 | |
| INDEX_OFFSET=1 |
| // | |
| // SKSerialInputStream.h | |
| // inputstream | |
| // | |
| // Created by Soroush Khanlou on 11/4/18. | |
| // Copyright © 2018 Soroush Khanlou. All rights reserved. | |
| // | |
| #import <Foundation/Foundation.h> |