Skip to content

Instantly share code, notes, and snippets.

import SwiftUI
struct ContentView: View {
@State private var showAlert = false
var body: some View {
VStack {
Button("Present alert") {
showAlert.toggle()
}
import Passbase
class MyPassbaseWrapper {
static func initialisePassbase:(_ apiKey: String) {
PassbaseSDK.initialize(publishableApiKey: apiKey)
}
}
@paulw11
paulw11 / find.swift
Last active September 19, 2021 01:18
import Foundation
class BaseClass {}
class A : BaseClass {
}
class B : BaseClass {
}
@paulw11
paulw11 / test.html
Created August 6, 2021 08:10
Hello World Html.
<html>
<head>
<style>
h1 {
font-family: Calibri;
}
</style>
</head>
<body>
<h1>Hello World!</h1>
@paulw11
paulw11 / test.md
Created August 6, 2021 08:09
Hello world markdown

Hello World

This is content converted from Markdown!

Here's a JSON sample:

{
  "foo": "bar"
}
class ViewController: UIViewController {
var max = 0.0
var data:[Double] = [13,32,43,56,91,42,26,17,63,41,73,54,26,87,64,33,26,51,99,85,57,43,30,33,20]
@IBOutlet weak var tableView: UITableView!
override func viewDidLoad() {
super.viewDidLoad()
view.backgroundColor = .red
self.tableView.dataSource = self
//
// ViewController.swift
// DiffableTest
//
// Created by Paul Wilkinson on 28/9/20.
//
import UIKit
class ViewController: UIViewController {
//
// ViewController.swift
// NWPathMonitor
//
// Created by Paul Wilkinson on 16/5/20.
// Copyright © 2020 Paul Wilkinson. All rights reserved.
//
import UIKit
import Network
//
// ConfigViewController.m
// beacon
//
// Created by Paul Wilkinson on 1/5/20.
// Copyright © 2020 Paul Wilkinson. All rights reserved.
//
#import "ConfigViewController.h"
#import <CoreLocation/CoreLocation.h>
//
// BLEPeripheral.swift
// BLEPublishTest
//
// Created by Paul Wilkinson on 22/4/20.
// Copyright © 2020 Paul Wilkinson. All rights reserved.
//
import Foundation
import CoreBluetooth