Skip to content

Instantly share code, notes, and snippets.

View kevinmbeaulieu's full-sized avatar

Kevin Beaulieu kevinmbeaulieu

View GitHub Profile
@kastiglione
kastiglione / helpers.swift
Last active June 2, 2022 02:02
Swift helpers, and the lldb setup to use them. Presented @ SLUG https://speakerdeck.com/kastiglione/advanced-debugging-and-swift
extension UIView {
/// Example: call someView.nudge(0, 30)
func nudge(_ dx: CGFloat, _ dy: CGFloat) {
self.frame = self.frame.offsetBy(dx: dx, dy: dy)
CATransaction.flush()
}
}
extension UIView {
/// Example: po UIView.root
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active May 20, 2025 21:00
set -e, -u, -o, -x pipefail explanation