Skip to content

Instantly share code, notes, and snippets.

@steipete
steipete / ios-xcode-device-support.sh
Last active December 12, 2023 03:36
Using iOS 15 devices with Xcode 12.5 (instead of Xcode 13)
# The trick is to link the DeviceSupport folder from the beta to the stable version.
# sudo needed if you run the Mac App Store version. Always download the dmg instead... you'll thank me later :)
# Support iOS 15 devices (Xcode 13.0) with Xcode 12.5:
sudo ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/15.0 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
# Then restart Xcode and reconnect your devices. You will need to do that for every beta of future iOS versions
# (A similar approach works for older versions too, just change the version number after DeviceSupport)
@rjjohnpatrickcruz
rjjohnpatrickcruz / swift.cheat
Created February 23, 2015 00:49
Swift Cheat Sheet (Snippet Code)
Swift Cheatsheet (Snippet Code)
===================
### UIAlertView
```
var title = "Error"
var message = "Your Error Message!"
@pocketkk
pocketkk / Swift - Dijkstra.swift
Last active February 1, 2023 11:28
Swift - Shortest Path Algorithm (Compiled from: http://waynewbishop.com/swift/graphs/dijkstra/)
import UIKit
public class Vertex {
var key: String?
var neighbors: Array<Edge>
init() {
self.neighbors = Array<Edge>()
}
}
@brainv
brainv / betlog_ng_matsing.txt
Last active August 29, 2015 13:56
Betlog Ng Matsing Lyrics by: Rivermaya
Betlog Ng Matsing Lyrics
by: Rivermaya
Ituring ang iyong sariling tagahawi ng ulap
Sa kalangitang kulimlim
Kampanang yayanig sa bawat nilalang
Magigising ang lupang kulang sa dilig
Ikaw ang magsasabing
Kaya mo 'to
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 3, 2024 19:09
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname