Skip to content

Instantly share code, notes, and snippets.

View jodyabney's full-sized avatar

Jody Abney jodyabney

  • Graniteville, SC
View GitHub Profile
@jodyabney
jodyabney / claude-code-prompt.txt
Created August 22, 2025 01:14 — forked from agokrani/claude-code-prompt.txt
Claude Code System Prompt
'system':
[
{
'type': 'text',
'text': "You are Claude Code, Anthropic's official CLI for Claude.",
'cache_control': {'type': 'ephemeral'}
},
{
'type': 'text',
'text': 'You are an interactive CLI tool that helps users with software engineering tasks.
@jodyabney
jodyabney / ChatPlayground.swift
Created February 15, 2025 10:19 — forked from pixelsnis/ChatPlayground.swift
SwiftUI Chat Bubble Reddit
import SwiftUI
struct ChatPlayground: View {
@Namespace private var namespace
@State private var messageText: String = ""
@State private var sentMessages = [String]()
@State private var lastMessageIndex: Int? // Handles the transition for matchedGeometryEffect()
@State private var scaleLastMessageIndex: Int? // Handles frame height animation for a smooth scroll up
struct FlickrFavoritesResponse: Codable {
let stat: String
let code: String?
let message: String?
}
enum AuthenticationState {
case successfullyAuthenticated
case failedAuthentication
case noAuthenticationAttempted
}
struct FlickrPhotosResponse: Codable {
let photos: [Photo]
enum CodingKeys: String, CodingKey {
case photos = "photo"
}
}
struct FlickrPhotosInfoResponse: Codable {
let photosInfo: FlickrPhotosResponse
enum CodingKeys: String, CodingKey {
case photosInfo = "photos"
}
}
import Foundation
enum FlickrError: Error {
case parsing(description: String)
case network(description: String)
}
import Foundation
struct FlickrAPI {
// urls
static let baseURLString = "https://api.flickr.com/services/rest"
static let requestTokenURL = "https://www.flickr.com/services/oauth/request_token"
static let authorizeURL = "https://www.flickr.com/services/oauth/authorize"
static let accessTokenURL = "https://www.flickr.com/services/oauth/access_token"
// keys and tokens
import Foundation
struct License {
let id: String
let name: String
let urlString: String?
}
{
"photos": {
"page": 1,
"pages": 167,
"perpage": 3,
"total": 500,
"photo": [
{
"id": "50793859897",
"owner": "137339895@N06",