- Create a file to store our credentials:
sudo vim /etc/postfix/sasl_passwd
sudo vim /etc/postfix/sasl_passwd
// | |
// MyMetalWaterfall.swift | |
// version 0.1.105 (updated for Swift 5) | |
// | |
// Demonstrates using a MetalKit compute shader to render a live waterfall RGB bitmap | |
// into a UIView | |
// | |
// This is a single file iOS app | |
// | |
// It includes AppDelegate for a minimal demonstration app |
Steps from https://stackoverflow.com/q/19856192 with minor changes to work on Ubuntu 16.04.
# Install the Nvidia driver
sudo apt-add-repository ppa:ubuntu-x-swat/updates
sudo apt-get update
sudo apt-get install nvidia-current
# Driver installation needs reboot
sudo reboot now
I recently repurposed a family computer to play a new role: Xcode build server. Setting up the bot wasn't too bad overall, but there was one really big hurdle: getting post-integration email notifications to actually send. Despite the (relative) user-friendliness of the UI, the email notification feature is very unforgiving. It expects to be running on a mac that is hosting (or sitting behind) a domain that's also running it's own SMTP service. A repurposed family computer is not going to have such a setup. Outbound mail is going to either not send at all or else likely get bounced by spam filtering.
I do have a GSuite account for small business stuff. I host my website at Media Temple, but the email service is run by Gmail, with DNS records configured to route mail traffic to Gmail. What I want is for my Xcode bot to send email notifications from one of my GSuite accounts. The following are s
@DynamicColor(lightVariant: .black, darkVariant: .white) | |
static var dynamicLabelColor: UIColor | |
@propertyWrapper | |
struct DynamicColor { | |
let lightVariant: UIColor | |
let darkVariant: UIColor | |
var wrappedValue: UIColor { | |
get { |
// | |
// ContentView.swift | |
// SwiftUIDoubleSlider | |
// | |
// Created by Veronica Ray on 6/23/19. | |
// Copyright © 2019 Veronica Ray. All rights reserved. | |
// | |
import SwiftUI |
// | |
// SwiftUIIconMatchedGeometryEffectSimplifiedBetterDelay.swift | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies | |
// of the Software, and to permit persons to whom the Software is furnished to do so, | |
// subject to the following conditions: |
import SwiftUI | |
import PlaygroundSupport | |
struct iPod: View { | |
var body: some View { | |
VStack(spacing: 40) { | |
Screen() | |
ClickWheel() | |
Spacer() | |
} |
// | |
// CustomPicker.swift | |
// | |
// Created by T Brennan on 27/3/21. | |
// | |
import SwiftUI | |
struct ContentView: View { | |
@State private var selection: Int? = 0 |
/** | |
* I needed a property wrapper that fulfilled the following four requirements: | |
* | |
* 1. Values are stored in UserDefaults. | |
* 2. Properties using the property wrapper can be used with SwiftUI. | |
* 3. The property wrapper exposes a Publisher to be used with Combine. | |
* 4. The publisher is only called when the value is updated and not | |
* when_any_ value stored in UserDefaults is updated. | |
* | |
* First I tried using SwiftUI's builtin @AppStorage property wrapper |