This is a Ruby on Rails application that helps users with benefits applications. The application uses:
- Ruby on Rails 8
- PostgreSQL database
- Bootstrap 5.3 for UI styling
- Hotwire (Turbo and Stimulus) for frontend interactivity
- RSpec for testing
| import PlaygroundSupport | |
| import SwiftUI | |
| PlaygroundPage.current.setLiveView(ContentView()) | |
| struct ContentView: View { | |
| var body: some View { | |
| Color.white.frame(width: 600, height: 800).touchVisualizer() | |
| } | |
| } |
| import sys | |
| import os | |
| import zlib | |
| with open(sys.argv[1], "rb") as infile: | |
| indata = infile.read() | |
| magic = b"Playdate PDX\0\0\0\0" | |
| magic_new = b"Playdate PDZ\0\0\0\0" | |
| if not indata[0:len(magic)] in [magic, magic_new]: |
| #!/usr/bin/env python3 | |
| import pathlib | |
| import sqlite3 | |
| if __name__ == "__main__": | |
| connection = sqlite3.connect(f"{pathlib.Path.home()}/Library/Messages/chat.db") | |
| for (name, size, chat, date) in connection.execute(""" | |
| SELECT transfer_name, total_bytes, chat_message_join.chat_id, date | |
| FROM message_attachment_join JOIN message ON message_attachment_join.message_id = message.ROWID |
| // | |
| // SparkleCommands.swift | |
| // Past for iChat | |
| // | |
| // Created by Helge Heß on 08.04.21. | |
| // | |
| import SwiftUI | |
| #if SPARKLE && canImport(Sparkle) |
Check out the repo instead. The Wisdom of Quinn Now with 100% more archived PDFs.
Informative DevForum posts from everyone's favorite DTS member.
(Arranged newest to oldest)
| import SwiftUI | |
| import UIKit | |
| enum ScalableFont { | |
| case system(size: CGFloat, weight: Font.Weight = .regular, design: Font.Design = .default) | |
| case custom(_ name: String, size: CGFloat) | |
| var size: CGFloat { |
| import UIKit | |
| @main | |
| final class AppDelegate: UIResponder, UIApplicationDelegate { | |
| private let testService: TestService = .init() | |
| func application( | |
| _ application: UIApplication, | |
| configurationForConnecting connectingSceneSession: UISceneSession, | |
| options: UIScene.ConnectionOptions) -> UISceneConfiguration |
| struct User: Equatable { | |
| var firstName: String | |
| var lastName: String | |
| } | |
| @main | |
| struct MyApp: App { | |
| @State var value = User(firstName: "", lastName: "") | |
| @State var showEdit = false | |
| // This file is based largely on the Runtime package - https://github.com/wickwirew/Runtime | |
| extension KeyPath { | |
| var fieldName: String? { | |
| guard let offset = MemoryLayout<Root>.offset(of: self) else { | |
| return nil | |
| } | |
| let typePtr = unsafeBitCast(Root.self, to: UnsafeMutableRawPointer.self) | |
| let metadata = typePtr.assumingMemoryBound(to: StructMetadata.self) |