See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
import SwiftUI | |
import RevenueCat | |
struct Constants { | |
static let apiKey = "<your_api_key>" // Will look like: appl_bunchofotherstuffhere | |
static let entitlementName = "<your_entitlement_name>" // I use something like "pro" | |
} | |
@main | |
struct ATinySampleApp: App { |
import SwiftUI | |
struct Dog: Codable, Identifiable { | |
public var id: String | |
public var status: String | |
enum CodingKeys: String, CodingKey { | |
case id = "message" | |
case status = "status" | |
} |
import SwiftUI | |
import SDWebImage | |
import SDWebImageSwiftUI | |
struct Dog: Codable, Identifiable { | |
public var id: String | |
public var status: String | |
enum CodingKeys: String, CodingKey { | |
case id = "message" |
import SwiftUI | |
class ImageDownloader : ObservableObject { | |
@Published var downloadData: Data? = nil | |
func downloadImage(url: String) { | |
guard let imageURL = URL(string: url) else { return } | |
DispatchQueue.global().async { |
import SwiftUI | |
import Combine | |
struct Movie: Codable, Identifiable { | |
public var id: Int | |
public var name: String | |
public var released: String | |
enum CodingKeys: String, CodingKey { | |
case id = "id" |
str = '\u534a\u89d2\u82f1\u6570\u5b57' | |
str.gsub(/\\u([\da-fA-F]{4})/) { [$1].pack('H*').unpack('n*').pack('U*') } # => 半角英数字 |
package jp.co.KaorinProject; | |
import java.util.Scanner; | |
public class MaruBatsu { | |
public static void main(String[] args) { | |
System.out.println("◯✕ Game Start!"); | |
String trun = "◯"; | |
String[] field = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; |