In iTerm2, in the menu bar go to Scripts > Manage > New Python Script
Select Basic. Select Long-Running Daemon
Give the script a decent name (I chose auto_dark_mode.py
)
Save and open the script in your editor of choice.
# To add assets to your application, add an assets section, like this: | |
assets: | |
- images/spotify_logo_banner_black.png | |
- images/spotify_logo_title.png | |
- images/spotify_logo_vertical_black.jpg | |
- images/spotify_logo.jpg | |
- images/spotify_smaller.png | |
- images/Spotify_logo_horizontal_black.jpg | |
# An image asset can refer to one or more resolution-specific "variants", see |
import XCTest | |
class UniversialLinktTest: XCTestCase { | |
var app: XCUIApplication! | |
override func setUp() { | |
super.setUp() | |
continueAfterFailure = false | |
app = XCUIApplication() | |
app.launch() |
import AsyncDisplayKit | |
struct VideoProcessing { | |
private static let loadOperation: OperationQueue = { | |
let operationQueue = OperationQueue() | |
operationQueue.maxConcurrentOperationCount = 3 | |
operationQueue.name = "com.VideoFeedController.VideoLoaderOperation" | |
operationQueue.qualityOfService = .utility | |
return operationQueue | |
}() |
const mdns = require('mdns') | |
const Client = require('castv2-client').Client | |
const DefaultMediaReceiver = require('castv2-client').DefaultMediaReceiver | |
const playMedia = host => { | |
const client = new Client() | |
client.connect(host, () => { | |
console.log('connected') | |
client.launch(DefaultMediaReceiver, (err, player) => { |
To send a request via the sandbox, you can use pm.sendRequest.
pm.test("Status code is 200", function () {
pm.sendRequest('https://postman-echo.com/get', function (err, res) {
pm.expect(err).to.not.be.ok;
pm.expect(res).to.have.property('code', 200);
pm.expect(res).to.have.property('status', 'OK');
});
});
HyperTerm is a terminal that is built with Electron. Electron is like building apps with a baked-in browser (Chromium). So what makes HyperTerm easily unique from other terminals is the ability to load websites right inside the terminal window.
To open a website in Hyperterm, just type the URL in the command line:
<!-- https://developer.apple.com/library/ios/featuredarticles/iPhoneURLScheme_Reference/MapLinks/MapLinks.html --> | |
<a href="maps://?q=dallas" data-rel="external">iOS launch in apple maps</a> | |
<!-- https://developers.google.com/maps/documentation/ios/urlscheme --> | |
<a href="comgooglemaps://?q=dallas" data-rel="external">iOS launch in google maps</a> | |
<a href="geo://0,0?q=dallas" data-rel="external">Android launch in google maps</a> |
To remove a submodule you need to: