Skip to content

Instantly share code, notes, and snippets.

extension String {
public func reverse () -> String {
return String(Array(self).reverse())
}
public func isPalindrome () -> Bool {
return (self == self.reverse())
@JamalK
JamalK / facetime_cli.swift
Last active October 13, 2022 06:16
FaceTime from command line.
#!/usr/bin/env swift
//swiftc facetime_cli.swift -o facetime_cli
// sudo cp facetime_cli /usr/bin
// Enjoy! usage: facetime_cli $PHONE_NUMBER or $APPLE_ID
import Foundation
import Cocoa
extension Array {
@JamalK
JamalK / keybase.md
Last active November 14, 2024 05:53

Keybase proof

I hereby claim:

  • I am jamalk on github.
  • I am jamalk (https://keybase.io/jamalk) on keybase.
  • I have a public key ASC5VOFtACry_Z5K-vUcsBYilMyJe673jWj5cIxbTocu0Ao

To claim this, I am signing this object: