Skip to content

Instantly share code, notes, and snippets.

View Sephiroth87's full-sized avatar
💭
🥃

Fabio Ritrovato Sephiroth87

💭
🥃
View GitHub Profile
@Sephiroth87
Sephiroth87 / ⦅╯°□°⦆╯
Created February 17, 2015 17:42
Swift flipping operator ⦅╯°□°⦆╯
let conversionMap: [Character: Character] = [
"\u{0021}" : "\u{00A1}",
"\u{0022}" : "\u{201E}",
"\u{0026}" : "\u{214B}",
"\u{0027}" : "\u{002C}",
"\u{0028}" : "\u{0029}",
"\u{002E}" : "\u{02D9}",
"\u{0033}" : "\u{0190}",
"\u{0034}" : "\u{152D}",
"\u{0036}" : "\u{0039}",

Keybase proof

I hereby claim:

  • I am Sephiroth87 on github.
  • I am fabior (https://keybase.io/fabior) on keybase.
  • I have a public key whose fingerprint is 1AA1 0313 067F 08DD 03EE 5DD9 4336 96A0 DCCC 8BBD

To claim this, I am signing this object:

@Sephiroth87
Sephiroth87 / UpdateBetaDeviceSupport.swift
Last active November 15, 2016 11:51
Quick script to copy missing DeviceSupport files from beta Xcode to keep using iOS beta devices with regular Xcode
#!/usr/bin/swift
import Foundation
do {
let mainPath = "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/"
let betaPath = "/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/"
try FileManager.default.contentsOfDirectory(atPath: betaPath).forEach {
if !FileManager.default.fileExists(atPath: mainPath + $0) {
print(betaPath + $0)