Want the Subject field (for bold iMessages) in macOS’ Messages app?
- Quit Messages
- Open Terminal
- Run
defaults write com.apple.MobileSMS MMSShowSubject 1
- Start Messages
This worked for me on a fresh install of macOS 14.1.1 (23B81) (new Mac mini).
import Foundation | |
extension Character { | |
var invalid: Bool { | |
let invalid = Set(" -&+$,/:;=?@\"#{}|^~[]`\\*()%.!'".characters) | |
return invalid.contains(self) | |
} | |
var isAscii: Bool { | |
guard let number = String(self).utf16.first else { return false } |
// The correct numbers | |
let expectedSequence = [1, 1, 2, 3, 5, 8, 13, 21, 34] | |
// Iterative | |
func digit(index: Int) -> Int { | |
var digits = [1, 1] | |
for i in (2...index) { |
platform :ios, '9.3' | |
target 'target-name' do | |
use_frameworks! | |
pod 'AFNetworking', '~> 2' | |
pod 'RSBarcodes_Swift', :git => 'https://github.com/yeahdongcn/RSBarcodes_Swift', :branch => 'master' | |
swift3 = [] | |
swift4 = ['RSBarcodes_Swift'] # if these pods are in Swift 4 | |
//: Playground - noun: a place where people can play | |
import Foundation | |
// this is either a third party SDK interface or your own analytics client implementation | |
// that actually sends JSON across the wire to deliver tracked analytics events | |
protocol AnalyticsClient { | |
func sendAnalyticsDataToTheBackend(_ eventJSON: [String: Any]) | |
} |
//: # Feature Flag example | |
//: ## Implementation | |
import Foundation | |
enum Feature: String { | |
case Login, AdminTool | |
var key: String { |
#!/bin/bash | |
for file in ./*.svg | |
do | |
rsvg-convert -h 150 "${file}" > "${file%.svg}"@3x.png | |
rsvg-convert -h 100 "${file}" > "${file%.svg}"@2x.png | |
rsvg-convert -h 50 "${file}" > "${file%.svg}".png | |
done |
Want the Subject field (for bold iMessages) in macOS’ Messages app?
defaults write com.apple.MobileSMS MMSShowSubject 1
This worked for me on a fresh install of macOS 14.1.1 (23B81) (new Mac mini).
# If you want to restart all k8s deployments by label (e.g. where appname=foo, team=bar, and environ=baz), you can | |
kubectl get deployments --selector=appname=foo,team=bar,environ=baz | tail -n +2 | cut -d ' ' -f 1 | xargs kubectl rollout restart deployment |