A collection of all of the various options and styles available to you if you'd like to format data into string on iOS 15.
See every option in detail at fuckingformatstyle.com or goshdarnformatstyle.com.
// Youtube Video: https://youtu.be/SBvrvJ93gh4 | |
import SwiftUI | |
import WebKit | |
struct ContentView: View { | |
let webView = WebView(request: URLRequest(url: URL(string: "https://www.google.com")!)) | |
var body: some View { | |
VStack { |
A collection of all of the various options and styles available to you if you'd like to format data into string on iOS 15.
See every option in detail at fuckingformatstyle.com or goshdarnformatstyle.com.
(headers) { | |
header { | |
-Server | |
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" | |
X-XSS-Protection "1; mode=block" | |
X-Permitted-Cross-Domain-Policies "none" | |
X-Content-Type-Options "nosniff" | |
X-Frame-Options "SAMEORIGIN" | |
X-Robots-Tag "nine" | |
Permissions-Policy interest-cohort=() |
// | |
// CircularProgressView.swift | |
// SwiftUI30WWDC2021 | |
// | |
// Created by Mateo on 5/6/22. | |
// | |
// dependency: https://gist.github.com/mattyoung/5f5c0f13c06d980e823481e0334c00fe |
import Combine | |
extension URLSession { | |
/// Returns a publisher that wraps a URL session download task for a given | |
/// URL. | |
/// | |
/// - Parameter url: The URL for which to create a download task. | |
/// - Returns: A publisher that wraps a download task for the URL. |
#!/bin/bash | |
# Xcode: Set version and build number from Git | |
# -------------------------------------------- | |
# | |
# This script sets the version number `CFBundleShortVersionString` to one of | |
# | |
# - `1.2.3` -- for the tagged commit `v1.2.3` or a hyphen-separated prerelease, | |
# e.g. `v1.2.3-alpha`, `v1.2.3-alpha.2`, `v1.2.3-beta`, `v1.2.3-rc`. | |
# - `1.2.3-7-gabc1234` -- at commit `abc1234`, 7 commits after `v1.2.3`, | |
# - `1.2.3-7-gabc1234-dirty` -- when there are uncommitted changes, or |
// | |
// FormDemoApp.swift | |
// FormDemo | |
// | |
// Created by Marc Prud'hommeaux | |
// | |
import SwiftUI | |
@main |
adb shell dumpsys procstats --hours 3 | |
adb shell dumpsys meminfo | |
adb shell dumpsys activity | |
#get com.android content providers | |
adb shell dumpsys | grep Provider{ | grep com.android | |
#call logs | |
adb shell content query --uri content://call_log/calls |
== Adb Server | |
adb kill-server | |
adb start-server | |
== Adb Reboot | |
adb reboot | |
adb reboot recovery | |
adb reboot-bootloader | |
== Shell |
import Combine | |
import CoreData | |
extension NSManagedObjectContext { | |
func changesPublisher<Object: NSManagedObject>(for fetchRequest: NSFetchRequest<Object>) | |
-> ManagedObjectChangesPublisher<Object> | |
{ | |
ManagedObjectChangesPublisher(fetchRequest: fetchRequest, context: self) | |
} | |
} |